/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* HERO SECTION */
/* HERO SECTION */
.hero-main {
  position: relative;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  color: white;
  z-index: 10;
}


/* Mobile view (typically 768px or less) */
@media (max-width: 768px) {
  .hero-background {
      object-position: center top;
      content: url('./assets/hero1.jpg');
  }
}

.hero-slider-container {
  position: absolute;
  top: calc(100vh - 350px);
  width: 100%;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  white-space: nowrap;
}

.hero-slider p {
  position: relative;
  margin: 0px;
  color: white;
  font-size: 230px;
  font-weight: 400;
  padding-right: 50px;
  font-family: "Poppins", sans-serif;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
  letter-spacing: -2px;
  display: inline-block;
}

.hero-slider p:nth-of-type(2) {
  position: absolute;
  left: 100%;
  top: 0;
}

/* Responsive Hero Section */
@media screen and (max-width: 1400px) {
  .hero-slider p {
      font-size: 180px;
  }
  .hero-slider-container {
      top: calc(100vh - 280px);
  }
}

@media screen and (max-width: 1200px) {
  .hero-slider p {
      font-size: 150px;
  }
  .hero-slider-container {
      top: calc(100vh - 350px);
  }
}

@media screen and (max-width: 900px) {
  .hero-slider p {
      font-size: 120px;
  }
  .hero-slider-container {
      top: calc(100vh - 200px);
  }
}

@media screen and (max-width: 600px) {
  .hero-slider p {
      font-size: 80px;
      padding-right: 30px;
  }
  .hero-slider-container {
      top: calc(100vh - 300px);
  }
}

@media screen and (max-width: 400px) {
  .hero-slider p {
      font-size: 60px;
      padding-right: 20px;
  }
  .hero-slider-container {
      top: calc(100vh - 120px);
  }
}

/* Location Badge CSS */
.location-badge {
    position: absolute;
    top: 250px;
    left: 0px;
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 50px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    padding: 20px 20px 20px 50px;
    color: white;
    font-size: 16px;
    font-weight: 400;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.location-text {
    margin-right: 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.2px;
    font-family: 'Poppins', sans-serif;
    color: white;
}

.globe-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.globe-icon {
    width: 40px;
    height: 40px;
    color: white;
    animation: rotateGlobe 8s linear infinite;
}

@keyframes rotateGlobe {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Location Badge Mobile Responsive */
@media (max-width: 768px) {
    .location-badge {
      background-color: transparent;
        top: 70px;
        left: auto;
        right: 0px;
        padding: 12px 15px 12px 30px;
        flex-direction: row-reverse;
        border-radius: 50px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
    }
    .location-text {
      display: none;
        font-size: 12px;
        margin-right: 0px;
        line-height: 1.2;
    }
    .globe-container {
        background-color: transparent;
    }
    .globe-icon {
        width: 40px;
        height: 40px;
        margin-right: 150px;
    }
    body.dark-mode .globe-icon {
      filter: brightness(0) invert(0);
    }
}

/* Demo content below to show scroll behavior */
.demo-content {
  height: 200vh;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.demo-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #333;
}

.demo-content p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  text-align: center;
  line-height: 1.6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: white;
  text-decoration: none;
  text-decoration-color: white;
}

/* Contact section links: black in light mode, white in dark mode */
#contact .nav-links a {
  color: black;
}
body.dark-mode #contact .nav-links a {
  color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

#desktop-nav {
  height: 9vh;
  min-height: 56px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
#desktop-nav .logo {
  line-height: 1.2;
}
#desktop-nav .nav-links {
  align-items: center;
}

#hamburger-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  padding-left: 2rem;
  height: 17vh;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#hamburger-nav .logo {
  line-height: 1.2;
  font-size: 1rem;
}

.logo {
  font-size: 1rem;
  color: white;
}

.logo:hover {
  cursor: default;
}




/* Animated Burger Button */
.burger-button {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 2000;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.burger-button:hover {
  transform: scale(1.05);
}

.burger {
  width: 100%;
  position: relative;
}

.burger::after,
.burger::before {
  content: "";
  display: block;
  height: 1px;
  width: 40%;
  margin: auto;
  background-color: white;
  position: relative;
  transition: transform 0.3s ease;
}

.burger::after {
  top: -5px;
}

.burger::before {
  top: 5px;
}

.burger.active::after {
  transform: rotate(45deg);
  top: -1px;
}

.burger.active::before {
  transform: rotate(-45deg);
  top: 0px;
}

/* Navigation Menu */
.nav-menu {
  width: 500px; /* Set fixed width for all screen sizes */
  height: 100vh;
  background-color: rgb(0, 0, 0);
  position: fixed;
  right: 0;
  top: 0;
  color: white;
  z-index: 1500;
  transform: translateX(calc(100% + 100px));
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-menu.active {
  transform: translateX(0);
}

.nav-body {
  box-sizing: border-box;
  height: 100%;
  padding: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-content {
  display: flex;
  flex-direction: column;
  font-size: 56px;
  gap: 12px;
  margin-top: 0px;
}

.nav-header {
  color: rgb(255, 255, 255) !important; 
  border-bottom: 1px solid rgb(255, 255, 255);
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 0px;
}

.nav-header p{
  color: rgb(255, 255, 255);
}

.nav-links-animated {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  position: relative;
  display: flex !important;
  align-items: center;
  text-decoration: none;
  color: white !important;
  font-weight: 300;
  font-size: 35px;
  transform: translateX(80px);
  opacity: 0;
  transition: all 0.5s ease;
  padding: 8px 0;
}

.nav-menu.active .nav-link {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

/* Dark mode nav link colors */
body.dark-mode #desktop-nav .nav-links a,
body.dark-mode #hamburger-nav .logo {
  color: black !important;
}

body.dark-mode #desktop-nav .nav-links a:hover {
  color: #333 !important;
  text-decoration-color: #333 !important;
}

/* Make sure the underline appears properly in dark mode */
body.dark-mode #desktop-nav .nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #333 !important;
}

/* Stagger animation delays */
.nav-menu.active .nav-link[data-index="0"] { transition-delay: 0.05s; }
.nav-menu.active .nav-link[data-index="1"] { transition-delay: 0.10s; }
.nav-menu.active .nav-link[data-index="2"] { transition-delay: 0.15s; }
.nav-menu.active .nav-link[data-index="3"] { transition-delay: 0.20s; }
.nav-menu.active .nav-link[data-index="4"] { transition-delay: 0.25s; }
.nav-menu.active .nav-link[data-index="5"] { transition-delay: 0.30s; }
.nav-menu.active .nav-link[data-index="6"] { transition-delay: 0.35s; }
.nav-menu.active .nav-link[data-index="7"] { transition-delay: 0.40s; }

.nav-indicator {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  left: -30px;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.nav-link.active .nav-indicator {
  transform: scale(1);
}

.nav-footer {
  padding-top: 2rem;
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 12px;
  gap: 15px;
}

.nav-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-footer a:hover {
  color: #cccccc;
}

/* SVG Curve Animation */
/* .nav-curve {
  position: absolute;
  top: 0;
  left: -99px;
  width: 100px;
  height: 100%;
  fill: rgb(0, 0, 0);
  stroke: none;
  z-index: -1;
} */

/* Responsive Design */

@media screen and (max-width: 768px) {
  .nav-menu {
    width: 100vw; /* Full width on mobile */
  }
  
  .nav-body {
    padding: 50px 30px;
  }
  
  .nav-content {
    font-size: 36px;
    margin-top: 40px;
  }
  
  .nav-link {
    font-size: 36px !important;
  }
  
  .nav-footer {
    font-size: 10px;
    gap: 20px;
  }
  
  .burger-button {
    width: 60px;
    height: 60px;
    right: 15px;
    top: 15px;
  }
}

@media screen and (max-width: 480px) {
  .nav-menu {
    width: 100vw; /* Full width on small mobile */
  }
  
  .nav-body {
    padding: 30px 20px;
  }
  
  .nav-content {
    font-size: 28px;
  }
  
  .nav-link {
    font-size: 28px !important;
  }
  
  .nav-footer {
    flex-direction: column;
    gap: 20px;
  }
}

/* Add to your existing CSS */
/* @media screen and (min-width: 1200px) {
  .burger-button {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .burger-button.visible {
    display: flex !important;
    opacity: 1;
  }
} */
/* Add to your existing CSS */
/* Add this to your CSS */
/* .burger-button {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 2000;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
} */

/* Desktop specific styles */
@media screen and (min-width: 1200px) {
  .burger-button {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
  }
  
  .burger-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile styles - always visible */
@media screen and (max-width: 1199px) {
  .burger-button {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}


/* Hide old hamburger nav on all screen sizes since we have the new animated one */
#hamburger-nav {
  display: flex !important;
}

/* Override mediaqueries.css rules */
@media screen and (min-width: 1200px) {
  #hamburger-nav {
    display: none !important;
  }
}

/* Dark Mode Support */
body.dark-mode .burger-button {
  background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .nav-menu {
  background-color: rgb(255, 255, 255);
}


body.dark-mode .burger::before,
body.dark-mode .burger::after {
  background-color: black;
}

body.dark-mode .nav-indicator {
  background-color: black;
}

body.dark-mode .nav-link {
  color: rgb(0, 0, 0) !important;
}

body.dark-mode .nav-footer a {
  color: #000000;
}
body.dark-mode .nav-header p {
  color: rgb(0, 0, 0) !important;
}
body.dark-mode .nav-header {
  border-bottom: 1px solid rgb(0, 0, 0)
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* TIMELINE STYLES */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding:  20px;
}


/* First timeline segment (Top section) */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 65px;              
  left: 50px;            
  height: 45%;         
  width: 2px;
  background: #ccc;
  z-index: 1;
}

/* Second timeline segment (Bottom section) */
.timeline-container1::before {
  content: '';
  position: absolute;
  top: 57%;             
  left: 50px;           
  height: 32%;          
  width: 2px;
  background: #ccc;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  min-height: 120px;
}
/* .timeline-dot {
  position: absolute;
  left: 48px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  z-index: 1;
} */

.timeline-date {
  width: 100px;
  padding-right: 20px;
  text-align: right;
  font-weight: 500;
  color: #666;
}

.timeline-content {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  background: rgb(250, 250, 250);
  border: 2px solid rgb(163, 163, 163);
  margin-left: 30px;
  border-radius: 2rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.company-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  margin-right: 15px;
  border: 1px solid #eee;
  padding: 5px;
  background: white;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.job-title {
  color: #666;
  font-size: 1rem;
  margin-top: 3px;
  font-weight: bold;
}

.timeline-details ul {
  list-style-type: none;
  padding-left: 0;
}

.timeline-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.tech-stack {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Dark Mode Styles */
body.dark-mode .timeline-container::before {
  background: #ffffff;
}
body.dark-mode .timeline-container1::before {
  background: #ffffff;
}

/* body.dark-mode .timeline-dot {
  background: #fff;
} */

body.dark-mode .timeline-content {
  background-color: #121212 !important; 
  border-color: #ffffff !important; 
}

body.dark-mode .timeline-date {
  color: #ffffff;
}

body.dark-mode .job-title {
  color: #ffffff;
}


#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: auto;
  min-height: fit-content;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  transition: all 0.3s ease-in-out;
}

.section__pic-container:hover {
  transform: scale(0.9);
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 1rem;
}

.typing-text {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  height: 2.5rem; /* Fixed height to prevent layout shift */
  display: inline-block;
}

.typing-content {
  display: inline-block;
}

.typing-cursor {
  display: inline-block;
  animation: blink 1s infinite; /* Changed from 0.7s */
  
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  /* transition: transform 0.3s ease-in-out; */
  filter: none;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.icon:hover {
  transform: scale(1.05);
}
/* BUTTONS */

a.btn.btn-color-2:hover {
    text-decoration: none !important;
  }

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}

.btn {
  color: black;
  border: 1px solid rgb(163, 163, 163);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 100px;
}

.btn-color-1:hover,
.btn-color-2:hover {
  color: whitesmoke;
   background-color: #2d2d2d;
  transform: translateY(-2px);
}

.btn-color-1:hover {
  background: rgb(255, 255, 255);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 253, 253) 0.1rem solid;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
  transition: transform 0.3s ease-in-out;
}

.about-pic:hover {
  transform: scale(0.9);
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: rgb(250, 250, 250);
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 1rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* STACKING CARDS EXPERIENCE */
.stacking-cards-main {
  margin-top: 20vh;
  margin-bottom: 20vh;
  position: relative;
}

.stacking-card-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
}

.stacking-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 500px;
  width: min(1000px, 90vw);
  border-radius: 2rem;
  padding: 50px;
  transform-origin: top center;
  transition: transform 0.1s ease-out;
}

.stacking-card h2 {
  text-align: center;
  margin: 0;
  font-size: clamp(24px, 3vw, 28px);
  color: #000;
  font-weight: 600;
}

.stacking-card-body {
  display: flex;
  height: 100%;
  margin-top: 50px;
  gap: 50px;
}

.stacking-description {
  width: 40%;
  position: relative;
  top: 10%;
  color: #000;
}

/* Dark mode compatibility for stacking cards */
body.dark-mode .stacking-description {
  color: #000;
}

body.dark-mode .stacking-description a {
  color: #000;
}

body.dark-mode .stacking-arrow-icon {
  fill: #000;
}

.stacking-description p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.stacking-description p::first-letter {
  font-size: 28px;
  font-weight: bold;
  float: left;
  line-height: 1;
  margin-right: 5px;
  margin-top: 2px;
}

.stacking-description .link-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.stacking-description a {
  font-size: 12px;
  text-decoration: underline;
  color: #000;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.stacking-description a:hover {
  opacity: 0.7;
}

.stacking-arrow-icon {
  width: 22px;
  height: 12px;
  fill: #000;
}

.stacking-image-container {
  position: relative;
  width: 60%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
}

.stacking-image-inner {
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 0.1s ease-out;
}

.stacking-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive design for stacking cards */
@media (max-width: 768px) {
  .stacking-card {
    width: 95vw;
    height: 600px;
    padding: 30px;
  }
  
  .stacking-card-body {
    flex-direction: column;
    gap: 30px;
  }
  
  .stacking-description, 
  .stacking-image-container {
    width: 100%;
  }
  
  .stacking-description {
    top: 0;
  }
  
  .stacking-image-container {
    height: 200px;
  }
}

/* Loading state for stacking cards */
.stacking-card {
  opacity: 0;
  animation: stackingFadeIn 0.6s ease forwards;
}

@keyframes stackingFadeIn {
  to {
    opacity: 1;
  }
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}


/* PROJECTS SECTION */
#projects {
  position: relative;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

#projects .title {
  font-size: 60px;
  text-align: center;
  margin-bottom: 2rem;
}

#projects .section__text__p1 {
  text-align: center;
  margin-bottom: 1rem;
}

.experience-details-container {
  width: 100%;
}

.about-containers1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.details-container1 {
  display: flex;
  flex-direction: column;
  border: 2px solid rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  border-radius: 2rem;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.details-container1:hover {
  transform: translateY(-5px);
}

.article-container1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-img:hover {
  transform: scale(1.2);
}

.project-title {
  margin: 0.5rem 0;
  color: black;
  font-size: 1.3rem;
  text-align: center;
}

.details-container1 p {
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
  text-align: center;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-btn {
  color: black;
  border: 1px solid rgb(163, 163, 163);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 100px;
}

.project-btn:hover {
  background-color: #2d2d2d;
  transform: translateY(-2px);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
  padding-top: 1rem;
}

.tech-icon {
  width: 30px;
  height: 30px;
  filter: grayscale(100%);
  /* transition: all 0.3s ease; */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tech-icon:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.icon-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

.icon-container:hover .tooltip {
  visibility: visible;
}


/* INTEREST SECTION */
#interests {
  position: relative;
  padding: 100px 20px;
  text-align: center;
}

#interests .title {
    font-size: 60px;
}
@media (max-width: 768px) {
    #interests .title {
        font-size: 36px;
    }
}

#interests .about-details-container {
  display: flex;
  justify-content: center;
}

#interests .about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

#interests .details-container {
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  border-radius: 2rem;
  padding: 20px;
  text-align: center;
  width: 250px;
}


#interests .details-container .icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  
}

#interests .details-container h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #000000;
}

#interests .details-container p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}


/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 10vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(163, 163, 163) 2px solid;
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* STICKY FOOTER SECTION */

.sticky-footer-container {
  position: relative;
  height: 800px;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  height: 800px;
  width: 100%;
  background-color: #000000;
  color: white;
  z-index: 100;
}

.sticky-footer-content {
  background-color: #000000;
  padding: 80px 100px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.footer-section-1 {
  display: flex;
  justify-content: flex-start;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav-title {
  margin-bottom: 15px;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section-2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-text {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.8;
  margin: 0;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-social-icon {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-copyright {
  font-size: 14px;
  color: rgb(255, 255, 255);
  margin: 0;
  align-self: flex-end;
}

/* Dark Mode Support for Sticky Footer */
body.dark-mode .sticky-footer {
  background-color: #ffffff;
  color: #000000;
}

body.dark-mode .sticky-footer-content {
  background-color: #ffffff;
}

body.dark-mode .footer-nav-title {
  color: rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer-nav-link {
  color: #000000;
}

body.dark-mode .footer-nav-link:hover {
  color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .footer-brand-text {
  color: #000000;
}

body.dark-mode .footer-copyright{
  color: #000000 !important;
}

/* Responsive Design for Sticky Footer */
@media screen and (max-width: 1024px) {
  .sticky-footer-container {
    height: 600px;
  }
  
  .sticky-footer {
    height: 600px;
  }
  
  .sticky-footer-content {
    padding: 60px 50px;
  }
  
  .footer-nav {
    gap: 60px;
  }
  
  .footer-brand-text {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

@media screen and (max-width: 768px) {
  .sticky-footer-container {
    height: 700px;
  }
  
  .sticky-footer {
    height: 700px;
  }
  
  .sticky-footer-content {
    padding: 40px 30px;
  }
  
  .footer-section-1 {
    margin-bottom: 40px;
  }
  
  .footer-nav {
    flex-direction: row;
    gap: 40px;
    width: 100%;
  }
  
  .footer-nav-column {
    width: 50%;
  }
  
  .footer-nav-title {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .footer-nav-link {
    font-size: 16px;
    padding: 5px 0;
    display: block;
  }
  
  .footer-section-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
  }
  
  .footer-brand-text {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .footer-copyright {
    align-self: flex-start;
    margin-top: 20px;
  }
}

@media screen and (max-width: 480px) {
  .sticky-footer-container {
    height: 600px;
  }
  
  .sticky-footer {
    height: 600px;
  }
  
  .sticky-footer-content {
    padding: 30px 20px;
  }
  
  .footer-section-1 {
    margin-bottom: 30px;
  }
  
  .footer-nav {
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }
  
  .footer-nav-column {
    width: 50%;
  }
  
  .footer-nav-title {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .footer-nav-link {
    font-size: 14px;
    padding: 3px 0;
    display: block;
  }
  
  .footer-section-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 15px;
  }
  
  .footer-brand-text {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .footer-copyright {
    margin-top: 15px;
    font-size: 12px;
  }
  
  .footer-social-icon {
    width: 25px;
    height: 25px;
  }
}


/* TOGGLE SWITCH */
.toggle-switch {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  display: inline-block;
  width: 60px;
  height: 34px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  top: 4px;
  left: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
body.dark-mode .slider:before {
  background-color: #111111;
}


input:checked + .slider {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

input:checked + .slider:before {
  transform: translateX(26px);
}


/* DARK MODE*/

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .hamburger-icon span {
  background-color: white; 
}

body.dark-mode .btn {
  color: white !important;
}
body.dark-mode p,
body.dark-mode .title,
body.dark-mode .project-title,
body.dark-mode .experience-sub-title,
body.dark-mode .section__text__p1,
body.dark-mode .section__text__p2,
body.dark-mode .details-container h3,
body.dark-mode .details-container p {
  color: #ffffff !important; 
}

/* Dark Mode Overrides for Interests Section */
body.dark-mode #interests .details-container {
  background-color: #121212 !important; 
  border-color: #ffffff !important; 
}

body.dark-mode #interests .details-container h3,
body.dark-mode #interests .details-container p {
  color: #ffffff !important; 
}

/* Dark Mode Overrides for Projects Section */
body.dark-mode .color-container {
  background-color: #121212 !important; 
  border-color: #ffffff !important; 
}

body.dark-mode .project-title {
  color: #ffffff !important; 
}

/* Dark Mode Overrides for About Section */
body.dark-mode #about .details-container {
  background-color: #121212 !important; 
  border-color: #fffefe !important; 
}

body.dark-mode #about .details-container h3,
body.dark-mode #about .details-container p {
  color: #ffffff !important; 
}

/* Dark Mode Overrides for Experience Section */
body.dark-mode #experience .details-container {
  background-color: #121212 !important; 
  border-color: #ffffff !important; 
}

body.dark-mode #experience .details-container h3,
body.dark-mode #experience .details-container p {
  color: #ffffff !important; 
}

body.dark-mode .nav-links a {
  color: #ffffff !important;
}
body.dark-mode .logo {
    color: #000 !important;
}

body.dark-mode .nav-links a:hover {
  color: #cccccc;
}

body.dark-mode .icon {
  filter: invert(1); 
}
body.dark-mode .icon-container{
  filter: invert(1);
}

/* Dark Mode Overrides for Contact Section */
body.dark-mode .contact-info-upper-container {
  background-color: #121212;
  color: #ffffff;
  border-color: white;
}

#ai-chat {
  padding: 2rem 1rem; 
  margin: 50px auto 0 auto; 
  max-width: 800px;
  width: 100%; 
}

.chat-container {
  background-color: #f5f5f5;
  border-radius: 2rem;
  margin-top: 20px;
  overflow: hidden;
  border: 2px solid #ccc;
}

.chat-messages {
  height: 400px;
  padding: 1rem; 
  overflow-y: auto;
  background-color: white;
}

.message-content {
  max-width: 80%;
  padding: 0.8rem; 
  margin: 0.5rem 0;
  border-radius: 1rem;
  line-height: 1.5;
  font-size: 0.9rem; 
}

.user-message {
  display: flex;
  justify-content: flex-end;
}

.user-message .message-content {
  background-color: #191919;
  color: white;
}

.ai-message .message-content {
  background-color: #e9ecef;
  color: black;
}

.chat-input {
  display: flex;
  padding: 0.8rem; 
  background-color: #fff;
  border-top: 2px solid #ccc;
}

#user-input {
  flex: 1;
  padding: 0.6rem; 
  border: 1px solid #ccc;
  border-radius: 25px;
  margin-right: 0.8rem;
  font-size: 0.9rem; 
}

#send-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.send-icon {
  height: 20px; 
  width: 20px; 
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Dark mode styles */
body.dark-mode .chat-container .chat-input{
  background-color: #2d2d2d;
}

body.dark-mode .chat-messages {
  background-color: #1a1a1a;
}

body.dark-mode .ai-message .message-content {
  background-color: #3d3d3d;
  color: white;
}

body.dark-mode #user-input {
  background-color: #2d2d2d;
  color: white;
  border-color: #4d4d4d;
}

body.dark-mode .send-icon {
  filter: invert(90%);
}

body.dark-mode .user-message .message-content{
  background-color: white;
  color: black;
 
 }

.loading .message-content {
  color: #666;
  font-style: italic;
}

/* Disabled state styling */
#user-input:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

body.dark-mode #user-input:disabled {
  background-color: #333;
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
}

.preloader {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  background-color: #000000;
  top: 0;
  left: 0;
}

.preloader-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 300px);
}

.preloader-svg path {
  fill: #000000;
}

.preloader-text {
  display: flex;
  color: white;
  font-size: 42px;
  align-items: center;
  position: absolute;
  z-index: 1;
  opacity: 0;
}

.preloader-text span:first-child {
  display: block;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  margin-right: 10px;
}
#fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Dark mode styles for preloader */
body.dark-mode .preloader {
  background-color: white;
}

body.dark-mode .preloader-text {
  color: black !important; 
}

body.dark-mode .preloader-text span:first-child {
  background-color: black;
}

body.dark-mode .preloader-svg path {
  fill: white;
}

/* Add these styles to your existing CSS */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #121212;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hero-content {
  position: absolute;
  top: 30%;
  right: 100px;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
  text-align: left;
  display: flex;
  justify-content: flex-end;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.5;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.hero-title .arrow {
  position: static;
  display: flex;
  justify-content: flex-end; /* Align arrow and text to right */
  gap: 10px;
}



/* .hero-title .arrow::before {
  content: "→";
  position: absolute;
  left: 0;
} */

/* TABLET VIEW (900px and below) */
@media screen and (max-width: 900px) {
  .hero-content {
    left: 10px;
  }
  .hero-title {
    font-size: 26px;
  }
}

/* SMALL TABLET (600px and below) */
@media screen and (max-width: 600px) {
  .hero-content {
    left: 0px;
    top: 15%;
  }
  .hero-title {
    font-size: 28px;
  }
}

/* MOBILE VIEW (400px and below) */
@media screen and (max-width: 400px) {
  .hero-content {
   left: 10px;
   top: 25%;
  }
  .hero-title {
    font-size: 18px;
  }
  .designer-dev {
    gap: 8px;
  }
}

/* Ensure text doesn't touch screen edges on mobile */
@media screen and (max-width: 350px) {
  .hero-content {
    left: 10px;
    top: 25%;
  }
}

@media screen and (max-width: 768px) {
  nav,
  #hamburger-nav {
    position: relative;
    justify-content: center;
    align-items: center;
    height: 60px;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
  }
  .burger-button {
    position: absolute;
    right: 15px;
    top: 10px;
    width: 60px;
    height: 60px;
  }
  .nav-links {
    font-size: 1.1rem;
    gap: 1rem;
  }
  #hamburger-nav {
    padding-left: 0;
  }
}

/* --- Animated Projects Section Styles --- */
#projects .projects-main {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
#projects .projects-body {
    width: 1000px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#projects .project-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 50px 100px;
    border-top: 2px solid rgb(201, 201, 201);
    cursor: pointer;
    transition: all 0.2s;
}
#projects .project-item:last-of-type {
    border-bottom: 2px solid rgb(201, 201, 201);
}
#projects .project-item:hover {
    opacity: 0.5;
}
#projects .project-item:hover .project-title {
    transform: translateX(-10px);
}
#projects .project-item:hover .project-description {
    transform: translateX(10px);
}
.project-title {
    font-size: 60px;
    color: #333;
    text-align: center;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
    margin: 0.5rem 0;
    transition: all 0.4s;
}
@media (max-width: 768px) {
    .project-title {
        font-size: 36px !important;
    }
}
#projects .project-description {
    transition: all 0.4s;
    font-weight: 300;
    color: #666;
}
#projects .modal-container {
    height: 350px;
    width: 400px;
    position: fixed;
    background-color: #fafafa;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 2rem;
    border: solid 2px #a3a3a3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0) translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
body.dark-mode #projects .modal-container {
    background-color: #121212;
    border:solid 2px #fff;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.08);
    color: #fff;
}
#projects .modal-container.active {
    transform: scale(1) translate(-50%, -50%);
}
#projects .modal-slider {
    height: 100%;
    width: 100%;
    position: absolute;
    transition: top 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
#projects .modal {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#projects .modal img {
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
#projects .cursor, #projects .cursor-label {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #2c2c2c;
    color: white;
    position: fixed;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 300;
    pointer-events: none;
    transform: scale(0) translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
#projects .cursor-label {
    background-color: transparent;
}
#projects .cursor.active, #projects .cursor-label.active {
    transform: scale(1) translate(-50%, -50%);
}
#projects .tech-stack {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
#projects .tech-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 768px) {
    #projects .project-item {
        padding: 30px 20px;
    }
    #projects .project-title {
        font-size: 36px;
    }
    #projects .modal-container {
        width: 300px;
        height: 250px;
    }
}

body.dark-mode #projects .cursor,
body.dark-mode #projects .cursor-label {
    background-color: #fff;
    color: #000;
}

body.dark-mode #projects .cursor-label {
    background-color: transparent !important;
    color: #000;
    border: none;
}
body.dark-mode #projects .project-item{
  border-top: 2px solid rgb(255, 255, 255);
}
body.dark-mode #projects .project-item:last-of-type {
    border-bottom: 2px solid rgb(255, 255, 255);
}

/* === GLOBAL FONT STYLES (Unified with Projects Section) === */
html, body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #333;
    font-weight: 400;
}

h1, .title {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: #333;
    font-size: 60px;
}

@media (max-width: 768px) {
    h1, .title {
        font-size: 36px;
    }
}

h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: #333;
}

p, .section__text__p1, .section__text__p2, .project-description {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 300;
    color: #666;
}

/* Dark mode overrides for unified font styles */
body.dark-mode, body.dark-mode h1, body.dark-mode .title, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #fff !important;
}
body.dark-mode p, body.dark-mode .section__text__p1, body.dark-mode .section__text__p2, body.dark-mode .project-description {
    color: #ccc !important;
}
body.dark-mode .hero-slider p {
    color: #000000 !important;
}
body.dark-mode .hero-title{
  color: #000000 !important;
}

.footer-brand-text {
    color: #fff !important;
    font-weight: 300 !important;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.footer-nav-title {
    color: #fff !important;
    font-weight: 600 !important;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

body.dark-mode .footer-brand-text {
    color: #000 !important;
}

body.dark-mode .footer-nav-title {
    color: #555555 !important;
}

body.dark-mode #projects .tech-stack .tech-icon {
    filter: invert(1);
}

/* Text Reveal Animation Styles */
.section__text__p1, 
.title,
.experience-sub-title,
.project-title,
.project-description,
.timeline-content h3,
.timeline-content p,
.details-container h3,
.details-container p,
.text-container p,
.hero-title span {
    overflow: hidden;
}

.line-mask {
    overflow: hidden;
    display: inline-block;
}

.line-mask span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-mode .line-mask span {
    color: white !important;
}

#about .details-container p,
#about .about-details-container p,
#about .text-container p {
  margin: 0 0 1rem 0;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-line;
}

#about .text-container p {
  margin-bottom: 0;
}

#about .details-container br,
#about .about-details-container br,
#about .text-container br {
  display: block;
  content: "";
  margin-top: 0.5em;
}

/* Add spacing between revealed words */
.line-mask {
  margin-right: 0.18em;
}

/* Prevent .line-mask from breaking lines awkwardly */
.line-mask {
  white-space: pre-line;
}

/* Ensure paragraphs in About section have correct spacing on mobile */
@media (max-width: 768px) {
  #about .details-container p,
  #about .about-details-container p,
  #about .text-container p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
}

#about .details-container {
  padding: 0.7rem 1rem;
  min-width: 140px;
  font-size: 0.98rem;
  line-height: 1.4;
}

#about .details-container h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

#about .details-container p {
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

#about .details-container img.icon {
  height: 1.5rem;
  margin-bottom: 0.3rem;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 768px) {
  #about .details-container {
    padding: 0.5rem 0.7rem;
    font-size: 0.93rem;
  }
  #about .details-container h3 {
    font-size: 1rem;
  }
  #about .details-container p {
    font-size: 0.93rem;
  }
}

/* TEXT PARALLAX SECTION */
.text-parallax-section {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* background: #000; */
  color: white;
  padding: 0;
}

.parallax-spacer {
  height: 20vh;
}

.parallax-container {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.parallax-slide {
  position: relative;
  display: flex;
  white-space: nowrap;
  will-change: transform;
  width: calc(100% + 4rem);
  margin: 0;
  padding: 0;
  margin-left: -2rem;
}

.parallax-phrase {
  padding: 0;
  margin: 0; /* Add this to remove any default margin */
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.parallax-text {
  font-size: 7.5rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #333333 0%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Ensure text starts at the edge */
  padding-left: 0;
}
body.dark-mode .parallax-text {
  background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Poppins", sans-serif;
}

.parallax-image {
  position: relative;
  height: 7.5vw;
  aspect-ratio: 4/2;
  border-radius: 50px;
  overflow: hidden;
  display: block;
}

.parallax-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .parallax-text {
    font-size: 12vw;
  }
    
  .parallax-image {
    height: 12vw;
  }
    
  .parallax-phrase {
    padding: 0;
    gap: 0.75rem;
    margin: 0;
  }
  
  .parallax-slide {
    margin-left: -1rem;
    width: calc(100% + 2rem);
  }
}

@media (max-width: 480px) {
  .parallax-text {
    font-size: 15vw;
  }
    
  .parallax-image {
    height: 15vw;
  }
    
  .parallax-phrase {
    padding: 0;
    gap: 0.5rem;
    margin: 0;
  }
  
  .parallax-slide {
    margin-left: -0.5rem;
    width: calc(100% + 1rem);
  }
}

/* SVG TEXT ANIMATION SECTION */
.svg-text-section {
  padding: 100px 0;
  background: transparent;
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

body.dark-mode .svg-text-section {
  background: transparent;
}

.svg-container {
  width: 100%;
  max-width: 100%; /* Changed from 1200px to 100% */
  margin: 0;
  padding: 0; /* Removed the padding */
}

.svg-container svg {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.svg-text {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.text-path {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .svg-text-section {
    padding: 60px 0;
  }
  
  .svg-text,
  .text-path {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .svg-text-section {
    padding: 40px 0;
  }
  
  .svg-text,
  .text-path {
    font-size: 5x;
    letter-spacing: 1px;
  }
}