@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables & Design System --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Default Dark Mode Colors (Highly Premium) */
  --bg-app: #030712;
  --bg-card: rgba(17, 24, 39, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --accent-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --primary-color: #3b82f6;
  --accent-color: #8b5cf6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  
  --glow-primary: rgba(59, 130, 246, 0.35);
  --glow-accent: rgba(139, 92, 246, 0.35);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  
  --blur-amount: 20px;
  --transition-speed: 0.3s;

  /* Glass Effects */
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  --blob-color-1: #8b5cf6; /* royal purple */
  --blob-color-2: #3b82f6; /* royal blue */
}

[data-theme="light"] {
  --bg-app: #f4f6fa; /* Clean cool watery blue-white background */
  --bg-card: rgba(255, 255, 255, 0.32); /* High transparency for watery glass look */
  --border-color: rgba(0, 0, 0, 0.06);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #8b8f97;
  
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --primary-color: #2563eb;
  --accent-color: #7c3aed;
  --success-color: #059669;
  
  --glow-primary: rgba(37, 99, 235, 0.12);
  --glow-accent: rgba(124, 58, 237, 0.12);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.01);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06);

  /* Glass Effects */
  --glass-border: rgba(255, 255, 255, 0.65); /* Shiny reflective border */
  --glass-highlight: inset 0 2px 4px rgba(255, 255, 255, 0.65), inset 0 -2px 4px rgba(0, 0, 0, 0.02); /* Double highlight for watery droplet feel */
  --blob-color-1: #c084fc; /* Soft purple blob */
  --blob-color-2: #60a5fa; /* Soft sky blue blob */
}

/* --- Global Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

button, input, select, textarea {
  font-family: inherit;
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(145%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md), var(--glass-highlight);
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background var(--transition-speed) ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 45px -12px var(--glow-primary), var(--glass-highlight);
}

body[data-theme="dark"] .glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Background Blob Effects */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  animation: pulse 8s infinite alternate;
}

body[data-theme="light"] .bg-blob {
  opacity: 0.28; /* brighter blobs so they are visible through light background */
  filter: blur(100px);
}

.blob-purple {
  background: var(--blob-color-1);
  width: 400px;
  height: 400px;
  top: 10%;
  left: -100px;
}

.blob-blue {
  background: var(--blob-color-2);
  width: 500px;
  height: 500px;
  bottom: 20%;
  right: -200px;
}

/* Scroll Reveal CSS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  100% { transform: scale(1.15) translate(30px, -30px); opacity: 0.22; }
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.4); /* translucent dark slate */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

body[data-theme="light"] .navbar {
  background: rgba(243, 244, 246, 0.5); /* translucent light grey */
}

/* --- iOS Liquid Glassmorphism Icons (glossy refractive droplet look) --- */
.service-icon,
.skill-icon,
.contact-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important; /* Force bubble circle */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(12px) saturate(185%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(185%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.6), 
    inset 0 -4px 6px rgba(0, 0, 0, 0.15), 
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: var(--text-primary) !important;
}

/* Liquid Glossy Droplet Highlight */
.service-icon::before,
.skill-icon::before,
.contact-icon::before {
  content: '' !important;
  position: absolute !important;
  top: 8% !important;
  left: 15% !important;
  width: 70% !important;
  height: 35% !important;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 100%) !important;
  border-radius: 50% 50% 40% 40% / 60% 60% 30% 30% !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Hover Liquid Animation */
.service-icon:hover,
.skill-icon:hover,
.contact-icon:hover {
  transform: translateY(-3px) scale(1.08) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    inset 0 6px 10px rgba(255, 255, 255, 0.75), 
    inset 0 -6px 10px rgba(0, 0, 0, 0.2), 
    0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Adjustments for light theme icons */
body[data-theme="light"] .service-icon,
body[data-theme="light"] .skill-icon,
body[data-theme="light"] .contact-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.8), 
    inset 0 -4px 6px rgba(0, 0, 0, 0.04), 
    0 8px 16px rgba(0, 0, 0, 0.05) !important;
  color: var(--text-primary) !important;
}

/* Individual Brand Gradients for Technical Skills */
.skill-card.photo .skill-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.02) 100%) !important;
  color: #ec4899 !important;
  border-color: rgba(236, 72, 153, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(236, 72, 153, 0.15), 
    0 8px 16px rgba(236, 72, 153, 0.1) !important;
}
.skill-card.adobe .skill-icon {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.2) 0%, rgba(0, 200, 255, 0.02) 100%) !important;
  color: #00c8ff !important;
  border-color: rgba(0, 200, 255, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(0, 200, 255, 0.15), 
    0 8px 16px rgba(0, 200, 255, 0.1) !important;
}
.skill-card.android .skill-icon {
  background: linear-gradient(135deg, rgba(61, 220, 132, 0.2) 0%, rgba(61, 220, 132, 0.02) 100%) !important;
  color: #3ddc84 !important;
  border-color: rgba(61, 220, 132, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(61, 220, 132, 0.15), 
    0 8px 16px rgba(61, 220, 132, 0.1) !important;
}
.skill-card.web .skill-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.02) 100%) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(56, 189, 248, 0.15), 
    0 8px 16px rgba(56, 189, 248, 0.1) !important;
}
.skill-card.native .skill-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.02) 100%) !important;
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(99, 102, 241, 0.15), 
    0 8px 16px rgba(99, 102, 241, 0.1) !important;
}
.skill-card.db .skill-icon {
  background: linear-gradient(135deg, rgba(0, 162, 199, 0.2) 0%, rgba(0, 162, 199, 0.02) 100%) !important;
  color: #00a2c7 !important;
  border-color: rgba(0, 162, 199, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(0, 162, 199, 0.15), 
    0 8px 16px rgba(0, 162, 199, 0.1) !important;
}
.skill-card.api .skill-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.02) 100%) !important;
  color: #a855f7 !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(168, 85, 247, 0.15), 
    0 8px 16px rgba(168, 85, 247, 0.1) !important;
}
.skill-card.crypto .skill-icon {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.2) 0%, rgba(247, 147, 26, 0.02) 100%) !important;
  color: #f7931a !important;
  border-color: rgba(247, 147, 26, 0.4) !important;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.5), 
    inset 0 -4px 6px rgba(247, 147, 26, 0.15), 
    0 8px 16px rgba(247, 147, 26, 0.1) !important;
}

.navbar.scrolled {
  background: var(--bg-app);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  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(--primary-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.theme-toggle-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  padding: 180px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-primary);
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Card Showcase in Hero */
.showcase-card {
  padding: 2.5rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.showcase-header {
  margin-bottom: 2rem;
}

.showcase-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.showcase-title {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}

.showcase-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  border-left: 3px solid var(--primary-color);
  padding-left: 0.8rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

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

/* --- Section Layout --- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  text-align: left;
}

.service-icon {
  width: 54px;
  height: 54px;
  background: var(--primary-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--glow-primary);
}

.service-card:nth-child(2) .service-icon {
  background: var(--accent-gradient);
  box-shadow: 0 4px 12px var(--glow-accent);
}

.service-card:nth-child(3) .service-icon {
  background: var(--success-gradient);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-weight: 600;
  font-size: 1rem;
}

.skill-level {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Portfolio Gallery Section --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px var(--glow-primary);
  transform: translateY(-2px);
}

/* Pulse highlight animation when NO filter has been clicked yet */
.portfolio-filters:not(.has-active) .filter-btn {
  animation: filterPulse 2.5s infinite ease-in-out;
  border-color: rgba(139, 92, 246, 0.25);
}

.portfolio-filters:not(.has-active) .filter-btn:nth-child(1) {
  animation-delay: 0s;
}

.portfolio-filters:not(.has-active) .filter-btn:nth-child(2) {
  animation-delay: 0.4s;
}

.portfolio-filters:not(.has-active) .filter-btn:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes filterPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-sm);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
  }
}

/* Portfolio Empty State styles */
.portfolio-empty-state {
  margin-top: 1rem;
  transition: all var(--transition-speed) ease;
}

.portfolio-empty-state-filters {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.portfolio-empty-state-filters .filter-btn {
  animation: filterPulse 2.5s infinite ease-in-out;
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.08);
}

.portfolio-empty-state-filters .filter-btn:nth-child(1) {
  animation-delay: 0s;
}

.portfolio-empty-state-filters .filter-btn:nth-child(2) {
  animation-delay: 0.4s;
}

.portfolio-empty-state-filters .filter-btn:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes floatArrows {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.portfolio-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px -10px var(--glow-primary);
}

.portfolio-item.wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.1 / 1; /* Sleeker on mobile */
}

@media (min-width: 768px) {
  .portfolio-item.wide {
    aspect-ratio: 2.6 / 1; /* Shorter on tablet */
  }
}

@media (min-width: 1024px) {
  .portfolio-item.wide {
    aspect-ratio: 3.2 / 1; /* Cinematic crop on desktop to match normal item heights */
  }
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.4) 60%, rgba(3, 7, 18, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.portfolio-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  width: fit-content;
}

.portfolio-live-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
  color: #fff !important;
}

.portfolio-live-btn i {
  font-size: 0.75rem;
}

/* Portfolio Grid - cap columns for wide items */
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* --- Project Estimator Section --- */
.estimator-card {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem;
}

.estimator-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.estimator-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.estimator-select, .estimator-input {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  outline: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.estimator-checkbox-group {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.estimator-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.estimator-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
}

.estimator-checkbox input {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

.estimator-result-box {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.estimator-result-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.estimator-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-display);
}

/* --- Timeline / Experience Section --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-app);
  border: 3px solid var(--primary-color);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Contacts Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.contact-card.telegram .contact-icon { background: linear-gradient(135deg, rgba(0, 136, 204, 0.3) 0%, rgba(0, 136, 204, 0.05) 100%) !important; color: #0088cc !important; }
.contact-card.facebook .contact-icon { background: linear-gradient(135deg, rgba(24, 119, 242, 0.3) 0%, rgba(24, 119, 242, 0.05) 100%) !important; color: #1877f2 !important; }
.contact-card.instagram .contact-icon { background: linear-gradient(135deg, rgba(220, 39, 67, 0.35) 0%, rgba(240, 148, 51, 0.1) 100%) !important; color: #fd1d1d !important; }
.contact-card.whatsapp .contact-icon { background: linear-gradient(135deg, rgba(37, 211, 102, 0.3) 0%, rgba(37, 211, 102, 0.05) 100%) !important; color: #25d366 !important; }

.contact-label {
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-contact {
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--border-color);
  color: var(--text-primary);
  margin-top: auto;
}

.contact-card:hover .btn-contact {
  background: var(--primary-gradient);
  color: #fff;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  background: rgba(3, 7, 18, 0.3);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Floating Expandable Contact Button --- */
.floating-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-widget.active .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.floating-item.telegram { background-color: #0088cc; }
.floating-item.facebook { background-color: #1877f2; }
.floating-item.whatsapp { background-color: #25d366; }
.floating-item.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.floating-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(5px);
}

.floating-item:hover::before {
  opacity: 1;
  visibility: visible;
}

.floating-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--glow-primary);
  border: none;
  transition: all 0.3s ease;
}

.floating-trigger:hover {
  transform: rotate(45deg);
}

/* --- Hero Floating Badges --- */
.hero-showcase {
  position: relative;
}

.hero-floating-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.hero-floating-badge.badge-1 { top: -18px; left: -28px; animation-delay: 0s; }
.hero-floating-badge.badge-2 { bottom: 50px; right: -28px; animation-delay: 1.5s; }
.hero-floating-badge.badge-3 { bottom: -18px; left: 10px; animation-delay: 3s; }

.hero-floating-badge i { font-size: 1.1rem; }
.hero-floating-badge.badge-1 i { color: var(--primary-color); }
.hero-floating-badge.badge-2 i { color: #10b981; }
.hero-floating-badge.badge-3 i { color: #ec4899; }

.hfb-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hfb-value {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

/* --- Testimonials Section --- */
.testimonials-section-bg {
  background: rgba(17, 24, 39, 0.3);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: var(--primary-color);
  filter: blur(130px);
  opacity: 0.06;
  pointer-events: none;
}

.cta-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.cta-title {
  font-size: 2.5rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.2;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Portfolio View All Button --- */
.portfolio-view-all {
  text-align: center;
  margin-top: 3rem;
}

/* --- Enhanced Footer --- */
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover { color: var(--primary-color); }

.footer-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0 1.5rem;
}

/* --- About Page Styles --- */
.about-hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin: 0.5rem 0 1.25rem;
}

.about-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.about-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.about-profile-card {
  padding: 2.5rem;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.about-profile-img-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 30px var(--glow-primary);
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.about-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-story-card {
  padding: 2rem;
  text-align: center;
}

.about-story-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px var(--glow-primary);
}

.about-story-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.about-story-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-value-item {
  padding: 2rem;
  text-align: center;
}

.value-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.about-value-item h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.about-value-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.about-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.about-number-item {
  padding: 2rem;
  text-align: center;
}

.about-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-display);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-number-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Blog Page Styles --- */
.blog-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.blog-hero-title {
  font-size: 3rem;
  margin: 0.5rem 0 1rem;
}

.blog-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
  background: var(--primary-gradient);
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

.blog-card-body { padding: 1.75rem; }

.blog-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more { gap: 0.6rem; }

.blog-newsletter {
  max-width: 600px;
  margin: 5rem auto 0;
  text-align: center;
}

.newsletter-input-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input:focus { border-color: var(--primary-color); }

/* --- Projects Page Styles --- */
.projects-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.projects-hero-title {
  font-size: 3rem;
  margin: 0.5rem 0 1rem;
}

/* --- Responsive additions for new sections --- */
/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* --- Navbar --- */
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-app);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  /* --- Hero --- */
  .hero {
    padding: 130px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-badge, .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .showcase-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.8rem;
  }

  .hero-floating-badge {
    display: none; /* hide floating badges on mobile for cleaner look */
  }

  /* --- Services --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  /* --- Skills --- */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* --- Portfolio --- */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .portfolio-item {
    aspect-ratio: 4 / 3;
  }

  .portfolio-item.wide {
    aspect-ratio: 4 / 3; /* same height as normal items on mobile */
  }

  .portfolio-filters {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* --- Estimator --- */
  .estimator-card {
    padding: 2rem 1.5rem;
  }

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

  .estimator-checkbox-group {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  /* --- Timeline --- */
  .timeline {
    padding-left: 1.5rem;
  }

  /* --- Testimonials --- */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- CTA --- */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  /* --- Footer --- */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-socials {
    justify-content: center;
  }

  /* --- About Page --- */
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .about-profile-card {
    max-width: 340px;
    margin: 0 auto;
  }

  .about-story-grid,
  .about-values-grid,
  .about-numbers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  /* --- Sections --- */
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  /* --- Containers --- */
  .container {
    padding: 0 1rem;
  }

  /* --- Typography --- */
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  /* --- Hero --- */
  .hero {
    padding: 110px 0 60px;
  }

  .btn-main {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .showcase-card {
    padding: 1.4rem;
  }

  /* --- Cards --- */
  .service-card {
    padding: 1.4rem;
  }

  .service-title {
    font-size: 1.1rem;
  }

  .service-desc {
    font-size: 0.88rem;
  }

  /* --- Estimator --- */
  .estimator-card {
    padding: 1.4rem 1rem;
  }

  .estimator-title {
    font-size: 1.3rem;
  }

  /* --- Sections --- */
  .section {
    padding: 55px 0;
  }

  /* --- Portfolio --- */
  .portfolio-item {
    border-radius: 14px;
  }

  .portfolio-overlay {
    padding: 1.25rem;
  }

  .portfolio-title {
    font-size: 1rem;
  }

  /* --- Floating Widget --- */
  .floating-widget {
    right: 1rem;
    bottom: 1rem;
  }

  /* --- Blog --- */
  .blog-card {
    padding: 1.4rem;
  }

  .blog-card-img {
    height: 160px;
  }

  /* --- Projects Hero --- */
  .projects-hero {
    padding: 120px 0 60px;
  }

  .projects-hero-title {
    font-size: 2.2rem;
  }
}
