:root {
    --dark-bg: #121212;
    --dark-text: #fbfbfb;
    --dark-secondary: #1e1e1e;
    --dark-accent: #FF1515;
    --dark-border: #616161;
    --dark-hover: #2a2a2a;
    --light-text: #121212;
    --light-dark-border: #1d1d1d;
    --light-bg: #fbfbfb;
    --light-border: #d1d1d1;
    --red-accent: #FF1515;
    }
    @media screen and (min-width:1200px) {
      .contact-wrapper {
        padding: 0 2rem;
      }
    }
  /* ----------- MOBILE ----------- */
     @media (max-width: 768px) {
      #next-prev-buttons {
        margin-top: 4rem;
        margin-bottom: 3.5rem;
      }
      #contact {
        position: relative;
        margin-top: -10rem;
      }
      #footer-bg {
        margin-top:-450px !important;
      }
      .project-main {
        padding:20px 20px 0 20px !important;
      }
      .cont a.description {
        font-size: 16px;
      }
      .three-rem-mobile {
        margin-top: 3rem !important;
      }
      .contact {
        margin-top: 3rem;
      }
      .left-icon-text {
        justify-content: center;
      }
      .mobile-screenshot {
        width: 100%;
        margin: auto;
  display: block;
      }
      .nav-links > li > a > span > .arrow-svg {
        width: 12px;
        height: 12px;
      }
      .desktop-screenshot {
        width: 100%;
        margin: auto;
  display: block;
      }
      .hide-on-mobile {
        display: none !important;
      }
      
      div.tab > i {
        display: none;
      }
      .tab-container {
        left: -20px;
  width: calc(100% + 40px) !important;
  margin-bottom:10px !important;
      }
      .tab {
        padding: 8px 10px !important;
      }
      .tabs-icon {
        display: none;
      }
      .tab-container p {
        font-size: 14px;
      }
      .cursor {
        display: none !important;
      }
           /* Hide tablet navigation on mobile */
           body{
            cursor: auto !important;
           }
     .nav-links-tablet {
       display: none !important;
     }
     
     .nav-links{
       display: flex !important;
     }
    .overview-link {
      height: auto !important;
      min-height: 40px !important;
      display: flex;
      justify-content: center;
      align-content: center;
      align-items: center;
    }
    body.dark-mode .nav-links {
      box-shadow: 0 4px 6px rgba(64, 64, 64, 0.1);
    }
    .nav-links .t-submenu {
      border: none !important;
    }
    #mobile-tablet-header .theme-switch {
      margin:auto !important;
    }
    #mobile-tablet-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 60px;
      z-index: 1001;
      background: var(--light-bg);
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
      transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s;
      display: block !important;
    }
    

    #mobile-tablet-header.hidden {
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
    }
    .no-3{
      right:0;
    }
    .p-wrap-left-2 > div:nth-child(3) {
      margin-top: 10px;
    }
    .read-more-btn {
      display: inline;
    }
    html, body {
      overflow:visible !important;
      max-width: 100vw !important;
    }
    
    main {
      overflow-x: hidden !important;
      max-width: 100% !important;
    }
    
    .swipe-container{
      padding-top: 20px;
    }
    .quote-section{
      width: 100% !important;
      max-width: 100% !important;
      overflow-x: hidden !important;
      overflow-y: visible !important;
      position: relative !important;
      box-sizing: border-box !important;
    }
    .quote-section .container {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      position: static !important;
      overflow-x: hidden !important;
      box-sizing: border-box !important;
    }
    .copy-text p {
      line-height: 1.8;
    }
    .scroll-trigger {
      display: none !important;
    }
    [data-scroll] {
      transform: translateY(50px) !important;
    }
    .nav-links.open li {
      height: 50px;
      display: flex;
      justify-content: center;
      align-content: center;
      align-items: center;
    }
    .nav-links a {
      font-size: 18px;
    }
    nav{
      flex-direction: row-reverse;
      margin-left: auto;
      width: 100%;
    }
    .copy-pipe {
      visibility: hidden;
    }
    .copy-break {
      display: block;
    }
    .copyright {
      margin:unset;
      flex-direction: initial;
      justify-content: center;
    }
    .menu-btn {
      font-size: 34px;
      cursor: pointer;
      display: block;
      width: 25px;
      justify-content: end;
      flex-direction: row;
      display: flex;
      align-content: center;
      line-height: 100%;
      margin-right:10px;
    }
    .theme-switch {
      margin:auto
    }
    body.dark-mode .nav-links {
      background: var(--dark-bg);
    }
    body.dark-mode .nav-wrapper {
      border-bottom: 1px solid var(--dark-border);
    }
    .logo {
      display: flex;
      height: 60px;
      flex-direction: column;
      justify-content: center;
    }
    .header {
      width:unset
    }
    #map {
      min-height:250px;
    }
    .icon {
      width: 40px;
      display: flex;
      justify-content: start;
    }
    .contact-info {
      margin-top: 30px;
    }
    .map-container {
      width:100%;
    }
    .footer-content {
      padding:0;
    }
    .row-footer {
      display: grid;
      grid-template-columns: 1fr;
      row-gap: 2rem;
    }
    #footer-section {
      margin-top:1rem;
    }
    .swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
      bottom:0;
    }
    .swiper-pagination {
      position: relative;
      bottom:0;
    }
    .testimonial .slide{
      row-gap:10px;
    }
    .slide p {
      padding: 0;
      font-size:16px;
      line-height: 1.4;
    }
    .testimonial {
      padding:0;
    }
    .grid-wrapper {
      margin-bottom: 0;
    }
    .row-2 {
      margin-top:3.5rem;
    }
    .fixed{
      height:100px;
      margin-top:-20px;
      width: 100%;
    }
    h3.small-header{
      font-size:18px;
      margin-bottom: 5px;
    }
   
    h2.title {
      font-size:14px;
    }
    h1.my-name{
      font-size:24px;
    }
    .hero-text{
      margin-left: 0;
    }
    #logo-wave {
      width: 180px;
    }
    #hero-section {
      width: 100vw;
      overflow: hidden;
      padding: 0;

  height:40vh;
    }
    
    .nav-wrapper {
      flex-direction: row;
      display: flex;
      border-bottom: 1px solid var(--light-border);
      padding:0 20px;
    }
    .logo-header{
      display: flex;
  flex-direction: column;
    }
    .row-1,
    .row-2 {
      grid-template-columns: 1fr;
    }
    .main-layout {
      flex-direction: column;
    }
    .side-nav {
      display: none;
    }
    .main-content {
      border-bottom: none;
      overflow-y:hidden;
    }
    .right-spacer {
      display: none;
    }
    .profile-pic-wrap {
      width: 40%;
    margin-bottom: 10px;
    float: left;
    margin-right: 15px;
    }
  }
  
  /* ----------- Show top nav below 1180px----------- */
  @media screen and (min-width: 1180px) and (max-width: 1450px) {
    .slide p{
      padding: 0 20px;
    }
    .center-content{
      max-width: 850px;
    }
    
    .project-left {
      padding: 30px 50px 30px 30px;
    }
    .project-right {
      padding: 30px 30px 30px 50px;
    }
    .side-nav {
      width: 170px;
      left: calc(50% - 450px - 15%);
    }
  }
  
  @media only screen and (max-width: 1180px) {
    .copy-text p {
      
      margin-left: 0;
    }
    .side-nav {
      display: none;
    }
  }
     @media only screen 
   and (min-width: 768px) 
   and (max-width: 1180px) {
    #project6 {
      width:100%;
    }
    #project4 {
      width:84%;
    }
    #project2 {
      width:100%;
    }
    .copyright {
      margin: 0;
    }
    .map-container {
      z-index: 99;
      width: 100%;
      margin: auto;
    }
    .footer-content {
      
      padding: 0 0 30px;}
    .p-wrap-left-2 .image-container {
      margin-top: 10px;
    }
    .proj-wrap.p-wrap-right-2 .image-container {
      margin-top: 10px;
    }
    #hero-section{
      width:unset;
    }
    p{
      font-size:16px;
    }
    .about-me-row{
      grid-template-columns: 1fr;
    }
    .col-about-1{
      display: none;
    }
    .profile-pic-wrap {
      width: 23%;
      margin-bottom: 10px;
      float: left;
      margin-right: 15px;
    }
    .hide-on-mobile-and-tablet{
      display: none;
    }
    .project-right {
      padding: 20px 20px 20px 40px !important;
    }
    .center-content {
      width: 95%;
      margin-top: 50px;
    }
    .project-left {
      padding: 20px 40px 20px 20px !important;
    }
    .scroll {
      position: sticky;
      top: 50px;
    }
    .row-2{
      gap:5px;
      grid-template-columns:1fr 45px 1fr 45px 1fr
    }
    .main-content {
      min-width: 0;
      box-sizing: border-box;
      padding: 2rem 1rem 0 1rem;
      flex-grow: 1;
    }
    .fixed{
      width:45px
    }
     /* Tablet Navigation - Show horizontal nav */
      .nav-links-tablet .t-submenu a{
      justify-content: center;
     }
     .circle-third{
      width:100%;
     }
     .nav-links-tablet {
       display: flex !important;
       flex-direction: row !important;
       gap: 1.2rem !important;
       position: static !important;
       box-shadow: none !important;
       opacity: 1 !important;
       top: auto !important;
       right: auto !important;
       width: auto !important;
       height: auto !important;
       transform: none !important;
       background: transparent !important;
       padding: 0 !important;
       z-index: auto !important;
       list-style: none;
       margin-left:auto;
       align-items: center !important;
     }
     
     /* Hide mobile navigation on tablet */
     .nav-links {
       display: none !important;
     }
     
     /* Style tablet navigation elements */
     .nav-links-tablet > li {
       position: relative;
       display: flex;
     }
     
     /* Ensure dropdown positioning works */
     .nav-links-tablet .top-nav-drop {
       position: relative;
       display: flex;
       flex-direction: row;
     }
     
     /* Ensure dropdown has proper z-index when open */
     .nav-links-tablet .t-submenu.open {
       z-index: 1002 !important;
     }
     
     .nav-links-tablet a {
       color: var(--light-text);
       text-decoration: none;
       font-size: 16px;
       padding: 5px 15px;
       border-radius: 5px;
       transition: all 0.3s ease;
     }
     
     .nav-links-tablet a:hover {
       background: var(--light-border);
       color: var(--light-text);
     }
     
     body.dark-mode .nav-links-tablet a {
       color: var(--dark-text);
     }
     
     body.dark-mode .nav-links-tablet a:hover {
       background: var(--dark-hover);
       color: var(--dark-text);
     }
     
     /* Dark mode support for horizontal navigation dropdown */
     body.dark-mode .nav-links-tablet .t-submenu {
       background-color: var(--dark-bg);
       border-color: var(--dark-border);
     }
     
     body.dark-mode .nav-links-tablet .t-submenu a {
       color: var(--dark-text);
     }
     
     body.dark-mode .nav-links-tablet .t-submenu a:hover {
       color: var(--red-accent);
     }
     
     /* Ensure nav-wrapper properly contains the navigation */
     .nav-wrapper {
       display: flex !important;
       justify-content: space-between !important;
       align-items: center !important;
       width: 95% !important;
       margin: 0 auto !important;
       padding: 0 10px !important;
       height: 100% !important;
     }
     

     

   
     .nav-links > li {
       position: relative;
     }
     
     .t-submenu li { 
       margin:10px 0;
       display: flex;
       align-items: flex-end;
       
     }
     
     /* Style dropdown items for horizontal navigation */
     .nav-links-tablet .t-submenu li {
       margin: 10px 0;
       display: flex;
       align-items: center;
       padding: 5px 15px;
     }
     
     /* Ensure dropdown stays open when clicked */
     .nav-links-tablet .top-nav-drop .t-submenu.open {
       max-height: 1000px !important;
       opacity: 1 !important;
       pointer-events: auto !important;
     }
     
     .nav-links-tablet .t-submenu a {
       color: var(--light-text);
       text-decoration: none;
       font-size: 14px;
       padding: 5px 0;
       width: 100%;
       transition: color 0.3s ease;
       text-align: center;
     }
     
     .nav-links-tablet .t-submenu a:hover {
       color: var(--red-accent);
     }
     
     .t-nav-item a {
       display: flex;
     }
     
     li.t-nav-item:nth-child(1) {
       margin-top: 0;
     }
     
     .h-link .nav-arrow {
       transition: transform 0.3s ease;
     }
     
     .sub-nav-drop:hover .h-link .nav-arrow {
       transform: rotate(45deg);
     }
    
     
     
     .t-submenu {
       position: absolute;
       top: 44px;
       left: -25px;
       background-color: var(--light-bg);
       border-left: 1px solid var(--light-border);
       list-style: none;
       padding: 0;
       margin: 0;
       overflow: hidden;
       max-height: 0;
       opacity: 0;
       transition: max-height 0.4s ease, opacity 0.4s ease;
       z-index: 1000;
       width: 140px;
       border-right: 1px solid var(--light-border);
       border-bottom: 1px solid var(--light-border);
       border-bottom-left-radius: 5px;
       border-bottom-right-radius: 5px;
       display: flex;
       flex-direction: column;
       padding-bottom: 15px;
     }
     
     /* Ensure dropdown works for horizontal navigation */
     .nav-links-tablet .t-submenu {
       position: absolute;
       top: 44px;
       left: -25px;
       background-color: var(--light-bg);
       border-left: 1px solid var(--light-border);
       list-style: none;
       padding: 0;
       margin: 0;
       overflow: hidden;
       max-height: 0;
       opacity: 0;
       transition: max-height 0.4s ease, opacity 0.4s ease;
       z-index: 1000;
       width: 140px;
       border-right: 1px solid var(--light-border);
       border-bottom: 1px solid var(--light-border);
       border-bottom-left-radius: 5px;
       border-bottom-right-radius: 5px;
       display: flex;
       flex-direction: column;
       padding-bottom: 15px;
     }
     
     .overview-link {
       display: flex;
     }
      
     .overview-link .nav-arrow {
       transition: transform 0.3s ease;
     }
      
     .top-nav-drop:hover .overview-link .nav-arrow {
       transform: rotate(45deg);
     }
     
     /* Ensure arrow rotation works for horizontal navigation */
     .nav-links-tablet .top-nav-drop:hover .overview-link .nav-arrow {
       transform: rotate(45deg);
     }
     
     /* Ensure arrow rotation works when clicked */
     .nav-links-tablet .overview-link.active .nav-arrow {
       transform: rotate(45deg) !important;
     }
      
     .top-nav-drop:hover .t-submenu {
       max-height: 1000px; /* large enough for all items */
       opacity: 1;
     }
     
     /* Ensure hover works for horizontal navigation */
     .nav-links-tablet .top-nav-drop:hover .t-submenu {
       max-height: 1000px;
       opacity: 1;
     }
     
     /* Ensure click functionality works for horizontal navigation */
     .nav-links-tablet .t-submenu.open {
       max-height: 1000px !important;
       opacity: 1 !important;
     }
     
     .row-2 > :nth-child(2n+1){
       padding:10px;
       margin-top:20px;
     }
     
     body.dark-mode .project-left::after, body.dark-mode .project-right::after{
       display:none;
     }
     
     .project-left::after, .project-right::after {
       display:none;
     }
     
     .center-content {
       width: 100%;
       margin-top:50px;
     }
     
     #mobile-tablet-header .theme-switch {
       margin-left: 20px;
     }
     
     .main-nav {
       margin-right: 10px;
     }
     
     .logo {
       display: grid;
       align-content: space-around;
       justify-items: left;
     }
     
     .nav-wrapper {
       display: flex;
       margin:0 auto;
       width: 95%;
       border-bottom: 1px solid var(--light-border);
       justify-content: space-between;
       padding: 0 10px;
       height: 100%;
     }
     
     #mobile-tablet-header {
       position: fixed;
       top: 0;
       left: 0;
       right: 0;
       height: 60px;
       z-index: 1001; /* Higher than mobile navigation */
       background: var(--light-bg);
       transform: translateY(0); /* Start visible */
       opacity: 1;
       pointer-events: auto;
       transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s;
       display: block !important; /* Force display in tablet range */
     }
     
     /* Header sliding animations */
     #mobile-tablet-header.header-hidden {
       transform: translateY(-100%); /* Slide up and out of view */
       opacity: 0;
       pointer-events: none;
     }
     
     #mobile-tablet-header.header-visible {
       transform: translateY(0); /* Slide down and into view */
       opacity: 1;
       pointer-events: auto;
     }
     
     #mobile-tablet-header.hidden {
       transform: translateY(-100%);
       opacity: 0;
       pointer-events: none;
     }
   }
  /* ----------- smaller to medium screens ----------- */
  @media only screen 
  and (min-width: 1025px) 
  and (max-width: 1450px) 
  {
    .fixed {
      width:40px;
      }
    .row-2{
      gap:10px;
      grid-template-columns: 1fr 40px 1fr 40px 1fr;
    }
    .project-right {
      padding: 30px 30px 30px 55px;
    }
    .project-left {
      padding: 30px 65px 30px 30px;
    }
  }
     @media (min-width: 1180px) {
     /* Hide horizontal navigation on desktop */
     .profile-pic-wrap {
      max-width:300px;
      margin-right: 30px !important;
     }
    
     .nav-links {
       display: none !important;
     }
     .nav-wrapper{
      display: none;
     }
     .switch-tablet{
      display: block;
     }
    
   }
   
   @media (min-width: 1450px) {
     #mobile-tablet-header {
       display: none;
     }
    
     .side-nav{
       left: calc(50% - 500px - 255px);
     }
   }
  /* ----------- NOT MOBILE ----------- */
  @media screen and (min-width: 768px) {
    #next-prev-buttons {
      max-width: 80%;
    }
    .main-content {
      padding-bottom:0 !important;
    }
    .contact.parallax {
      margin-bottom: 0;
    }
    .switch-mobile{
      display: none;
     }
    #menu-btn {
      display: none;
    }
    
    .copy-pipe {
      visibility: visible;
    }
    .copy-break {
      display: none;
    }
    .proj-wrap {
      flex-direction: inherit;
    }
    .project-left {
      padding: 20px 55px 20px 20px;
    }
    .project-right {
      padding: 20px 20px 20px 55px;
    }
  }

  /* ----------- larger to large screens ----------- */
  @media screen and (min-width: 1600px) {
    .project-left {
      padding: 30px 75px 30px 30px;
    }
    .project-right {
      padding: 30px 30px 30px 75px;
    }
    .container{
      max-width: 1160px;
      margin:auto;
      position: relative;
     }
     .projects {
      max-width: 1100px;
      width:100%;
     }
    }
@media screen and (min-width: 1600px) {
  feather-arrow-down {
    height:100px;
  }

  .section-header-28{
    font-size:28px;
  }
  h3.small-header{
    font-size:20px;
  }
  p {
    font-size: 16px;
  }
  .project-left {
    padding: 30px 75px 30px 30px;
  }
  .project-right {
    padding: 30px 30px 30px 75px;
  }
}
@media screen and (min-width: 1450px) and (max-width: 1600px){
  .project-left {
    padding: 30px 65px 30px 30px;
  }
  .project-right {
    padding: 30px 30px 30px 65px;
  }
}
    /* ----------- LAPTOP Non-Retina Screens ----------- */
@media screen and (min-width: 1200px) and (max-width: 1600px) 
and (-webkit-min-device-pixel-ratio: 1) { 
  
  .section-header {
    font-size: 20px;
  }
  
  .main-layout{
    grid-template-columns: 10% 80%;
  }
 
  .phil-box{
    min-height: 250px;
  }
  .contact-info {
    width: 70%;
    margin-left: auto;
  }
  .main-content{
    padding: 2rem;
  }
  .projects{
    width:100%;
    margin: 20px 0;
  }
}



  /* ----------- MOBILE ----------- */
  @media screen and (max-width: 767px) {
    .technologies {
      width: 100%;
      
    }
    .video-container {
      width: 100% !important;
      height: 245px !important;
    }
    .project-showcase-2 {
      aspect-ratio: 1.7 !important;
        margin-top: 20px;
      }
    
    .hide-on-mobile-and-tablet{
      display: none;
    }
    ul.bullets-col:nth-child(1) {
      margin-bottom: 0;
    }
    .bullets-container {
      grid-template-columns:1fr;
      gap:0;
    }
    .sub-nav-drop .nav-arrow {
      display: none;
    }
    main {
      top: 50px;
      padding: 20px 30px 0 30px;
      overflow:visible !important;
    }
    .switch-mobile{
      display: block;
     }
     .switch-tablet{
      display: none;
     }
    .mobile-22 {
      font-size: 22px !important;
    }
    .cont{
      gap:6px;
    }
    .copy-text {
      width: 100%;
    }
    .icon > img {
      width: 20px;
    }
    .contact-gap .col-2 {
      justify-content: start;
    }
    .tools-container{
      width:70%;
    }
    .three-img-slide {
      margin-top: 40px;
      margin-bottom: 50px;
    }
    .nav-links > li:nth-child(2) > a:nth-child(1) {
      margin-right: -4px;
    }
    .mobile-0-8-rem{
      margin-top:0.8rem !important;
    }
    .mobile-0-5-rem{
      margin-top:0.5rem !important;
    }
    .spacer-3rem {
      margin-top: 1.4rem;
    }
    .six-six-mob {
      grid-template-columns: 1fr 1fr;
    }
    .six-six-mob .col-1 {
      grid-column: 1;
    }
    .six-six-mob .col-2 {
      grid-column: 2;
    }
    .spacer-2rem-mob{
      margin-top: 2rem;
    }
    .highlight-box {
      padding:1.4rem !important;
    }
    .paragraph-18px{
      font-size:16px;
    }
    .bullets {
      column-count: 1;
    }
    
    .bullets li {
      line-height: 1.5;
    }
    .margin-btm-25 {
      margin-bottom: 0 !important;
    }
    .modal-content{
      max-width: 70% !important;
    }
     .spacer-1-5rem {
      margin-top: 1rem;
    }
    .spacer-4rem {
      margin-top: 1.5rem;
    }
    .project-p {
      margin-bottom: 0 !important;
    }
    .six-six {
      grid-template-columns: 1fr;
    }
    
    .four-eight {
      grid-template-columns: 1fr;
    }
    .cont.four-eight.flip-mobile .col-2 {
      grid-row: 1;
    }

    /* Mobile dropdown functionality */
    .overview-link {
      cursor: pointer;
      position: relative;
    }
    
    .overview-link .nav-arrow {
      transition: transform 0.3s ease;
    }
    
    .overview-link.active .nav-arrow {
      transform: rotate(45deg) !important;
    }
    
    /* Force arrow rotation with maximum specificity */
    .overview-link.active .nav-arrow,
    .nav-links .overview-link.active .nav-arrow {
      transform: rotate(45deg) !important;
    }
    
    /* Click functionality - keep submenu open when clicked */
    .nav-links .t-submenu.open {
      max-height: 1000px !important;
      padding: 10px 0 !important;
      margin-bottom: 10px !important;
      opacity: 1 !important;
    }
    
    /* Override hover when clicked */
    .nav-links .t-submenu.open:hover {
      max-height: 1000px !important;
      opacity: 1 !important;
    }
    
    /* Force open state with maximum specificity */
    .nav-links .t-submenu.open,
    .t-submenu.open,
    ul.t-submenu.open {
      max-height: 1000px !important;
      padding: 10px 0 !important;
      margin-bottom: 10px !important;
      opacity: 1 !important;
      overflow: visible !important;
    }
    
    .nav-links {
      flex-direction: column;
    }
    
    .nav-links > li {
      position: relative;
      margin: 10px auto;
    }
    
    .top-nav-drop {
      display: flex;
      flex-direction: column;
    }
    
    .nav-links .t-submenu {
      max-height: 0 !important;
      overflow: hidden !important;
      transition: max-height 0.3s ease !important;
      flex-direction: column !important;
      display: flex !important;
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      background-color: var(--light-bg) ;
      border: 1px solid var(--light-border);
      border-radius: 4px !important;
      margin: 0 !important;
      padding: 0 !important;
      list-style: none !important;
      z-index: 1000 !important;
      width: 100% !important;
    }
    
    .nav-links .t-submenu.open {
      max-height: 1000px !important;
      padding: 10px 0 !important;
      margin-bottom: 10px !important;
      opacity: 1 !important;
    }
    
    /* Override tablet styles for mobile */
    @media (max-width: 767px) {
      div.image-container:nth-child(2) {
        left: -5px;
      }
     
      .nav-links .t-submenu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-height: 0 !important;
        opacity: 1 !important;
      }
      
      .nav-links .t-submenu.open {
        max-height: 1000px !important;
        opacity: 1 !important;
        overflow: visible !important;
      }
      
      /* Force override for clicked state */
      .nav-links .t-submenu.open,
      .t-submenu.open {
        max-height: 1000px !important;
        opacity: 1 !important;
        overflow: visible !important;
      }
      
      /* Override the fixed height for dropdown items */
      .nav-links.open li.top-nav-drop {
        height: auto !important;
        min-height: 50px !important;
      }
    }
    

    
    #submenu li {
      margin: 8px 0;
      padding: 0 15px;
      height:30px;
    }
    
    #submenu a {
      color: var(--light-text);
      text-decoration: none;
      font-size: 14px;
      display: block;
      padding: 5px 0;
      display: flex;
    }
    
    #submenu a:hover {
      color: var(--red-accent);
    }
 
 
  .circle-third {
    width: 100%;
  }
  .center-content {
    width: 100% !important;
  }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding:10px;
  }
  .section-header-34 {
    font-size: 24px;
    line-height: 1.4;
  }
  .gradient-button, .submit-button {
    margin-top:20px;
    font-size:16px;
    padding: 12px 10px 10px;
  }
  .image-container {
    border-radius:5px;
  }
  .section-header{
    line-height: 1.4;
    margin-bottom: 0.6rem;
    font-size: 20px;
    margin-top: 5px;
  }
  .taxonomy{
    font-size: 14px;
  }
  p{
    font-size:16px;
    line-height: 1.55;
  }
  .section-header-28{
    font-size:26px;
    line-height: 1.4;
  }
  .spacer-6rem {
    margin-top: 2.5rem;
  }
  .spacer-2rem {
    margin-top: 0;
  }
  .hide-on-mobile{
    display: none;
  }
  .spacer-8rem {
    margin-top: 6rem;
  }
  #project6{
    margin-top:2.5rem;
    width: 100%;
  }
  .proj-wrap.p-wrap-right-3 .image-container{
    margin-top:0;
  }
  .p-wrap-right-3 {
    flex-direction: column-reverse;
    margin-top: unset;
  }
  .p-wrap-right-2 {
    margin-top: unset;
    margin-bottom: unset;
  }
  #project4 .image-container {
    width: 65%;

    display: block;
    margin: 0 auto 0 0;
  }
  .no-2{
    margin-top:unset;
  }
  .p-wrap-left-2 {
    margin-top: unset;
  }
  .p-wrap-right-1 {
    margin-top: unset;
  }
  .feather.feather-arrow-down {
    height:40px;
  margin: 10px auto;
  }
  .no-4{
    left:0;
    margin-top: unset;
    position: relative;
  }
  #project2 {
    margin-top: 4rem;
    width: 100%;
  }
  #project3 {
    margin-top:5rem
  }
  #project4 {
    margin-top: 4.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  #project5 {
    margin-top:5rem;
  }
  #project7 {
    margin-top: 4rem;
  }


  .p-wrap-left-3, .p-wrap-right-3 {
    margin-left: unset;
    margin-right: unset;
    margin-bottom: -30px;
  }
  .p-wrap-left-1, .p-wrap-right-1 {
    margin-left: unset;
    margin-right: unset;
    margin-bottom: -30px;
  }
  .project-left::before, .project-left::after {
    content: none;
    background: none;
    display: none;
  }
  .project-right::before, .project-right::after {
    content: none;
    background: none;
    display: none;
  }
  
  .project-left, .project-right {
    padding: 0;
  }
  .main-content{
    padding:10px;
  }
  .center-content {
    width: 85%;
  }
  .projects{
    flex-direction: column;
  }
 /* Mobile (default) */
@media screen and (max-width: 767px) {
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    background:var(--dark-bg) !important;
    position: fixed !important; /* Changed from absolute to fixed for viewport-relative positioning */
    top: -100vh !important; /* Start above the viewport */
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    opacity: 0 !important;
    transform: translateY(-20px) !important; /* Start slightly above for smooth entry */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; /* Faster easing */
    visibility: hidden !important; /* Hide completely when closed */
    z-index: 998 !important; /* Lower than the header */
    /* Smooth transitions for all properties */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                top 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  }
  body.dark-mode .nav-links {
    background: var(--dark-bg) !important;
  }
  .nav-links.open {
    display: flex !important;
    margin: 0 !important;
    top: 61px !important; /* Position below the header */
    width: 100% !important;
    opacity: 1 !important;
    transform: translateY(0) !important; /* Slide to final position */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    background: #fbfbfb !important;
    padding: 20px 0 !important;
    visibility: visible !important; /* Show when open */
    z-index: 998 !important; /* Lower than the header */
    /* Ensure navigation follows header when it slides */
    position: fixed !important;
  }

  /* Animate individual menu items for staggered effect */
  .nav-links li {
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    transition: all 0.3s ease !important;
    transition-delay: 0.1s !important; /* Start animation after menu opens */
  }

  .nav-links.open li {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
  }

  /* Stagger the animation for each menu item */
  .nav-links.open li:nth-child(1) { transition-delay: 0.1s !important; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.15s !important; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.2s !important; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.25s !important; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.3s !important; }
}
}