/* =========================================
   "CYBER-PREMIUM" BLACK & YELLOW SYSTEM
   ========================================= */
:root {
    /* Core Colors */
    --bg-main: #050505;          
    --bg-panel: #0D0D0D;         
    --bg-hover: #151515;         
    
    --accent: #FFD600;           
    --accent-hover: #E6C100;     
    
    /* Text Colors */
    --text-main: #FFFFFF;        
    --text-dim: #A1A1AA;         
    
    /* Structural Elements */
    --border-color: #27272A;     
    
    /* Typography */
    --font-main: 'Manrope', sans-serif;
    
    /* Fluid Sizing */
    --h1-size: clamp(2.5rem, 8vw, 5.5rem);
    --h2-size: clamp(2rem, 5vw, 3.5rem);
    --h3-size: clamp(1.25rem, 3vw, 1.75rem);
    
    /* Layout Constants */
    --section-pad: clamp(60px, 10vw, 140px);
    --radius: 6px;               
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================
   BASE RESET & TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-main); overflow-x: hidden; }
body {
    font-family: var(--font-main); background-color: var(--bg-main);
    color: var(--text-main); line-height: 1.6; overflow-x: hidden;
    -webkit-font-smoothing: antialiased; position: relative;
}
body.menu-open { overflow: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text-main); }
h1 { font-size: var(--h1-size); letter-spacing: -0.03em; }
h2 { font-size: var(--h2-size); letter-spacing: -0.02em; }
h3 { font-size: var(--h3-size); letter-spacing: -0.01em; margin-bottom: 1rem; }
p { font-size: 1.05rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.text-large { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 500; line-height: 1.5; color: var(--text-main); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1.5rem; } .mt-4 { margin-top: 3rem; } .mt-5 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 3rem; }
.w-100 { width: 100%; }
.max-w-m { max-width: 700px; } .mx-auto { margin-left: auto; margin-right: auto; }

.section-pad { padding: var(--section-pad) 0; position: relative; z-index: 2; }
.border-t { border-top: 1px solid var(--border-color); }
.border-y { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.bg-panel { background-color: var(--bg-panel); }

.section-eyebrow {
    display: inline-block; font-size: 0.85rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
    margin-bottom: 1rem;
}

/* =========================================
   ANIMATED BACKGROUNDS (Orbs & Grid)
   ========================================= */
.bg-animations {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.cyber-grid {
    position: absolute; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.5;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0.15; animation: float 20s infinite ease-in-out alternate;
}
.orb-1 {
    width: 400px; height: 400px; background: var(--accent);
    top: -10%; left: -10%; animation-delay: 0s;
}
.orb-2 {
    width: 300px; height: 300px; background: #ffffff;
    bottom: -10%; right: -5%; animation-delay: -5s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-20px, 80px) scale(0.9); }
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; transition: var(--transition); border-radius: var(--radius);
}
.btn-primary { background: var(--accent); color: var(--bg-main); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 214, 0, 0.2); }

.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); backdrop-filter: blur(5px); }
.btn-secondary:hover { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }

.link-arrow { display: inline-flex; align-items: center; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-size: 0.9rem; }
.link-arrow::after { content: '→'; margin-left: 8px; transition: transform 0.3s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* =========================================
   NAVIGATION 
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent; transition: var(--transition); padding: 20px 0;
}
.navbar.scrolled { padding: 15px 0; border-bottom: 1px solid var(--border-color); }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--text-main); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-btn { padding: 10px 24px; font-size: 0.8rem; }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; width: 30px; z-index: 1001; }
.hamburger span { width: 100%; height: 2px; background: var(--text-main); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }

.hero-badge {
    display: inline-block; padding: 6px 12px; background: rgba(255, 214, 0, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.3); color: var(--accent);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; border-radius: 50px; margin-bottom: 2rem;
}
.hero-title { margin-bottom: 1.5rem; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-dim); margin-bottom: 2.5rem; max-width: 600px; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.image-container { position: relative; width: 100%; max-width: 450px; margin: 0 auto; }
.image-container::before { content: ''; position: absolute; inset: 0; background: var(--bg-main); z-index: 1; border-radius: var(--radius); }
.image-container img { width: 100%; position: relative; z-index: 2; transition: var(--transition); border-radius: var(--radius); }
.accent-border { position: absolute; top: 20px; left: -20px; width: 100%; height: 100%; border: 2px solid var(--accent); z-index: 0; border-radius: var(--radius); }

/* =========================================
   EXPANDED DATA STRIP
   ========================================= */
.stats-strip { position: relative; z-index: 2; background: rgba(13, 13, 13, 0.8); backdrop-filter: blur(10px); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); padding: 3rem 5%; gap: 1.5rem; }
.stat-item { text-align: center; border-right: 1px solid var(--border-color); padding: 0 0.5rem; }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

/* =========================================
   ABOUT / PROFILE
   ========================================= */
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

/* =========================================
   PROFESSIONAL EXPERTISE (BENTO BOX)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}
.bento-item {
    background: rgba(13, 13, 13, 0.7); backdrop-filter: blur(10px);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 2.5rem; transition: var(--transition); position: relative; overflow: hidden;
}
.bento-item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.bento-item:hover { border-color: #3f3f46; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.bento-item:hover::before { transform: scaleX(1); }

.bento-item.span-12 { grid-column: span 12; }
.bento-item.span-8 { grid-column: span 8; }
.bento-item.span-4 { grid-column: span 4; }

.bento-title { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--text-main); }

/* Core Competencies Grid */
.competency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.comp-item { display: flex; align-items: flex-start; color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.comp-item span { color: var(--accent); margin-right: 10px; font-weight: bold; }

/* Tech Stack Tags */
.tech-stack-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }
.tech-group h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); margin-bottom: 0.8rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
    padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-dim);
    border-radius: 4px; transition: var(--transition);
}
.tag-cloud span:hover { border-color: var(--accent); color: var(--text-main); background: rgba(255, 214, 0, 0.05); }

/* Soft Skills */
.soft-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.soft-tag {
    background: transparent; border: 1px dashed var(--border-color);
    padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text-dim);
    border-radius: 50px; transition: var(--transition);
}
.soft-tag:hover { border-color: var(--accent); color: var(--text-main); }

/* =========================================
   VENTURES (Image-less Layout)
   ========================================= */
.venture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.venture-card-minimal { 
    background: rgba(13, 13, 13, 0.8); border: 1px solid var(--border-color); 
    padding: 3rem; border-radius: var(--radius); transition: var(--transition); 
}
.venture-card-minimal:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(255, 214, 0, 0.05); transform: translateY(-5px); }
.venture-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.venture-card-header h3 { font-size: 1.8rem; margin-bottom: 0; }
.status-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border: 1px solid var(--accent); color: var(--accent); border-radius: 20px; }

/* =========================================
   BOOKS / PUBLICATIONS
   ========================================= */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.book-card { display: flex; flex-direction: column; background: var(--bg-main); border: 1px solid var(--border-color); padding: 1.5rem; transition: var(--transition); border-radius: var(--radius); }
.book-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(255, 214, 0, 0.05); transform: translateY(-5px); }
.book-cover { margin-bottom: 1.5rem; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius); }
.book-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.book-info { display: flex; flex-direction: column; flex-grow: 1; }
.book-info h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.book-info p { margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }

/* =========================================
   CONTACT
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.method-item { margin-bottom: 2rem; }
.method-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 0.5rem; }
.method-value { font-size: 1.25rem; font-weight: 700; color: var(--text-main); word-break: break-word; }
.method-value[href]:hover { color: var(--accent); }
.social-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.social-links a { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.social-links a:hover { color: var(--accent); border-color: var(--accent); }

/* Form */
.premium-form { background: rgba(13, 13, 13, 0.8); padding: 3rem; border: 1px solid var(--border-color); border-radius: var(--radius); backdrop-filter: blur(10px); }
.form-disclaimer { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 2rem; font-style: italic; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.premium-form input, .premium-form select, .premium-form textarea {
    width: 100%; background: rgba(5, 5, 5, 0.8); border: 1px solid var(--border-color); padding: 14px 16px;
    font-family: var(--font-main); font-size: 1rem; color: var(--text-main); transition: var(--transition); border-radius: 4px;
}
.premium-form input:focus, .premium-form select:focus, .premium-form textarea:focus { outline: none; border-color: var(--accent); }
.custom-select { position: relative; }
.premium-form select { appearance: none; cursor: pointer; color: var(--text-dim); }
.premium-form select:focus, .premium-form select:valid { color: var(--text-main); }
.form-status { font-weight: 600; font-size: 0.9rem; padding: 10px; display: none; text-align: center; border-radius: 4px; }

/* =========================================
   FOOTER
   ========================================= */
.footer { padding: 40px 0; background: var(--bg-main); position: relative; z-index: 2; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-brand h2 span { color: var(--accent); }
.footer-brand p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.footer-legal { text-align: right; font-size: 0.9rem; }
.legal-links a { margin-left: 1.5rem; text-decoration: underline; }
.legal-links a:hover { color: var(--text-main); }

/* =========================================
   ANIMATIONS 
   ========================================= */
.reveal { opacity: 0; visibility: hidden; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; visibility: visible; }
.fade-up { transform: translateY(40px); }
.fade-up.active { transform: translateY(0); }
.fade-left { transform: translateX(40px); }
.fade-left.active { transform: translateX(0); }
.staggered-1 { transition-delay: 0.15s; }
.staggered-2 { transition-delay: 0.3s; }
.staggered-3 { transition-delay: 0.45s; }

/* =========================================
   100% MOBILE RESPONSIVE FIXES
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid, .grid-split, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding-top: 140px; padding-bottom: 60px; }
    
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 0; }
    .stat-item:nth-child(3), .stat-item:nth-child(6) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2), .stat-item:nth-child(3) { border-bottom: 1px solid var(--border-color); padding-bottom: 2rem; }
    
    .bento-item.span-8, .bento-item.span-4 { grid-column: span 12; } /* Stack tech and soft skills */
    
    .venture-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .contact-form-wrapper form { padding: 2.5rem 2rem; }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .nav-links, .nav-btn { display: none; }
    .nav-links {
        display: flex; position: fixed; top: 70px; left: 0; width: 100vw; height: calc(100vh - 70px);
        background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center;
        gap: 2rem; transform: translateX(100%); opacity: 0; visibility: hidden; transition: var(--transition);
        border-top: 1px solid var(--border-color); z-index: 999;
    }
    .nav-links.active { transform: translateX(0); opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.3rem; }
    .hamburger { display: flex; }
    
    /* Stats Layout */
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 2rem 5%; gap: 1rem 0; }
    .stat-item { border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; padding-top: 1.5rem; }
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { padding-top: 0; }
    .stat-item:nth-child(5), .stat-item:nth-child(6) { border-bottom: none; padding-bottom: 0; }
    
    /* Grid adjustments */
    .bento-grid { display: flex; flex-direction: column; }
    .bento-item { padding: 1.5rem; }
    .image-container { max-width: 100%; padding: 0 20px; }
    
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-legal { text-align: center; }
    .legal-links a { margin: 0 10px; }
}

/* =========================================
   LEGAL PAGES (Privacy & Terms)
   ========================================= */
.legal-page-wrapper {
    padding: 160px 0 80px;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 2;
}
.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4rem 5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.legal-content p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.legal-content strong {
    color: var(--text-main);
}
.legal-content h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 214, 0, 0.1);
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}
.legal-content li {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: square;
    list-style-position: outside;
}

/* Legal Pages Mobile Adjustments */
@media (max-width: 768px) {
    .legal-page-wrapper {
        padding: 120px 0 60px;
    }
    .legal-content {
        padding: 2.5rem 1.5rem;
    }
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

/* =========================================
   Media / Featured In Section (White to Color with 3D)
   ========================================= */
.media-section {
    padding: 3rem 0;
    background-color: var(--bg-panel, #050505);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.media-heading {
    display: block;
    color: var(--text-dim, #888888);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.media-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem; /* Generous spacing for larger logos */
}

.media-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Added padding so the 3D hover box-shadow doesn't clip the image */
    padding: 10px 20px;
    border-radius: 8px;
}

.media-logo {
    max-height: 55px; /* Large size */
    width: auto;
    max-width: 220px;
    /* This filter makes ANY colored image pure white */
    filter: brightness(0) invert(1) opacity(0.85); 
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Hover Effect: Restore color and lift */
.media-logo-link:hover .media-logo {
    /* Removes the white filter, revealing original colors */
    filter: none; 
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .media-logos {
        gap: 2.5rem;
    }
    .media-logo {
        max-height: 40px; 
    }
}

/* =========================================
   Animated Background Elements
   ========================================= */

/* Base Container - Fixed behind all content */
.bg-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
    background-color: var(--theme-color, #050505);
    overflow: hidden;
    pointer-events: none; /* Ensures the background doesn't block mouse clicks */
}

/* Subtle Panning Cyber Grid */
.cyber-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Flattens the grid and slowly pans it diagonally */
    animation: panGrid 30s linear infinite;
}

/* Ambient Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* High blur creates a smooth, premium glow */
    opacity: 0.15; /* Kept very low for professionalism */
    will-change: transform;
}

/* Accent Color Orb (Matches your SVG #FFD600 accent) */
.orb-1 {
    width: 45vw;
    height: 45vw;
    background: #FFD600;
    top: -10%;
    left: -10%;
    animation: floatOrbOne 25s ease-in-out infinite alternate;
}

/* Secondary Tech Blue Orb for contrast */
.orb-2 {
    width: 50vw;
    height: 50vw;
    background: #1a5cff;
    bottom: -15%;
    right: -10%;
    animation: floatOrbTwo 30s ease-in-out infinite alternate;
}

/* Keyframes for the Grid */
@keyframes panGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* Keyframes for the Orbs */
@keyframes floatOrbOne {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5vw, 10vh) scale(1.1);
    }
    100% {
        transform: translate(-5vw, 5vh) scale(0.95);
    }
}

@keyframes floatOrbTwo {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10vw, -5vh) scale(1.05);
    }
    100% {
        transform: translate(5vw, -10vh) scale(1);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .orb-1, .orb-2 {
        opacity: 0.1; /* Reduces intensity on smaller screens */
    }
    .orb-1 {
        width: 80vw;
        height: 80vw;
    }
    .orb-2 {
        width: 90vw;
        height: 90vw;
    }
}

/* =========================================
   UI/UX Animations & 3D Effects
   ========================================= */

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items appearing together */
.staggered-1 { transition-delay: 0.1s; }
.staggered-2 { transition-delay: 0.2s; }
.staggered-3 { transition-delay: 0.3s; }

/* Turn off delays on mobile so things don't take too long to load */
@media (max-width: 768px) {
    .staggered-1, .staggered-2, .staggered-3 {
        transition-delay: 0s;
    }
}

/* --- 3D Interactive Tilt Elements --- */
.tilt-element {
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Smooth transition for when the mouse leaves */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.tilt-element:hover {
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 214, 0, 0.05); /* Subtle gold glow */
}

/* Ensure inner content pops out slightly in 3D space */
.tilt-element > * {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

/* =========================================
   Premium Sparkling Gold Theme Updates
   ========================================= */

/* 1. Shimmering Gold Text Effect */
.text-accent {
    /* Creates a metallic gold gradient */
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    background-size: 200% auto;
    color: #D4AF37; /* Fallback for older browsers */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Optional: Adds a subtle moving sparkle effect to the text */
    animation: goldShine 4s linear infinite;
}

/* Keyframes for the text sparkle */
@keyframes goldShine {
    to {
        background-position: 200% center;
    }
}

/* 2. Update the Ambient Background Orb (from earlier) */
.orb-1 {
    width: 45vw;
    height: 45vw;
    /* Replaces the flat yellow with a rich glowing gold */
    background: radial-gradient(circle, #FCF6BA 0%, #D4AF37 50%, #AA771C 100%);
    top: -10%;
    left: -10%;
    animation: floatOrbOne 25s ease-in-out infinite alternate;
}

/* 3. Update the 3D Hover Glow (from the JavaScript effects) */
.tilt-element:hover {
    z-index: 10;
    /* Replaces the yellow glow with a sophisticated gold shadow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.15); 
}

/* 4. Update Global Root Variables (If you are using them in your original CSS) */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #FCF6BA;
    --gold-dark: #AA771C;
}

/* =========================================
   Book Action Buttons
   ========================================= */
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.book-actions-secondary {
    display: flex;
    gap: 0.75rem;
}

.book-actions-secondary .btn-secondary {
    flex: 1; /* Makes the secondary buttons split the width evenly */
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
}