:root {
  --bg: #0d1117;
  --card: #1a2332;
  --muted: #b0b8c4;
  --accent-a: #4f1ac9;
  --accent-b: #54c2bc;
  --glass: rgba(255,255,255,0.06);
  --shadow: 0 12px 48px rgba(0,0,0,0.5);
  --text: #f7fafc;
}

.color-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff; /* makes it look cleaner */
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.quick-contact {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.quick-contact a {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;

  /* Glassmorphism */
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);

  /* Floating */
  animation: float 4s ease-in-out infinite;
  transition: all 0.4s ease;
}

.quick-contact a:hover {
  transform: scale(1.3) rotate(12deg);
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff;
  box-shadow: 0 0 25px var(--accent-b), 0 0 50px var(--accent-a);
}

.quick-contact a:hover i {
  animation: spin 0.6s linear; /* spin once */
}

/* Floating animation */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* Spin effect */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Full screen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Glass ring loader */
.glass-loader {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 6px solid var(--glass);
  border-top: 6px solid var(--accent-a);
  border-right: 6px solid var(--accent-b);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--accent-a), 0 0 40px var(--accent-b);
  animation: spin 1.5s linear infinite, glow 3s ease-in-out infinite;
}

/* Rotation */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulsing glow */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px var(--accent-a), 0 0 20px var(--accent-b); }
  50%      { box-shadow: 0 0 30px var(--accent-a), 0 0 60px var(--accent-b); }
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Arial;
  background: radial-gradient(circle at 20% 20%, rgba(107,70,193,0.15), transparent 15%),
              radial-gradient(circle at 80% 80%, rgba(56,178,172,0.12), transparent 15%),
              var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.wrap { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
@media (max-width: 300px) { .wrap { padding: 16px 8px; } }
main { min-height: 100vh; padding-top: 80px; }
@media (max-width: 300px) { main { padding-top: 60px; } }
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 12px 16px;
  transition: all 0.3s ease;
}
.navbar.scrolled { background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)); }
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.navbar-logo {
  font-family: Poppins, Inter;
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: transform 0.3s ease;
}
@media (max-width: 300px) { .navbar-logo { font-size: 20px; } }
.navbar-logo:hover { transform: scale(1.05); }
.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
}
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    padding: 80px 24px 24px;
    transition: left 0.4s ease;
    z-index: 998;
    overflow-y: auto;
  }
  .nav-list.show {
    left: 0;
  }
  
}
@media (max-width: 300px) {
  .nav-list { width: 240px; padding: 70px 16px 16px; }
}
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.nav-item { position: relative; width: 100%; }
.nav-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
}
@media (max-width: 300px) { .nav-btn { font-size: 14px; padding: 8px 12px; } }
.nav-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text);
  transform: translateY(-2px);
}
.nav-btn.active {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  box-shadow: 0 4px 12px rgba(56,178,172,0.3);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown[aria-expanded="true"] .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 12px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 100;
  list-style: none;
}
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 8px 12px;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
  }
  .dropdown[aria-expanded="true"] .dropdown-menu {
    display: block;
  }
}
@media (max-width: 300px) { .dropdown-menu { padding: 8px; } }
.dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.dropdown-menu button:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text);
}
.hamburger {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1001;
  display: none;
  padding: 10px;
}
.hamburger:hover { transform: rotate(90deg); }
@media (max-width: 768px) { .hamburger { display: block; } }
@media (max-width: 300px) { .hamburger { font-size: 20px; padding: 8px; } }
/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .hero { grid-template-columns: 1fr; justify-items: center; } }
@media (max-width: 300px) { .hero { gap: 24px; margin-bottom: 32px; } }
.hero-left { animation: fadeInUp 1.2s ease-out; }
.badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(56,178,172,0.3);
  position: relative;
  overflow: hidden;
}
@media (max-width: 300px) { .badge { font-size: 12px; padding: 8px 12px; } }
.badge::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;
}
.badge:hover::before { left: 100%; }
.title {
  font-family: Poppins, Inter;
  font-weight: 700;
  font-size: 60px;
  margin: 16px 0;
  line-height: 1.1;
  letter-spacing: -1.2px;
}
@media (max-width: 768px) { .title { font-size: 44px; } }
@media (max-width: 300px) { .title { font-size: 32px; margin: 12px 0; } }
.title .gradient {
  background: linear-gradient(90deg, var(--accent-a), #ed64a6, var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s infinite alternate;
  background-size: 200% 100%;
}
.typed-text { display: inline-block; min-width: 180px; border-right: 2px solid var(--accent-b); animation: blink 0.75s step-end infinite; }
@media (max-width: 300px) { .typed-text { min-width: 120px; } }
@keyframes blink { 50% { border-color: transparent; } }
.subtitle { color: var(--muted); max-width: 60ch; font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
@media (max-width: 300px) { .subtitle { font-size: 16px; } }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 300px) { .btn { padding: 10px 18px; font-size: 14px; } }
.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(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  box-shadow: 0 6px 20px rgba(56,178,172,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56,178,172,0.4);
}
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.12);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--accent-b);
  transform: translateY(-2px);
}
/* Profile Card */
.profile-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: slideUp 1.2s ease-out;
  position: relative;
  overflow: hidden;
}
@media (max-width: 300px) { .profile-card { padding: 16px; } }
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.profile-card:hover::before { opacity: 0.1; }
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (max-width: 300px) { .avatar { width: 120px; height: 120px; } }
.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(56,178,172,0.3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.small-meta { color: var(--muted); font-size: 15px; text-align: center; }
@media (max-width: 300px) { .small-meta { font-size: 14px; } }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
}
@media (max-width: 300px) { .icon-btn { width: 36px; height: 36px; } }
.icon-btn:hover {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  transform: scale(1.12);
}
/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(56,178,172,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
@media (max-width: 300px) { .floating-cta { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 14px; } }
.floating-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(56,178,172,0.4);
}
/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(56,178,172,0.3);
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
}
@media (max-width: 300px) { .back-to-top { bottom: 16px; left: 16px; padding: 8px; } }
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: scale(1.1); }
/* Sections */
section { margin-top: 64px; padding: 32px; border-radius: 20px; position: relative; overflow: hidden; }
@media (max-width: 300px) { section { margin-top: 48px; padding: 20px; border-radius: 16px; } }
.glass { background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(14px); }
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.glass:hover::before { opacity: 0.05; }
h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; position: relative; }
@media (max-width: 300px) { h3 { font-size: 24px; } }
h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  border-radius: 2px;
}
p.lead { color: var(--muted); font-size: 18px; margin-bottom: 20px; }
@media (max-width: 300px) { p.lead { font-size: 16px; } }
/* Timeline for Education and Experience */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 24px;
}
@media (max-width: 300px) { .timeline { padding-left: 24px; } }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  border-radius: 2px;
}
@media (max-width: 300px) { .timeline::before { left: 10px; width: 2px; } }
.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 24px;
}
@media (max-width: 300px) { .timeline-item { padding-left: 16px; margin-bottom: 20px; } }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-b);
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 6px rgba(56,178,172,0.5);
}
@media (max-width: 300px) { .timeline-item::before { left: -22px; width: 10px; height: 10px; } }
.timeline-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 300px) { .timeline-item h4 { font-size: 16px; } }
.timeline-item p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 300px) { .timeline-item p { font-size: 14px; } }
.timeline-item .meta { font-size: 13px; color: var(--accent-b); margin-bottom: 6px; }
@media (max-width: 300px) { .timeline-item .meta { font-size: 12px; } }
/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 300px) { .skills-grid { grid-template-columns: 1fr; gap: 16px; } }
.skill-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
@media (max-width: 300px) { .skill-card { padding: 16px; } }
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-color: var(--accent-b);
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.skill-card:hover::before { opacity: 0.1; }
.skill-card i { font-size: 24px; color: var(--accent-b); margin-bottom: 12px; }
@media (max-width: 300px) { .skill-card i { font-size: 20px; } }
.skill-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 300px) { .skill-card h4 { font-size: 16px; } }
.skill-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 300px) { .skill-card p { font-size: 14px; } }
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  transition: width 0.5s ease;
}
/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 300px) { .projects-grid { grid-template-columns: 1fr; gap: 16px; } }
.project-card {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}
@media (max-width: 300px) { .project-card { padding: 16px; } }
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.project-card:hover::before { opacity: 0.15; }
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,0.6);
  border-color: var(--accent-b);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.4s ease, filter 0.4s ease;
}
@media (max-width: 300px) { .project-card img { height: 140px; } }
.project-card:hover img { transform: scale(1.08); filter: brightness(1.1); }
.project-content { transition: transform 0.4s ease; }
.project-card:hover .project-content { transform: translateY(-8px); }
.project-card .tag { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
@media (max-width: 300px) { .project-card .tag { font-size: 13px; } }
.project-card:hover .tag { color: var(--accent-b); }
.project-card .p-title { font-size: 20px; font-weight: 700; margin: 12px 0; transition: color 0.3s ease; }
@media (max-width: 300px) { .project-card .p-title { font-size: 18px; } }
.project-card:hover .p-title { color: var(--accent-b); }
.project-card .p-desc { color: var(--muted); font-size: 16px; line-height: 1.6; transition: color 0.3s ease; }
@media (max-width: 300px) { .project-card .p-desc { font-size: 14px; } }
.project-card:hover .p-desc { color: var(--text); }
.p-cta { margin-top: 16px; display: flex; gap: 12px; opacity: 0; transform: translateY(16px); transition: all 0.4s ease; }
.project-card:hover .p-cta { opacity: 1; transform: translateY(0); }
.mini-link {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
@media (max-width: 300px) { .mini-link { font-size: 14px; padding: 6px 12px; } }
.mini-link:hover {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.modal.show { display: flex; }
.modal-content {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: slideUp 0.4s ease-out;
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 300px) { .modal-content { padding: 16px; } }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}
@media (max-width: 300px) { .modal-close { font-size: 18px; } }
.modal-close:hover { color: var(--accent-b); }
.modal img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
@media (max-width: 300px) { .modal img { height: 140px; } }
.modal h3 { font-size: 22px; margin-bottom: 12px; }
@media (max-width: 300px) { .modal h3 { font-size: 20px; } }
.modal p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
@media (max-width: 300px) { .modal p { font-size: 14px; } }
.modal .p-cta { justify-content: center; }
/* Stats */
.stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 300px) { .stats { gap: 16px; } }
.stat {
  flex: 1;
  min-width: 140px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
@media (max-width: 300px) { .stat { min-width: 120px; padding: 16px; } }
.stat:hover { transform: scale(1.05); }
.stat .num { font-size: 28px; font-weight: 800; color: var(--accent-b); }
@media (max-width: 300px) { .stat .num { font-size: 24px; } }
.stat .label { font-size: 15px; color: var(--muted); margin-top: 8px; }
@media (max-width: 300px) { .stat .label { font-size: 14px; } }
/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 300px) { .testimonials-grid { grid-template-columns: 1fr; gap: 16px; } }
.testimonial {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
@media (max-width: 300px) { .testimonial { padding: 16px; } }
.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.testimonial:hover::before { opacity: 0.1; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial-text { font-size: 16px; color: var(--muted); line-height: 1.7; }
@media (max-width: 300px) { .testimonial-text { font-size: 14px; } }
.testimonial-author { margin-top: 12px; font-weight: 600; font-size: 15px; }
@media (max-width: 300px) { .testimonial-author { font-size: 14px; } }
.testimonial-role { color: var(--muted); font-size: 13px; }
@media (max-width: 300px) { .testimonial-role { font-size: 12px; } }
/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 300px) { .contact-form { max-width: 100%; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { form .row { grid-template-columns: 1fr; } }
input, textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}
@media (max-width: 300px) { input, textarea { padding: 12px; font-size: 14px; } }
input:focus, textarea:focus {
  border-color: var(--accent-b);
  box-shadow: 0 0 8px rgba(56,178,172,0.3);
}
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) {
  border-color: #f56565;
}
textarea { min-height: 160px; resize: vertical; }
@media (max-width: 300px) { textarea { min-height: 120px; } }
.contact-cta { margin-top: 16px; display: flex; gap: 16px; align-items: center; }
@media (max-width: 300px) { .contact-cta { flex-direction: column; align-items: flex-start; } }
/* Newsletter */
.newsletter {
  margin-top: 32px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
@media (max-width: 300px) { .newsletter { padding: 16px; } }
.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.newsletter:hover::before { opacity: 0.1; }
.newsletter h4 { font-size: 20px; margin-bottom: 10px; }
@media (max-width: 300px) { .newsletter h4 { font-size: 18px; } }
.newsletter p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
@media (max-width: 300px) { .newsletter p { font-size: 14px; } }
.newsletter form { display: flex; gap: 10px; }
@media (max-width: 300px) { .newsletter form { flex-direction: column; } }
.newsletter input { flex: 1; }
.newsletter button { padding: 14px 24px; }
@media (max-width: 300px) { .newsletter button { padding: 10px 18px; } }
/* Footer */
.footer {
  margin: 80px 0 40px;
  padding: 40px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 300px) { .footer { margin: 64px 0 32px; padding: 32px 8px; } }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto 32px;
}
@media (max-width: 300px) { .footer-grid { gap: 16px; } }
.footer-section h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
@media (max-width: 300px) { .footer-section h4 { font-size: 16px; } }
.footer-section p { font-size: 15px; color: var(--muted); line-height:30px; }
@media (max-width: 300px) { .footer-section p { font-size: 14px; } }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 300px) { .footer-bottom { font-size: 14px; } }
.footer-bottom a { margin-left: 16px; }
/* Floating Shapes */
.float-shape {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 14s infinite ease-in-out;
}
.shape-a { left: 5%; top: 10%; width: 400px; height: 250px; background: linear-gradient(90deg, var(--accent-a), #ed64a6); border-radius: 50%; }
.shape-b { right: -5%; bottom: -10%; width: 500px; height: 350px; background: linear-gradient(90deg, var(--accent-b), var(--accent-a)); border-radius: 40%; }
.shape-c { left: 50%; top: 50%; width: 350px; height: 200px; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); border-radius: 50%; animation-duration: 16s; }
@media (max-width: 300px) {
  .shape-a { width: 200px; height: 150px; }
  .shape-b { width: 250px; height: 200px; }
  .shape-c { width: 180px; height: 120px; }
}
/* Animations */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(.2,.8,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.show-focus *:focus { outline: 2px solid var(--accent-b); outline-offset: 2px; }