:root {
    /* Colors */
    --bg-dark: #0B0B0F;
    --bg-card: #1A1A24;
    --bg-nav: rgba(11, 11, 15, 0.8);
    --accent: #00F2FF;
    /* Electric Cyan */
    --accent-glow: rgba(0, 242, 255, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C3;
    --gradient-accent: linear-gradient(135deg, #00F2FF 0%, #7000FF 100%);

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-dark);
    }

    ::-webkit-scrollbar-thumb {
        background: #1A1A24;
        border-radius: 5px;
        border: 2px solid var(--bg-dark);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }

    /* Typography */
    --font-main: 'Outfit',
    sans-serif;

    /* Spacing */
    --section-padding: 100px 5%;
}

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */
body.light {
    --bg-dark: #F0F2FA;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(240, 242, 250, 0.88);
    --text-primary: #0C0C1A;
    --text-secondary: #5A5A7A;
    --accent-glow: rgba(0, 180, 210, 0.25);
}

body.light body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Backgrounds */
body.light .glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.07);
}

body.light .features-section,
body.light .testimonials-section {
    background: #E8EBF5;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Inputs */
body.light input,
body.light select,
body.light textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

body.light input::placeholder,
body.light textarea::placeholder {
    color: #9090B0;
}

body.light input:focus,
body.light textarea:focus {
    background: rgba(0, 0, 0, 0.06);
    border-color: #00B4D8;
}

/* Portfolio overlay */
body.light .portfolio-item img {
    filter: grayscale(0.2);
}

/* ── Footer: always dark ── */
body.light .site-footer {
    background: #1A1A24 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

body.light .footer-main {
    background: transparent !important;
}

body.light .footer-copy {
    background: #111119 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.light .footer-copy p,
body.light .footer-copy a {
    color: #B0B0C3 !important;
}

body.light .footer-col-title {
    color: var(--accent) !important;
}

body.light .footer-tagline,
body.light .footer-sub,
body.light .footer-list li p,
body.light .footer-list li a,
body.light .footer-link {
    color: #B0B0C3 !important;
}

body.light .footer-list li strong {
    color: #FFFFFF !important;
}

body.light .footer-list li i {
    color: var(--accent) !important;
}

body.light .social-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #B0B0C3 !important;
}

body.light .footer-sep {
    color: rgba(255, 255, 255, 0.2) !important;
}

body.light .footer-nav a {
    color: #B0B0C3 !important;
}

body.light .footer-nav a:hover {
    color: var(--accent) !important;
}

/* Mega menu */
body.light .mega-inner {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

body.light .mega-link:hover {
    background: rgba(0, 180, 210, 0.07);
}

body.light .mega-post:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light .mega-divider {
    background: rgba(0, 0, 0, 0.08);
}

body.light .mega-link-icon {
    background: rgba(0, 180, 210, 0.08);
    border-color: rgba(0, 180, 210, 0.18);
}

body.light .mega-link-body strong {
    color: #0C0C1A;
}

/* Testimonials card */
body.light .testimonial-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Cookie & exit overlay */
body.light .cookie-inner {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

body.light .cookie-reject {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
}

body.light .exit-box {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .exit-title {
    color: #0C0C1A;
}

body.light .exit-later {
    color: #5A5A7A;
}

/* Success modal */
body.light .modal-box {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .modal-title,
body.light .modal-subtitle,
body.light .modal-desc {
    color: #0C0C1A;
}

/* Service cards */
body.light .service-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .service-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Feature cards */
body.light .feature-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Scrollbar */
body.light ::-webkit-scrollbar-track {
    background: #E8EBF5;
}

body.light ::-webkit-scrollbar-thumb {
    background: #C0C4D8;
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

body.light .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
}

body.light .theme-toggle:hover {
    background: rgba(0, 180, 210, 0.1);
    border-color: #00B4D8;
    color: #00B4D8;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Dark mode: show moon, hide sun */
.icon-moon {
    display: block;
}

.icon-sun {
    display: none;
}

/* Light mode: show sun, hide moon */
body.light .icon-moon {
    display: none;
}

body.light .icon-sun {
    display: block;
}

/* Spin animation on switch */
body.light .icon-sun,
.icon-moon {
    animation: icon-spin 0.5s ease;
}

@keyframes icon-spin {
    from {
        transform: rotate(-90deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Global color transition for smooth theme switch */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* Typography Styles */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #000;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 5%;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.accent-icon {
    filter: drop-shadow(0 0 8px var(--accent));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-menu {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

/* =========================================
   MEGA MENU
   ========================================= */
.mega-parent {
    position: static;
}

.mega-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.mega-trigger:hover,
.mega-parent.open .mega-trigger {
    color: var(--accent);
}

.mega-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mega-parent.open .mega-chevron {
    transform: rotate(180deg);
}

/* Panel */
.mega-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
    padding: 0 5%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.mega-parent.open .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mega-inner {
    display: grid;
    grid-template-columns: 1fr auto 340px;
    gap: 0;
    background: rgba(13, 13, 22, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    max-width: 860px;
    margin: 0 auto;
}

.mega-col-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Col 1: Links */
.mega-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mega-link:hover {
    background: rgba(0, 242, 255, 0.05);
}

.mega-link-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(0, 242, 255, 0.07);
    border: 1px solid rgba(0, 242, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mega-link:hover .mega-link-icon {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.25);
}

.mega-link-icon svg {
    width: 20px;
    height: 20px;
}

.mega-link-body strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-weight: 600;
}

.mega-link-body span {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Divider */
.mega-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 28px;
    border-radius: 1px;
}

/* Col 2: Blog */
.mega-blog-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-post {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mega-post:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mega-post-img {
    width: 72px;
    height: 54px;
    min-width: 72px;
    border-radius: 8px;
    overflow: hidden;
}

.mega-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    filter: grayscale(0.2);
}

.mega-post:hover .mega-post-img img {
    transform: scale(1.08);
    filter: grayscale(0);
}

.mega-post-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-post-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.mega-post-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.45;
    font-weight: 500;
    margin: 0;
}

.mega-post-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Hide mega menu on mobile */
@media (max-width: 900px) {
    .mega-menu {
        display: none;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay to keep text readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(11, 11, 15, 0.6) 0%,
            rgba(11, 11, 15, 0.75) 60%,
            rgba(11, 11, 15, 1) 100%);
    z-index: 1;
}

.hero h1,
.hero p,
.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Sections General */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent);
    border-radius: 30px;
    transform: translate(15px, 15px);
    z-index: -1;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* About Stats */
.about-stats {
    display: flex;
    gap: 0;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

/* Detailed Service Section (Reference Based) */
.detailed-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    padding: 60px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detailed-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.detailed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.featured-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.service-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.service-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.subgrid-item h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.subgrid-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .detailed-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

/* Accent Banner Bar (Inspired by reference) */
.accent-banner {
    background: var(--gradient-accent);
    color: #ffffff;
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 15px;
    font-weight: 800;
    color: #ffffff;
}

.banner-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    opacity: 0.9;
}

.cta-floating-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 50px;
    border-radius: 20px;
    gap: 25px;
    text-align: left;
    transition: transform 0.3s ease;
}

.cta-floating-box:hover {
    transform: translateY(-5px);
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #7000FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cta-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.cta-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.cta-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

@media (max-width: 768px) {
    .cta-floating-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
}

/* Features Grid Section */
.features-section {
    padding: var(--section-padding);
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.features-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.features-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.features-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(112, 0, 255, 0.15));
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid .feature-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-wrapper {
    position: relative;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 0 34px;
}

.testimonials-clip {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
}

.testimonials-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.5px;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Arrows */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-arrow:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.testimonial-arrow svg {
    width: 20px;
    height: 20px;
}

.testimonial-arrow.prev {
    left: -22px;
}

.testimonial-arrow.next {
    right: -22px;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px 24px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .testimonial-arrow {
        display: none;
    }
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 20px;
    padding: 50px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- Main Footer Grid --- */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 50px;
    padding: 70px 5% 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Brand Column */
.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-sub {
    font-size: 0.8rem;
    color: rgba(176, 176, 195, 0.5);
}

/* Footer List (Location & Contact) */
.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-list li i {
    color: var(--accent);
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
}

.footer-list li strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-list li p,
.footer-list li a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 242, 255, 0.08);
}

/* --- Footer Nav Bar --- */
.footer-nav-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px 5%;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-sep {
    color: var(--accent);
    font-weight: 700;
}

/* --- Copyright Strip --- */
.footer-copy {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 18px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-copy p {
    font-size: 0.82rem;
    color: rgba(176, 176, 195, 0.6);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 5% 30px;
    }

    .footer-nav {
        gap: 8px;
    }
}

/* =========================================
   SUCCESS MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    position: relative;
    background: #111120;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 28px;
    padding: 50px 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

/* Glow Ring */
.modal-glow-ring {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    animation: ring-pulse 3s ease infinite;
    pointer-events: none;
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}

/* SVG Checkmark */
.modal-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.check-svg {
    width: 80px;
    height: 80px;
}

.check-circle {
    stroke: url(#checkGrad);
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: draw-circle 0.7s ease 0.2s forwards;
}

.check-tick {
    stroke: #00F2FF;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw-tick 0.5s ease 0.7s forwards;
}

/* Add gradient def via inline SVG trick */
.check-svg defs {
    display: block;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-tick {
    to {
        stroke-dashoffset: 0;
    }
}

/* Text */
.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.modal-desc strong {
    color: #fff;
}

/* Close Button */
.modal-close-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00F2FF, #7000FF);
    color: #000;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.modal-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4);
}

/* Countdown Bar */
.modal-countdown {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.modal-countdown-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00F2FF, #7000FF);
    transform-origin: left;
    border-radius: 10px;
}

.modal-countdown-text {
    font-size: 0.78rem;
    color: rgba(176, 176, 195, 0.4);
    position: relative;
    z-index: 2;
}

/* Particles */
.modal-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.modal-particles span {
    position: absolute;
    border-radius: 50%;
    animation: particle-float linear forwards;
    opacity: 0;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-180px) scale(0.3);
        opacity: 0;
    }
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-top-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    pointer-events: none;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}


.scroll-top-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    transform: translateY(-4px) scale(1);
}

/* =========================================
   WHATSAPP FLOATING WIDGET
   ========================================= */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    pointer-events: none;
    /* never block page content */
}


/* Floating Action Button */
.wa-fab {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    position: relative;
    pointer-events: auto;
    /* always clickable despite parent */
}

.wa-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* FAB: both SVG icons centered, stacked */
.wa-fab svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default: show chat, hide X */
.wa-icon-open {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.wa-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.4);
}

/* When open: hide chat, show X */
.wa-widget.open .wa-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}

.wa-widget.open .wa-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Badge */
.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s ease infinite;
}

.wa-widget.open .wa-badge {
    display: none;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Chat Panel */
.wa-panel {
    width: 340px;
    border-radius: 20px;
    overflow: hidden;
    background: #161622;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.85) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-widget.open .wa-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
    /* enable interaction when open */
}

/* Panel Header */
.wa-panel-header {
    background: #25D366;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wa-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.wa-header-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.wa-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

.wa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: blink 1.5s ease infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.wa-close {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.wa-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Chat Body */
.wa-body {
    padding: 20px;
    background: #0d0d16;
}

.wa-bubble {
    background: #1A1A2E;
    border-radius: 0 14px 14px 14px;
    padding: 14px 16px;
    max-width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-bubble p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.wa-bubble strong {
    color: var(--accent);
}

.wa-time {
    font-size: 0.7rem;
    color: rgba(176, 176, 195, 0.4);
    display: block;
    text-align: right;
    margin-top: 8px;
}

/* Form */
.wa-form {
    padding: 16px;
    background: #111120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-form input,
.wa-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    resize: none;
    transition: border-color 0.2s ease;
}

.wa-form input:focus,
.wa-form textarea:focus {
    outline: none;
    border-color: #25D366;
}

.contact-form button[type="submit"] {
    width: 100%;
}

/* Form Feedback */
.form-feedback {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00FF88;
}

.form-feedback.error {
    background: rgba(255, 70, 70, 0.1);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #FF6B6B;
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    color: var(--text-primary);
}

.select-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Options Panel */
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1A1A2E;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 14px;
    list-style: none;
    padding: 8px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.custom-select-options li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select-options li i {
    font-style: normal;
    font-size: 1.1rem;
}

.custom-select-options li:hover {
    background: rgba(0, 242, 255, 0.08);
    color: var(--text-primary);
    padding-left: 20px;
}

.custom-select-options li.selected {
    background: rgba(0, 242, 255, 0.12);
    color: var(--accent);
    font-weight: 600;
}

/* Selected trigger text */
.custom-select.selected .custom-select-trigger {
    color: var(--text-primary);
    border-color: rgba(0, 242, 255, 0.3);
}

.wa-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #000;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 13px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-send-btn:hover {
    background: #1fba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-send-btn i {
    width: 18px;
    height: 18px;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .btn-menu {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        padding: 100px 40px;
        transition: all 0.5s ease;
        z-index: 999;
        display: block !important;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 40px;
    }

    nav a {
        font-size: 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
* {
    cursor: none !important;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 8px var(--accent);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 242, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.3s ease, height 0.3s ease, border-color 0.2s ease, background 0.2s ease;
}

/* State: hovering a link / button */
body.cursor-hover .cursor-dot {
    width: 6px;
    height: 6px;
    background: #7000FF;
}

body.cursor-hover .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(112, 0, 255, 0.5);
    background: rgba(112, 0, 255, 0.06);
}

/* State: clicking */
body.cursor-click .cursor-dot {
    width: 12px;
    height: 12px;
}

body.cursor-click .cursor-ring {
    width: 28px;
    height: 28px;
}

/* Hide on touch/mobile */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* =========================================
   EXIT INTENT POPUP
   ========================================= */
.exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.exit-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.exit-box {
    position: relative;
    background: #111120;
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 28px;
    padding: 50px 44px 44px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.exit-overlay.show .exit-box {
    transform: scale(1) translateY(0);
}

.exit-dismiss {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: none;
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.exit-dismiss:hover {
    color: #fff;
}

.exit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: exit-bounce 2s ease-in-out infinite;
}

.exit-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes exit-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.exit-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.exit-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.exit-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.exit-desc strong {
    color: #fff;
}

.exit-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.exit-cta {
    width: 100%;
    font-size: 1rem;
    padding: 16px 28px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exit-later {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: none;
    text-decoration: underline;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-family: var(--font-main);
}

.exit-later:hover {
    opacity: 1;
}

/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 48px);
    max-width: 960px;
    z-index: 99999;
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.35s ease;
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner.hide {
    transform: translateX(-50%) translateY(140px);
    opacity: 0;
    pointer-events: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(17, 17, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, 0.12);
    border-radius: 20px;
    padding: 20px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.cookie-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cookie-icon svg {
    width: 100%;
    height: 100%;
}

.cookie-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}

.cookie-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.cookie-link:hover {
    opacity: 0.75;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
}

.cookie-reject {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cookie-accept {
    background: var(--gradient-accent);
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.25);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 242, 255, 0.4);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
    }

    .cookie-inner {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-section {
    padding: var(--section-padding);
}

.blog-header {
    text-align: center;
    margin-bottom: 64px;
}

.blog-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 16px auto 0;
    line-height: 1.65;
}

/* Grid: 2 columns, featured spans both rows */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Featured card: spans 2 rows */
.blog-card--featured {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 242, 255, 0.2);
}

/* Image container */
.blog-card-img-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.blog-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-card--featured .blog-card-img {
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* Reading time badge */
.blog-read-time {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Card body */
.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card--featured .blog-card-body {
    padding: 32px;
    gap: 16px;
}

/* Category tag */
.blog-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 50px;
    width: fit-content;
}

/* Title */
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.blog-card--featured .blog-card-title {
    font-size: 1.45rem;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--accent);
}

/* Excerpt */
.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* Meta row: author + CTA */
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Author */
.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.blog-author strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.blog-author span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Read more button */
.blog-read-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.blog-read-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.blog-read-btn:hover {
    opacity: 0.8;
}

.blog-read-btn:hover svg {
    transform: translateX(4px);
}

/* Light mode card tweaks */
body.light .blog-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.07);
}

body.light .blog-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

body.light .blog-card-meta {
    border-top-color: rgba(0, 0, 0, 0.07);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .blog-card--featured {
        grid-row: auto;
    }

    .blog-card--featured .blog-card-title {
        font-size: 1.2rem;
    }
}

/* ==========================================
   BLOG CAROUSEL
   ========================================== */

/* Wrapper */
.blog-carousel-wrap {
    position: relative;
    padding-bottom: 20px;
}

/* Viewport: clips adjacent slides horizontally, NO border-radius here */
.blog-carousel-viewport {
    overflow: hidden;
}

/* Track: 3 cards side by side, slides via translateX */
.blog-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Carousel Card ── */
.blog-card--carousel {
    /* Each card fills 100% of viewport width */
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;

    /* Layout: image left, body right */
    display: flex;
    flex-direction: row;

    /* Visuals */
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    /* card clips its own corners */

    /* Override base .blog-card hover transform */
    transform: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card--carousel:hover {
    border-color: rgba(0, 242, 255, 0.25);
    box-shadow: 0 8px 40px rgba(0, 242, 255, 0.07);
}

/* ── Image side (left) ── */
.blog-card--carousel .blog-card-img-link {
    flex: 0 0 46%;
    display: block;
    overflow: hidden;
    /* clips .blog-card-img */
    text-decoration: none;
}

.blog-card--carousel .blog-card-img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    aspect-ratio: unset;
    /* override base 16/9 */
    border-radius: 0;
    overflow: hidden;
}

.blog-card--carousel .blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card--carousel:hover .blog-card-img img {
    transform: scale(1.04);
}

/* Badge: top-left inside image (well away from any clip zone) */
.blog-card--carousel .blog-read-time {
    position: absolute;
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
}

/* ── Body side (right) ── */
.blog-card--carousel .blog-card-body {
    flex: 1;
    min-width: 0;
    /* CRITICAL: prevents flex overflow hiding text */
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

/* Title */
.blog-card--carousel .blog-card-title {
    font-size: 1.5rem;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Excerpt */
.blog-card--carousel .blog-card-excerpt {
    font-size: 0.97rem;
    line-height: 1.7;
    white-space: normal;
    word-wrap: break-word;
    flex: 1;
    /* push meta row down */
}

/* Meta (author + button) */
.blog-card--carousel .blog-card-meta {
    margin-top: 8px;
    flex-shrink: 0;
    /* never collapse */
}

/* ── Controls ── */
.blog-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.blog-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.blog-carousel-btn:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.blog-carousel-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Dots ── */
.blog-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: none;
    padding: 0;
    transition: all 0.25s ease;
}

.blog-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gradient-accent);
}

/* ── "Ver todos" CTA ── */
.blog-cta {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-cta-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 242, 255, 0.06);
    transform: translateY(-2px);
}

.blog-cta-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.blog-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ── Light mode overrides ── */
body.light .blog-carousel-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0C0C1A;
}

body.light .blog-dot {
    background: rgba(0, 0, 0, 0.15);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .blog-card--carousel {
        flex-direction: column;
    }

    .blog-card--carousel .blog-card-img-link {
        flex: 0 0 auto;
    }

    .blog-card--carousel .blog-card-img {
        min-height: 220px;
        height: 220px;
    }

    .blog-card--carousel .blog-card-body {
        padding: 28px 24px;
    }

    .blog-card--carousel .blog-card-title {
        font-size: 1.15rem;
    }
}