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

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.5);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.5);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.5);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.5);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.5);
  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.5);
  --dark-bg: #030308;
  --dark-surface: #0a0a12;
  --dark-card: #12121c;
  --dark-elevated: #1a1a28;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

.section-3d-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.15s ease-out;
}

.geo-shape {
  position: absolute;
  opacity: 0.1;
  animation: floatGeo 20s infinite ease-in-out;
}

.geo-cube {
  width: 100px;
  height: 100px;
  border: 2px solid var(--primary);
  transform: rotate(45deg) perspective(500px) rotateX(20deg);
}

.geo-circle {
  width: 150px;
  height: 150px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
}

.geo-ring {
  width: 200px;
  height: 200px;
  border: 3px solid var(--purple);
  border-radius: 50%;
  transform: perspective(500px) rotateX(60deg);
}

@keyframes floatGeo {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(20px) rotate(-5deg);
  }
}

.grid-3d {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridFlow 30s linear infinite;
}

@keyframes gridFlow {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(60px);
  }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: orbPulse 8s infinite ease-in-out;
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero .section-3d-bg {
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.2s;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-badge span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.hero-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.4s;
}

.hero-name .letter {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: letterFloat 3s infinite ease-in-out;
}

.hero-name .letter:nth-child(odd) {
  animation-delay: 0.1s;
}

@keyframes letterFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-title .highlight {
  color: var(--primary);
  font-weight: 500;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1s;
}

.btn {
  padding: 1.1rem 2.8rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 40px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-4px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.2s;
}

.scroll-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--primary), transparent);
  position: relative;
}

.scroll-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0% {
    top: 0;
    opacity: 1;
  }
  50% {
    top: 50px;
    opacity: 0;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}

section {
  position: relative;
  padding: 8rem 2rem;
  overflow: hidden;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-tag svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-title .gradient {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 2rem auto 0;
  border-radius: 2px;
  position: relative;
}

.section-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary-glow);
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* About Section */
.about {
  background: var(--dark-surface);
}

.about .section-3d-bg {
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 50%
    );
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--dark-card), var(--dark-elevated));
}

.about-image-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(236, 72, 153, 0.2)
  );
}

.about-initials {
  font-family: "Playfair Display", serif;
  font-size: 10rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
}

.about-image-frame {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, var(--primary), var(--secondary)) 1;
  border-radius: 30px;
  z-index: -1;
}

.about-image-dots {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.3;
}

.about-floating-badge {
  position: absolute;
  background: var(--dark-card);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: floatBadge 4s infinite ease-in-out;
}

.about-badge-1 {
  top: 10%;
  right: -20px;
}

.about-badge-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about-badge-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.about-badge-text h4 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

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

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

.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--dark-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.about-highlight:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.about-highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-highlight-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.about-highlight span {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  text-align: center;
  position: relative;
}

.stat::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.stat:last-child::after {
  display: none;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Skills Section */
.skills {
  background: var(--dark-bg);
}

.skills .section-3d-bg {
  background: radial-gradient(
    ellipse at center,
    rgba(6, 182, 212, 0.05) 0%,
    transparent 60%
  );
}

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

.skill-card {
  background: var(--dark-card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.skill-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.3);
}

.skill-card:hover::before {
  opacity: 0.1;
}

.skill-card:hover::after {
  transform: scaleX(1);
}

.skill-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.skill-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  border-radius: 50%;
  animation: skillPulse 3s infinite ease-in-out;
}

@keyframes skillPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.skill-icon {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--dark-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(99, 102, 241, 0.3);
  transition: all 0.4s ease;
}

.skill-card:hover .skill-icon {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.skill-icon svg {
  width: 40px;
  height: 40px;
  transition: all 0.4s ease;
}

.skill-card:hover .skill-icon svg {
  transform: scale(1.1);
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Portfolio/Journey Section */
.portfolio {
  background: var(--dark-surface);
}

.portfolio .section-3d-bg {
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 50%
    );
}

.portfolio-timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 40px);
  background: var(--dark-card);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  border: 4px solid var(--dark-surface);
  z-index: 10;
  box-shadow: 0 0 20px var(--primary-glow);
}

.timeline-year {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.timeline-tag {
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Services Section */
.services {
  background: var(--dark-bg);
}

.services .section-3d-bg {
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(245, 158, 11, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(16, 185, 129, 0.06) 0%,
      transparent 50%
    );
}

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

.service-card {
  background: var(--dark-card);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: transparent;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

/* Center last 2 cards on desktop (3-column layout) */
@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-card {
    grid-column: span 2;
  }

  .service-card:nth-child(7) {
    grid-column: 2 / span 2;
  }

  .service-card:nth-child(8) {
    grid-column: 4 / span 2;
  }
}

.service-thumbnail {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.service-thumbnail-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: transform 0.5s ease;
}

.service-card:hover .service-thumbnail-bg {
  transform: scale(1.1);
}

.service-thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.service-icon-float {
  position: absolute;
  bottom: -35px;
  right: 25px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px var(--primary-glow);
  z-index: 10;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-float {
  transform: translateY(-10px) rotate(5deg);
}

.service-icon-float svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.service-content {
  padding: 2.5rem 2rem 2rem;
}

.service-number {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-features {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-feature svg {
  width: 16px;
  height: 16px;
  stroke: var(--emerald);
  flex-shrink: 0;
}

/* Showcase/Projects Section */
.showcase {
  background: var(--dark-surface);
}

.showcase .section-3d-bg {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 70%,
      rgba(236, 72, 153, 0.1) 0%,
      transparent 50%
    );
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.showcase-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  cursor: pointer;
}

.showcase-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
}

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

.showcase-item:hover .showcase-image {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.showcase-item:hover .showcase-overlay {
  opacity: 1;
}

.showcase-info {
  color: white;
  z-index: 1;
}

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

.showcase-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact {
  background: var(--dark-bg);
}

.contact .section-3d-bg {
  background:
    radial-gradient(
      ellipse at 30% 70%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(236, 72, 153, 0.1) 0%,
      transparent 50%
    );
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-info {
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.contact-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-card {
  background: var(--dark-card);
  border-radius: 20px;
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 450px;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.contact-card:hover::before {
  opacity: 0.1;
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.contact-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.contact-card-content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.contact-card-content h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-content p {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--dark-surface);
  padding: 5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer .section-3d-bg {
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 50%
  );
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--dark-card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  transition: fill 0.3s ease;
}

.social-link:hover svg {
  fill: white;
}

.footer-column h4 {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(8px);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom .heart {
  color: var(--secondary);
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 3, 8, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--dark-card);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: var(--primary);
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 16px;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  box-shadow: 0 20px 40px var(--primary-glow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 50px;
  height: 50px;
  background: var(--dark-card);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: all 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive - Desktop Large */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .service-card {
    grid-column: span 1 !important;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 60px;
  }

  .timeline-dot {
    left: 30px;
  }
}

/* Responsive - Tablet Small */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  section {
    padding: 5rem 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .skills-grid .skill-card:nth-last-child(1),
  .skills-grid .skill-card:nth-last-child(2) {
    justify-self: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .service-card {
    grid-column: span 1 !important;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat::after {
    display: none;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column ul {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-info h3 {
    font-size: 2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-card {
    max-width: 100%;
    width: 100%;
  }

  .skills-grid .skill-card:nth-last-child(1),
  .skills-grid .skill-card:nth-last-child(2) {
    justify-self: stretch;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    max-width: 100%;
    grid-column: auto !important;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
  }

  .skill-card {
    padding: 2rem 1.5rem;
  }

  .hero-name {
    font-size: 3rem;
  }

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

  .lightbox-close {
    top: -50px;
  }
}
