/* ==========================================================================
   NovaCore Digital - Premium Design System & Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --bg-body: #070913;
  --bg-nav: rgba(7, 9, 19, 0.75);
  --bg-card: rgba(18, 22, 41, 0.55);
  --bg-card-hover: rgba(26, 32, 60, 0.75);
  --color-primary: #8b5cf6; /* Indigo/Violet */
  --color-secondary: #06b6d4; /* Cyan */
  --color-accent: #f43f5e; /* Rose */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --grad-dark: linear-gradient(180deg, #121629 0%, #070913 100%);
  --grad-text: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  --grad-glow: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(0, 0, 0, 0) 100%);

  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-active: rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.3);

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Ambient glow backgrounds */
.ambient-glow-1 {
  position: absolute;
  top: 15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: absolute;
  top: 50%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

.ambient-glow-3 {
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

.gradient-text-alt {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-accent);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-normal);
}

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

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-active);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.btn-icon:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-2px) rotate(10deg);
}

/* Glassmorphism card template */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-active);
  transform: translateY(-5px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

header:not(.scrolled) {
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 10px var(--color-secondary);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  height: 38px;
  transition: var(--transition-normal);
}

.logo-img-wrapper:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.nav-logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: white;
}

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

.nav-link.active {
  color: white;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-normal);
}

/* Toggle Animations */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero .section-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  margin-bottom: 24px;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-badge i {
  color: var(--color-secondary);
}

.hero-badge span {
  color: var(--text-muted);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.visual-sphere {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--grad-primary);
  filter: blur(60px);
  opacity: 0.3;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

.visual-card-1, .visual-card-2 {
  position: absolute;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  animation: float 6s infinite ease-in-out;
}

.visual-card-1 {
  background: rgba(139, 92, 246, 0.1);
  top: 10%;
  left: 0;
  animation-delay: 0s;
}

.visual-card-2 {
  background: rgba(6, 182, 212, 0.1);
  bottom: 10%;
  right: 0;
  animation-delay: 3s;
}

.visual-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 16px;
}

.visual-card-1 .visual-icon {
  background: var(--grad-primary);
}

.visual-card-2 .visual-icon {
  background: var(--grad-accent);
}

.visual-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.visual-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
  padding: 60px 0;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 30px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.service-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.service-features {
  list-style: none;
  margin-bottom: 30px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.service-features li i {
  color: var(--color-secondary);
}

/* ==========================================================================
   Calculator Section (High Interactivity)
   ========================================================================== */
.calculator {
  position: relative;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.calculator-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
}

.calc-group {
  margin-bottom: 35px;
}

.calc-group-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-group-title i {
  color: var(--color-secondary);
}

/* Step/Platform Buttons Grid */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.calc-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.calc-btn i {
  font-size: 1.8rem;
}

.calc-btn span {
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass-active);
  color: white;
}

.calc-btn.selected {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Dynamic slider styling */
.range-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Checklist options styling */
.calc-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.calc-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.calc-check-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.calc-check-item input[type="checkbox"] {
  display: none;
}

.calc-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-glass-active);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.calc-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: white;
  display: none;
}

.calc-check-item.selected {
  border-color: var(--color-secondary);
  background: rgba(6, 182, 212, 0.05);
}

.calc-check-item.selected .calc-checkbox {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.calc-check-item.selected .calc-checkbox::after {
  display: block;
}

.calc-check-label {
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}

/* Calculator Result Panel (Sticky / Premium Display) */
.calculator-result {
  position: sticky;
  top: 120px;
  background: var(--grad-dark);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-glow);
  text-align: center;
  overflow: hidden;
}

.calculator-result::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.result-price-box {
  margin-bottom: 30px;
}

.result-price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}

.result-price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.result-timeline-box {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 20px 0;
  margin-bottom: 35px;
}

.timeline-item-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.timeline-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Process Section (Timeline)
   ========================================================================== */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Timeline central line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary), rgba(0,0,0,0));
  transform: translateX(-50%);
}

.process-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  margin-bottom: 60px;
  box-sizing: border-box;
}

.process-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.process-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Timeline bullet points */
.process-dot {
  position: absolute;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 4px solid var(--color-primary);
  z-index: 10;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: var(--transition-normal);
}

.process-item:nth-child(odd) .process-dot {
  right: -12px;
}

.process-item:nth-child(even) .process-dot {
  left: -12px;
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.process-item:hover .process-dot {
  transform: scale(1.3);
  background: var(--text-main);
}

.process-step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.process-item:nth-child(even) .process-step {
  color: var(--color-secondary);
}

.process-card {
  background: rgba(18, 22, 41, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition-normal);
}

.process-card:hover {
  background: rgba(26, 32, 60, 0.6);
  border-color: var(--border-glass-active);
  transform: translateY(-2px);
}

.process-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #111424;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
  padding: 24px;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

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

.portfolio-info {
  padding: 30px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Tech Stack Grid
   ========================================================================== */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 45px;
}

.tech-tab {
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
}

.tech-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.tech-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  transition: var(--transition-normal);
}

.tech-item {
  background: rgba(18, 22, 41, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition-normal);
}

.tech-item i {
  font-size: 2.2rem;
  transition: var(--transition-normal);
}

.tech-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-item:hover {
  background: rgba(26, 32, 60, 0.5);
  border-color: var(--border-glass-active);
  transform: translateY(-5px);
}

.tech-item:hover i {
  transform: scale(1.1);
}

/* Custom individual tech brand colors on hover */
.tech-item:hover .fa-react { color: #61dafb; }
.tech-item:hover .fa-node-js { color: #68a063; }
.tech-item:hover .fa-js { color: #f7df1e; }
.tech-item:hover .fa-swift { color: #f05138; }
.tech-item:hover .fa-android { color: #3ddc84; }
.tech-item:hover .fa-aws { color: #ff9900; }
.tech-item:hover .fa-docker { color: #2496ed; }
.tech-item:hover .fa-python { color: #3776ab; }
.tech-item:hover .fa-flutter { color: #02569B; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.contact-info-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Dynamic forms */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  color: white;
  font-family: var(--font-body);
  transition: var(--transition-normal);
}

.form-input:focus {
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

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

.form-label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-body);
  border-radius: 4px;
  color: var(--color-secondary);
  border: 1px solid var(--border-glass);
}

/* Validation status styles */
.form-input.error {
  border-color: var(--color-accent);
}

.form-error-msg {
  color: var(--color-accent);
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

/* Form success message */
.form-success-alert {
  grid-column: span 2;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 20px;
  border-radius: 12px;
  display: none;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-glass);
  background: #04060d;
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.footer-link:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.25; }
  100% { transform: scale(1.15); opacity: 0.35; }
}

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

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Will toggle via JS */
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 24px;
    border-bottom: 1px solid var(--border-glass);
    gap: 24px;
    z-index: 999;
    animation: fadeIn 0.3s ease-out forwards;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero .section-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }

  .hero-badge, .hero-actions {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .calculator-result {
    position: relative;
    top: 0;
  }

  .process-timeline::before {
    left: 20px;
  }

  .process-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }

  .process-item:nth-child(even) {
    left: 0;
  }

  .process-dot {
    left: 8px !important;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

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

  .calc-checklist {
    grid-template-columns: 1fr;
  }

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