/* =========================================
   MODERN PORTFOLIO CSS - COMPLETE REDESIGN
   Mufzal Shaikh - Power Platform Developer
   ========================================= */

/* ===== CSS VARIABLES & THEME SYSTEM ===== */
:root {
  --brand-color: #B31312; /* deep rich red tone from your logo */
}

/* Update brand text */
.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-color);
  letter-spacing: 0.5px;
}

/* Optional: add subtle hover */
.brand-text:hover {
  color: #E63E3A;
  transition: color 0.3s ease;
}
:root {
  /* Colors - Dark Theme */
  --bg-primary: #0a0e27;
  --bg-secondary: #131829;
  --bg-card: rgba(20, 26, 47, 0.7);
  --bg-card-hover: rgba(30, 36, 62, 0.9);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(102, 126, 234, 0.3) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(118, 75, 162, 0.25) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(79, 172, 254, 0.2) 0px, transparent 50%),
                   radial-gradient(at 80% 100%, rgba(245, 87, 108, 0.25) 0px, transparent 50%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #a78bfa;

  /* Accents */
  --accent-blue: #60a5fa;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --accent-cyan: #22d3ee;

  /* UI Elements */
  --border-color: rgba(148, 163, 184, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.4);

  /* Blur & Glass */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Spacing */
  --space-unit: 8px;
  --container-width: 1280px;
  --nav-height: 80px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Light Theme Variables */
.theme-light {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-accent: #7c3aed;

  --border-color: rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(15, 23, 42, 0.1);

  --gradient-mesh: radial-gradient(at 40% 20%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(118, 75, 162, 0.12) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(79, 172, 254, 0.1) 0px, transparent 50%),
                   radial-gradient(at 80% 100%, rgba(245, 87, 108, 0.12) 0px, transparent 50%);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

/* ===== ANIMATED BACKGROUND ===== */
#animated-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-mesh);
  z-index: -1;
  opacity: 1;
  transition: opacity var(--transition-slow), filter var(--transition-slow);
  pointer-events: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width var(--transition-fast), height var(--transition-fast), opacity var(--transition-fast);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  opacity: 0.5;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot,
.ripple:hover ~ .cursor-dot {
  width: 16px;
  height: 16px;
  background: var(--accent-pink);
  box-shadow: 0 0 30px var(--accent-pink), 0 0 60px var(--accent-pink);
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
  width: 60px;
  height: 60px;
  border-color: var(--accent-pink);
}

/* ==== FLOATING LOGOS - Background Layer ==== */
.floating-logos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* 👈 Push behind everything */
  pointer-events: none;
  opacity: 0.5; /* 👈 Make subtle */
  filter: blur(2px) saturate(1.1); /* 👈 Slight blur for depth */
}

.logo-src {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0;
}

.logo-clone {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.35; /* 👈 Lower opacity for background look */
  filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.15)) blur(2px);
  transition: filter var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: lighten; /* 👈 Makes icons blend into bg light */
}


.logo-clone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-clone.logo-glow {
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.25));
  opacity: 0.25;
}

.theme-light .logo-clone {
  opacity: 0.5;
  filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.25));
}

.theme-light .logo-clone.logo-glow {
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.7))
          drop-shadow(0 0 50px rgba(79, 172, 254, 0.5));
  opacity: 0.85;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--accent-purple);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width var(--transition-base);
}

a:hover::after {
  width: 100%;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 calc(var(--space-unit) * 3);
  position: relative;
  z-index: 2;
}

.section {
  padding: calc(var(--space-unit) * 12) 0;
  position: relative;
}

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

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  top: calc(var(--space-unit) * 3);
  right: calc(var(--space-unit) * 3);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-glow);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  transition: all var(--transition-base);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 2);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: calc(var(--space-unit) * 4);
  align-items: center;
}

.nav-links li a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  border-radius: 8px;
  transition: all var(--transition-base);
  position: relative;
}

.nav-links li a::after {
  display: none;
}

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

.nav-links li a.active {
  color: var(--accent-purple);
  background: rgba(167, 139, 250, 0.1);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  backdrop-filter: var(--blur-sm);
}

.btn-ghost:hover {
  background: var(--glass-bg);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.ripple {
  position: relative;
  overflow: hidden;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: calc(var(--space-unit) * 4);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167, 139, 250, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero-inner {
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: calc(var(--space-unit) * 3);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== Professional Brand Highlight (Nuqtoris) ===== */
.name-highlight {
  color: var(--brand-color);
  font-weight: 700;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  position: relative;
  display: inline-block;
  text-shadow: none;
  animation: none;
  letter-spacing: 0.5px;
}

/* Remove underline bar */
.name-highlight::after {
  content: none;
}
.hero-sub {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: calc(var(--space-unit) * 2);
  font-family: var(--font-display);
}

.hero-tagline {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto calc(var(--space-unit) * 5);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: calc(var(--space-unit) * 2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: calc(var(--space-unit) * 6);
}

.hero-badges {
  display: flex;
  gap: calc(var(--space-unit) * 2);
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-border);
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--accent-purple);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: calc(var(--space-unit) * 2);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto calc(var(--space-unit) * 6);
  font-size: 1.125rem;
}

/* ===== ABOUT SECTION ===== */
.about-card {
  max-width: 900px;
  margin: 0 auto;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: calc(var(--space-unit) * 3);
  line-height: 1.6;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 4);
}

.achievement-item {
  text-align: center;
  padding: calc(var(--space-unit) * 3);
  background: var(--glass-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.achievement-item:hover {
  transform: translateY(-4px);
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--accent-purple);
}

.achievement-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: calc(var(--space-unit) * 1);
}

.achievement-text {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 4);
}

.service-card {
  text-align: center;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: calc(var(--space-unit) * 2);
  filter: grayscale(0.3);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  filter: grayscale(0);
  transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: calc(var(--space-unit) * 2);
}

.service-list {
  list-style: none;
  margin-top: calc(var(--space-unit) * 2);
  text-align: left;
}

.service-list li {
  padding: calc(var(--space-unit) * 1) 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: calc(var(--space-unit) * 3);
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--space-unit) * 4);
  margin-top: calc(var(--space-unit) * 4);
}

.project-card {
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.project-media {
  position: relative;
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: calc(var(--space-unit) * 2);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-media img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: var(--blur-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: all var(--transition-base);
}

.project-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.project-body h3 {
  margin-bottom: calc(var(--space-unit) * 1.5);
  font-size: 1.5rem;
}

.project-impact {
  margin: calc(var(--space-unit) * 2) 0;
  padding: calc(var(--space-unit) * 2);
  background: rgba(79, 172, 254, 0.1);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 8px;
  font-size: 0.9375rem;
}

.demo-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: calc(var(--space-unit) * 2);
}

/* ===== PROMISE / COMMITMENT ===== */
.promise-card {
  max-width: 1000px;
  margin: 0 auto;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 4);
}

.promise-item {
  text-align: center;
  padding: calc(var(--space-unit) * 3);
  background: var(--glass-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.promise-item:hover {
  transform: translateY(-4px);
  background: rgba(79, 172, 254, 0.1);
  border-color: var(--accent-cyan);
}

.promise-item strong {
  display: block;
  margin-bottom: calc(var(--space-unit) * 1);
  color: var(--text-primary);
  font-size: 1.125rem;
}

.promise-item p {
  font-size: 0.9375rem;
  margin: 0;
}

/* ===== CTA CARD (Fixed for Light & Dark Themes) ===== */
.cta-card {
  text-align: center;
  background: var(--gradient-primary);
  color: white;
  padding: calc(var(--space-unit) * 6) calc(var(--space-unit) * 4);
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* CTA Title & Text */
.cta-card h2 {
  color: inherit;
  margin-bottom: calc(var(--space-unit) * 2);
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: calc(var(--space-unit) * 4);
}

/* CTA Button */
.cta-card .btn {
  background: white;
  color: #667eea;
  font-weight: 600;
  border: none;
  transition: all var(--transition-base);
}

.cta-card .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.05);
}

/* Hover Effect - glow and depth */
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #6b8eff, #8b5cf6);
}

/* ===== LIGHT THEME FIX ===== */
.theme-light .cta-card {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.theme-light .cta-card p {
  color: var(--text-secondary);
}

.theme-light .cta-card:hover {
  background: linear-gradient(135deg, #c7d2fe, #ddd6fe);
  color: var(--text-primary);
}

.theme-light .cta-card .btn {
  background: var(--gradient-primary);
  color: white;
}

.theme-light .cta-card .btn:hover {
  background: var(--gradient-secondary);
  color: white;
}

/* Optional Glow Layer (adds subtle animation on hover) */
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.cta-card:hover::after {
  opacity: 1;
  filter: blur(12px);
}
/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: calc(var(--space-unit) * 6) 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: calc(var(--space-unit) * 1);
}

.footer a {
  color: var(--text-secondary);
  margin: 0 calc(var(--space-unit) * 1);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-purple);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(167, 139, 250, 0.4); }
  50% { box-shadow: 0 0 40px rgba(167, 139, 250, 0.8); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: var(--blur-md);
    flex-direction: column;
    padding: calc(var(--space-unit) * 10) calc(var(--space-unit) * 3);
    gap: 0;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--glass-border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    margin: calc(var(--space-unit) * 1) 0;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: calc(var(--space-unit) * 2);
  }

  .hero {
    min-height: 90vh;
    padding-top: calc(var(--nav-height) + var(--space-unit) * 4);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .logo-clone {
    width: 60px;
    height: 60px;
  }

  .section {
    padding: calc(var(--space-unit) * 8) 0;
  }
}

/* ===== MOBILE FIX: Theme Toggle & Nav Toggle Spacing ===== */
@media (max-width: 768px) {
  .theme-toggle {
    top: calc(var(--space-unit) * 2);
    right: calc(var(--space-unit) * 2);
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    z-index: 9999; /* ensure it's above other items */
  }

  .nav-toggle {
    position: fixed;
    top: calc(var(--space-unit) * 2);
    right: calc(var(--space-unit) * 9); /* shift it slightly left */
    z-index: 9998;
  }
}

/* ===== MOBILE FIX: Certifications layout ===== */
@media (max-width: 768px) {
  .cert-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: calc(var(--space-unit) * 1.5);
  }

  .cert-icon {
    font-size: 2rem;
    margin-bottom: calc(var(--space-unit) * 1);
  }

  .cert-content h3 {
    font-size: 1rem;
  }

  .cert-content p {
    font-size: 0.875rem;
  }
}

/* ===== GLOBAL SECTION SPACING FIX ===== */
.section {
  padding-top: calc(var(--space-unit) * 14);  /* ~112px */
  padding-bottom: calc(var(--space-unit) * 14);
}

/* Add a little breathing room between stacked cards or grids inside sections */
.section > .card,
.section > .container > .card,
.section > .container > .services-grid,
.section > .container > .projects-grid,
.section > .container > .skills-grid {
  margin-top: calc(var(--space-unit) * 4);
}

/* Smooth transitions for consistent flow between sections */
section + section {
  margin-top: calc(var(--space-unit) * 6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== RESPONSIVE TUNING ===== */
@media (max-width: 1024px) {
  .section {
    padding-top: calc(var(--space-unit) * 10);
    padding-bottom: calc(var(--space-unit) * 10);
  }

  section + section {
    margin-top: calc(var(--space-unit) * 4);
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: calc(var(--space-unit) * 8);
    padding-bottom: calc(var(--space-unit) * 8);
  }

  section + section {
    margin-top: calc(var(--space-unit) * 3);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 calc(var(--space-unit) * 2);
  }

  .card {
    padding: calc(var(--space-unit) * 3);
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: calc(var(--space-unit) * 3);
}

.form-group label {
  display: block;
  margin-bottom: calc(var(--space-unit) * 1);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: calc(var(--space-unit) * 2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 4);
}

.skill-card {
  text-align: left;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: calc(var(--space-unit) * 2);
  color: var(--accent-purple);
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: calc(var(--space-unit) * 1.5) 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: calc(var(--space-unit) * 3);
  font-size: 0.9375rem;
}

.skill-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== CERTIFICATIONS ===== */
.cert-card {
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 2);
  padding: calc(var(--space-unit) * 3);
}

.cert-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cert-content h3 {
  font-size: 1.125rem;
  margin-bottom: calc(var(--space-unit) * 0.5);
}

.cert-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== UPDATING SOON PAGE ===== */
.updating-soon {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.updating-soon-content {
  max-width: 600px;
}

.updating-soon-icon {
  font-size: 5rem;
  margin-bottom: calc(var(--space-unit) * 3);
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.updating-soon h1 {
  margin-bottom: calc(var(--space-unit) * 2);
}

.updating-soon p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}
/* ===== VISIBILITY FIX ===== */
/* Ensure all content is always visible, even before GSAP initializes */
.card,
.project-card,
.service-card,
.about-card,
.promise-item,
.skill-card,
.cert-card,
section {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
/* ===== FLOATING ICON AMBIENT GLOW PULSE ===== */
@keyframes ambientPulse {
  0%, 100% {
    opacity: 0.4;
    filter: blur(2px) saturate(1.1);
  }
  50% {
    opacity: 0.55;
    filter: blur(2.5px) saturate(1.3);
  }
}

.floating-logos {
  animation: ambientPulse 8s ease-in-out infinite;
}
/* ===== Interactive Card Depth Animation ===== */

/* Container perspective gives a 3D illusion */
.skills-grid,
.services-grid,
.projects-grid,
.promise-grid {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Default state */
.card,
.skill-card,
.service-card,
.project-card,
.promise-item {
  position: relative;
  z-index: 2;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s ease,
    opacity 0.3s ease,
    z-index 0.3s;
}

/* Hovered card — bring it forward */
.card:hover,
.skill-card:hover,
.service-card:hover,
.project-card:hover,
.promise-item:hover {
  transform: translateY(-15px) scale(1.04) rotateX(2deg);
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

/* Push surrounding cards backward */
.card:hover ~ .card,
.skill-card:hover ~ .skill-card,
.service-card:hover ~ .service-card,
.project-card:hover ~ .project-card,
.promise-item:hover ~ .promise-item {
  transform: translateY(10px) scale(0.96) rotateX(-2deg);
  z-index: 1;
  opacity: 0.8;
}

/* When any card is hovered, dim all others slightly */
.skills-grid:hover .card:not(:hover),
.services-grid:hover .service-card:not(:hover),
.projects-grid:hover .project-card:not(:hover),
.promise-grid:hover .promise-item:not(:hover) {
  opacity: 0.7;
  transform: translateY(8px) scale(0.98);
  z-index: 1;
}

/* Smooth reset when hover ends */
.skills-grid:hover,
.services-grid:hover,
.projects-grid:hover,
.promise-grid:hover {
  transition: all 0.4s ease;
}
.card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.2), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/* ===== PAGE HEADER VISIBILITY FIX ===== */

/* All main sections should start after the nav */
main,
.section:first-of-type {
  margin-top: var(--nav-height);
  position: relative;
  z-index: 2;
}

/* In case the blur nav overlaps slightly, add extra padding for smaller screens */
@media (max-width: 768px) {
  main,
  .section:first-of-type {
    margin-top: calc(var(--nav-height) + 20px);
  }
}
/* ===== CLICKABILITY FIX (Critical) ===== */
.cursor-dot,
.cursor-outline {
  pointer-events: none !important; /* ensure they never block clicks */
  z-index: 10000;
}

#animated-gradient,
.floating-logos {
  pointer-events: none !important; /* prevent background layers from blocking */
}

/* Enable normal cursor for external embeds or mobile views */
body, html {
  cursor: auto !important;
}
/* =============== BLOG PAGE STYLES =============== */
.blog-search {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}
.blog-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 1rem;
}

.blogs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 150px;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167, 139, 250, 0.4);
}

.card-left {
  width: 20%;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
}
.blog-card-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.card-right {
  width: 80%;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.blog-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0.9;
}

@media (max-width: 720px) {
  .card-left { width: 25%; }
  .card-right { width: 75%; padding: 12px; }
}


