/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (Premium Dark Theme & Glassmorphism)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #030308;
    --bg-darker: #010103;
    --text-white: #ffffff;
    --text-muted: #8a99ad;
    --text-light: #cbd5e1;
    
    /* Brand Accent Colors */
    --primary: #6366f1;         /* Indigo / .NET Purple */
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.2);
    
    --accent-cyan: #06b6d4;      /* Electric Cyan */
    --accent-cyan-glow: rgba(6, 182, 212, 0.25);
    
    --accent-pink: #ec4899;      /* Neo Pink */
    --accent-pink-glow: rgba(236, 72, 153, 0.2);
    
    /* Glassmorphic Properties */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-border-focus: rgba(6, 182, 212, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

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

/* Custom Scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
    transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   GLOW ORBS (Ambient Light)
   ========================================================================== */
.glow-orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-purple {
    top: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.orb-cyan {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation-delay: -5s;
}

.orb-pink {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* ==========================================================================
   UTILITY CLASSES & TYPOGRAPHY
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-muted);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--primary-light) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-title);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}

/* Scroll Reveal (CSS class-based transition instead of inline styles) */
.reveal-init {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--primary-light);
}

.w-100 {
    width: 100%;
}

/* Section Common Layout */
section {
    padding: 8rem 0;
    position: relative;
}

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

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

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

/* ==========================================================================
   NAVBAR (Sticky & Responsive Glass)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.8rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled,
.navbar.menu-active {
    background: rgba(3, 3, 8, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo img {
    height: 38px; /* Elegant, well-balanced logo height */
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.05); /* Smooth micro-scaling on hover */
    filter: drop-shadow(0 0 12px rgba(30, 81, 164, 0.45)); /* Gorgeous subtle blue shadow glow */
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

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

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

@media (max-width: 991px) {
  .hero-container-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
    align-items: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
  .hero-metrics {
    justify-content: center;
    width: 100%;
  }
  .stat-badge {
    display: none;
  }
  .hero-visual {
    width: 100%;
  }
  .glass-dashboard-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 5rem;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .highlight-wrapper {
    display: inline;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
  .hero-metrics {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-metrics {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}


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


.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.highlight-wrapper {
    position: relative;
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.8rem;
    max-width: 650px;
}

.hero-subtitle strong {
    color: var(--text-white);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-metrics {
    display: flex;
    gap: 3.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.metric-item h3 {
    font-size: 2.2rem;
    font-family: var(--font-title);
    background: linear-gradient(90deg, var(--text-white) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.metric-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Visual (Card de Código & Ecosistema) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-dashboard-card {
    width: 100%;
    max-width: 460px;
    min-width: 0;
    background: rgba(3, 3, 8, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-dashboard-card:hover {
    transform: translateY(-8px) rotate(1deg);
    border-color: rgba(6, 182, 212, 0.3);
}

.card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.card-title-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--primary-light); }
.text-pink { color: var(--accent-pink); }
.text-green { color: #10b981; }
.text-yellow { color: #f59e0b; }

.code-snippet {
    padding: 1.5rem;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 250px;
}

@media (max-width: 480px) {
    .hero-visual .glass-dashboard-card {
        max-height: 70vh;
        overflow-y: auto;
    }
}

.code-snippet pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-snippet code {
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-light);
}

.code-snippet .keyword { color: #ec4899; font-weight: bold; }
.code-snippet .type { color: #06b6d4; }
.code-snippet .method { color: #818cf8; }

/* Floating Stats Badges */
.glass-floating-stats {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: absolute;
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.stat-badge i {
    font-size: 1.6rem;
}

.stat-badge h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.stat-badge p {
    font-size: 0.75rem;
}

.stat-badge.float-1 {
    top: 15%;
    left: -20px;
    animation: floatingEffect 6s infinite ease-in-out;
}

.stat-badge.float-2 {
    bottom: 15%;
    right: -20px;
    animation: floatingEffect 6s infinite ease-in-out;
    animation-delay: -3s;
}

.stat-badge:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.05) translateY(-3px);
}

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

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
}

.service-card {
    padding: 3rem 2.2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   TECH STACK (Filterable Grid)
   ========================================================================== */
.tech-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.tech-card {
    padding: 1.8rem 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    cursor: default;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.8);
    display: none; /* Controlado dinámicamente en JS */
}

.tech-card.active {
    opacity: 1;
    transform: scale(1);
    display: flex;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

.tech-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tech-category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SOFTWARE CALCULATOR (Interactive & Dynamic)
   ========================================================================== */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    padding: 3.5rem;
}

.calculator-options {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.calc-label {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Platform Cards */
.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

.platform-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.platform-card input[type="radio"] {
    display: none;
}

.platform-card-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.8rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.platform-card-content i {
    font-size: 2.4rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.platform-card-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.platform-card input[type="radio"]:checked + .platform-card-content {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.platform-card input[type="radio"]:checked + .platform-card-content i {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.platform-card input[type="radio"]:checked + .platform-card-content span {
    color: var(--text-white);
}

/* Custom Range Slider */
.range-slider-wrapper {
    width: 100%;
    margin-top: 1rem;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--glass-border);
    outline: none;
    margin-bottom: 1.2rem;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--text-white);
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
}

.slider-labels span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.slider-labels span.active {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Features Grid Checkboxes */
.features-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-checkbox-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.feature-checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.checkbox-text {
    flex-grow: 1;
}

.checkbox-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.checkbox-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hover & Checked state of checkbox card */
.feature-checkbox-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--glass-bg-hover);
}

.feature-checkbox-card input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.feature-checkbox-card input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\eb7b'; /* remixicon check */
    font-family: 'remixicon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    font-size: 0.85rem;
}

.feature-checkbox-card input[type="checkbox"]:checked {
    /* change background of whole card when checked */
}

.feature-checkbox-card.checked-card {
    background: rgba(99, 102, 241, 0.03);
    border-color: var(--primary);
}

/* Calculator Results Panel */
.calculator-results {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: fit-content;
}

.result-title {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breakdown-item span:last-child {
    color: var(--text-white);
    font-weight: 600;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.breakdown-total span:first-child {
    font-weight: 700;
    color: var(--text-white);
    font-size: 1.1rem;
}

.total-price {
    font-size: 2.2rem;
    font-family: var(--font-title);
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 15px var(--accent-cyan-glow);
}

.result-timeline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.8rem;
}

.result-timeline i {
    font-size: 1.8rem;
}

.result-timeline h4 {
    font-size: 0.85rem;
    color: var(--text-white);
}

.result-timeline p {
    font-size: 0.8rem;
}

.result-assurance {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.result-assurance i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-assurance p {
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ==========================================================================
   ABOUT US SECTION (Interactive Terminal)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-text-lead {
    font-size: 1.25rem;
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-info p {
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.about-feat-item {
    display: flex;
    gap: 1.2rem;
}

.feat-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--accent-cyan-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.about-feat-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.about-feat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Terminal Element */
.about-media {
    padding: 0;
    overflow: hidden;
}

.interactive-terminal {
    background: #010103;
    border-radius: var(--radius-lg);
    width: 100%;
    min-height: 320px;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.terminal-header {
    background: #09090e;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.term-dot.r { background: #ef4444; }
.term-dot.y { background: #f59e0b; }
.term-dot.g { background: #10b981; }

.term-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.term-line {
    color: #e2e8f0;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.term-line .prompt {
    color: var(--accent-cyan);
}

.term-line.success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.terminal-body .cursor {
    animation: terminalCursor 1s infinite;
}

@keyframes terminalCursor {
    50% { opacity: 0; }
}

/* ==========================================================================
   PORTFOLIO & CASE STUDIES
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.portfolio-item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-image-placeholder {
    height: 240px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.03) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
}

.portfolio-image-placeholder i {
    font-size: 3.5rem;
}

.portfolio-image-placeholder span {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
}

.portfolio-meta {
    padding: 2.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--accent-cyan-glow);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.portfolio-meta h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.portfolio-meta p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
    flex-grow: 1;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
}

.tech-used span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.portfolio-item:hover .portfolio-image-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    transform: scale(1.02);
}

/* ==========================================================================
   MODAL DIALOGS (Details overlay)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 1, 3, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.project-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .project-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.modal-body h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
}

.modal-main-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    margin-top: 1.8rem;
}

.modal-main-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.results-highlights {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    flex: 1;
}

.highlight-box h4 {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 0.3rem;
}

.highlight-box p {
    font-size: 0.8rem;
    margin: 0;
}

.modal-sidebar {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    height: fit-content;
}

.modal-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.6rem;
}

.modal-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-sidebar li {
    font-size: 0.85rem;
}

.modal-sidebar strong {
    color: var(--text-white);
}

/* ==========================================================================
   CONTACT SECTION & FORMS
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    padding: 4.5rem;
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.contact-p {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.method-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.method-card i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid var(--accent-cyan-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-card h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
}

.method-card a,
.method-card span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
}

.method-card a:hover {
    color: var(--accent-cyan);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
}

/* Success Modal */
.success-modal {
    max-width: 450px;
    width: 90%;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon-container {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 3rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-modal h2 {
    font-size: 1.8rem;
}

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

/* ==========================================================================
   CHATBOT WIDGET (TEKSYS Bot)
   ========================================================================== */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.6);
}

.chatbot-ping {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* Chat window */
.chatbot-window {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 360px;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: var(--transition-smooth);
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-cyan-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.3rem;
    position: relative;
    margin-right: 0.8rem;
}

.bot-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 1.5px solid #000;
}

.chatbot-header-info h4 {
    font-size: 0.95rem;
}

.chatbot-header-info p {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.chatbot-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-close-btn:hover {
    color: var(--text-white);
}

/* Chat Messages Content */
.chatbot-messages {
    flex-grow: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scrollbar-width: none;
}

.chatbot-messages::-webkit-scrollbar {
    display: none;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.45;
}

.message p {
    margin: 0;
}

.message strong {
    color: var(--text-white);
}

.bot-msg {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-msg {
    background: var(--primary);
    color: var(--text-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Chips quick buttons */
.chatbot-chips {
    padding: 0.5rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.chat-chip {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.chat-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text-white);
}

/* Chat Input field */
.chatbot-input-area {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.6rem;
}

.chatbot-input-area input {
    flex-grow: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.8rem;
    color: var(--text-white);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}

.chatbot-input-area input:focus {
    border-color: var(--accent-cyan);
}

.chatbot-send-btn {
    background: var(--primary);
    border: none;
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-send-btn:hover {
    background: var(--primary-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1.2rem;
    margin-bottom: 1.8rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
}

.footer-bottom i {
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 1024px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 4rem;
        min-height: auto;
    }

    .hero-container-grid,
    .calculator-wrapper,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-container-grid {
        text-align: center;
    }
    
    .badge-new {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-metrics {
        justify-content: center;
        gap: 3rem;
    }
    
    .hero-visual {
        margin-top: 1rem;
    }
    
    .glass-dashboard-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .calculator-results {
        height: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Container adjustment for extra mobile space */
    .container {
        padding: 0 1.2rem;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* ---- Hero ---- */
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
        align-items: flex-start;
    }

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

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .badge-new {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn-large {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .hero-metrics {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .metric-item {
        flex: 1 1 30%;
        min-width: 90px;
    }

    .hero-visual {
        width: 100%;
        margin-top: 0;
    }

    .glass-dashboard-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .code-snippet {
        padding: 1rem;
    }

    .code-snippet code {
        font-size: 0.72rem;
    }

    /* Floating stats card static placement under dashboard card on mobile to prevent overflow */
    .glass-floating-stats {
        position: relative;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1.5rem;
        height: auto;
        width: 100%;
        pointer-events: auto;
    }

    .stat-badge {
        position: static !important;
        animation: none !important;
        transform: none !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    /* ---- Nav ---- */
    .nav-links,
    #nav-contact-btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 3, 8, 0.96);
        backdrop-filter: blur(15px);
        padding: 3rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 1.8rem;
    }
    
    .nav-links.active a {
        font-size: 1.1rem;
        display: block;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .calculator-wrapper {
        padding: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .project-modal {
        padding: 2rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
    
    .chatbot-window {
        width: 90vw;
        right: -1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero modifications */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
    }
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-buttons .btn-large {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    .hero-metrics {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        padding-top: 1.5rem;
        text-align: center;
    }
    .metric-item {
        flex: 1 1 40%;
        min-width: 100px;
    }
    .metric-item:last-child {
        flex: 1 1 100%;
    }
    .metric-item h3 {
        font-size: 1.8rem;
    }
    .metric-item p {
        font-size: 0.8rem;
    }

    /* Service card refinements */
    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Double Column Tech Stack Grid */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .tech-card {
        padding: 1.2rem 0.8rem;
    }
    .tech-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    .tech-card h4 {
        font-size: 0.9rem;
    }
    .tech-category-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    /* Terminal body padding */
    .terminal-body {
        padding: 1.2rem 1rem;
    }

    /* Calculator improvements */
    .slider-labels span {
        font-size: 0.65rem;
        max-width: 80px;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
    }
    .slider-labels span:first-child {
        text-align: left;
    }
    .slider-labels span:last-child {
        text-align: right;
    }

    /* Modal padding and close collisions */
    .modal-body h2 {
        font-size: 1.6rem;
        padding-right: 2.5rem; /* Space for close button */
    }
    .project-modal {
        padding: 2.5rem 1.2rem 1.8rem;
    }
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
    .results-highlights {
        flex-direction: column;
        gap: 1rem;
    }

    /* Chatbot window dimensions for smaller screens */
    .chatbot-window {
        height: 400px;
        bottom: 4.5rem;
    }
}

@media (max-width: 480px) {
    .breakdown-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .total-price {
        font-size: 1.8rem;
    }
}

