/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    /* -- Color Palette -- */
    --c-black: #050505;
    --c-dark-grey: #121212;
    --c-grey: #2a2a2a;
    --c-light-grey: #e0e0e0;
    --c-white: #ffffff;

    /* -- Brand Colors -- */
    --c-brand-primary: #ff3d00;
    /* Vibrant Orange */
    --c-brand-secondary: #2979ff;
    /* Electric Blue */
    --c-brand-accent: #00e676;
    /* Success Green */

    /* -- Typography -- */
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: 'Arial Black', sans-serif;

    /* -- Layout -- */
    --header-height: 90px;
    --gutter: 20px;
    --max-width: 1400px;

    /* -- Effects -- */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    --noise-bg: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMDUwNTA1Ii8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz4KPC9zdmc+');
}

/* -- Reset -- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image: var(--noise-bg);
}

/* -- Typography -- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--c-white);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-brand-secondary);
}

p {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. 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(--c-brand-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 61, 0, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Hover States for Cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 61, 0, 0.1);
    border-color: var(--c-brand-primary);
}

/* ==========================================================================
   3. UTILITIES & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
    pointer-events: none;
    z-index: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--c-white);
    color: var(--c-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--c-brand-primary);
    transition: width 0.4s var(--ease-out-expo);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    border-color: var(--c-brand-primary);
    color: #000;
}

.btn-primary {
    background: var(--c-brand-primary);
    border-color: var(--c-brand-primary);
    color: #000;
}

.btn-primary:hover {
    background: transparent;
    color: var(--c-brand-primary);
}

.btn-primary::before {
    background: var(--c-black);
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    filter: invert(1) brightness(100);
    /* Ensure white logo */
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-light-grey);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-brand-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--c-white);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    z-index: 1001;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--c-white);
    opacity: 0.5;
}

.hero h1 span.highlight {
    color: var(--c-brand-primary);
    -webkit-text-stroke: 0;
    opacity: 1;
}

/* Decorative Hero Elements */
.hero-deco {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
    z-index: 1;
}

.hero-deco::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 1px solid rgba(255, 61, 0, 0.2);
    border-radius: 50%;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--c-brand-primary), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   6. MARQUEE SECTION
   ========================================================================== */
.marquee-section {
    padding: 40px 0;
    background: var(--c-brand-primary);
    transform: rotate(-2deg) scale(1.05);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    gap: 50px;
    animation: marquee 10s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 2rem;
    font-weight: 900;
    color: var(--c-black);
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   7. SERVICES GRID
   ========================================================================== */
.services-section {
    position: relative;
    background: var(--c-dark-grey);
    border-top: 1px solid var(--c-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1px;
    /* Gap for border effect */
    background: var(--c-grey);
    /* Border color */
}

.service-card {
    background: var(--c-black);
    padding: 60px 40px;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    background: var(--c-dark-grey);
}

.service-card:hover h3 {
    color: var(--c-brand-primary);
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-display);
}

.service-card ul {
    margin-top: 20px;
}

.service-card li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* ==========================================================================
   8. CALCULATOR SECTION
   ========================================================================== */
.roi-section {
    position: relative;
}

.calc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.range-group {
    margin-bottom: 40px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--c-grey);
    outline: none;
    cursor: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--c-brand-primary);
    cursor: none;
    border-radius: 50%;
    transition: 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-display {
    background: linear-gradient(135deg, var(--c-brand-secondary), #1a237e);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.calc-display::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.big-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--c-white);
    margin: 10px 0;
    font-family: var(--font-display);
}

/* ==========================================================================
   9. TESTIMONIALS (Masonry Style)
   ========================================================================== */
.testimonials-section {
    background: var(--c-black);
}

.masonry-grid {
    column-count: 3;
    column-gap: 30px;
}

.review-item {
    break-inside: avoid;
    margin-bottom: 30px;
    background: var(--c-dark-grey);
    border: 1px solid var(--c-grey);
    padding: 30px;
    position: relative;
}

.review-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--c-brand-primary);
    opacity: 0;
    transition: 0.3s;
}

.review-item:hover::after {
    opacity: 1;
}

.stars {
    color: var(--c-brand-primary);
    margin-bottom: 15px;
}

/* ==========================================================================
   10. CONTACT PAGE
   ========================================================================== */
.contact-hero {
    height: 50vh;
    background: radial-gradient(circle at center, rgba(41, 121, 255, 0.1), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-height);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 100px;
}

.contact-sidebar h4 {
    color: var(--c-brand-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-sidebar p {
    font-size: 1.2rem;
    color: var(--c-white);
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--c-grey);
    padding: 15px 0;
    color: var(--c-white);
    font-size: 1.1rem;
    font-family: inherit;
    transition: 0.3s;
    cursor: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--c-brand-primary);
}

.input-label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: 0.3s;
}

.input-field:focus~.input-label,
.input-field:valid~.input-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--c-brand-primary);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer {
    background: var(--c-dark-grey);
    padding: 100px 0 30px;
    border-top: 1px solid var(--c-grey);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 28px;
}

.footer-brand img {
    display: block;
}

.footer-address {
    margin-top: 20px;
    color: #888;
    font-style: normal;
    line-height: 1.75;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--c-brand-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #666;
}

.legal-nav a {
    margin-left: 20px;
}

.legal-nav a:hover {
    color: var(--c-white);
}

/* ==========================================================================
   12. LEGAL PAGES
   ========================================================================== */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 20px 100px;
}

.legal-content h2 {
    color: var(--c-brand-primary);
    margin-top: 40px;
    font-size: 1.8rem;
}

.legal-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul {
    margin-left: 20px;
    list-style: square;
    color: #ccc;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* Disable custom cursor on touch */
    *,
    *::before,
    *::after {
        cursor: auto !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--c-dark-grey);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--c-brand-primary);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        color: var(--c-white);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-deco {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .legal-nav a {
        margin: 0 10px;
    }
}

/* ==========================================================================
   14. ANIMATION UTILS
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}