/* ==========================================================================
   Advanced Design System for Mishri Adhesive Tech
   ========================================================================== */

:root {
    /* Deep Space Navy Base */
    --bg-dark: #0B1E36;
    --bg-surface: #163B65;
    --bg-surface-elevated: rgba(22, 59, 101, 0.4);
    
    /* Gold Accent System */
    --gold-primary: #B9872E;
    --gold-light: #DFAB4C;
    --gold-glow: rgba(185, 135, 46, 0.3);
    --gold-gradient: linear-gradient(135deg, #EAD196 0%, #B9872E 50%, #8A6B32 100%);
    --gold-gradient-text: linear-gradient(to right, #DFAB4C, #B9872E, #DFAB4C);

    /* Navy Accents */
    --navy-glow: rgba(22, 59, 101, 0.6);
    --cyan-accent: #00E5FF;
    
    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    /* Glassmorphism System */
    --glass-bg: rgba(11, 20, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    /* Custom Scrollbar */
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

::selection {
    background: var(--gold-glow);
    color: var(--text-primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.text-secondary, .text-muted {
    color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.display-hero {
    font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.text-gradient-gold {
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
    display: inline-block;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Glassmorphism & Layouts
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(197, 160, 89, 0.3);
}

/* Ambient Glow Backgrounds */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--navy-glow); animation-delay: 0s; }
.orb-2 { bottom: -20%; right: -10%; width: 40vw; height: 40vw; background: var(--gold-glow); animation-delay: -5s; }
.orb-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: rgba(0, 229, 255, 0.1); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.bento-item {
    grid-column: span 12;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bento-col-4 { grid-column: span 4; }
    .bento-col-6 { grid-column: span 6; }
    .bento-col-8 { grid-column: span 8; }
    .bento-col-12 { grid-column: span 12; }
    .bento-row-2 { grid-row: span 2; }
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Floating Navbar */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.floating-nav.scrolled {
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 0.5rem 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #dfb867 !important; /* Gold active state so it is visible against dark background */
}

.logo-badge {
    background: white;
    padding: 5px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 50px;
    height: 50px;
}

.logo-badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
}

/* Buttons */
/* Buttons */
.btn-magnetic {
    background: linear-gradient(135deg, #dfb867 0%, #c5a059 100%);
    color: #0b5394; /* Dark blue text on gold button */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem; /* Matches pill in mockup */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #FFF 0%, rgba(255,255,255,0) 50%);
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-magnetic:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
    color: #0b1426;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Specific Section Adjustments */
main {
    padding-top: 120px; /* Space for floating nav */
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}