/* ====================================================
   BTECH.CLOUD - styles.css
   ==================================================== */

/* CSS Variables for Light / Dark Mode */
:root {
    --bg-base: #050505;
    --bg-surface: rgba(20, 20, 22, 0.4);
    --bg-surface-hover: rgba(30, 30, 35, 0.8);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.5);
    --accent-grad: linear-gradient(135deg, #d946ef, #7c3aed);
    --border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(5, 5, 5, 0.7);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0, 0, 0.3, 1);
    --ease-in-out: cubic-bezier(0.5, 0, 0.5, 1);
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-surface-hover: rgba(240, 245, 255, 0.9);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.3);
    --accent-grad: linear-gradient(135deg, #4f46e5, #9333ea);
    --border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(248, 250, 252, 0.8);
}

/* ==========================================
   INTRO SPLASH / LOADER
   ========================================== */

#intro-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Two curtain panels that slide up / down to reveal the page */
.loader-curtain-top,
.loader-curtain-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #050505;
    z-index: 1;
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-curtain-top {
    top: 0;
    transform: translateY(0);
}

.loader-curtain-bottom {
    bottom: 0;
    transform: translateY(0);
}

#intro-loader.reveal .loader-curtain-top {
    transform: translateY(-100%);
}

#intro-loader.reveal .loader-curtain-bottom {
    transform: translateY(100%);
}

#intro-loader.hidden {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

/* Final fade-out of the whole loader after curtains have opened */
#intro-loader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Loader inner content (sits above curtain panels) */
.loader-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    padding: 0 20px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.loader-inner.fading {
    opacity: 0;
    transform: scale(0.96);
}

/* BTECH Logo */
.loader-logo {
    height: 55px;
    opacity: 0;
    transform: translateY(16px);
    animation: loader-fade-up 0.5s 0.15s ease forwards;
}

/* Accent bar under logo */
.loader-bar {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    border-radius: 2px;
    animation: bar-grow 0.5s 0.5s ease forwards;
}

@keyframes bar-grow {
    to {
        width: 180px;
    }
}

/* Service keyword text */
#loader-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    min-height: 1.3em;
    overflow: hidden;
    position: relative;
}

.loader-word {
    display: block;
    animation: word-in 0.18s ease forwards;
}

.loader-word.out {
    animation: word-out 0.12s ease forwards;
}

@keyframes loader-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes word-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes word-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-28px);
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    color: var(--text-primary);
    font-family: var(--font);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body { transition: background-color 0.5s ease; }

/* Background color base layer */
html { background-color: var(--bg-base); }

/* Content layering to keep it above fixed backgrounds */
nav, header, section, footer { position: relative; z-index: 10; }

/* ==========================================
   BACKGROUND EFFECTS
   ========================================== */

/* Gravity Balls / Particle canvas */
#gravity-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

[data-theme="light"] #gravity-bg {
    opacity: 0.3;
}

/* Network node canvas */
#network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0; /* Hiding molecules */
    display: none;
}

/* Matrix grid lines pattern - HIGH VISIBILITY */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(168, 85, 247, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
}

[data-theme='light'] .grid-pattern {
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

/* Jewel cursor follower - hidden until first mouse move */
#jewel-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.5s ease;
    mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, var(--accent-glow) 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 40px 10px var(--accent-glow);
    opacity: 0;
}

[data-theme="light"] #jewel-follower {
    mix-blend-mode: multiply;
}

/* ==========================================
   NAVIGATION
   ========================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container img {
    height: 45px;
    transition: transform 0.3s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.dell-partner {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-surface);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: var(--accent-grad);
    color: white;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
}

/* ==========================================
   TYPOGRAPHY & LAYOUT
   ========================================== */

section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 150px;
}

.hero h1 span {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* ==========================================
   GLASS CARDS (Generic)
   ========================================== */

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   ECOSYSTEM SERVICE CARDS (Accordion Style)
   ========================================== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.service-accordion-card {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
}

[data-theme='light'] .service-accordion-card {
    background: #f1f5f9;
}

.service-accordion-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-accordion-card.active {
    background: var(--bg-surface);
}

[data-theme='light'] .service-accordion-card.active {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.sac-title {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 1;
    max-height: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-accordion-card.active .sac-title {
    opacity: 1;
    max-height: 50px;
    margin-bottom: 20px;
}

.sac-icon {
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}

.sac-icon svg {
    width: 64px;
    height: 64px;
    transition: width 0.4s ease, height 0.4s ease;
}

.service-accordion-card.active .sac-icon svg {
    width: 48px;
    height: 48px;
}

.sac-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
    width: 100%;
}

.service-accordion-card.active .sac-hidden {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
}

.sac-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sac-desc ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
    padding: 0;
}

.sac-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.sac-desc li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.sac-chevron {
    color: var(--accent);
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.sac-chevron svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}
/* ==========================================
   LAYOUT HELPERS
   ========================================== */

.flex-split {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.flex-split>div {
    flex: 1;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .flex-split {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-grid .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
}

.team-card {
    text-align: center;
    padding: 30px;
}

.team-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-surface);
    margin: 0 auto 20px;
    border: 2px solid var(--accent);
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card p.cert {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card p.quote {
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   FORM
   ========================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ==========================================
   FLOATING WHATSAPP
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1.2rem;
    font-family: var(--font);
}

#scrollToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollToTop:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ==========================================
   MODALS
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   TRUSTED LOGOS
   ========================================== */

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.trusted-logos svg,
.trusted-logos img {
    height: 40px;
    max-width: 150px;
    fill: var(--text-secondary);
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.trusted-logos svg:hover,
.trusted-logos img:hover {
    fill: var(--text-primary);
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Theme Adaptation for Logos */
.trusted-logos img.logo-original {
    filter: none !important;
    opacity: 0.9;
}
.trusted-logos img.logo-original:hover {
    opacity: 1;
}

.trusted-logos img.logo-dark {
    filter: grayscale(100%) invert(1);
    opacity: 0.7;
}
.trusted-logos img.logo-dark:hover {
    filter: grayscale(0%) invert(1);
    opacity: 1;
}

[data-theme='light'] .trusted-logos img.logo-white {
    filter: grayscale(100%) invert(1);
}
[data-theme='light'] .trusted-logos img.logo-white:hover {
    filter: grayscale(0%) invert(1);
}
[data-theme='light'] .trusted-logos img.logo-dark {
    filter: grayscale(100%);
    opacity: 0.7;
}
[data-theme='light'] .trusted-logos img.logo-dark:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    border-top: 1px solid var(--border);
    padding: 80px 5% 40px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
}

.glass-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: 0.3s;
    color: var(--text-secondary);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
}

.legal-links button:hover {
    color: var(--text-primary);
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-gradient {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   COOKIE CONSENT BAR (Hakai-style)
   ========================================== */

#cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border-top: 2px solid var(--accent);
    z-index: 98000;
    padding: 22px 5%;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

#cookie-bar.visible {
    transform: translateY(0);
}

#cookie-bar.dismissed {
    transform: translateY(110%);
    transition: transform 0.4s ease-in;
    pointer-events: none;
}

.cookie-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-bar-text {
    font-size: 0.9rem;
    color: #c0c0c0;
    line-height: 1.6;
    margin: 0;
}

.cookie-bar-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-bar-text a:hover {
    color: #93c5fd;
}

.cookie-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cookie-btn-decline {
    background: none;
    border: none;
    color: #999;
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.cookie-btn-decline:hover {
    color: #fff;
}

.cookie-btn-accept {
    background: var(--accent-grad);
    color: white;
    border: none;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .cookie-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-bar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-btn-accept {
        flex: 1;
        text-align: center;
    }
}

/* ==========================================
   TEXTURED IMAGE BACKGROUND (equipe-integrada.jpg)
   ========================================== */

/* The glow overlay layer */
#bg-image {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: none; /* Removed the previous curly wave image */
    opacity: 0.55;
    transition: opacity 0.6s ease;
}



/* Animated accent-color glow overlay on top of the image */
#bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(168, 85, 247, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 75% 65%, rgba(124, 58, 237, 0.18) 0%, transparent 55%);
    animation: glow-shift 12s ease-in-out infinite alternate;
}

@keyframes glow-shift {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Light mode: hide the dark-texture image (it's designed for dark) */
[data-theme="light"] #bg-image {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   SERVICE CARD  TEXT READABILITY FIX
   ========================================== */

/* Reduce pixel canvas opacity so it's an accent, not a wall of dots */
pixel-canvas {
    opacity: 0.35;
    transition: opacity 400ms ease;
}

.service-card:where(:hover, :focus-within) pixel-canvas {
    opacity: 0.6;
}

/* Dark scrim behind the text so it always reads cleanly */
.service-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(5, 5, 5, 0.72) 0%,
            rgba(5, 5, 5, 0.45) 60%,
            transparent 100%);
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

/* Tighten card font sizes for the smaller height */
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.93rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.service-content ul {
    font-size: 0.88rem;
    margin: 0;
    padding-left: 18px;
}

.service-content li {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

/* Hero h1 title: white-to-purple gradient in dark mode */
[data-theme='dark'] .hero h1 span,
:root .hero h1 span {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   HERO PARTICLE BURST CANVAS
   ========================================== */

#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
}

.hero>*:not(canvas) {
    position: relative;
    z-index: 1;
}

/* Hide particle burst in light mode (too cluttered on white) */
[data-theme='light'] #hero-particles {
    opacity: 0.4;
}

/* ==========================================
   LIGHT MODE CARD FIXES
   ========================================== */

/* Remove dark scrim overlay in light mode - it makes cards look muddy */
[data-theme='light'] .service-content::before {
    background: none;
}

/* Light mode cards: ensure text is dark and readable */
[data-theme='light'] .service-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

[data-theme='light'] .service-card h3 {
    color: #1e1b4b;
}

[data-theme='light'] .service-content p,
[data-theme='light'] .service-content li {
    color: #4b5563;
}

/* Pixel canvas much more subtle in light mode */
[data-theme='light'] pixel-canvas {
    opacity: 0.15;
}

/* ==========================================
   DELL PARTNER HERO BADGE
   ========================================== */

.dell-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding: 10px 22px;
    border-radius: 40px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.07);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s;
}

.dell-badge-hero svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.dell-badge-hero:hover {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.12);
    color: var(--text-primary);
}

[data-theme='light'] .dell-badge-hero {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

/* Remove old nav dell-partner style (no longer used) */
.dell-partner {
    display: none;
}

/* ==========================================
   DELL BADGE  LOGO REFINEMENTS
   ========================================== */

.dell-badge-logo {
    height: 20px;
    width: auto;
    /* In dark mode: make the blue Dell logo white/light */
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s;
}

[data-theme='light'] .dell-badge-logo {
    /* In light mode: show the real Dell blue */
    filter: none;
    opacity: 1;
}

.dell-badge-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: currentColor;
    opacity: 0.25;
    margin: 0 2px;
}

.dell-badge-hero span:last-child {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Remove jewel cursor follower */
#jewel-follower {
    display: none !important;
}

/* Social icons  SVG refinements */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
    /* hide any leftover text */
}

.social-icons a svg {
    transition: transform 0.2s ease, opacity 0.2s;
    opacity: 0.7;
}

.social-icons a:hover svg {
    opacity: 1;
    transform: translateY(-2px) scale(1.1);
}

/* YouTube play triangle: adapt colour per theme */
[data-theme='light'] .social-icons a[aria-label='YouTube'] polygon {
    fill: #ffffff;
}

/* Ambient blobs: removed */
/* ==========================================
   SECURITY CERTIFICATIONS BADGES
   ========================================== */
.cert-badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
}

.cert-badge {
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

[data-theme='light'] .cert-badge {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.cert-badge:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(168, 85, 247, 0.4));
}

/* ==========================================
   ADVANCED CERTIFICATION CARDS
   ========================================== */
.cert-section {
    padding: 80px 5%;
    background: var(--bg);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cert-card:hover::before {
    opacity: 1;
    background: var(--accent-grad);
}

.cert-card img {
    height: 110px;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme='light'] .cert-card img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.cert-card:hover img {
    transform: scale(1.1);
}

.cert-card h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.cert-card .cert-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 15px;
}

.cert-card .cert-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cert-card hr {
    width: 30px;
    height: 3px;
    background: var(--accent);
    border: none;
    margin: 20px auto 0;
    border-radius: 3px;
    opacity: 0.6;
}

/* ==========================================
   RMM HIGHLIGHT BUTTON
   ========================================== */
.btn-rmm-highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white !important;
    font-size: 1.15rem;
    padding: 18px 40px;
    border-radius: 40px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-rmm-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    transform: scale(0.5);
}

.btn-rmm-highlight:hover::after {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.5s ease-out, opacity 0.3s;
}

.btn-rmm-highlight:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px -5px rgba(124, 58, 237, 0.8);
}

.btn-rmm-highlight svg {
    width: 24px;
    height: 24px;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)); }
    100% { transform: scale(1); }
}


/* -------------------------------------
   MOBILE FIXES (NAV AND FOOTER)
   ------------------------------------- */
@media (max-width: 900px) {
    nav {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 15px !important;
        height: auto !important;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px !important;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.85rem !important;
        background: rgba(129, 140, 248, 0.1);
        padding: 6px 12px;
        border-radius: 20px;
        border: 1px solid rgba(129, 140, 248, 0.2);
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    .footer-grid .social-icons {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: center !important;
    }
}
