/* Base Theme Colors */
:root {
    --primary-color: #1abc9c; 
    --accent-color: #16a085;
    --bg-color: #121212;
    --text-color: #ffffff;
    --nav-bg: #1c1c1c;
    --card-bg: #1e1e1e;
    --button-hover: #149f89;
  }
  
  /* Light Theme Overrides */
  body.light-mode {
    --primary-color: #1abc9c;
    --accent-color: #16a085;
    --bg-color: #ffffff;
    --text-color: #000000;
    --nav-bg: #f9f9f9;
    --card-bg: #f3f3f3;
    --button-hover: #16a085;
  }
  
  /* Global Styles */
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s, color 0.4s;
  }
  
  /* Navbar */
  nav {
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  nav .logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    cursor: pointer;
  }
  
  nav .hamburger-menu {
    display: none;
  }
  
  @media (max-width: 990px) {
    nav .desktop-menu {
      display: none;
    }

    nav .hamburger-menu {
      display: block;
    }

  nav .hamburger-menu svg{
    height:40px;
    width:40px;
    cursor: pointer;
    stroke: var(--accent-color) ;
  }
  }

  .small-screen-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #96e5d6;
  color: white;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  transition: right 0.4s ease-in-out;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  }

  body.light-mode .small-screen-nav {
    background: #96e5d6;
  color: var(--text-light);
  }

  .small-screen-nav.active {
  background: #96e5d6;
  right: 0;
  }

  /* Close (X) button */
  .small-screen-nav .cross {
  align-self: flex-end;
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-bottom: 2rem;
  }

  .small-screen-nav .cross svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-color);
  transition: transform 0.3s ease;
  }

  .small-screen-nav .cross:hover svg {
  transform: rotate(90deg);
  }

  /* Small menu links */
  .small-screen-nav .small-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  }

  .small-screen-nav .small-menu li a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  }

  body.light-mode .small-screen-nav .small-menu li a {
  color: var(--text-light);
  }

  .small-screen-nav .small-menu li a:hover {
  color: var(--accent);
  transform: translateX(5px);
  }

  nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  nav ul li a,
  .resume-btn,
  #theme-toggle {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
  }
  
  nav ul li a:hover,
  nav ul li a:focus,
  .resume-btn:hover,
  .resume-btn:focus {
    background-color: var(--primary-color);
    color: white;
  }
  
  .resume-btn {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
  }
  
  #theme-toggle {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  #theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
  }
 /* glowing arrow under nav graphics*/
.graphics-nav {
  position: relative;
}

.graphics-arrow {
  position: absolute;
  left: 60%;
  transform: translateX(-50%);
  bottom: -18px;
  opacity: 0;
  cursor: pointer;
  animation: fadeInArrow 0.5s ease forwards 1.5s;
}

.arrow-up-glow {
  width: 18px;
  height: 18px;
  color: #00ffc3;
  filter: drop-shadow(0 0 6px #00ffc3);
  animation: arrowFloat 1.8s ease-in-out infinite, arrowGlow 2s ease-in-out infinite alternate;
}

/* Floating movement */
@keyframes arrowFloat {
  0%, 100% { transform: translate(-50%, 2px); }
  50% { transform: translate(-50%, -4px); }
}

/* Glowing pulse */
@keyframes arrowGlow {
  0% { opacity: 0.6; filter: drop-shadow(0 0 4px #00ffc3); }
  100% { opacity: 1; filter: drop-shadow(0 0 12px #00ffc3); }
}

/* Fade-in animation */
@keyframes fadeInArrow {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.container {
text-align: center;
color: #fff;
}


.text {
font-size: 3rem;
font-weight: 700;
letter-spacing: 4px;
position: relative;
display: inline-block;
overflow: hidden;
white-space: nowrap;
}


.text span {
display: inline-block;
animation: typing 3.5s steps(30) infinite alternate;
border-right: 3px solid #fff;
padding-right: 5px;
}


@keyframes typing {
0% { width: 0; }
50% { width: 100%; }
100% { width: 0; }
}


.subtext {
margin-top: 10px;
font-size: 1rem;
letter-spacing: 2px;
opacity: 0.7;
animation: fade 2s infinite;
}


@keyframes fade {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}

/* Hero */
.hero {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: radial-gradient(circle at center, #00c89625, transparent 80%);
    transition: background 0.4s;
  }
  
  .hero h1 {
    font-size: 3rem;
    font-weight: 700;
  }
  
  .hero h1 span {
    background:#00c896;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  
  .hero p {
    max-width: 600px;
    margin: 1rem auto;
    opacity: .85;
  }
  /* Fade-in on load */
  @keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
  }
  
  /*floating animation */
  @keyframes floatUpDown {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px); 
  }
  100% {
      transform: translateY(0); 
  }
  }
  
  /*  hero text animation */
  .hero h1 {
  font-size: 3rem;
  font-weight: 700;
  opacity: 0;
  animation: fadeInUp 1s ease forwards, floatUpDown 3s ease-in-out infinite;
  animation-delay: 0.3s, 1.5s; 
  }
  
  .hero h1 span {
  background: #00c896;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 1s ease forwards, floatUpDown 3s ease-in-out infinite;
  animation-delay: 0.8s, 1.5s;
  }
  
  .hero p {
  max-width: 600px;
  margin: 1rem auto;
  opacity: 0;
  animation: fadeInUp 1s ease forwards, floatUpDown 3s ease-in-out infinite;
  animation-delay: 1.3s, 1.8s;
  }
  .hero {
  position: relative;
  overflow: hidden;
  }
    
  .btn {
    display: inline-block;
    margin: 2rem auto;
    padding: 5px 25px;
    background: #00c896;
    border-radius: 30px;
    color: #fff;
    font-size: 5rem;
    cursor: pointer;
    border: none;
    transition: transform 0.3s;
    font-weight: 600;
  }
  
  .btn:hover {
    transform: scale(1.05);
  }

/* Project Hero */
.project-hero {
  text-align: center;
  padding: 6rem 2rem 2rem;
  background: radial-gradient(circle at center, #00c89625, transparent 80%);
}

.project-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-hero h1 span {
  background: #00c896;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.project-hero p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
  font-size: 1.1rem;
}

/* Project Categories */
.project-category {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    color: var(--primary-color);
}

/* Projects Container / Grid */
.projects-container {
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced min-width */
  gap: 1.5rem; /* Reduced gap */
  justify-items: center; /* Center cards if they don't fill row */
}

/* Project Card */
.project-card {
  background: var(--card-bg);
  border-radius: 12px; /* Slightly smaller radius */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px; /* Limit max width so they don't get too huge */
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.project-img {
  width: 100%;
  height: 160px; /* Reduced height */
  overflow: hidden;
}

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

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

.project-info {
  padding: 1rem; /* Reduced padding */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.2rem; /* Reduced font size */
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.9;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-stack span {
  font-size: 0.8rem;
  background: rgba(0, 200, 150, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.btn-small {
  display: inline-block;
  text-align: center;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-small:hover {
  background: var(--primary-color);
  color: white;
}

/* Coming Soon Card */
.project-card.coming-soon {
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: repeating-linear-gradient(
    45deg,
    rgba(25, 25, 25, 1),
    rgba(25, 25, 25, 1) 10px,
    rgba(30, 30, 30, 1) 10px,
    rgba(30, 30, 30, 1) 20px
  );
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.project-card.coming-soon .content {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.project-card.coming-soon i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.project-card.coming-soon h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Light Mode Adjustments */
body.light-mode .project-card {
  background: white;
  border-color: rgba(0,0,0,0.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

body.light-mode .project-card.coming-soon {
  background: repeating-linear-gradient(
    45deg,
    #f0f0f0,
    #f0f0f0 10px,
    #e0e0e0 10px,
    #e0e0e0 20px
  );
  border-color: rgba(0,0,0,0.1);
}

body.light-mode .project-card.coming-soon .content,
body.light-mode .project-card.coming-soon h3 {
    color: rgba(0,0,0,0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--nav-bg);
    font-size: 0.9rem;
  }
  .btn{
    text-decoration: none;
  }
  /* Responsive */
  @media screen and (max-width: 992px) {
    nav ul {
      display: none;
    }
    
    .small-screen-nav {
      width: 100%;
    }
  }

  @media screen and (max-width: 768px) {
    .project-hero h1 {
      font-size: 2rem;
    }
    
    .project-hero p {
      font-size: 0.9rem;
      padding: 0 1rem;
    }

    .projects-container {
      grid-template-columns: 1fr;
      padding: 1rem;
    }
  }
  