body {
  padding-top: 80px;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(ellipse at center, #0a0a23, #0a0a20);
  color: white;
  text-align: center;
}

body.fade-ready {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}

.fade-up.delay-1 { animation-delay: 0.2s; }
.fade-up.delay-2 { animation-delay: 0.4s; }
.fade-up.delay-3 { animation-delay: 0.8s; }
.fade-up.delay-4 { animation-delay: 1.2s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optimized animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind everything */
  background: linear-gradient(
    45deg,
    #9333ea,
    #3b82f6,
    #22d3ee,
    #9333ea
  );
  opacity: 0.05;
  animation: moveBackground 15s ease-in-out infinite;
  background-size: 300% 300%;
  /* Removed expensive blur filter for better performance */
  will-change: background-position; /* Optimize for animation */
  transform: translateZ(0); /* Force hardware acceleration */
}

@keyframes moveBackground {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #0f172a;
  transition: top 0.3s ease;
}

/* Hide the header by moving it up */
.site-header.hidden {
  top: -100px; /* adjust to header height */
}


.logo {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding-right: 100%;
  margin: 0;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  height: 2rem;
}

.nav-links a.active {
  background-color: #312e81;
  color: #a78bfa;
  height: 2rem;
  padding: 0.3rem 0.8rem;
}

.nav-links a:hover {
  background-color: #1a1a2e;
  color: #a78bfa;
  padding: 0.3rem 0.8rem;
  height: 2rem;
}


.typing-text {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  color: #cbd5e1;
  min-height: 2rem; /* prevent layout shift */
}

#typed-role {
  color: #a78bfa;
  font-weight: 600;
}
.hero-section {
  padding: 10vh 2rem;
}

.gradient-name {
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #a78bfa, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-name span {
  background: linear-gradient(to right, #4ade80, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section h2 {
  font-weight: 500;
  margin-top: 1rem;
  color: #cbd5e1;
}

.hero-section p {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 1.1rem;
}

.button-group {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  min-width: 160px; /* Optional: makes them consistent width */
  text-align: center;
  display: inline-block;
  box-sizing: border-box; /* ✅ ensures border doesn't affect sizing */
}

.btn-primary {
  background-color: #a78bfa;
  color: black;
  border: 2px solid transparent; /* ✅ matches secondary so padding is equal */
}

.btn-primary:hover {
  background-color: #c4b5fd;
}

.btn-secondary {
  border: 2px solid #a78bfa;
  color: #a78bfa;
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: #312e81;
  color: white;
}

.projects-section {
  padding: 5vh 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #7dd3fc; /* light blue */
}

.project-categories {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-categories button {
  background-color: #1f2937; /* dark gray */
  border: 2px solid transparent;
  color: #d1d5db;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.project-categories button:hover {
  border-color: #a78bfa;
  background-color: #2a2f45;
}

.project-categories .active {
  border-color: #a78bfa;
  background-color: #2a2f45;
  color: #a78bfa;
}

.project-video {
  margin-top: 3rem;
  border: 1px solid #2e2e3a;
  border-radius: 16px;
  overflow: hidden;
}

.site-header {
  background-color: #0a0a18;
  padding: 1rem 2rem;
  padding-left: 10%;
  padding-right:10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-item.hidden {
  display: none;
}

.project-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.project-categories button {
  background-color: #1f2937;
  border: 2px solid transparent;
  color: #d1d5db;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.project-categories button.active {
  border-color: #a78bfa;
  color: #a78bfa;
  background-color: #2a2f45;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.project-link {
  background-color: #1f2937;
  border: 2px solid #2d2f3a;
  color: #d1d5db;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease-in-out;
}

.project-link:hover {
  background-color: #2a2f45;
  color: #a78bfa;
  border-color: #a78bfa;
}

.projects-landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  padding: 2rem;
}

.project-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.project-box {
  background-color: #1f2937;
  border: 2px solid #2d2f3a;
  padding: 2rem 4rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: 0.3s;
}

.project-box:hover {
  background-color: #2a2f45;
  color: #a78bfa;
  border-color: #a78bfa;
}

.project-card {
  background-color: #111827;
  border: 1px solid #2a2f45;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.project-card h2 {
  font-size: 1.5rem;
  color: #c4b5fd;
  margin-bottom: 1rem;
}

.highlight {
  color: #a78bfa;
}

.category {
  color: #4ade80;
}

.project-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.credits-box {
  background-color: #1f2937;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 12px;
  color: #d1d5db;
}

.credits-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #a78bfa;
}

.sub-project-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem;
}

.sub-project-nav a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  color: #d1d5db;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.2s;
}

.sub-project-nav a:hover {
  background-color: #1f2937;
  color: #a78bfa;
}

.sub-project-nav a.active {
  background-color: #312e81;
  color: #a78bfa;
}

.logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #66fcf1;
  text-decoration: none;
}

.logo-img {
  height: 40px; /* Adjust based on your design */
  width: auto;
  object-fit: contain;
  display: block;
}


.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: #a78bfa;
  background: #1a1a2e;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-top: 2rem;
  color: #7dd3fc;
}

.projects-landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  padding: 2rem;
}

.project-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.project-box {
  background-color: #1f2937;
  border: 2px solid #2d2f3a;
  padding: 2rem 4rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: 0.3s;
}

.project-box:hover {
  background-color: #2a2f45;
  color: #a78bfa;
  border-color: #a78bfa;
}

.project-card {
  background-color: #111827;
  border: 1px solid #2a2f45;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.project-card h2 {
  font-size: 1.5rem;
  color: #c4b5fd;
  margin-bottom: 1rem;
}

.highlight {
  color: #a78bfa;
}

.category {
  color: #4ade80;
}

.project-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.credits-box {
  background-color: #1f2937;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 12px;
  color: #d1d5db;
}

.credits-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #a78bfa;
}

/* Enhanced button styles */
.project-box {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.project-box:hover {
  background-color: #2a2f45;
  color: #a78bfa;
  transform: scale(1.05);
  box-shadow: 0 0 12px #a78bfa;
}

/* Animated underline for nav links */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #a78bfa;
  transition: width 0.5s ease;
}

.nav-links a:hover::after {
  width: 100%;
}


.contact-container {
  display: flex;
  min-height: 100vh; /* not fixed height */
  font-family: 'Outfit', sans-serif;
  background-color: #0f172a;
  color: white;
  position: relative;
  z-index: 0;
  padding-top: 80px; /* create space for header */
}



.contact-form, .contact-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.contact-form {
  background-color: #111827;
}

.contact-form h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.contact-form .subtitle {
  color: #a78bfa;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #cbd5e1;
}

input, textarea {
  background-color: #1f2937;
  border: none;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: 2px solid #a78bfa;
}



.btn-primary:hover {
  background-color: #c4b5fd;
}

.contact-visual {
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-visual img {
  max-width: 90%;
  height: auto;
  border-radius: 20px;
}

.contact-wrapper {
  background-color: #0f172a;
  color: white;
  padding-top: 7rem;
  min-height: calc(100vh - 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.contact-card {
  background-color: #111827;
  padding: 3rem;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: left; /* ✅ forces text and elements to align left */
  align-items: flex-start; /* if you're using flex */
}

.contact-title {
  font-size: 3rem;
  font-weight: 900;
  margin: 0;
  text-align: center;
}

.subheading {
  color: #a78bfa;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #d1d5db;
}

label span {
  margin-bottom: 0.5rem;
}

input, textarea {
  background-color: #1f2937;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  color: white;
}

input:focus, textarea:focus {
  outline: 2px solid #a78bfa;
}

.full {
  flex: 1 1 100%;
}

.btn-submit {
  background-color: #a78bfa;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: black;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #c4b5fd;
}

.linkedin-inline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.linkedin-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0a66c2;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.linkedin-btn:hover {
  background-color: #004182;
}

.linkedin-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.contact-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.subheading {
  color: #686568;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

.icon-label {
  color: #a78bfa;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.icon-label i {
  font-size: 1.1rem;
}

.video-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-text {
  flex: 1;
  color: #e2e8f0;
}

.about-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(to right, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.about-image img {
  max-width: 300px;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-card {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 1rem;
  flex: 1 1 45%;
  color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.about-card h2 {
  color: #c4b5fd;
  margin-bottom: 1rem;
}

.about-card p {
  color: #cbd5e1;
}

.about-hero.with-background {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 500px;
  padding: 3rem 2rem;
  overflow: hidden;
}

.background-image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  max-width: 600px;
  z-index: 0;
}

.background-image img {
  height: 100%;
  object-fit: contain;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  mask-image: linear-gradient(to bottom, white 80%, transparent);
  
}

.about-hero .about-text {
  z-index: 1;
  max-width: 600px;
  color: #e2e8f0;
}

/* Slide in from bottom */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide toggle button on desktop */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #111;
    padding: 1rem;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
  }

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

.project-card img,
.project-card video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 1em 0;
  object-fit: cover; /* optional: trims overflow instead of stretching */
}

.github-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 600;
  color: white;
  background-color: #24292e;
  padding: 0.5em 1em;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.github-button:hover {
  background-color: #333;
}

.github-button .icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

/* Site Footer */
.site-footer {
  background-color: #0f1419;
  border-top: 1px solid #2d3748;
  margin-top: 4rem;
  padding: 3rem 2rem 1rem;
  color: #cbd5e1;
}

/* Ensure Font Awesome loads properly */
.site-footer i {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
  font-weight: 900;
}

.site-footer .fab {
  font-weight: 400;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #a78bfa;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-section h4 {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a78bfa;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #1f2937;
  color: #cbd5e1;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  line-height: 1;
  position: relative;
}

.social-links a i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: #a78bfa;
  color: white;
  transform: translateY(-2px);
}

.social-links a:active {
  transform: translateY(0);
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}
