/* BASE STYLES */
:root {
  --bg-primary: #0a0f1c; /* Deep navy blue background */
  --bg-secondary: #121929; /* Card background */
  --bg-tertiary: #1a2235; /* Hover/lighter background */
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8; /* Slate gray */
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-yellow: #fbbf24;
  --accent-light-blue: #60a5fa;
  --accent-cyan: #22d3ee;
  
  --font-primary: 'Inter', sans-serif;
  
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

/* TYPOGRAPHY */
.chapter-label {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.title-underline {
  width: 50px;
  height: 3px;
  background-color: var(--accent-blue);
  margin-bottom: 2rem;
}

.center-underline {
  margin: 0 auto 2rem auto;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: -1rem;
  margin-bottom: 3rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.btn-secondary-light {
  background-color: white;
  color: #000;
}

.btn-secondary-light:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: #1e293b;
  color: white;
  border: 1px solid #334155;
}

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

/* FLOATING PILL NAVIGATION */
.floating-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
  max-width: 95vw;
}

.floating-nav-container {
  display: flex;
  align-items: center;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  gap: 1.5rem;
}

.nav-home, .nav-sound {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-home:hover, .nav-sound:hover {
  background: rgba(255,255,255,0.1);
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.nav-link i {
  font-size: 1.1rem;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white;
  background: #605a2e;
}

.nav-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-btn-contact {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.nav-btn-contact:hover {
  background: rgba(220, 38, 38, 0.4);
}

.nav-btn-resume {
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.nav-btn-resume:hover {
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  padding: 6rem 0 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Add a subtle glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(10, 15, 28, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  max-width: 600px;
}

.hero-image-wrapper {
  flex-shrink: 0;
  perspective: 1000px;
  width: 400px;
  height: 400px;
  cursor: pointer;
}

.flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.hero-image-wrapper:hover .flipper {
  transform: rotateY(180deg);
}

.profile-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.profile-photo.front {
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  transform: rotateY(0deg);
}

.profile-photo.back {
  transform: rotateY(180deg);
  object-fit: cover;
}

.hero-badge {
  display: inline-block;
  color: var(--accent-light-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-icon {
  font-family: monospace;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.highlight-blue {
  color: var(--accent-light-blue);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-social {
  display: flex;
  gap: 1.5rem;
}

.hero-social a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}

.hero-social a:hover {
  color: white;
  transform: translateY(-2px);
}

/* ABOUT SECTION */
.about {
  padding: 5rem 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.stats-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: perspective(1000px) translateZ(0);
}

.stats-card:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.03) translateZ(20px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.stats-title i {
  color: var(--accent-blue);
}

.stats-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.stats-list li i {
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

.stats-list li strong {
  color: var(--text-primary);
}

/* TECHNICAL ARSENAL SECTION */
.arsenal {
  padding: 5rem 0;
}

.arsenal-video-block {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
}

.arsenal-video-block video {
  width: 100%;
  height: auto;
  display: block;
}

.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.arsenal-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.25rem 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: perspective(1000px) translateZ(0);
}

.arsenal-card:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.03) translateZ(20px) rotateX(-2deg) rotateY(2deg);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4), 0 0 25px rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
}

.card-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-light-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tag.outlined {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tag.purple {
  background-color: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

/* FEATURED PROJECTS SECTION */
.projects {
  padding: 5rem 0;
}

.project-list {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
}

.project-list::-webkit-scrollbar {
  height: 8px;
}

.project-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.project-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.project-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  min-width: 350px;
  scroll-snap-align: start;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: perspective(1000px) translateZ(0);
}

.project-card:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.03) translateZ(20px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4), 0 0 25px rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

.project-image {
  height: 180px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-primary);
}

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

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

.project-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.project-date {
  color: var(--accent-light-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.tech-tag.highlighted {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.tech-tag.cyan {
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent-cyan);
}

.tech-tag.purple {
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.tech-tag.green {
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.project-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.project-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-bullets li strong {
  color: var(--text-primary);
}

.list-arrow {
  color: var(--accent-light-blue);
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.project-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* EDUCATION & CERTIFICATIONS SECTION */
.education {
  padding: 5rem 0 8rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.column-title i {
  color: var(--accent-light-blue);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  border: 2px solid var(--bg-primary);
}

.timeline-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-date {
  color: var(--accent-light-blue);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Certifications */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
}

.cert-card:hover {
  background-color: var(--bg-tertiary);
}

.cert-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.red-icon {
  color: #ef4444;
}

.cert-title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.cert-issuer {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* NEW GRADIENT FOOTER */
.footer-new {
  padding: 8rem 0 6rem;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.25;
  pointer-events: none;
}

.footer-header {
  text-align: center;
  margin-bottom: 4rem;
}

.footer-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-yellow); 
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-card .card-icon {
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-card:hover .card-icon {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.metallic-card {
  background: linear-gradient(135deg, #1e2024 0%, #3a3f47 25%, #14161a 50%, #3a3f47 75%, #1e2024 100%);
  background-size: 200% 200%;
  animation: metallicShine 4s linear infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255,255,255,0.2);
  color: #e0e5ec;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: perspective(1000px) translateZ(0);
}

.metallic-card:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.03) translateZ(20px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.6), 0 0 25px rgba(251, 191, 36, 0.3), inset 0 1px 2px rgba(255,255,255,0.4);
  border-color: rgba(251, 191, 36, 0.8);
}

@keyframes metallicShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .arsenal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-layout {
    gap: 2rem;
  }
  
  .hero-image-wrapper {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-actions, .hero-social {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }
  
  .about-container,
  .edu-grid,
  .arsenal-grid {
    grid-template-columns: 1fr;
  }
  
  .project-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: block;
    margin-left: 0.5rem;
  }
  
  .nav-menu {
    position: fixed;
    bottom: 90px;
    right: -100%;
    width: 220px;
    height: auto;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 1rem;
  }

  .nav-link {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-title {
    font-size: 3rem;
  }

  .project-card {
    min-width: 85vw;
  }

  .floating-nav-container {
    padding: 0.6rem 1rem;
    gap: 0.8rem;
  }

  .nav-btn-resume {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-image-wrapper {
    width: 250px;
    height: 250px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-card, .cert-card, .timeline-card {
    padding: 1rem;
  }

  .timeline-container {
    padding-left: 1.5rem;
  }
  
  .timeline-dot {
    left: -1.5rem;
  }
  
  .project-header {
    align-items: flex-start;
  }

  .custom-video-controls {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }

  .video-ctrl-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .contact-card h3 {
    font-size: 1.25rem;
  }

  .contact-card .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}


/* --- OVERHAUL STYLES (Animations, Video, Cursor, Audio Toggle) --- */

/* Custom Video Controls */
.custom-video-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 20;
}

.video-ctrl-btn {
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Hero Gamified Grid Background */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(10, 15, 28, 0) 0%, rgba(10, 15, 28, 1) 100%), 
              linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 40px, 40px 0; }
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 15, 28, 0.2), rgba(10, 15, 28, 1));
}

.hero-container {
  position: relative;
  z-index: 1;
}

/* Cursor set to normal */
body {
  cursor: auto;
}

/* Animated Gradients */
.about, .education {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 15, 28, 1) 0%, rgba(15, 23, 42, 1) 50%, rgba(10, 15, 28, 1) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

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

/* Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.nav-toggle:hover {
  color: white;
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }


/* --- GAMIFICATION & Smoothness --- */

/* Hardware Acceleration for Smoothness */
.section-title, .arsenal-card, .project-card, .timeline-item, .cert-card {
  will-change: transform, opacity;
}

/* Floating EXP Text */
.floating-exp {
  position: fixed;
  color: #fbbf24;
  font-weight: 900;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  pointer-events: none;
  z-index: 9999;
  animation: floatUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUp {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -100px) scale(1.5); opacity: 0; }
}


/* The rest of the lightbox CSS that was accidentally overwritten */
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.visible .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: var(--accent-blue);
}

/* Add pointer to project images to indicate clickability */
.project-image img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

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