:root {
    /* Color Palette */
    --color-bg-base: #0a0a0c;
    --color-bg-darker: #050506;
    
    /* Vibrant Gradients & Accents for CEO vibe */
    --color-primary: #f97316;      /* Vibrant Orange */
    --color-primary-dark: #ea580c;
    --color-secondary: #a1a1aa;
    --color-accent: #fb923c;
    --color-gradient-start: #f97316;
    --color-gradient-end: #ef4444; 
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--color-bg-base);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

.font-inter {
    font-family: var(--font-body);
}

/* Typography Utilities */
.fw-black { font-weight: 900; }
.text-primary { color: var(--color-primary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.letter-spacing-1 { letter-spacing: 0.1em; }
.letter-spacing-2 { letter-spacing: 0.2em; }
.leading-relaxed { line-height: 1.8; }
.max-w-700 { max-width: 700px; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Backgrounds */
.bg-darker {
    background-color: var(--color-bg-darker);
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-base);
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Navigation - Glassmorphism */
.glass-nav {
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 12, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.custom-toggler {
    border: 1px solid var(--glass-border);
    padding: 0.5rem 0.75rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--color-primary);
}

.shadow-primary {
    box-shadow: 0 8px 25px -8px var(--color-primary);
}

.shadow-success {
    box-shadow: 0 8px 25px -8px #198754;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
    background-color: rgba(249, 115, 22, 0.1);
}

.btn-outline-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Glass Cards Elements */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.hover-lift:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(249, 115, 22, 0.3);
}

.hover-border:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

.border-glow:hover {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.15);
}

/* Layout Utilities */
.py-10 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 992px) {
    .py-10 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Background Animated Blobs */
.bg-blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.3) 0%, rgba(0,0,0,0) 70%);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239,68,68,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

.blob-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, rgba(0,0,0,0) 70%);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    animation: blink 1s step-end infinite;
    color: var(--color-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: float-y 2s infinite ease-in-out;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes float-y {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: 1px solid var(--glass-border);
}

.social-icon-lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.social-icon:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px var(--color-primary);
    border-color: var(--color-primary);
}

/* About Section Specifics */
.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, #111115, #1a1a20);
}

.gradient-overlay {
    background: linear-gradient(to top, rgba(10,10,12,1) 0%, rgba(10,10,12,0) 50%);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Timeline */
.timeline {
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

@media (min-width: 992px) {
    .timeline { padding-left: 0; }
    .timeline::before { left: 16px; width: 4px; background: linear-gradient(to bottom, var(--color-primary), rgba(249,115,22,0.1)); border-radius: 2px; }
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transform: translateX(-50%);
    z-index: 1;
}

@media (min-width: 992px) {
    .timeline-dot {
        left: 18px;
        top: 32px;
        width: 20px;
        height: 20px;
        border: 4px solid var(--color-bg-darker);
    }
}

/* Decorative Floating Shapes */
.floating-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}
.shape-1 { left: -30px; top: -15px; width: 25px; height: 25px; border: 3px solid var(--color-primary); border-radius: 50%; opacity: 0.8; animation: floatShape1 4s infinite ease-in-out; }
.shape-2 { right: -40px; bottom: 10px; width: 18px; height: 18px; background-color: var(--color-accent); transform: rotate(45deg); opacity: 0.6; animation: floatShape2 3s infinite ease-in-out alternate; }
.shape-3 { right: 20%; top: -30px; width: 15px; height: 15px; border: 2px solid var(--color-secondary); opacity: 0.5; animation: floatShape3 6s infinite linear; }

@keyframes floatShape1 { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-15px) scale(1.1); } }
@keyframes floatShape2 { 0% { transform: translateY(0) rotate(45deg); } 100% { transform: translateY(-20px) rotate(135deg); } }
@keyframes floatShape3 { 0% { transform: rotate(0deg) translateX(15px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(15px) rotate(-360deg); } }

[data-bs-theme="light"] .shape-1 { border-color: #ea580c; }
[data-bs-theme="light"] .shape-2 { background-color: #f97316; }

/* Custom Animations Class (Triggered via JS) */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up { transform: translateY(50px); }
.slide-left { transform: translateX(50px); }
.slide-right { transform: translateX(-50px); }
.fade-in { transform: scale(0.95); }
.scale-up { transform: scale(0.9); }

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 767.98px) {
    .display-1 { font-size: 2.8rem; }
    .display-4 { font-size: 2.2rem; }
    .display-5 { font-size: 2rem; }
    
    .hero-section { text-align: center; }
    .hero-section .justify-content-start { justify-content: center !important; }
    .hero-section .d-flex.gap-3 { justify-content: center; }
    .hero-section .social-links { justify-content: center; margin-top: 2rem !important; }
    
    .timeline { padding-left: 25px; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: -15px; top: 1.5rem; width: 12px; height: 12px; }
    
    .py-10 { padding-top: 4rem; padding-bottom: 4rem; }
    .glass-card { padding: 1.5rem !important; }
    
    .bg-blob { 
        max-width: 90vw !important; 
        max-height: 90vw !important; 
        filter: blur(60px); 
        animation: none; /* Reduce performance overhead */
    }
}

/* --- Light Mode Overrides --- */
[data-bs-theme="light"] {
    --color-bg-base: #ffffff;
    --color-bg-darker: #fafaf9; /* Warm off-white, not generic gray */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(249, 115, 22, 0.15); /* Orange primary tint instead of gray */
    --glass-shadow: 0 8px 30px rgba(249, 115, 22, 0.05);
}

[data-bs-theme="light"] .text-white { color: #0f172a !important; } /* Stark contrast slate */
[data-bs-theme="light"] .text-light { color: #334155 !important; }
[data-bs-theme="light"] .text-muted { color: #64748b !important; }
[data-bs-theme="light"] .nav-link { color: #334155 !important; }

[data-bs-theme="light"] .nav-link:hover, 
[data-bs-theme="light"] .nav-link.active {
    color: #f97316 !important; /* Vivid hover contrast */
}

[data-bs-theme="light"] .glass-nav { background: rgba(250, 250, 249, 0.9); border-bottom: 1px solid rgba(249, 115, 22, 0.1); }
[data-bs-theme="light"] .glass-nav.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 30px rgba(249, 115, 22, 0.08); }

[data-bs-theme="light"] .social-icon {
    background: #ffffff;
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.2);
}

[data-bs-theme="light"] .social-icon:hover {
    color: #ffffff;
}

[data-bs-theme="light"] .glass-pill {
    background: rgba(249, 115, 22, 0.05); /* Slight orange glow backing */
    border-color: rgba(249, 115, 22, 0.15);
    color: #ea580c !important; 
    font-weight: 600;
}

[data-bs-theme="light"] .bg-dark-subtle {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(249, 115, 22, 0.15) !important;
}

[data-bs-theme="light"] .border-dark { border-color: rgba(249, 115, 22, 0.15) !important; }

[data-bs-theme="light"] .gradient-overlay {
    background: linear-gradient(to top, rgba(250,250,249,1) 0%, rgba(250,250,249,0) 50%);
}

[data-bs-theme="light"] .timeline::before {
    background: linear-gradient(to bottom, transparent, rgba(249,115,22,0.2), transparent);
}

