/* ===== DESIGN TOKENS ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* Core Palette - Professional Navy & Slate */
  --bg-primary: #0f172a;
  --bg-secondary: #020617;
  --bg-card: rgba(30, 41, 59, 0.4);
  --bg-card-border: rgba(148, 163, 184, 0.1);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  
  --accent-primary: #6366f1; /* Professional Indigo */
  --accent-secondary: #0ea5e9; /* Sky Blue */
  --accent-success: #10b981; /* Emerald Green */
  --accent-warning: #f59e0b; /* Amber */
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-success-soft: rgba(16, 185, 129, 0.08);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --gradient-blue: linear-gradient(135deg, #6366f1, #4f46e5);
  --gradient-vibrant: linear-gradient(135deg, #6366f1, #0ea5e9);
  
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-border: #e2e8f0;
  --bg-card-hover: #ffffff;
  
  --accent-primary: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.05);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: none;
}

body.light-theme .header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e2e8f0;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  background: #f1f5f9;
  color: #0f172a;
}

body.light-theme .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

body.light-theme .project-card,
body.light-theme .skill-card,
body.light-theme .stat-card,
body.light-theme .testimonial-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body.light-theme .form-tabs {
  background: #f1f5f9;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
input,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 16px 0 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 10px;
  margin: 24px auto 0;
}

/* ===== HEADER/NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.logo-accent {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-soft);
  font-weight: 700;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-links a.active::after {
  width: 12px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient-vibrant);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}
.btn-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  filter: brightness(1.1);
}

.services-footer {
  text-align: center;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 1rem;
}
.tech-highlight {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-primary);
}
.btn-theme {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}
.btn-theme:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}
.mobile-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-blue-light);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--accent-primary);
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}
.hero-subtitle {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-stat .icons {
  display: flex;
  gap: 4px;
}
.hero-stat .icon {
  font-size: 1.1rem;
  color: var(--accent-primary);
}
.hero-stat .value {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}
.hero-stat .label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-stat .separator {
  color: var(--text-muted);
  opacity: 0.5;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}
.freelance-badge {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.freelance-badge i {
  color: var(--accent-primary);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Hero Image Premium Styling */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px; /* Increased from 480px */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Background Decorative Glow (Enhanced for Cutout) */
.hero-image-wrapper::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 65%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.1); opacity: 0.9; }
}

/* Decorative Ring (Wider for Cutout) */
.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 50%; /* Circle looks better for cutout */
  z-index: 0;
  pointer-events: none;
  animation: rotateDashed 20s linear infinite;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-profile-img {
  width: 100%;
  position: relative;
  z-index: 2;
  object-fit: contain; /* Show full silhouette */
  object-position: bottom center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
}

.hero-profile-img.cutout {
  transform: scale(1.3); /* Significantly larger to look 'Full' */
  border: none;
  box-shadow: none;
  margin-top: -20px; /* Shift up slightly for better framing */
}

.hero-image-wrapper:hover .hero-profile-img.cutout {
  transform: translateY(-10px) scale(1.4);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(99, 102, 241, 0.3));
}

.hero-profile-img.cutout {
  /* Use this for transparent images if needed */
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.hero-image-wrapper:hover .hero-profile-img {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Mobile Layout Utilities */
/* Mobile Layout Utilities */
.mobile-intro-group, .mobile-intro-text {
  display: contents;
}
.mobile-intro-avatar {
  display: none;
}


/* ===== STATS BAR ===== */
.stats-bar {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-card-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.experience-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(10px);
}
.exp-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-text .years {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}
.exp-text .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text .highlight {
  color: var(--accent-blue-light);
  font-weight: 600;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  justify-content: center;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.value-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-success-soft);
  color: var(--accent-success);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.value-card:nth-child(even) .value-icon {
  background: var(--accent-soft);
  color: var(--accent-primary);
}
.value-card:nth-child(3n) .value-icon {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-secondary);
}
.value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.value-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-content: center;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-card:nth-child(2) .service-icon {
  background: var(--accent-success-soft);
  color: var(--accent-success);
}
.service-card:nth-child(3) .service-icon {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-secondary);
}
.service-card:nth-child(4) .service-icon {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-warning);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-features li::before {
  content: "•";
  color: var(--accent-primary);
  font-weight: 700;
}

/* ===== SKILLS ===== */
.skills {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.skill-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-8px);
}
.skill-card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.skill-card:nth-child(2) .skill-card-icon { color: var(--accent-secondary); background: rgba(14, 165, 233, 0.08); }
.skill-card:nth-child(3) .skill-card-icon { color: var(--accent-success); background: var(--accent-success-soft); }
.skill-card:nth-child(4) .skill-card-icon { color: var(--accent-warning); background: rgba(245, 158, 11, 0.08); }
.skill-card:nth-child(5) .skill-card-icon { color: #818cf8; background: rgba(129, 140, 248, 0.08); }
.skill-card:nth-child(6) .skill-card-icon { color: #f472b6; background: rgba(244, 114, 182, 0.08); }
.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.skill-item {
  margin-bottom: 16px;
}
.skill-item:last-child {
  margin-bottom: 0;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.skill-info span:last-child {
  color: var(--text-muted);
}
.skill-bar {
  height: 6px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-primary);
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
  width: 0;
}
.skill-card:nth-child(2) .skill-fill { background: var(--accent-secondary); }
.skill-card:nth-child(3) .skill-fill { background: var(--accent-success); }
.skill-card:nth-child(4) .skill-fill { background: var(--accent-warning); }

/* ===== PROJECTS ===== */
.projects {
  padding: 100px 0;
}
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--bg-card-border);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.project-tab {
  flex: 1;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.project-tab.active {
  background: var(--accent-primary);
  color: white;
}
.project-tab:hover:not(.active) {
  color: var(--text-primary);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.project-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.project-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.project-badge i.fa-store, 
.project-badge i.fa-google-play {
  color: var(--accent-success);
}
.project-content {
  padding: 24px;
}
.project-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.project-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tech-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.1);
}
.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.btn-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-store:hover {
  border-color: var(--accent-blue);
}
.project-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.project-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.project-links a:hover {
  color: var(--accent-blue-light);
}

/* ===== TUTORIALS ===== */
.tutorials {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.tutorial-card:hover {
  transform: translateY(-4px);
}
.tutorial-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.tutorial-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
}
.tutorial-info {
  padding: 16px;
}
.tutorial-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.tutorial-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tutorial-views .yt-icon {
  color: #ff0000;
}
.btn-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition);
}
.btn-view-all:hover {
  border-color: var(--accent-blue);
}

/* ===== TIMELINE ===== */
.timeline-section {
  padding: 100px 0;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-primary);
  opacity: 0.3;
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-icon {
  position: absolute;
  left: -48px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-primary);
  background: var(--accent-primary);
  color: white;
}
.timeline-item:nth-child(even) .timeline-icon { background: var(--accent-secondary); }
.timeline-item:nth-child(3n) .timeline-icon { background: var(--accent-success); }
.timeline-item:nth-child(4n) .timeline-icon { background: var(--accent-warning); }
.timeline-item:nth-child(5n) .timeline-icon { background: #818cf8; }
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.timeline-year {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: var(--accent-soft);
  color: var(--accent-primary);
}
.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--accent-yellow);
  font-size: 0.9rem;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}
.testimonial-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: block;
  transition: var(--transition);
}
.read-more-btn:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
}
.contact-detail-label {
  font-size: 0.85rem;
  color: var(--accent-blue-light);
  font-weight: 500;
}
.contact-detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}
.social-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  background: var(--accent-soft);
}
.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--bg-card-border);
}
.form-tab {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-tab.active {
  background: var(--accent-primary);
  color: white;
}
.form-group {
  margin-bottom: 20px;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: tabFadeIn 0.4s ease-out;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-submit:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

/* Discovery Call Box */
.schedule-box {
  text-align: center;
  padding: 40px 24px;
}
.schedule-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
}
.schedule-box h4 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.schedule-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}
.schedule-box .response-time {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--bg-card-border);
  background: var(--bg-primary);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--text-primary);
}

.timeline-cta {
  text-align: center; 
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-cta-text {
  font-size: 1.2rem; 
  color: var(--text-muted); 
  margin-bottom: 2rem;
  max-width: 600px;
}
.timeline-cta .btn-primary {
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content {
    display: block;
    text-align: left;
  }
  .mobile-intro-group {
    display: flex;
    visibility: visible;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    /* Soft glowing background for the block */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.03);
  }
  .mobile-intro-avatar {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
  }
  .mobile-intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .mobile-intro-text .hero-badge {
    margin-bottom: 10px;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .mobile-intro-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    line-height: 1.15;
  }
  .hero-tagline {
    margin: 0 0 28px 0;
    font-size: 1.1rem;
  }
  .hero-stats {
    justify-content: flex-start;
    padding-top: 10px;
  }
  .hero-buttons {
    justify-content: flex-start;
  }
  .hero-image-wrapper {
    display: none; /* Hide large image on mobile */
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid,
  .skills-grid,
  .tutorials-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    animation: navSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .skills-grid,
  .tutorials-grid,
  .testimonials-grid,
  .projects-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-card);
  animation: modalFadeIn 0.4s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -20px;
  margin-right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}
.case-study-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-study-section {
  margin-bottom: 32px;
}
.case-study-section h4 {
  color: var(--accent-blue-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}
.case-study-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.case-study-tag {
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-blue-light);
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--bg-card-border);
  border-bottom-color: var(--accent-blue);
  border-radius: 50%;
  margin: 40px auto;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


