/* ----------------------------------------------------
   DESIGN SYSTEM & CUSTOM VARIABLES
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-dark: hsl(230, 25%, 7%);
  --bg-card: hsla(230, 25%, 11%, 0.65);
  --bg-card-hover: hsla(230, 25%, 15%, 0.8);
  --border-color: hsla(230, 25%, 25%, 0.25);
  --border-color-hover: hsla(230, 25%, 35%, 0.4);
  --text-primary: hsl(0, 0%, 96%);
  --text-secondary: hsl(230, 15%, 70%);
  --text-muted: hsl(230, 10%, 55%);
  
  /* Dual Core Theme Accents */
  /* Rudra (Flutter/Tech - Cyan/Blue) */
  --accent-dev: hsl(192, 100%, 52%);
  --accent-dev-glow: hsla(192, 100%, 52%, 0.25);
  --accent-dev-gradient: linear-gradient(135deg, hsl(185, 100%, 50%) 0%, hsl(215, 100%, 55%) 100%);
  
  /* Marketing (Digital Marketing - Purple/Magenta) */
  --accent-marketing: hsl(282, 100%, 65%);
  --accent-marketing-glow: hsla(282, 100%, 65%, 0.25);
  --accent-marketing-gradient: linear-gradient(135deg, hsl(275, 100%, 65%) 0%, hsl(325, 100%, 60%) 100%);
  
  /* Joint Blend */
  --accent-combined-gradient: linear-gradient(135deg, hsl(185, 100%, 50%) 0%, hsl(282, 100%, 65%) 100%);

  /* System Settings */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

/* Light Mode Overrides */
.light-mode {
  --bg-dark: hsl(220, 30%, 97%);
  --bg-card: hsla(220, 30%, 100%, 0.85);
  --bg-card-hover: hsla(220, 30%, 98%, 0.95);
  --border-color: hsla(220, 20%, 82%, 0.6);
  --border-color-hover: hsla(220, 20%, 65%, 0.7);
  --text-primary: hsl(228, 30%, 10%);
  --text-secondary: hsl(228, 18%, 30%);
  --text-muted: hsl(228, 12%, 50%);
}

/* ---- Light Mode: Ambient Glow ---- */
.light-mode .ambient-glow {
  opacity: 0.1;
  filter: blur(180px);
  mix-blend-mode: multiply;
}

/* ---- Light Mode: Navigation ---- */
.light-mode .header-nav.scrolled {
  background: hsla(220, 30%, 99%, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(100, 120, 180, 0.08);
}
.light-mode .nav-link { color: hsl(228, 18%, 38%); }
.light-mode .nav-link:hover, .light-mode .nav-link.active { color: hsl(228, 30%, 10%); }
.light-mode .nav-menu {
  background: hsla(220, 30%, 99%, 0.98);
  border-left: 1px solid var(--border-color);
}
.light-mode .mobile-toggle { color: hsl(228, 30%, 10%); }

/* ---- Light Mode: Glass Cards ---- */
.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid hsla(220, 20%, 82%, 0.65);
  box-shadow: 0 2px 16px rgba(100, 120, 180, 0.07);
  backdrop-filter: none;
}
.light-mode .glass-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: hsla(220, 20%, 65%, 0.5);
  box-shadow: 0 12px 40px rgba(100, 120, 180, 0.12);
}

/* ---- Light Mode: Hero Panels ---- */
.light-mode .split-card {
  box-shadow: 0 20px 60px rgba(100, 120, 180, 0.15);
  border: 1px solid hsla(220, 20%, 82%, 0.5);
}
.light-mode .split-dev {
  background: linear-gradient(160deg, hsl(195, 60%, 95%) 0%, hsl(210, 70%, 92%) 100%);
}
.light-mode .split-marketing {
  background: linear-gradient(160deg, hsl(280, 50%, 95%) 0%, hsl(310, 60%, 93%) 100%);
}
.light-mode .panel-subtitle { color: hsl(228, 18%, 45%); }
.light-mode .panel-desc     { color: hsl(228, 18%, 35%); }
.light-mode .panel-footer   { color: hsl(228, 18%, 40%); border-top: 1px solid hsla(220, 20%, 78%, 0.5); }
.light-mode .hero-subtitle  { color: hsl(228, 18%, 35%); }
.light-mode .joint-summary  { border-top: 1px solid hsla(220, 20%, 78%, 0.6); }
.light-mode .summary-label  { color: hsl(228, 12%, 50%); }

/* ---- Light Mode: Badges ---- */
.light-mode .badge-dev {
  background: hsla(192, 100%, 52%, 0.12);
  border: 1px solid hsla(192, 100%, 52%, 0.3);
}
.light-mode .badge-marketing {
  background: hsla(282, 100%, 65%, 0.1);
  border: 1px solid hsla(282, 100%, 65%, 0.25);
}
.light-mode .badge-combined {
  background: hsla(210, 80%, 55%, 0.1);
  color: hsl(215, 80%, 38%);
  border: 1px solid hsla(210, 80%, 55%, 0.25);
}

/* ---- Light Mode: Buttons ---- */
.light-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(100, 120, 180, 0.08);
}
.light-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(100, 120, 180, 0.14);
}

/* ---- Light Mode: Code Block ---- */
.light-mode .code-display-card {
  background: hsl(220, 25%, 96%);
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.03);
}
.light-mode .code-comment  { color: #64748b; }
.light-mode .code-keyword  { color: #0c4a6e; font-weight: 700; }
.light-mode .code-string   { color: #0369a1; }
.light-mode .code-function { color: #6d28d9; }

/* ---- Light Mode: Portfolio ---- */
.light-mode .filter-btn { color: hsl(228, 18%, 40%); }
.light-mode .filter-btn:hover, .light-mode .filter-btn.active {
  background: rgba(255,255,255,0.95);
  color: hsl(228, 30%, 10%);
  box-shadow: 0 2px 10px rgba(100,120,180,0.1);
}
.light-mode .portfolio-tag-dev {
  background: hsla(192, 100%, 52%, 0.12);
  color: hsl(192, 90%, 28%);
  border: 1px solid hsla(192, 100%, 52%, 0.25);
}
.light-mode .portfolio-tag-mkt {
  background: hsla(282, 100%, 65%, 0.1);
  color: hsl(282, 70%, 38%);
  border: 1px solid hsla(282, 100%, 65%, 0.2);
}
.light-mode .portfolio-link-dev { color: hsl(192, 90%, 30%); }
.light-mode .portfolio-link-mkt { color: hsl(282, 70%, 42%); }

/* ---- Light Mode: Forms ---- */
.light-mode .form-input,
.light-mode .form-select,
.light-mode .form-textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid hsla(220, 20%, 78%, 0.8);
  color: hsl(228, 30%, 10%);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}
.light-mode .form-input::placeholder,
.light-mode .form-textarea::placeholder { color: hsl(228, 12%, 58%); }
.light-mode .form-input:focus,
.light-mode .form-select:focus,
.light-mode .form-textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--accent-dev);
  box-shadow: 0 0 0 3px hsla(192, 100%, 52%, 0.12);
}
.light-mode .form-select option { background: #fff; color: hsl(228, 30%, 10%); }
.light-mode .form-group label   { color: hsl(228, 18%, 30%); }

/* ---- Light Mode: Social ---- */
.light-mode .social-btn {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
}

/* ---- Light Mode: Footer ---- */
.light-mode .footer {
  background: hsl(220, 30%, 93%);
  border-top: 1px solid var(--border-color);
}
.light-mode .footer-link         { color: hsl(228, 18%, 40%); }
.light-mode .footer-link:hover   { color: hsl(228, 30%, 10%); }
.light-mode .footer-copyright    { color: hsl(228, 12%, 52%); }

/* ---- Light Mode: Subpage Hero ---- */
.light-mode .subpage-hero {
  background: linear-gradient(180deg, hsl(220,35%,94%) 0%, hsl(220,30%,97%) 100%) !important;
  border-bottom: 1px solid var(--border-color);
}

/* ---- Light Mode: Section BG overrides (inline style elements) ---- */
.light-mode section[style*="background: hsla(230, 25%, 9%"],
.light-mode section[style*="background: hsla(230, 25%, 5%"],
.light-mode section[style*="background: radial-gradient"] {
  background: transparent !important;
}

/* ----------------------------------------------------
   CSS RESET & BASE STYLES
---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--border-color) var(--bg-dark);
  scrollbar-width: thin;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* Ambient glow blobs */
.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: var(--radius-full);
  filter: blur(150px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.glow-dev {
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-dev) 0%, transparent 70%);
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.glow-marketing {
  top: 50%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-marketing) 0%, transparent 70%);
  animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

.glow-combined {
  bottom: 5%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, hsl(230, 95%, 48%) 0%, transparent 70%);
  opacity: 0.2;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.1); }
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------------------------------------------
   REUSABLE UTILITIES & COMPONENTS
---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6.5rem 0;
}

.text-gradient-dev {
  background: var(--accent-dev-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-marketing {
  background: var(--accent-marketing-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-combined {
  background: var(--accent-combined-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 150%;
}

.btn-primary-dev {
  background: var(--accent-dev-gradient);
  color: #0b111e;
  box-shadow: 0 4px 20px hsla(192, 95%, 48%, 0.35);
}

.btn-primary-dev:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsla(192, 95%, 48%, 0.5);
}

.btn-primary-marketing {
  background: var(--accent-marketing-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px hsla(282, 90%, 58%, 0.35);
}

.btn-primary-marketing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsla(282, 90%, 58%, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.badge-dev {
  background: hsla(192, 95%, 48%, 0.1);
  color: var(--accent-dev);
  border: 1px solid hsla(192, 95%, 48%, 0.2);
}

.badge-marketing {
  background: hsla(282, 90%, 58%, 0.1);
  color: var(--accent-marketing);
  border: 1px solid hsla(282, 90%, 58%, 0.2);
}

.badge-combined {
  background: hsla(230, 95%, 48%, 0.1);
  color: hsl(210, 100%, 75%);
  border: 1px solid hsla(230, 95%, 48%, 0.2);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4.5rem;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

/* ----------------------------------------------------
   NAVIGATION BAR
---------------------------------------------------- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.25rem 0;
}

.header-nav.scrolled {
  padding: 0.75rem 0;
  background: hsla(230, 25%, 7%, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-combined-gradient);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-link-dev:hover::after,
.nav-link-dev.active::after {
  background: var(--accent-dev-gradient);
}

.nav-link-marketing:hover::after,
.nav-link-marketing.active::after {
  background: var(--accent-marketing-gradient);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1001;
}

/* Burger Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  position: relative;
  z-index: 1001;
}

/* ----------------------------------------------------
   HERO SECTIONS (HOME & SUBPAGES)
---------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.joint-summary {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Visual Split Interactive Panel */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}

.split-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.split-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  transition: var(--transition-smooth);
}

.split-dev {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.9) 0%, rgba(13, 27, 42, 0.95) 100%);
}

.split-dev::before {
  background: radial-gradient(circle at center, var(--accent-dev) 0%, transparent 80%);
}

.split-marketing {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.9) 0%, rgba(28, 13, 33, 0.95) 100%);
}

.split-marketing::before {
  background: radial-gradient(circle at center, var(--accent-marketing) 0%, transparent 80%);
}

.split-panel:hover {
  flex-grow: 1.15;
}

.split-panel:hover::before {
  opacity: 0.35;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.split-dev .panel-icon {
  color: var(--accent-dev);
  box-shadow: 0 0 15px hsla(192, 95%, 48%, 0.15);
}

.split-marketing .panel-icon {
  color: var(--accent-marketing);
  box-shadow: 0 0 15px hsla(282, 90%, 58%, 0.15);
}

.panel-body {
  margin: auto 0;
}

.panel-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.panel-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.split-dev .panel-footer { color: var(--accent-dev); }
.split-marketing .panel-footer { color: var(--accent-marketing); }

.panel-footer i {
  transition: var(--transition-fast);
}

.split-panel:hover .panel-footer i {
  transform: translateX(5px);
}

/* Subpage Specific Hero Banner */
.subpage-hero {
  padding: 10rem 0 5rem;
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.6) 0%, var(--bg-dark) 100%);
}

.subpage-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.subpage-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------
   DEVELOPING PAGE - RUDRA PATEL
---------------------------------------------------- */
.dev-specialty {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.skills-wrapper {
  margin-top: 2rem;
}

.skills-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tag:hover {
  background: hsla(192, 95%, 48%, 0.06);
  border-color: var(--accent-dev);
  color: var(--text-primary);
  transform: scale(1.05);
}

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-dev-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: hsla(192, 95%, 48%, 0.06);
  border: 1px solid hsla(192, 95%, 48%, 0.15);
  color: var(--accent-dev);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Feature deep dive block layout */
.feature-dive-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.feature-dive-grid.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.feature-dive-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-dive-content ul {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-dive-content li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.feature-dive-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dev);
  font-weight: 800;
}

/* Analytics Code block styles */
.code-display-card {
  padding: 1.5rem;
  background: #090e17;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a9b7c6;
  overflow-x: auto;
}

.code-keyword { color: #cc7832; }
.code-string { color: #6a8759; }
.code-function { color: #ffc66d; }
.code-comment { color: #808080; }

/* ----------------------------------------------------
   MARKETING PAGE - Marketing PATEL
---------------------------------------------------- */
.mkt-specialty {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.skill-tag-marketing:hover {
  background: hsla(282, 90%, 58%, 0.06);
  border-color: var(--accent-marketing);
  color: var(--text-primary);
  transform: scale(1.05);
}

.mkt-service-card::after {
  background: var(--accent-marketing-gradient);
}

.mkt-service-icon {
  background: hsla(282, 90%, 58%, 0.06);
  border: 1px solid hsla(282, 90%, 58%, 0.15);
  color: var(--accent-marketing);
}

/* Interactive Campaign Performance Visual */
.performance-infographic {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.performance-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.performance-info {
  display: flex;
  flex-direction: column;
}

.performance-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.performance-stat {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-marketing);
}

.performance-chart {
  width: 100px;
  height: 50px;
  position: relative;
}

/* Simple CSS animated bar charts */
.chart-bar-container {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 6px;
  justify-content: flex-end;
}

.chart-bar {
  width: 14px;
  background: var(--accent-marketing-gradient);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: bottom;
  opacity: 0.8;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Ads platform comparison cards */
.ads-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.ads-platform-card {
  height: 100%;
}

.ads-platform-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.ads-platform-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.meta-accent { color: #1877f2; border: 1px solid rgba(24,119,242,0.3); }
.google-accent { color: #ea4335; border: 1px solid rgba(234,67,53,0.3); }
.tiktok-accent { color: #ff0050; border: 1px solid rgba(255,0,80,0.3); }

/* ----------------------------------------------------
   PORTFOLIO SECTION
---------------------------------------------------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  transition: var(--transition-smooth);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.portfolio-img {
  width: 100%;
  height: 220px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.06);
}

.portfolio-meta {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.portfolio-tag-dev {
  background: hsla(192, 95%, 48%, 0.1);
  color: var(--accent-dev);
  border: 1px solid hsla(192, 95%, 48%, 0.2);
}

.portfolio-tag-mkt {
  background: hsla(282, 90%, 58%, 0.1);
  color: var(--accent-marketing);
  border: 1px solid hsla(282, 90%, 58%, 0.2);
}

.portfolio-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.portfolio-card:hover h3 {
  color: var(--accent-dev);
}

.portfolio-card.mkt-card:hover h3 {
  color: var(--accent-marketing);
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  align-self: flex-start;
  transition: var(--transition-fast);
}

.portfolio-link i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.portfolio-link:hover i {
  transform: translateX(4px);
}

.portfolio-link-dev:hover { color: var(--accent-dev); }
.portfolio-link-mkt:hover { color: var(--accent-marketing); }

/* ----------------------------------------------------
   CONTACT SECTION
---------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.contact-method-details h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-method-details p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-profiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.social-profiles-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.social-owners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.owner-socials h5 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
}

.owner-dev .social-btn:hover {
  background: hsla(192, 95%, 48%, 0.1);
  border-color: var(--accent-dev);
  box-shadow: 0 0 10px hsla(192, 95%, 48%, 0.2);
}

.owner-marketing .social-btn:hover {
  background: hsla(282, 90%, 58%, 0.1);
  border-color: var(--accent-marketing);
  box-shadow: 0 0 10px hsla(282, 90%, 58%, 0.2);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
}

/* Custom interactive form styling */
.form-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  field-sizing: content; /* Modern auto-size text-areas */
}

/* Validation styles after user interaction */
.form-input:user-invalid, .form-textarea:user-invalid {
  border-color: hsl(0, 85%, 60%);
  background: hsla(0, 85%, 60%, 0.02);
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  background: hsla(230, 25%, 5%, 0.5);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ====================================================
   RESPONSIVE DESIGN — COMPLETE MOBILE OVERHAUL
   ==================================================== */

/* ---------- TABLET (max 1024px) ---------- */
@media (max-width: 1024px) {

  /* Base font & spacing */
  :root { font-size: 15px; }

  .section-padding { padding: 4rem 0; }

  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 2rem; }

  /* Hero */
  h1 { font-size: 3rem; }

  .hero { padding-top: 90px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content h1 { font-size: 3rem; }

  .hero-buttons { justify-content: center; }

  .joint-summary {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-visual { height: 420px; }

  /* Sub-page hero */
  .subpage-hero { padding: 8rem 0 3.5rem; }
  .subpage-hero h1 { font-size: 2.2rem; }
  .subpage-hero p { font-size: 1rem; }

  /* Page-specific grids */
  .dev-specialty,
  .mkt-specialty,
  .feature-dive-grid,
  .feature-dive-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mkt-specialty .performance-infographic { order: 2; }
  .feature-dive-grid.reverse .code-display-card { order: 2; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Navigation — drawer */
  .mobile-toggle { display: block; }
  .nav-cta { display: none; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: hsla(230, 25%, 7%, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.active { right: 0; }

  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    display: block;
  }

  .light-mode .nav-menu {
    background: hsla(220, 30%, 99%, 0.98);
    border-left: 1px solid var(--border-color);
  }

  .header-nav { padding: 0.75rem 0; }

  /* Form */
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card { padding: 1.5rem; }

  .social-owners {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ---------- MOBILE (max 768px) ---------- */
@media (max-width: 768px) {

  :root { font-size: 14.5px; }

  /* Prevent ANY horizontal overflow */
  *, *::before, *::after { max-width: 100%; }

  .container { padding: 0 1rem; }

  .section-padding { padding: 3.5rem 0; }

  /* Hero */
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 3rem; }

  /* Journey section — stack cards */
  section[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .hero-content h1 { font-size: 2.5rem; letter-spacing: -0.02em; }

  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }

  .hero-buttons {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .joint-summary {
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .summary-num { font-size: 1.75rem; }
  .summary-label { font-size: 0.8rem; }

  /* Split card — stack vertically */
  .hero-visual {
    height: auto;
    min-height: unset;
    width: 100%;
  }

  .split-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }

  .split-panel {
    padding: 2rem 1.5rem;
    min-height: 240px;
  }

  .panel-title { font-size: 1.5rem; }
  .panel-desc  { font-size: 0.9rem; }

  /* Section headers */
  .section-header h2 { font-size: 1.8rem; }
  .section-header p  { font-size: 0.95rem; }

  /* Stats grid — 2 columns on mobile */
  .stats-grid-mobile {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }

  .portfolio-img { height: 180px; }

  .portfolio-meta { padding: 1.25rem; }

  .portfolio-meta h3 { font-size: 1.1rem; }

  .portfolio-meta p { font-size: 0.88rem; }

  /* Glass cards */
  .glass-card { padding: 1.5rem; }

  /* Contact info */
  .contact-intro { font-size: 0.95rem; }

  .contact-methods { gap: 1rem; }

  .contact-method-icon { width: 36px; height: 36px; }

  /* Subpage hero */
  .subpage-hero { padding: 7rem 0 2.5rem; }
  .subpage-hero h1 { font-size: 1.9rem; }

  /* Feature dive — content padding */
  .feature-dive-content h2 { font-size: 2rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }

  .footer-grid { gap: 1.5rem; }

  .footer-nav {
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-copyright {
    font-size: 0.78rem;
    padding: 0 1rem;
    text-align: center;
    word-break: break-word;
  }

  /* Trust banner */
  .trust-banner-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0 1rem;
  }

  /* CTA section */
  .cta-section h2 { font-size: 1.9rem; }

  /* Buttons text overflow */
  .btn {
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
  }

  /* Code block */
  .code-display-card {
    font-size: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre;
  }

  /* Performance infographic */
  .performance-infographic { overflow-x: hidden; }

  /* Marketing metrics */
  .metrics-row { flex-wrap: wrap; }

  /* Social owners */
  .social-owners { grid-template-columns: 1fr; }

  /* Nav text big */
  .nav-link { font-size: 1.1rem; }
}

/* ---------- SMALL PHONE (max 480px) ---------- */
@media (max-width: 480px) {

  :root { font-size: 14px; }

  .container { padding: 0 0.9rem; }

  /* Hero text fits screen */
  .hero-content h1 { font-size: 2.1rem; }

  .hero-subtitle { font-size: 0.95rem; }

  /* Stats — full width on tiny screens */
  .glass-card[style*="padding: 2.5rem"] {
    padding: 1.5rem 1rem !important;
  }

  /* Stats numbers */
  div[class*="text-gradient"][style*="4rem"] {
    font-size: 3rem !important;
  }

  /* Section header */
  .section-header h2 { font-size: 1.65rem; }

  /* Subpage hero */
  .subpage-hero h1 { font-size: 1.7rem; }
  .subpage-hero { padding: 6rem 0 2rem; }

  /* Portfolio tags overflow fix */
  .portfolio-tags { flex-wrap: wrap; gap: 0.4rem; }
  .portfolio-tag  { font-size: 0.7rem; padding: 0.25rem 0.6rem; }

  /* Portfolio card image */
  .portfolio-img { height: 160px; }

  /* Split panels height */
  .split-panel { min-height: 200px; padding: 1.5rem 1.25rem; }
  .panel-title { font-size: 1.35rem; }

  /* Contact form full padding */
  .contact-form-card { padding: 1.25rem; }

  /* Footer email wrapping */
  .footer-copyright {
    font-size: 0.75rem;
    line-height: 1.6;
  }

  /* Buttons */
  .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.1rem;
    gap: 0.5rem;
  }

  /* CTA h2 */
  .cta-section h2,
  section h2[style] { font-size: 1.65rem !important; }

  /* Fix inline style big headings */
  h2[style*="font-size: 3rem"] { font-size: 1.75rem !important; }

  /* Review cards */
  .review-text { font-size: 0.9rem; }

  /* Badge font */
  .badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; }

  /* Summary numbers smaller */
  .summary-num { font-size: 1.6rem; }
}

/* ---------- VERY SMALL PHONE (max 360px) ---------- */
@media (max-width: 360px) {

  :root { font-size: 13px; }

  .hero-content h1 { font-size: 1.9rem; }

  .container { padding: 0 0.75rem; }

  .split-panel { padding: 1.25rem 1rem; }

  .glass-card { padding: 1.25rem; }

  .section-header h2 { font-size: 1.5rem; }

  .btn { font-size: 0.82rem; padding: 0.65rem 1rem; }
}

/* Theme Toggle Icon Swapping */
.theme-toggle .icon-moon {
  display: none !important;
}

.theme-toggle .icon-sun {
  display: inline-block !important;
}

.light-mode .theme-toggle .icon-moon {
  display: inline-block !important;
}

.light-mode .theme-toggle .icon-sun {
  display: none !important;
}

.theme-toggle:focus, .theme-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
