/* ==========================================================================
           1. CSS VARIABLES & SYSTEM ARCHITECTURE (Vercel/Linear Aesthetic)
           ========================================================================== */
:root {
    --bg-base: #030712;
    --bg-surface: rgba(17, 24, 39, 0.65);
    --bg-surface-hover: rgba(30, 41, 59, 0.75);
    --border-glow: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    --glass-blur: blur(16px);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

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

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
.display-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.section-padding {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn-prime {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: #fff;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-prime:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}
.text-align {
    text-align: justify;
}
.align-center {
    text-align: center;
}

/* ==========================================================================
   THEME TOGGLE BUTTON STYLES (ABOUT PAGE)
   ========================================================================== */
.dark-white-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glow, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #ffffff);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth, ease);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-white-toggle-btn:hover {
    background: var(--accent-blue, #3b82f6);
    color: #ffffff;
    border-color: var(--accent-blue, #3b82f6);
}

/* ==========================================================================
   ABOUT PAGE WHITE / LIGHT MODE OVERRIDES
   ========================================================================== */
body.light-mode {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --border-glow: rgba(15, 23, 42, 0.12);
    --border-hover: rgba(37, 99, 235, 0.4);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --accent-blue: #2563eb;
    --accent-cyan: #0284c7;
    --accent-purple: #7c3aed;
}

/* Background & Hero Section */
body.light-mode .about-hero {
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.08), transparent 70%);
}

/* Toggle Button Light Mode Appearance */
body.light-mode .dark-white-toggle-btn {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .dark-white-toggle-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

/* Breadcrumb Links */
body.light-mode .breadcrumb-nav {
    color: var(--text-muted);
}

body.light-mode .breadcrumb-nav a {
    color: var(--accent-blue);
}

/* Text Gradients in Light Mode */
body.light-mode .text-gradient {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards Overrides */
body.light-mode .glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-mode .glass-card:hover {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

/* Timeline Wrappers & Items */
body.light-mode .timeline-wrapper {
    border-left-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .timeline-item::before {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Progress Bars */
body.light-mode .progress-bar-bg {
    background: rgba(15, 23, 42, 0.08);
}

/* Buttons */
body.light-mode .btn-glass {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

body.light-mode .btn-glass:hover {
    background: #f1f5f9;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* CTA Card Banner */
body.light-mode .glass-card[style*="linear-gradient"] {
    background: linear-gradient(135deg, #eff6ff, #f8fafc) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}

/* Back to top button */
body.light-mode .back-to-top {
    background: #ffffff;
    color: var(--accent-blue);
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .back-to-top:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

/* ==========================================================================
           SECTION STYLES
           ========================================================================== */

/* 1. Hero Banner */
@media (max-width: 470px) {
    .hero-nav {
        display: flex;
        flex-wrap: wrap;
    }
}

.about-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15), transparent 70%);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
    color: var(--accent-blue);
}

.hero-title-large {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@media (max-width: 767px) {

    /* लहान स्क्रीनवर Scroll Indicator लपवण्यासाठी */
    .scroll-down-indicator {
        display: none !important;
    }

    /* Hero Banner मधील मोकळी जागा कमी करण्यासाठी */
    .about-hero {
        min-height: auto;
        padding-bottom: 3rem;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-8px) translateX(-50%);
    }

    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

/* 2. Intro Section */
.profile-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.profile-img-box img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.profile-img-box:hover img {
    transform: scale(1.03);
}

/* 5 & 7. Timelines (Story & Experience) */
.timeline-wrapper {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 0.3rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* 8 & 9. Values & Philosophy Cards */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* 11. Roadmap Progress */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: var(--radius-pill);
    transition: width 1s ease-in-out;
}

/* Focus & Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .hero-title-large {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .timeline-wrapper {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: calc(-1.5rem - 6px);
    }
}


/* Professional Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.85);
    color: var(--accent-blue);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Hover & Active Effect */
.back-to-top:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.4);
}

/* Show Class when Scrolled */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
@media (max-width: 518px) {
    .foot-space {
        margin-bottom: 0.6rem !important;
    }
}