/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* New Color Palette: Deep Indigo & Holographic Gradients */
    --bg-core: #030014;
    --bg-surface: #0f0c29;
    --primary: #4facfe;
    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --secondary: #f093fb;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: #7000ff;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Layout */
    --container-width: 1300px;
    --header-height: 90px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
    /* We will build a custom cursor */
}

body {
    background-color: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(240, 147, 251, 0.05), transparent 25%);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 40px;
    height: 40px;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text-main);
    line-height: 1.1;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--ease-out-expo);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-padding {
    padding: 120px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* =========================================
   2. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: 0.4s var(--ease-out-expo);
    cursor: pointer;
    /* Fallback */
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg-core);
    border: none;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

/* =========================================
   3. HEADER (Fixed Glass)
   ========================================= */
.master-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s;
}

.master-header.scrolled {
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img, .footer-brand img{
    height: 60px;
}

.desktop-menu {
    display: flex;
    gap: 40px;
}

.desktop-menu a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.8;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: 0.3s;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    opacity: 1;
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.4s;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-core);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s var(--ease-out-expo);
    z-index: 1001;
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav a {
    font-size: 32px;
    font-family: var(--font-display);
    margin: 20px 0;
    color: var(--text-main);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Abstract Background Grid */
.bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    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: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    z-index: -1;
    animation: grid-scroll 20s linear infinite;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 80px;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    display: block;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS 3D Holographic Shape */
.holo-shape {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(79, 172, 254, 0.2), rgba(0, 0, 0, 0));
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 0 60px rgba(79, 172, 254, 0.3),
        inset 0 0 40px rgba(240, 147, 251, 0.2);
    animation: float-shape 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.holo-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    width: 450px;
    height: 450px;
    animation: spin-ring 10s linear infinite;
}

.holo-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary);
}

.holo-ring:nth-child(2) {
    width: 350px;
    height: 350px;
    animation-direction: reverse;
    animation-duration: 15s;
    border-color: rgba(79, 172, 254, 0.3);
}

/* =========================================
   5. MARQUEE SCROLL
   ========================================= */
.marquee-section {
    padding: 40px 0;
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin: 0 40px;
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

/* =========================================
   6. SERVICES (Bento Grid)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
}

.bento-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.1);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-card h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 18px;
}

.bento-icon {
    font-size: 48px;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 200px;
    opacity: 0.03;
    transform: rotate(-15deg);
    transition: 0.5s;
}

.bento-card:hover .bento-bg-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.1;
}

/* =========================================
   7. PROCESS / CALCULATOR
   ========================================= */
.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary);
    opacity: 0.5;
}

.calc-box {
    padding: 40px;
}

.range-group {
    margin-bottom: 30px;
}

.range-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--secondary);
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.res-item span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
}

.res-item strong {
    font-size: 36px;
    font-family: var(--font-display);
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   8. TESTIMONIALS (Static Masonry)
   ========================================= */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    padding: 30px;
    background: var(--bg-surface);
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #eee, #999);
}

.testi-body {
    font-style: italic;
    color: var(--text-muted);
}

/* =========================================
   9. CTA & FOOTER
   ========================================= */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 64px;
    margin-bottom: 30px;
}

.master-footer {
    background: #02010a;
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 14px;
}

/* =========================================
   10. SUBPAGE HEADER/CONTENT
   ========================================= */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.1), transparent 70%);
    padding-top: var(--header-height);
}

.page-header h1 {
    font-size: 60px;
    margin-bottom: 15px;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content p {
    margin-bottom: 24px;
    font-size: 18px;
    color: var(--text-muted);
}

.text-content h2 {
    margin: 40px 0 20px 0;
    color: var(--primary);
}

/* Form Styles */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================================
   11. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes grid-scroll {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px);
    }
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes spin-ring {
    0% {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {

    .hero-grid,
    .process-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid,
    .masonry-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: span 1;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .desktop-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable custom cursor on touch */
}