/* ----------------------------------------------------------------
   VORTEX DIGITAL - CYBER-FUTURISTIC GLASSMORPHIC DESIGN SYSTEM
-----------------------------------------------------------------*/
:root {
    --bg-dark: #050b14;
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(0, 240, 255, 0.3);
    
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #6366f1;
    --accent: #ff5e1a;
    --accent-glow: rgba(255, 94, 26, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Particle Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 3D Three.js Interactive WebGL Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
}

/* Interactive Cursor Glow Spotlight */
#cursor-spotlight {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 1;
    mix-blend-mode: screen;
}

/* 3D Perspective Card Tilt Transformations */
.project-card, .service-card, .calc-radio-card, .calc-checkbox-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover, .service-card:hover {
    border-color: rgba(0, 240, 255, 0.45) !important;
    box-shadow: 0 24px 48px -12px rgba(0, 240, 255, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* Ambient Floating Glowing Energy Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    top: -10%;
    left: 15%;
    width: 500px;
    height: 500px;
    background: rgba(0, 240, 255, 0.12);
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 94, 26, 0.12);
}

.orb-3 {
    bottom: -10%;
    left: 10%;
    width: 550px;
    height: 550px;
    background: rgba(99, 102, 241, 0.15);
}

/* Common Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.text-cyan { color: var(--primary); }
.text-orange { color: var(--accent); }
.text-purple { color: var(--secondary); }

.mb-tight { margin-bottom: 2px !important; }
.margin-top { margin-top: 20px; }

.author-highlight-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.author-highlight-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.price-glow {
    text-shadow: 0 0 16px var(--primary-glow);
}

/* Glowing Typography Gradients & Shimmer Keyframes */
.text-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
    animation: shineGradient 6s ease infinite;
}

.text-glow-orange {
    background: linear-gradient(135deg, var(--accent), #ffb020, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 94, 26, 0.4));
    animation: shineGradient 6s ease infinite;
}

@keyframes shineGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ambient Floating Bobbing & Orb Pulse Animations */
.badge-new {
    animation: floatBob 4s ease-in-out infinite;
}

.orb-1 { animation: orbPulse 8s ease-in-out infinite; }
.orb-2 { animation: orbPulse 10s ease-in-out infinite 2s; }
.orb-3 { animation: orbPulse 9s ease-in-out infinite 4s; }

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

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.18); opacity: 0.95; }
}

/* Rich Multi-Directional & Pop-Up Scroll Animations */
.reveal, .reveal-up {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-70px) rotate(-2deg);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(70px) rotate(2deg);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-pop {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-8deg) scale(0.85) translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active, .reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-pop.active, .reveal-rotate.active {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
}

/* Staggered Delay Utility Classes */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* Interactive Hover Pop-Up Effects */
.service-card:hover .service-icon {
    transform: scale(1.15) rotate(6deg);
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 24px var(--primary);
    transition: var(--transition-smooth);
}

.project-card:hover .project-tag {
    transform: scale(1.08);
    background: var(--primary);
    color: #050b14;
    box-shadow: 0 0 16px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover i, .btn-whatsapp:hover i {
    transform: translateX(4px) scale(1.2);
    transition: transform 0.3s ease;
}


/* Card 3D Perspective Container */
.service-card, .project-card, .calc-inputs-card, .calc-display-card, .contact-form-container {
    transform-style: preserve-3d;
    will-change: transform;
}


/* Button UI Components */
.btn-primary, .btn-secondary, .btn-whatsapp, .btn-primary-outline {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #050b14;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 240, 255, 0.6);
}

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

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

.btn-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3) !important;
}

.btn-whatsapp:hover {
    background: #1eb956 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5) !important;
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: #050b14;
    box-shadow: 0 0 18px var(--primary-glow);
}

.btn-block {
    width: 100%;
}

/* Main Navigation Header */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    background-color: rgba(5, 11, 20, 0.85);
}

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

.logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-symbol { color: var(--accent); }
.logo-vortex { color: #fff; }
.logo-digital { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover { color: #fff; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 20, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

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

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-nav-item {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    padding: 170px 0 100px;
    position: relative;
}

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

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero Metrics Bar */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.metric-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: var(--card-border);
}

/* 3D Animated Vortex Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vortex-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vortex-core {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0.4) 70%, transparent 100%);
    box-shadow: 0 0 50px var(--primary);
    animation: pulseCore 3s infinite alternate ease-in-out;
}

.vortex-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(0, 240, 255, 0.4);
}

.ring-1 {
    width: 160px;
    height: 160px;
    border-color: rgba(0, 240, 255, 0.5);
    animation: spinRight 12s linear infinite;
}

.ring-2 {
    width: 230px;
    height: 230px;
    border-color: rgba(255, 94, 26, 0.4);
    animation: spinLeft 18s linear infinite;
}

.ring-3 {
    width: 300px;
    height: 300px;
    border-color: rgba(99, 102, 241, 0.3);
    animation: spinRight 24s linear infinite;
}

@keyframes pulseCore {
    0% { transform: scale(0.9); box-shadow: 0 0 30px var(--primary); }
    100% { transform: scale(1.1); box-shadow: 0 0 60px var(--primary-glow); }
}
@keyframes spinRight { 100% { transform: rotate(360deg); } }
@keyframes spinLeft { 100% { transform: rotate(-360deg); } }

/* Section Common Headers */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 8px 0 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 36px 28px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.service-icon {
    width: 54px;
    height: 54px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #050b14;
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(0, 240, 255, 0.18);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(5, 11, 20, 0.95) 100%);
}

.project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(5, 11, 20, 0.85);
    border: 1px solid var(--card-border);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.project-link:hover { color: #fff; }
.git-link { color: var(--text-muted) !important; }
.git-link:hover { color: var(--primary) !important; }

/* Interactive Calculator Section */
.calculator-section {
    padding: 100px 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.calc-inputs-card, .calc-display-card, .contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 36px;
    border-radius: 24px;
}

.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

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

.curr-switch {
    display: flex;
    background: rgba(5, 11, 20, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 3px;
}

.curr-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.curr-btn.active {
    background: var(--primary);
    color: #050b14;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.input-group {
    margin-bottom: 28px;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.calc-radio-group, .calc-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.calc-radio-card, .calc-checkbox-card {
    background: rgba(5, 11, 20, 0.5);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
    position: relative;
}

.calc-radio-card input, .calc-checkbox-card input {
    position: absolute;
    opacity: 0;
}

.calc-radio-card.selected, .calc-checkbox-card.selected {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.radio-name, .check-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.radio-price, .check-price {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

/* Range Slider Styling */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-val-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.custom-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 12px 0 6px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 12px var(--primary-glow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Custom Switch Toggle */
.speed-toggle-container {
    background-color: rgba(5, 11, 20, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.speed-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

.switch-slider.rounded { border-radius: 34px; }
.switch-slider.rounded:before { border-radius: 50%; }

input:checked + .switch-slider {
    background-color: var(--accent);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Calculator Output Panel */
.display-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.display-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.display-divider {
    height: 1px;
    background: var(--card-border);
    margin: 4px 0;
}

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

.total-row {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.estimate-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Contact Form Section */
.contact-section {
    padding: 100px 0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hidden-field { display: none !important; }

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    background: rgba(5, 11, 20, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Receipt Modal Popup */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 20, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.success-card {
    max-width: 480px;
    width: 100%;
    text-align: center;
    border-radius: 24px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 240, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.receipt-header {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.receipt-subheader {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.receipt-details {
    background: rgba(5, 11, 20, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    background: rgba(5, 11, 20, 0.95);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

.footer-links {
    display: flex;
    gap: 16px;
    font-size: 1.2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 8px 0 16px;
}

/* Media Responsive Rules for Seamless Mobile, Tablet & Desktop Support */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-subtitle {
        margin: 0 auto 36px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-metrics {
        justify-content: center;
    }
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-section {
        padding: 130px 0 70px;
    }
    .services-section, .portfolio-section, .calculator-section, .contact-section {
        padding: 70px 0;
    }
    .vortex-container {
        width: 260px;
        height: 260px;
    }
    .vortex-core {
        width: 70px;
        height: 70px;
    }
    .ring-1 { width: 130px; height: 130px; }
    .ring-2 { width: 190px; height: 190px; }
    .ring-3 { width: 250px; height: 250px; }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    .calc-inputs-card, .calc-display-card, .contact-form-container {
        padding: 24px 20px;
        border-radius: 20px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary,
    .hero-actions .btn-whatsapp {
        width: 100%;
    }
    .hero-metrics {
        flex-direction: column;
        gap: 16px;
    }
    .metric-divider {
        display: none;
    }
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    .calc-radio-group, .calc-checkbox-group {
        grid-template-columns: 1fr;
    }
}

