/* ============================================
   DB Digital Labs - Brand Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Brand Color Variables ---- */
:root {
    --primary: #ff6a00;
    --secondary: #ffb300;
    --accent: #ffb300;
    --orange: #ff6a00;
    --orange-end: #ffb300;
    --dark-bg: #020617;
    --dark-mid: #0f172a;
    --foreground: #f0f9ff;
    --border: #ff6a00;
}

/* ---- Base Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Custom Text Selection ---- */
::selection {
    background: #ff6a00;
    color: #000000;
}

::-moz-selection {
    background: #ff6a00;
    color: #000000;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(8, 145, 178, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(8, 145, 178, 0.7);
}

/* ---- 3D Canvas Background ---- */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

/* ---- Glass Cards ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-premium {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

/* ---- Text Gradient (brand cyan) ---- */
.text-gradient {
    background: linear-gradient(90deg, #ff6a00, #ffb300, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Orange CTA gradient ---- */
.btn-orange {
    background: linear-gradient(90deg, #ff6a00, #ffb300);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
}

.btn-orange:hover {
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.5);
    transform: scale(1.03);
}

/* ---- Light Section ---- */
.light-section {
    background-color: #ffffff;
    color: #000000;
}

/* ---- Glow helpers ---- */
.glow-cyan {
    box-shadow: 0 0 30px -5px rgba(8, 145, 178, 0.4);
}

.glow-orange {
    box-shadow: 0 0 30px -5px rgba(255, 106, 0, 0.4);
}

/* ---- Animations ---- */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 106, 0, 0.7);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* ---- Nav active pill ---- */
.nav-active {
    background: rgba(255, 106, 0, 0.15);
    border: 1px solid rgba(255, 106, 0, 0.5);
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

/* ---- Section utilities ---- */
.section-padding {
    padding: 7rem 2.5rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 1.25rem;
    }
}

/* ---- Orange Gradient Button (permanent brand color) ---- */
.btn-orange,
button[data-brand="orange"] {
    background: linear-gradient(90deg, #ff6a00, #ffb300);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255, 106, 0, 0.45);
    animation: pulse-glow 2s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-orange:hover,
button[data-brand="orange"]:hover {
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.7);
}

/* ---- Pulse Glow Animation ---- */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 106, 0, 0.75);
    }
}

/* ---- Text Gradient (Orange brand) ---- */
.text-gradient {
    background: linear-gradient(90deg, #ff6a00, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Premium Button & Interactive Hover Effects */
button, .btn-orange, .btn-cta, a, nav button {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card {
    transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 106, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#clients-section .glass-card {
    transition: all 0.3s ease;
}

#clients-section .glass-card:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.5);
    color: #ff6a00;
}

/* ---- Mobile Hamburger to X Morph Animation ---- */
#mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

#mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}