:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #00a3ff;
    --accent: #00ffaa;
    --bg-deep: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 163, 255, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 242, 255, 0.1), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 200px;
    padding: 15px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 10px 20px;
    width: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Hero Sections (Subpages) */
.hero {
    padding: 160px 0 100px;
    min-height: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Slider (Homepage) */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide .container {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.4s;
}

.slide.active .container {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-5px);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    border-color: rgba(0, 242, 255, 0.4);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.post-content {
    padding: 60px;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .post-content {
        padding: 20px 10px;
        border-radius: 16px;
    }

    .lead {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
    }

    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 30px !important;
    }

    .hero-post {
        padding: 80px 0 30px !important;
    }

    .post-image {
        margin: 30px auto 20px !important;
    }
}

.contact-info-col {
    flex: 1;
    padding-left: 40px;
}

.contact-card {
    background: rgba(0, 188, 212, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

@media (max-width: 992px) {
    .contact-info-col {
        padding-left: 0;
        width: 100%;
    }

    .contact-info-col,
    .contact-card {
        text-align: left !important;
    }
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 100px 0 40px;
    background: #050608;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.col-brand .logo {
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--text-muted);
}

.payment-methods i {
    transition: all 0.3s;
    cursor: help;
}

.payment-methods i:hover {
    color: var(--text);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        gap: 20px;
        height: calc(100vh - 80px);
        /* Full height minus navbar */
        overflow-y: auto;
    }

    .nav-links.active li {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Fix Mobile Dropdown Overlap */
    .nav-links.active .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 20px;
        margin-top: 10px;
    }

    .nav-links.active .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 60px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.clients-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.section-badge {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

/* Feature Rows (Zig-Zag) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-row:hover .feature-image img {
    transform: scale(1.05);
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text);
}

.feature-list li i {
    color: var(--accent);
    background: rgba(0, 255, 170, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tool-card {
    text-align: left;
    height: 100%;
    display: flex;
    /* Fix vertical alignment */
    flex-direction: column;
}

.audit-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    /* Ensure text is visible on dark bg */
    font-family: inherit;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.serp-preview-mock {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    color: #333;
    /* Ensure text is readable */
}

.serp-title {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
    cursor: pointer;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-url {
    color: #202124;
    font-size: 14px;
    line-height: 1.3;
}

.serp-desc {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
    margin-top: 4px;
}

@media (max-width: 992px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-list {
        text-align: left;
        display: inline-block;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo Carousel (Infinite Scroll) */
.logo-carousel {
    overflow: hidden;
    padding: 30px 0;
    /* More breathing room */
    white-space: nowrap;
    position: relative;
    max-width: 100%;
    /* Gradient mask for smooth fade in/out at edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: inline-flex;
    gap: 80px;
    /* Increased gap to spread them out (~6 visible) */
    animation: scroll 60s linear infinite;
    /* Slower for better viewability */
    align-items: center;
    width: max-content;
    /* Ensure track takes full width of content */
}

.logo-track:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 130px;
    /* Tripled size (was 45px) */
    width: auto;
    max-width: 300px;
    /* Allow wider logos */
    border-radius: 20px;
    /* Rounded corners */
    filter: grayscale(100%) brightness(1.2);
    /* Adjusted brightness for JPGs */
    opacity: 0.9;
    transition: all 0.3s ease;
    object-fit: contain;
    background: #fff;
    /* Ensure clean background for JPGs if needed */
    padding: 10px;
    /* Padding inside the rounded border */
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Coming Soon Badges */
.glass-card {
    position: relative;
    overflow: hidden;
}

.badge-coming-soon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #000;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.card-disabled {
    pointer-events: none;
    opacity: 0.8;
}

.card-disabled .learn-more {
    color: var(--text-muted);
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Newsletter Footer Section */
.form-group-newsletter {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.form-group-newsletter:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.form-group-newsletter input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
}

.form-group-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-response {
    margin-top: 15px;
    font-size: 0.85rem;
    min-height: 20px;
}

.newsletter-response.success {
    color: #00ff88;
}

.newsletter-response.error {
    color: #ff3366;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Sitemap Visual Page Refresh */
.sitemap-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

.sitemap-visual {
    margin-top: 60px;
}

.sitemap-node.root {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.sitemap-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.sitemap-card i {
    font-size: 2.2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.sitemap-card span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.sitemap-card:hover {
    background: rgba(0, 242, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sitemap-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
}

.sitemap-subgrid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sitemap-card.sub {
    padding: 15px 25px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    min-width: auto;
}

.sitemap-card.sub i {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.sitemap-card.sub span {
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific Sitemap Adjustments */
.sitemap-card.highlight {
    border-color: rgba(0, 255, 170, 0.3);
    background: rgba(0, 255, 170, 0.03);
}

.sitemap-card.highlight:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 170, 0.08);
}

.sitemap-card.highlight i {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}