/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050505;
    --bg-panel: #0f0f11;
    --primary: #5200ff;
    --primary-glow: rgba(82, 0, 255, 0.5);
    --secondary: #00f2ea;
    --secondary-glow: rgba(0, 242, 234, 0.4);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #2a2a2a;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   2. PRELOADER
   ========================================= */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    width: 300px;
    text-align: center;
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
    animation: blink 1s infinite;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: #222;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 40%;
    }

    100% {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 50px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary));
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
}

.desktop-nav .nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-gray);
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-white);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.header-cta .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: left 0.3s ease;
}

.btn-primary:hover {
    color: white;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    padding: 12px 30px;
    border: 1px solid var(--text-gray);
    color: var(--text-white);
    font-family: var(--font-heading);
    margin-left: 20px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-panel);
    z-index: 1001;
    padding: 100px 40px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-color);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
}


/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    /* height: 100vh; */
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -2;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(82, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-stats-row {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-white);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-family: var(--font-mono);
}

/* 3D Visual Element */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cube-container {
    width: 200px;
    height: 200px;
    position: relative;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(82, 0, 255, 0.1);
    border: 1px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.2);
}

/* In your cube section, change these: */
.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 1px solid var(--text-gray);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--secondary);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   5. MARQUEE SECTION
   ========================================= */
.marquee-section {
    background: var(--primary);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: skewY(-2deg);
    margin-top: -30px;
    z-index: 10;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0 20px;
    color: var(--text-white);
}

.separator {
    color: var(--bg-dark);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-section {
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.center-align {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-desc {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-panel);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* =========================================
   7. CALCULATOR SECTION
   ========================================= */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.calc-points {
    margin-top: 40px;
}

.point {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.point i {
    color: var(--secondary);
    background: rgba(0, 242, 234, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 0;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--secondary);
    margin-top: -6px;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #333;
}

.range-value {
    text-align: right;
    color: var(--secondary);
    font-weight: bold;
    margin-top: 5px;
}

.num-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    padding: 10px;
    color: white;
    font-family: var(--font-mono);
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.result-box {
    text-align: center;
}

.result-box small {
    display: block;
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.result-box span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.result-box.highlight span {
    color: var(--secondary);
}

/* =========================================
   8. PROCESS SECTION (FIXED VISIBILITY)
   ========================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50% !important;
    /* Ensure width is kept */
    box-sizing: border-box;
    opacity: 1 !important;
    /* Force visibility */
    visibility: visible !important;
    transform: none !important;
    /* Remove any accidental cube rotations */
}

/* Specific selectors to avoid conflict with Cube .left/.right */
.timeline-item.left {
    left: 0 !important;
    text-align: right;
}

.timeline-item.right {
    left: 50% !important;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-dark);
    border: 2px solid var(--secondary);
    top: 25px;
    border-radius: 50%;
    z-index: 5;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-content {
    padding: 25px;
    background: var(--bg-panel);
    position: relative;
    border: 1px solid var(--border-color);
    display: block;
    /* Ensure it renders */
    width: 100%;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

/* =========================================
   9. TESTIMONIALS SECTION
   ========================================= */
.testimonial-slider {
    overflow: hidden;
    margin-top: 50px;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: slideTrack 20s linear infinite;
    /* Simple auto scroll for now */
}

/* In a real scenario, JS would control this strictly */
.testimonial-card {
    min-width: 350px;
    background: #111;
    padding: 30px;
    border-left: 3px solid var(--secondary);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: #ddd;
    margin-bottom: 20px;
    height: 80px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info h4 {
    font-size: 0.9rem;
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* =========================================
   10. CTA SECTION
   ========================================= */
.cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(82, 0, 255, 0.2), rgba(0, 0, 0, 0));
    z-index: -1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.quick-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quick-form input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: white;
}

/* =========================================
   11. FOOTER
   ========================================= */
.main-footer {
    background: #020202;
    padding-top: 80px;
    border-top: 1px solid #1a1a1a;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
    height: 50px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary));
}

.brand-col p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.links-col ul li,
.contact-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a,
.contact-col ul li {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 25px 0;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* =========================================
   12. PAGE SPECIFIC (CONTACT / LEGAL)
   ========================================= */
.page-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 1) 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9IiMwNTA1MDUiLz4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0iIzIyMiIvPgo8L3N2Zz4=');
    padding-top: 80px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: var(--text-gray);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

/* Legal Content */
.legal-content {
    background: var(--bg-panel);
    padding: 60px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--text-white);
    margin: 40px 0 20px;
    font-size: 1.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.legal-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #ccc;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(82, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.tech-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.tech-form input,
.tech-form select,
.tech-form textarea {
    width: 100%;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-body);
}

.tech-form input:focus,
.tech-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* =========================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 60px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .calc-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .timeline::after {
        display: none;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .links-col ul li a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .calc-results {
        grid-template-columns: 1fr;
    }

    .tech-form .form-row {
        grid-template-columns: 1fr;
    }
}