/* =========================================
   1. ROOT & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Syne:wght@400;700;800&display=swap');

:root {
    --bg-color: #060814;
    --text-color: #f8fafc;
    --accent-color: #22d3ee;
    /* Neon Aqua */
    --accent-hover: #06b6d4;
    /* Cyan */
    --border-color: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(255, 255, 255, 0.06);

    --font-head: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1400px;
    --header-height: 90px;

    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hiding default cursor for custom one */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Overlay Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: var(--transition);
}

img:hover {
    filter: grayscale(0%);
}

/* =========================================
   2. CUSTOM CURSOR
   ========================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.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.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(204, 255, 0, 0.1);
    border-color: var(--accent-color);
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
}

h1 {
    font-size: 6rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.outline-text {
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
    transition: var(--transition);
}

.outline-text:hover {
    color: var(--accent-color);
    -webkit-text-stroke: 0;
}

.text-accent {
    color: var(--accent-color);
}

.text-large {
    font-size: 1.25rem;
}

/* =========================================
   4. LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    transition: var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    color: var(--bg-color);
}

.btn:hover::before {
    width: 100%;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.border-left {
    border-left: 1px solid var(--border-color);
}

/* =========================================
   5. HEADER
   ========================================= */
header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    filter: invert(1);
}

.nav-desktop {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 20px;
    max-width: 600px;
    color: #888;
}

.hero-cta {
    margin-top: 50px;
}

/* Marquee Animation */
.marquee-strip {
    position: absolute;
    bottom: 10%;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.1);
    opacity: 0.3;
    pointer-events: none;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-head);
    font-size: 8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--border-color);
}

/* =========================================
   7. SERVICES (Grid)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-top: 1px solid var(--border-color);
}

.service-item {
    padding: 60px 40px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.service-item:hover {
    background: var(--card-bg);
}

.service-num {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.service-item:hover .service-num {
    color: var(--accent-color);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* =========================================
   8. CALCULATOR (Budget Allocator)
   ========================================= */
.calc-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
}

.calc-controls {
    padding: 60px;
    border-right: 1px solid var(--border-color);
}

.calc-display {
    padding: 60px;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slider-group {
    margin-bottom: 40px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

input[type=range] {
    width: 100%;
    background: transparent;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: #333;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: -9px;
    cursor: none;
}

.result-big {
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--accent-color);
    line-height: 1;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonials-wrapper {
    overflow: hidden;
    padding: 50px 0;
}

.testimonial-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marquee 30s linear infinite reverse;
}

.test-card {
    width: 500px;
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.test-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-style: italic;
    color: #ccc;
}

.test-author h5 {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* =========================================
   10. CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border: 1px solid var(--border-color);
}

.contact-details {
    padding: 60px;
    border-right: 1px solid var(--border-color);
    background: var(--card-bg);
}

.contact-form-wrap {
    padding: 60px;
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: white;
    font-family: var(--font-head);
    font-size: 1.5rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.form-input:placeholder-shown+label {
    top: 15px;
    font-size: 1.5rem;
}

.form-input:focus+label,
.form-input:not(:placeholder-shown)+label {
    top: -10px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.form-label {
    position: absolute;
    left: 0;
    top: 15px;
    color: #666;
    pointer-events: none;
    transition: var(--transition);
    text-transform: uppercase;
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--border-color);
}

.footer-big-link {
    display: block;
    font-family: var(--font-head);
    font-size: 4vw;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: #333;
    transition: var(--transition);
}

.footer-big-link:hover {
    color: var(--text-color);
    padding-left: 20px;
}

.footer-big-link span {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.footer-legal-links a {
    margin-left: 20px;
}

.footer-legal-links a:hover {
    color: var(--accent-color);
}

/* =========================================
   12. LEGAL PAGE CONTENT
   ========================================= */
.legal-container {
    padding: 150px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.legal-content p,
.legal-content li {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-content h3 {
    margin-top: 40px;
    font-family: var(--font-body);
    text-transform: none;
}

.legal-content ul {
    padding-left: 20px;
    list-style: square;
}

.legal-content ul li::marker {
    color: var(--accent-color);
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   14. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .border-left {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .calc-interface {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable custom cursor on touch */
    * {
        cursor: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-desktop {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }

    .nav-desktop.active {
        left: 0;
    }

    .nav-link {
        font-size: 2rem;
    }

    .hero-title h1 {
        font-size: 3rem;
    }

    .btn {
        padding: 15px 30px;
        width: 100%;
        text-align: center;
    }
}