/* ==========================================================================
   YAHIA AZAB PORTFOLIO - CORE STYLE SYSTEM (DARK LUXURY & CYBER DEVELOPER)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --bg-base: #050505;          /* Deep space black */
    --bg-section: #0A0A0A;       /* Secondary background */
    --bg-card: rgba(255, 255, 255, 0.03); /* Card background */
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-element-soft: rgba(255, 255, 255, 0.03);
    --bg-element-soft-hover: rgba(255, 255, 255, 0.06);
    
    --color-primary: #D4AF37;     /* Primary Gold */
    --color-primary-rgb: 212, 175, 55;
    --color-accent: #F4D03F;      /* Secondary Gold */
    --color-accent-rgb: 244, 208, 63;
    --color-neon: #D4AF37;        /* Gold highlight */
    --color-neon-rgb: 212, 175, 55;
    
    --text-primary: #FFFFFF;      /* White text */
    --text-secondary: #B0B0B0;    /* Secondary text */
    --text-muted: #7F7F7F;        /* Muted text */
    
    /* Semantic Colors */
    --color-success: #D4AF37;     /* Align success status to gold theme */
    --color-danger: #C0392B;      /* Luxury muted red */
    --color-warning: #F4D03F;     /* Accent Gold */
    
    /* Soft Backdrops */
    --primary-soft: rgba(212, 175, 55, 0.08);
    --accent-soft: rgba(244, 208, 63, 0.08);
    --neon-soft: rgba(212, 175, 55, 0.12);
    --success-soft: rgba(212, 175, 55, 0.08);
    --danger-soft: rgba(192, 57, 43, 0.08);
    --warning-soft: rgba(244, 208, 63, 0.08);
    
    /* Borders & Glassmorphism */
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(212, 175, 55, 0.2); /* Gold borders */
    --glass-border-hover: rgba(212, 175, 55, 0.45);
    --glass-border-neon: rgba(244, 208, 63, 0.35);
    --glass-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.7);
    --neon-glow: 0 0 20px rgba(212, 175, 55, 0.25);
    
    /* Animations & Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Overrides - Luxury Champagne Theme */
[data-bs-theme="light"] {
    --bg-base: #FCFBF7;           /* Luxury warm white/ivory */
    --bg-section: #F7F5EB;        /* Warm light gray champagne */
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: #FFFFFF;
    --bg-element-soft: rgba(0, 0, 0, 0.03);
    --bg-element-soft-hover: rgba(0, 0, 0, 0.06);
    
    --text-primary: #1C1917;      /* Warm charcoal */
    --text-secondary: #44403C;    /* Medium stone */
    --text-muted: #78716C;        /* Stone gray */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(212, 175, 55, 0.25);
    --glass-border-hover: rgba(212, 175, 55, 0.6);
    --glass-border-neon: rgba(244, 208, 63, 0.5);
    --glass-shadow: 0 10px 40px 0 rgba(120, 113, 108, 0.08);
    
    --primary-soft: rgba(212, 175, 55, 0.08);
    --accent-soft: rgba(244, 208, 63, 0.08);
    --neon-soft: rgba(212, 175, 55, 0.12);
    --success-soft: rgba(212, 175, 55, 0.08);
    --danger-soft: rgba(192, 57, 43, 0.08);
    --warning-soft: rgba(244, 208, 63, 0.08);
}

/* === LIGHT THEME TEXT FIX (auto-correct hardcoded Bootstrap white text) === */
[data-bs-theme="light"] .text-light,
[data-bs-theme="light"] .text-white,
[data-bs-theme="light"] .modal-glass.text-light {
    color: var(--text-primary) !important;
}

/* Form inputs that used text-light for dark backgrounds */
[data-bs-theme="light"] .form-control.text-light,
[data-bs-theme="light"] textarea.text-light {
    color: var(--text-primary) !important;
}
[data-bs-theme="light"] .form-control.text-light::placeholder {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

/* Text selections */
::selection {
    background-color: var(--color-primary);
    color: #050505;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-neon));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-cursor-glow {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-accent-rgb), 0.05) 50%, rgba(0,0,0,0) 70%);
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 99998;
    mix-blend-mode: screen;
}

/* Cursor States on Hover */
body.cursor-hovering .custom-cursor {
    width: 40px;
    height: 40px;
    border-color: var(--color-neon);
    background-color: rgba(var(--color-accent-rgb), 0.1);
}

body.cursor-hovering .custom-cursor-glow {
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.25) 0%, rgba(var(--color-primary-rgb), 0.08) 50%, rgba(0,0,0,0) 70%);
}

@media (max-width: 991px) {
    .custom-cursor, .custom-cursor-glow {
        display: none !important;
    }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-base);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-container {
    text-align: center;
}

.preloader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.9);
    animation: revealLogo 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-logo span {
    color: var(--color-neon);
    text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.5);
}

.preloader-bar-bg {
    width: 200px;
    height: 2px;
    background: var(--bg-element-soft);
    margin: 20px auto;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-neon));
    border-radius: 4px;
    transition: width 0.1s linear;
}

.preloader-percent {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

@keyframes revealLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.03);
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-neon));
    box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.6);
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASS
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .glass-card:hover {
    box-shadow: 0 15px 35px -5px rgba(var(--color-primary-rgb), 0.1);
}

.bg-dark-glass {
    background-color: var(--bg-element-soft) !important;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ==========================================================================
   NAVIGATION NAVBAR
   ========================================================================== */
.header-glass {
    background: rgba(5, 5, 5, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    padding: 20px 0;
    z-index: 1000;
}

[data-bs-theme="light"] .header-glass {
    background: rgba(250, 250, 250, 0.75);
}

.header-glass.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 5, 0.9);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(var(--color-primary-rgb), 0.15);
}

[data-bs-theme="light"] .header-glass.scrolled {
    background: rgba(250, 250, 250, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-brand-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-brand span {
    color: var(--color-neon);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px !important;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-neon));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 32px);
}

/* Nav Burger Button Custom Overlay */
.navbar-toggler {
    padding: 0;
    width: 36px;
    height: 36px;
    position: relative;
    color: var(--text-primary);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.theme-toggle-btn {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: var(--primary-soft);
    color: var(--color-accent);
    border-color: var(--color-primary);
}

/* ==========================================================================
   BUTTONS & CTA
   ========================================================================== */
.btn-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #050505 !important;
    border: none;
    border-radius: 30px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-neon));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.4);
}

.glow-button {
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.2);
}

.btn-outline-custom {
    border: 1.5px solid var(--glass-border);
    border-radius: 30px;
    background: var(--bg-element-soft);
    transition: var(--transition-smooth);
    font-weight: 600;
    color: var(--text-primary);
}

.btn-outline-custom:hover {
    border-color: var(--color-neon);
    background: var(--neon-soft);
    color: var(--text-primary) !important;
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.btn-dark-glass {
    background: var(--bg-element-soft);
    border: 1.5px solid var(--glass-border);
    border-radius: 30px;
    transition: var(--transition-smooth);
    font-weight: 600;
    color: var(--text-primary);
}

.btn-dark-glass:hover {
    background: var(--bg-element-soft-hover);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4.8rem;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-neon);
    letter-spacing: 0.5px;
}

.typing-container {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.typing-text {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}

.typing-cursor {
    color: var(--color-neon);
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-element-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.hero-social-links a:hover {
    color: var(--color-neon);
    border-color: var(--color-neon);
    background: var(--neon-soft);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--neon-glow);
}

/* Hero Portrait Styling */
.hero-img-wrapper {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

.photo-glow-border {
    position: relative;
    padding: 8px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.25);
    animation: borderMorph 10s infinite alternate ease-in-out;
}

.photo-inner-frame {
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.hero-profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-profile-img:hover {
    transform: scale(1.05) rotate(1deg);
}

@keyframes borderMorph {
    0% { border-radius: 30px 70px 30px 70px; }
    100% { border-radius: 70px 30px 70px 30px; }
}

/* Parallax Widgets */
.floating-widget {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5;
    animation: floatAnim 6s infinite ease-in-out;
    pointer-events: none;
}

.widget-code {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.widget-database {
    bottom: 25%;
    right: -10%;
    animation-delay: 2s;
}

.widget-python {
    bottom: 5%;
    left: -5%;
    animation-delay: 4s;
}

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

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section-tag {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-neon);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-neon));
    border-radius: 2px;
    margin-top: 15px;
}

/* ==========================================================================
   ABOUT & EDUCATION SECTION
   ========================================================================== */
.details-grid .detail-card {
    background: var(--bg-element-soft);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.details-grid .detail-card:hover {
    border-color: var(--color-primary);
    background: var(--primary-soft);
}

.details-grid .detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-timeline-wrapper {
    height: 100%;
}

.education-card {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
}

.edu-year {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.strengths-list li i {
    font-size: 1.1rem;
}

/* GPA Badge Subtlety */
.gpa-subtle {
    font-size: 0.85rem;
    color: var(--color-neon);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === NEW EDUCATION TIMELINE (edu-node / edu-card / timeline-line) === */
.education-timeline {
    padding-left: 30px;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-neon));
    border-radius: 2px;
}

.edu-node {
    position: relative;
    margin-bottom: 40px;
    min-height: 80px;
}

.edu-node:last-child {
    margin-bottom: 0;
}

.edu-dot {
    position: absolute;
    left: -39px;
    top: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
    z-index: 5;
    transition: var(--transition-smooth);
}

.edu-node:hover .edu-dot {
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(var(--color-primary-rgb), 0.8);
}

.edu-card {
    position: relative;
    min-height: 120px;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
    background: linear-gradient(180deg, var(--bg-section), var(--bg-base));
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-element-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--glass-border);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skill-category-card {
    position: relative;
    overflow: hidden;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--bg-element-soft);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.badge-tool {
    background: var(--bg-element-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.badge-tool:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.badge-cs {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.badge-cs:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-success);
    transform: translateY(-2px);
}

.badge-security {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.badge-security:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-danger);
    transform: translateY(-2px);
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.timeline-v {
    position: relative;
    padding: 20px 0;
}

.timeline-v::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-neon));
}

@media (min-width: 768px) {
    .timeline-v::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-v-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-v-icon {
    position: absolute;
    left: 2px;
    top: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    z-index: 10;
    box-shadow: 0 0 10px var(--color-primary);
}

@media (min-width: 768px) {
    .timeline-v-icon {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-v-content {
    margin-left: 55px;
}

@media (min-width: 768px) {
    .timeline-v-item:nth-child(odd) .timeline-v-content {
        margin-left: 0;
        margin-right: 55%;
    }
    .timeline-v-item:nth-child(even) .timeline-v-content {
        margin-left: 55%;
    }
}

/* ==========================================================================
   JOURNEY SECTION
   ========================================================================== */
.journey-v {
    position: relative;
    padding: 20px 0;
}

.journey-v::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--color-neon), var(--color-primary));
}

.journey-node {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}

.journey-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid var(--bg-base);
    background-color: var(--color-neon);
    box-shadow: 0 0 10px var(--color-neon);
    z-index: 5;
    transition: var(--transition-smooth);
}

.journey-node:hover .journey-dot {
    transform: scale(1.3);
    background-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
}

.journey-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.journey-card:hover {
    border-color: var(--color-neon);
    transform: translateX(5px);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.project-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-filters .filter-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.portfolio-filters .filter-btn.active {
    background: var(--color-primary);
    color: #050505;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3);
}

.project-card {
    border: 1px solid var(--glass-border);
}

.project-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img-container img {
    transform: scale(1.08) rotate(1deg);
}

.project-actions .btn {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal details formatting */
.modal-glass {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

[data-bs-theme="light"] .modal-glass {
    background: rgba(252, 251, 247, 0.95);
    box-shadow: 0 15px 40px rgba(120, 113, 108, 0.15);
}

.modal-content-scroll {
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom Grid for Images if webp is not loading */
.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.bg-gradient-project-1 { background: linear-gradient(135deg, #1e1b4b, #311042); }
.bg-gradient-project-2 { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.bg-gradient-project-3 { background: linear-gradient(135deg, #022c22, #064e3b); }
.bg-gradient-project-4 { background: linear-gradient(135deg, #1c1917, #44403c); }
.bg-gradient-project-5 { background: linear-gradient(135deg, #161e29, #1b3b4f); }
.bg-gradient-project-6 { background: linear-gradient(135deg, #1f1625, #3c1e4d); }
.bg-gradient-project-7 { background: linear-gradient(135deg, #1d1c16, #423210); }

.project-placeholder-icon {
    opacity: 0.35;
    transition: var(--transition-smooth);
}

.project-card:hover .project-placeholder-icon {
    opacity: 0.65;
    transform: scale(1.1);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.service-card {
    border: 1px solid var(--glass-border);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.35);
}

/* Service CTA Link */
.service-cta-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 4px;
}
.service-cta-link:hover {
    color: var(--color-accent);
    gap: 8px;
}

/* === DYNAMIC CARD IMAGES — HOVER GLOW EFFECT === */
.edu-card-img,
.journey-card-img,
.experience-card-img,
.service-card-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    filter: brightness(0.9) saturate(0.95);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, var(--bg-element-soft), var(--bg-card));
}

.edu-card:hover .edu-card-img,
.journey-card:hover .journey-card-img,
.timeline-v-content:hover .experience-card-img,
.service-card:hover .service-card-img {
    filter: brightness(1) saturate(1.1);
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.45);
    transform: scale(1.02);
}

/* ==========================================================================
   CERTIFICATES SECTION
   ========================================================================== */
.cert-card {
    height: 220px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.cert-icon-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 6.5rem;
    opacity: 0.03;
    pointer-events: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-icon-bg {
    transform: rotate(-15deg) scale(1.1);
    opacity: 0.08;
}

.cert-arrow {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Gallery lightbox overlay styling */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-container {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    text-align: center;
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   DEVELOPER TERMINAL
   ========================================================================== */
.terminal-window {
    background: #020202;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--color-primary-rgb), 0.05);
    overflow: hidden;
}

.terminal-header {
    background: #0d0d0d;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn-close { background-color: #ef4444; }
.terminal-btn-min { background-color: #f59e0b; }
.terminal-btn-max { background-color: #10b981; }

.terminal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a7f3d0; /* Soft matrix green */
    min-height: 250px;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.terminal-prompt {
    color: var(--color-neon);
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-cursor {
    width: 8px;
    height: 15px;
    background-color: var(--color-neon);
    margin-left: 5px;
    animation: terminalBlink 1s infinite;
}

@keyframes terminalBlink {
    50% { opacity: 0; }
}

/* Light Theme Terminal Overrides */
[data-bs-theme="light"] .terminal-window {
    background: #F3F2EB;
    border-color: #E2DFD2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 0 30px rgba(var(--color-primary-rgb), 0.05);
}

[data-bs-theme="light"] .terminal-header {
    background: #E6E4D9;
    border-bottom-color: #E2DFD2;
}

[data-bs-theme="light"] .terminal-body {
    color: #064e3b; /* High-contrast dark forest green */
}

[data-bs-theme="light"] .terminal-body input {
    color: #064e3b !important;
}

[data-bs-theme="light"] .terminal-body .text-neon {
    color: #b45309 !important; /* Muted dark amber for commands */
}

[data-bs-theme="light"] .terminal-body .text-success {
    color: #15803d !important; /* Muted green for status */
}

[data-bs-theme="light"] .terminal-body .text-info {
    color: #0369a1 !important; /* Darker blue for light theme terminal */
}

[data-bs-theme="light"] .terminal-body .text-danger {
    color: #b91c1c !important; /* Darker red for light theme terminal */
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */
.security-card {
    border: 1px solid rgba(239, 68, 68, 0.1);
    background: rgba(239, 68, 68, 0.01);
}

.security-card:hover {
    border-color: var(--color-danger);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.security-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-danger);
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonial-carousel {
    border: 1px solid var(--glass-border);
}

.quote-icon {
    line-height: 1;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--color-primary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    border: none;
}

.carousel-indicators .active {
    background-color: var(--color-neon);
    width: 24px;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* ==========================================================================
   CONTACT SECTION & FORMS
   ========================================================================== */
.contact-info-card {
    border: 1px solid var(--glass-border);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.input-glass .form-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 1rem 0.75rem;
}

.input-glass .form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.25);
    color: var(--text-primary);
}

.input-glass label {
    padding: 1rem 0.75rem;
    color: var(--text-muted);
}

.input-glass .form-control:focus ~ label,
.input-glass .form-control:not(:placeholder-shown) ~ label {
    color: var(--color-primary);
}

/* Validation styling */
.was-validated .form-control:invalid {
    border-color: var(--color-danger);
    background-image: none;
}

.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.was-validated .form-control:valid {
    border-color: var(--color-success);
    background-image: none;
}

.was-validated .form-control:valid:focus {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-section);
}

.hover-light:hover {
    color: var(--text-primary) !important;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-element-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--color-neon);
    border-color: var(--color-neon);
    background: var(--neon-soft);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 999;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-neon);
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

/* ==========================================================================
   MISSING UTILITY CLASSES — COLOR & BACKGROUND HELPERS
   ========================================================================== */

/* Text color helpers */
.text-neon   { color: var(--color-neon)   !important; }
.text-accent { color: var(--color-accent) !important; }
.text-purple { color: #a855f7             !important; }

/* Soft background icon wrappers (used in service-icon, etc.) */
.bg-primary-soft { background-color: var(--primary-soft)  !important; }
.bg-neon-soft    { background-color: var(--neon-soft)     !important; }
.bg-accent-soft  { background-color: var(--accent-soft)   !important; }
.bg-success-soft { background-color: var(--success-soft)  !important; }
.bg-warning-soft { background-color: var(--warning-soft)  !important; }
.bg-danger-soft  { background-color: var(--danger-soft)   !important; }
.bg-purple-soft  { background-color: rgba(168, 85, 247, 0.08) !important; }

/* Progress bar neon fill */
.bg-neon   { background-color: var(--color-neon)   !important; }
.bg-accent { background-color: var(--color-accent) !important; }

/* ==========================================================================
   EDU-CARD TYPE BADGE ICON (corner indicator — university/training/cert)
   ========================================================================== */
.edu-type-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: var(--primary-soft);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    color: var(--color-primary);
    transition: var(--transition-smooth);
    z-index: 2;
}

.edu-card:hover .edu-type-icon {
    background: var(--color-primary);
    color: #050505;
    transform: rotate(8deg) scale(1.1);
}

/* ==========================================================================
   JOURNEY NODE UNIFIED SPACING & PROGRESS INDICATOR
   ========================================================================== */
.journey-node {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
    min-height: 100px;
}

.journey-card {
    min-height: 120px;
}

/* Journey progress tick mark on the dot */
.journey-node::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 25px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-neon);
    box-shadow: 0 0 6px var(--color-neon);
    z-index: 6;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-smooth);
}

.journey-node:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Edu nodes unified gap */
.edu-node {
    margin-bottom: 32px;
    min-height: 100px;
}

/* ==========================================================================
   LIGHT THEME FIXES — EDU-DOT & JOURNEY-DOT BORDER COLOR
   ========================================================================== */
[data-bs-theme="light"] .edu-dot {
    border-color: var(--bg-section) !important;
}

[data-bs-theme="light"] .journey-dot {
    border-color: var(--bg-section) !important;
}

/* ==========================================================================
   SKILL PROGRESS BAR — BG-NEON CONCRETE COLOR
   ========================================================================== */
.progress-bar-fill.bg-neon {
    background: linear-gradient(90deg, var(--color-neon), var(--color-accent)) !important;
}

.progress-bar-fill.bg-accent {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary)) !important;
}

/* ==========================================================================
   SERVICE CARD HOVER ENHANCEMENT
   ========================================================================== */
.service-card {
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
}

/* ==========================================================================
   EDUCATION TIMELINE — LIGHT THEME CARD ADJUSTMENTS
   ========================================================================== */
[data-bs-theme="light"] .edu-card.glass-card,
[data-bs-theme="light"] .journey-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

/* ==========================================================================
   RESPONSIVE — EDUCATION / JOURNEY COMPACT MOBILE
   ========================================================================== */
@media (max-width: 576px) {
    .education-timeline {
        padding-left: 20px;
    }
    .edu-dot {
        left: -29px;
        width: 14px;
        height: 14px;
    }
    .edu-card.glass-card {
        padding: 1rem !important;
    }
}

