/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  background-color: rgba(30, 30, 30, 1);
  color: rgba(255, 255, 255, 1);
  line-height: 1.5;
}

/* .portfolio-container {
  display: flex;
  padding: 40px 80px;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  width: 50%;
  margin: auto;
} */

/* Styling for the menu button */
.menu-btn {
  position: fixed;
  top: 195px;
  left: 20%;
  width: 50px;
  height: 50px;
  background-color: #ffffff; /* Blue color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Icon inside the button */
.menu-btn::before {
  /* content: "☰";  */
  font-size: 24px;
  color: black;
  font-weight: bold;
}

/* Dropdown menu styles */
.dropdown-menu {
  position: fixed;
  top: 255px; /* Below the button */
  left: 10%;
  width: 180px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none; /* Hidden by default */
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

/* Menu links */
.dropdown-menu a {
  display: block;
  padding: 12px;
  color: black;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove border from last item */
.dropdown-menu a:last-child {
  border-bottom: none;
}

/* Hover effect */
.dropdown-menu a:hover {
  background-color: #171717;
  color: white;
}

.menu-open .menu-btn::before {
  content: "✕"; /* Unicode for X symbol */
}

.menu-open .dropdown-menu {
  display: flex; /* Show the dropdown */
}

/* *************************************************** */

.main-content{
  width: 50%;
  margin: auto;
}

@media (max-width: 991px) {
  .portfolio-container {
    padding: 40px 20px;
  }
}

/* Header styles */
header {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  width: 100%;
  position: relative;
  z-index: 100;
}

.logo {
  font-family: 'DM Serif Text';
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  z-index: 101;
}

nav {
  width: 60%;
  max-width: 800px;
  height: 95px;
  position: absolute;
  text-align: center;
  right: 50%;
  top: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(52, 52, 52, 0.2) 100%);
  border-radius: 47.5px;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(25px);
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15%;
  padding: 0;
  margin: 0;
  width: 80%;
  justify-content: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: "Mulish", sans-serif;
  font-weight: 400;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.portfolio-text {
  font-family: 'DM Serif Text';
  font-size: 18px;
  font-weight: 400;
  margin-left: auto;
  color: #fff;
}

/* Project intro styles */
.project-title {
  color: rgba(255, 255, 255, 1);
  font-size: 32px;
  font-family:
    "DM Serif Text",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  align-self: start;
  margin-top: 56px;
}

@media (max-width: 991px) {
  .project-title {
    max-width: 100%;
    margin-top: 40px;
    margin-left: 0;
  }
}

.project-description {
  color: rgba(255, 255, 255, 1);
  font-size: 16px;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 300;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

/* Project details styles */
.project-details {
  margin-top: 33px;
  width: 100%;
  max-width: 100%;
}

.details-container {
  gap: 20px;
  display: flex;
}

@media (max-width: 991px) {
  .details-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }
}

.project-image-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  width: 77%;
  margin-left: 0px;
}

@media (max-width: 991px) {
  .project-image-column {
    width: 100%;
  }
}

.project-main-image {
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: center;
  width: 100%;
  border-radius: 20px;
  flex-grow: 1;
}

@media (max-width: 991px) {
  .project-main-image {
    max-width: 100%;
    margin-top: 37px;
  }
}

.project-info-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  width: 23%;
  margin-left: 20px;
}

@media (max-width: 991px) {
  .project-info-column {
    width: 100%;
  }
}

.info-content {
  display: flex;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  flex-direction: column;
  align-self: stretch;
  align-items: start;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 1);
  font-weight: 300;
}

@media (max-width: 991px) {
  .info-content {
    margin-top: 40px;
  }
}

.info-label {
  color: rgba(175, 175, 175, 1);
  font-family:
    "DM Serif Text",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 15px;
}

.info-value {
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 49px;
}

@media (max-width: 991px) {
  .info-value {
    margin-bottom: 40px;
  }
}

.jump-button {
  align-self: stretch;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 1);
  margin-top: 49px;
  padding: 15px;
  gap: 15px;
  font-size: 16px;
  color: rgba(0, 0, 0, 1);
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
}

.jump-button:hover,
.jump-button:focus {
  background-color: rgba(240, 240, 240, 1);
}

@media (max-width: 991px) {
  .jump-button {
    margin-top: 40px;
  }
}

.jump-description {
  font-size: 10px;
  align-self: stretch;
  margin-top: 15px;
}

/* Section title styles */
.section-title {
  color: rgba(174, 174, 174, 1);
  font-size: 18px;
  font-family:
    "DM Serif Text",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  align-self: start;
  margin-top: 100px;
}

@media (max-width: 991px) {
  .section-title {
    margin-left: 10px;
    margin-top: 40px;
  }
}

.section-description {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 300;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

/* Stats section styles */
.stat-item {
  display: flex;
  margin-top: 25px;
  
  align-items: stretch;
  gap: 10px;
  font-family:
    "DM Sans",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 36px;
  font-weight: 400;
  max-width: 100%;
}

@media (max-width: 991px) {
  .stat-item {
    margin-left: 10px;
    flex-wrap: wrap;
  }
}

.stat-marker {
  width: 5px;
  height: 45px;
  background: linear-gradient(to bottom, #ffffff, #4c4c4c);
  border-radius: 9999px;
}

.stat-content {
  flex-basis: auto;
  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
}

.stat-highlight {
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 25px;
  text-transform: uppercase;
}

.stat-description {
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 15px;
  line-height: 19px;
  margin-top: 5px;
}

/* Glove description styles */
.glove-description {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 300;
  margin-top: 20px;
  width: 830px;
  max-width: 100%;
  flex: 1;
}

.glove-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

/* .glove-description {
  flex: 1;
} */

.glove-image img {
  width: 350px; /* Adjust size as needed */
  max-width: 100%;
  height: auto;
  margin-left: 20px;
}

.glove-images img {
  width: 150px; /* Adjust size as needed */
  max-width: 100%;
  height: auto;
  margin-left: 20px;
  margin-right: 420px;
}

.glove-image-future {
  
  transform: rotate(-32.54deg);
}

@media (max-width: 991px) {
  .glove-container {
    flex-direction: column;
    align-items: center;
  }

  .glove-image img {
    margin-left: 0;
    margin-top: 20px;
    width: 80%;
  }

  .glove-images img {
    margin-left: 0;
    margin-top: 20px;
    width: 80%;
  }
}

.component-list {
  margin: 20px 0 20px 40px;
}

.component-list-future {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 300;
  align-self: start;
  margin-top: 20px;
  margin-left: 40px;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 991px) {
  .component-list-future {
    margin-left: 10px;
  }
}

/* Images styles */
.glove-concept-image {
  aspect-ratio: 2.1;
  object-fit: contain;
  object-position: center;
  width: 100%;
  margin-top: 77px;
  max-width: 100%;
}

@media (max-width: 991px) {
  .glove-concept-image {
    margin-top: 40px;
  }
}

.glove-components-image {
  aspect-ratio: 3.55;
  object-fit: contain;
  object-position: center;
  width: 100%;
  margin-top: 80px;
  max-width: 100%;
}

@media (max-width: 991px) {
  .glove-components-image {
    margin-top: 40px;
  }
}

.future-glove-section{
  max-width: 50%;
  margin: auto;
  flex: 1;
}

/* UI Screens section styles */
.ui-screens-section{
  max-width: 50%;
  margin: auto;
}

.ui-screens-container {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}





/* Final model section styles */
.final-model-section{
  max-width: 50%;
  margin: auto;
}

.final-model-image {
  aspect-ratio: 2.58;
  object-fit: contain;
  object-position: center;
  width: 100%;
  margin-top: 20px;
  max-width: 100%;
}

.final-model-usage-image {
  aspect-ratio: 3.03;
  object-fit: contain;
  object-position: center;
  width: 100%;
  margin-top: 35px;
  max-width: 100%;
}

/* Documentation section styles */
.documentation-section{
  max-width: 50%;
  margin: auto;
  padding-bottom: 100px;
}

.documentation-button {
  display: inline-block;
  align-self: start;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 1);
  margin-top: 100px;
  padding: 15px;
  gap: 15px;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 16px;
  color: rgba(30, 30, 30, 1);
  font-weight: 600;
  text-decoration: none;
}

.documentation-button:hover,
.documentation-button:focus {
  background-color: rgba(240, 240, 240, 1);
}

@media (max-width: 991px) {
  .documentation-button {
    margin-left: 10px;
    margin-top: 40px;
  }
}

.documentation-note {
  color: rgba(255, 255, 255, 1);
  font-size: 10px;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 300;
  margin-top: 18px;
}

@media (max-width: 991px) {
  .documentation-note {
    margin-left: 10px;
  }
}

/* Contact form styles */
.contact-section {
  margin-top: 100px;
  /* width: 100%; */
  max-width: 50%;
  margin: auto;
  padding-bottom: 100px;
}

.contact-form {
  background-color: #2e2e2e;
  border-radius: 35px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.form-input {
  color: var(--secondary-text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  border-radius: 10px;
  background: #434343;
  padding: 1rem;
  border: none;
  width: 100%;
}

.form-textarea {
  color: var(--secondary-text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  margin-top: 2rem;
  border-radius: 10px;
  background: #434343;
  padding: 1rem;
  height: 109px;
  width: 100%;
  border: none;
  resize: none;
}

.form-submit {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.submit-button {
  width: 120px;
  height: 40px;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1e1e1e;
  text-align: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Footer */
.main-footer {
  display: flex;
  margin-top: 100px;
  /* width: 100%; */
  max-width: 50%;
  margin: auto;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .main-footer {
    margin-top: 40px;
  }
}

.footer-email {
  align-self: stretch;
  border-radius: 100px;
  border: 1px solid #ffffff;
  padding: 8px 19px;
  font-family:
    "Mulish",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 300;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.social-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 41px;
  flex-shrink: 0;
}

.social-icon:last-child {
  border-radius: 6px;
}

#scroll-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 1000;
  background-image: url('images/scroll/grey.png'); /* Replace with your image path */
  background-size: cover; /* Ensures the image covers the entire button */
  background-position: center; /* Centers the image */
}

#scroll-to-top:hover {
  opacity: 0.8; /* Slight opacity change on hover */
}

/* Media Queries */
/* Large devices (desktops) */
@media (max-width: 1200px) {
  nav {
    width: 70%;
  }
  
  nav ul {
    width: 90%;
    gap: 4%;
  }
  
  nav ul li a {
    padding: 8px 12px;
    font-size: 17px;
  }
  
  .hero h1 {
    font-size: 60px;
  }

  .project-card {
    max-width: 90%;
  }

  .cards-container {
    width: 90%;
  }
}

/* Medium devices (tablets) */
@media (max-width: 991px) {
  header {
    padding: 25px 4%;
  }
  
  nav {
    width: 85%;
    height: 80px;
    top: 0;
  }
  
  nav ul {
    width: 95%;
    gap: 3%;
  }
  
  nav ul li a {
    font-size: 16px;
    padding: 8px 10px;
  }
  
  .hero h1 {
    font-size: 50px;
  }
  
  .project-content {
    flex-direction: column;
  }
  
  .project-column {
    width: 100%;
  }
  
  .project-column.project-details {
    width: 100%;
    margin-top: 20px;
  }
  
  .project-image {
    height: auto;
    max-height: 202px;
  }
  
  .project-info {
    height: auto;
  }

  .skills-grid {
    width: 90%;
  }

  .about-text {
    width: 90%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer {
    width: 90%;
  }
}

/* Small devices (mobile) */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding: 15px 4%;
  }
  
  .logo, .portfolio-text {
    margin: 0;
  }
  
  nav {
    position: relative;
    width: 95%;
    height: auto;
    min-height: 60px;
    top: 0;
    right: 0;
    transform: none;
    margin: 15px auto;
    padding: 10px 0;
  }
  
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  nav ul li a {
    font-size: 15px;
    padding: 7px 10px;
  }
  
  .hero {
    margin-top: 60px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .btn {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .about-container {
    margin-top: 80px;
  }
  
  .about-text {
    padding: 10px 20px;
  }
  
  .about-text h3 {
    font-size: 1.5rem;
  }
  
  .about-text p {
    font-size: 16px;
  }
  
  .divider-image {
    width: 80%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-heading {
    margin-top: 100px;
    font-size: 28px;
  }
  
  .project-title {
    font-size: 24px;
  }
  
  .project-tags {
    top: 25px;
    right: 25px;
  }

  .project-description {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }
  
  .contact-section {
    margin-top: 100px;
    width: 90%;
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  .skill-card {
    width: 45%;
  }
  
  .footer {
    flex-direction: column;
    gap: 30px;
    padding: 80px 20px 40px;
  }
  
  .social-links {
    width: 100%;
    justify-content: center;
  }

  .social-icon {
    width: 35px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .logo, .portfolio-text {
    font-size: 17px;
  }
  
  nav {
    border-radius: 25px;
    min-height: 50px;
  }
  
  nav ul {
    gap: 10px;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  .hero h1 {
    font-size: 28px;
  }

  .skill-card {
    width: 100%;
  }
  
  .project-cards {
    height: 180px;
  }
  
  .overlay-text {
    font-size: 24px;
  }

  .project-card {
    padding: 15px;
  }

  .project-tags {
    top: 15px;
    right: 15px;
  }

  .tag-icon {
    width: 20px;
  }

  .tag-icon-single {
    width: 20px;
  }

  .project-category {
    font-size: 12px;
  }

  .project-title {
    font-size: 20px;
  }
  
  .footer-email {
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
  }

  .form-input, .form-textarea {
    font-size: 13px;
  }

  .submit-button {
    width: 100px;
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

/* Portrait phones */
@media (max-width: 375px) {
  header {
    padding: 15px 3%;
  }

  .logo, .portfolio-text {
    font-size: 15px;
  }

  nav {
    width: 97%;
    padding: 8px 0;
    margin: 10px auto;
    min-height: 45px;
  }

  nav ul {
    gap: 8px;
  }

  nav ul li a {
    font-size: 13px;
    padding: 5px 6px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .section-heading {
    font-size: 24px;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .project-description {
    -webkit-line-clamp: 3;
  }

  .social-icon {
    width: 30px;
  }
}