/* 
====================================================================
   DIGITAL MARKETING AGENCY THEME - VERSION 4 (Aurora Glass)
   Style: Futuristic / Glassmorphism / Premium Tech
==================================================================== 
*/

/* -----------------------------------------------------------------
   1. VARIABLES & CONFIGURATION
----------------------------------------------------------------- */
:root {
    /* Colors */
    --bg-main: #030014;
    /* Deep Void */
    --bg-secondary: #0f0a29;

    /* Gradients / Accents */
    --color-primary: #7000ff;
    --color-secondary: #00c6ff;
    --color-accent: #ff0080;

    --gradient-aurora: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-text: linear-gradient(90deg, #fff, #b3b3ff);

    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --radius-md: 20px;
    --radius-lg: 32px;

    /* Animation */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Aurora Background Animation */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-main);
}

.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--color-primary);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--color-secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: var(--color-accent);
    opacity: 0.2;
    animation-duration: 30s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.8rem;
}

p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------------
   3. UTILITY CLASSES & COMPONENTS
----------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Card Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 24px;
}

.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-aurora);
    z-index: -1;
    transition: width 0.4s var(--ease-smooth);
}

.btn-glow:hover {
    border-color: transparent;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

.btn-glow:hover::before {
    width: 100%;
}

.btn-link {
    background: transparent;
    color: #fff;
    padding: 0;
    border-bottom: 1px solid var(--color-secondary);
    border-radius: 0;
}

.btn-link:hover {
    color: var(--color-secondary);
}

/* -----------------------------------------------------------------
   4. HEADER & NAV
----------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(3, 0, 20, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Logo should be white. Filter below ensures it if placeholder is black */
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    opacity: 0.7;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* -----------------------------------------------------------------
   5. HERO SECTION
----------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.pill-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
}

/* 3D Floating Element in Hero Background */
.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-main) 80%);
}

/* -----------------------------------------------------------------
   6. MARQUEE
----------------------------------------------------------------- */
.logo-marquee {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--bg-main), transparent);
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
    opacity: 0.5;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* -----------------------------------------------------------------
   7. SERVICES (Spotlight Cards)
----------------------------------------------------------------- */
.services-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    max-width: 600px;
}

/* Spotlight Card Styles */
.spotlight-card {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    height: 100%;
}

/* The magic glow effect logic */
.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    /* border width */
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.4),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* -----------------------------------------------------------------
   8. CALCULATOR
----------------------------------------------------------------- */
.calculator-section {
    padding: 100px 0;
}

.calc-glass-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 60px;
    backdrop-filter: blur(30px);
}

.slider-container {
    margin-bottom: 40px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 500;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    margin-top: -9px;
    /* Align vertical */
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.results-display {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.big-number {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -----------------------------------------------------------------
   9. TESTIMONIALS & FOOTER
----------------------------------------------------------------- */
.testimonials-section {
    padding: 100px 0;
    overflow: hidden;
}

.testi-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.testi-track::-webkit-scrollbar {
    display: none;
}

.testi-card {
    min-width: 350px;
    padding: 40px;
}

.stars {
    color: #ffd700;
    margin-bottom: 20px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.4);
    padding-top: 80px;
    margin-top: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* -----------------------------------------------------------------
   10. CONTACT / LEGAL PAGE STYLES
----------------------------------------------------------------- */
.page-header {
    padding: 200px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(112, 0, 255, 0.15), transparent 70%);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 60px;
}

.legal-container h2 {
    color: var(--color-secondary);
    margin-top: 40px;
}

.legal-container ul {
    list-style: disc;
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 100px;
}

.contact-info-card {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: #fff;
    border-radius: 10px;
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

/* -----------------------------------------------------------------
   11. MEDIA QUERIES
----------------------------------------------------------------- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-2 {
        grid-column: span 2;
    }

    .row-span-2 {
        grid-row: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(3, 0, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .col-span-1,
    .col-span-2 {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}