/* ============================================
   Sarthak Subhash Palav — Portfolio Styles
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --text-primary: #f0f0f5;
  --text-secondary: #9898a8;
  --text-muted: #6b6b7b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: opacity 0.3s;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.logo-text {
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: block;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-cta {
  background: var(--gradient-1);
  color: white !important;
  padding: 8px 20px;
}

.nav-link-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(100%, 300px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding: 88px 20px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 4px;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-link-cta {
    margin-top: 8px;
    justify-content: center;
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  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;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -10%;
  right: -10%;
  opacity: 0.15;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -5%;
  left: -10%;
  opacity: 0.1;
}

.hero-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-text {
    text-align: left;
  }
}

.hero-photo {
  order: -1;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-photo {
    order: 1;
    justify-content: flex-end;
  }
}

.hero-photo-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid rgba(99, 102, 241, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-photo-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  margin-bottom: 20px;
}

.hero-greeting {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  font-style: italic;
}

@media (min-width: 900px) {
  .hero-tagline {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

@media (min-width: 900px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
  .hero-stats {
    justify-content: flex-start;
    max-width: 100%;
  }
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.about-image-frame {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.about-avatar {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-frame-accent {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent);
  border-radius: calc(var(--radius-xl) + 12px);
  opacity: 0.3;
  z-index: 0;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.highlight-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Skills Section
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.skill-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-types {
  text-align: center;
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.project-types-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.project-tag {
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  transition: var(--transition);
}

.project-tag:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* ============================================
   Services Section
   ============================================ */

.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.15);
  margin-bottom: 12px;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Company Section
   ============================================ */

.company-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .company-card {
    grid-template-columns: 1.5fr 1fr;
    padding: 64px;
  }
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.company-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.company-tagline {
  font-size: 1.1rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 32px;
}

.company-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.company-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.company-desc {
  color: var(--text-secondary);
  line-height: 1.8;
}

.company-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Education Section
   ============================================ */

.education {
  background: var(--bg-secondary);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .timeline-item {
    padding-left: 0;
    width: 50%;
  }

  .timeline-item:nth-child(odd) {
    margin-left: auto;
    padding-left: 48px;
  }

  .timeline-item:nth-child(even) {
    padding-right: 48px;
    text-align: right;
  }
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid var(--bg-secondary);
  border-radius: 50%;
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-institution {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ============================================
   Community Section
   ============================================ */

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.community-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1);
}

.community-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
  color: var(--gold-light);
}

.community-icon svg {
  width: 28px;
  height: 28px;
}

.community-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.community-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.35);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item a:hover {
  color: var(--gold-light);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    padding: 64px;
  }
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-link {
  color: #25d366;
  transition: var(--transition);
}

.contact-link:hover {
  color: #128c7e;
}

.contact-item-icon-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.contact-item-icon-whatsapp svg {
  width: 22px;
  height: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 20px;
}

.form-note.success {
  color: #22c55e;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-company-logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

@media (min-width: 768px) {
  .footer-company-logo {
    margin: 0 0 16px;
  }
}

.footer-brand p {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-brand small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tagline {
  margin-top: 8px;
  font-style: italic;
  color: var(--text-secondary) !important;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveal children */
.skills-grid .reveal:nth-child(1) { transition-delay: 0s; }
.skills-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.skills-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.skills-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.skills-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.skills-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.skills-grid .reveal:nth-child(7) { transition-delay: 0.3s; }

.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.35s; }
.services-grid .reveal:nth-child(9) { transition-delay: 0.4s; }

.community-grid .reveal:nth-child(1) { transition-delay: 0s; }
.community-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.community-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.community-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   Mobile Redesign
   ============================================ */

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    padding: 0 16px;
  }

  .header {
    padding: 12px 0;
  }

  .header.scrolled {
    padding: 10px 0;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .logo-initials {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .logo-text {
    display: block;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 88px 0 48px;
    align-items: flex-start;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-photo-frame {
    width: min(100%, 240px);
    border-width: 2px;
  }

  .hero-badge {
    margin-bottom: 20px;
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .hero-title {
    margin-bottom: 14px;
  }

  .hero-greeting {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .hero-name {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.15;
  }

  .hero-role {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 12px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
  }

  .stat-number {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.6rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  .scroll-indicator {
    display: none;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-tag {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  }

  /* About */
  .about-grid {
    gap: 36px;
  }

  .about-image-frame {
    max-width: 260px;
  }

  .about-avatar {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1;
  }

  .about-frame-accent {
    inset: -8px;
  }

  .about-lead {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .about-content p {
    font-size: 0.925rem;
    margin-bottom: 24px;
  }

  .about-highlights {
    gap: 12px;
  }

  .highlight-item {
    padding: 16px;
    gap: 12px;
  }

  .highlight-item:hover {
    transform: none;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
  }

  .highlight-item h4 {
    font-size: 0.95rem;
  }

  .highlight-item p {
    font-size: 0.8rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .skill-card {
    padding: 20px 14px;
  }

  .skill-card:hover {
    transform: none;
  }

  .skill-icon {
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .skill-card h3 {
    font-size: 0.95rem;
  }

  .skill-card p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .project-types {
    padding: 24px 16px;
  }

  .project-types-title {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .project-tags {
    gap: 8px;
  }

  .project-tag {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 22px 18px;
  }

  .service-card:hover {
    transform: none;
  }

  .service-number {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* Company */
  .company-card {
    padding: 24px 18px;
    gap: 28px;
    border-radius: var(--radius-lg);
  }

  .company-name {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }

  .company-tagline {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .company-details {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .detail-value {
    font-size: 0.85rem;
  }

  .company-desc {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .company-logo {
    max-width: 100%;
    padding: 20px 24px;
  }

  /* Education */
  .timeline-item {
    padding-left: 48px;
    padding-bottom: 32px;
  }

  .timeline-marker {
    left: 10px;
    width: 16px;
    height: 16px;
  }

  .timeline-content {
    padding: 18px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-institution {
    font-size: 0.875rem;
  }

  /* Community */
  .community-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .community-card {
    padding: 24px 20px;
    text-align: left;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .community-card:hover {
    transform: none;
  }

  .community-icon {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
  }

  .community-icon svg {
    width: 24px;
    height: 24px;
  }

  .community-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .community-card p {
    font-size: 0.85rem;
  }

  /* Contact */
  .contact-wrapper {
    padding: 24px 18px;
    gap: 32px;
    border-radius: var(--radius-lg);
  }

  .contact-info .section-title {
    text-align: center;
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }

  .contact-info > p {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .contact-details {
    gap: 16px;
  }

  .contact-item {
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .btn {
    min-height: 48px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .footer-content {
    gap: 24px;
  }

  .footer-company-logo {
    width: 180px;
    padding: 10px 14px;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-brand small {
    font-size: 0.75rem;
    line-height: 1.5;
    display: block;
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-links {
    gap: 16px 20px;
  }

  .footer-bottom {
    padding-top: 24px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-tagline {
    font-size: 0.78rem !important;
    padding: 0 8px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-item p {
    padding: 0 18px 16px;
    font-size: 0.875rem;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
  }

  .stat-number {
    font-size: 1.1rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .stat-label {
    font-size: 0.7rem;
    text-align: right;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .company-details {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 1.65rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .skill-card:hover,
  .service-card:hover,
  .community-card:hover,
  .highlight-item:hover,
  .timeline-content:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }
}
