/* ========================================
   MADDY PORTFOLIO — MASTER STYLESHEET
   Premium Dark Theme with Glassmorphism
   ======================================== */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Colors — Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(14, 165, 233, 0.12);
    --glass-border-hover: rgba(14, 165, 233, 0.25);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #0284c7;
    /* Sky Blue (deeper for light bg contrast) */
    --accent-secondary: #0ea5e9;
    /* Sky Blue */
    --accent-tertiary: #0369a1;
    /* Dark Sky */
    --accent-glow: rgba(14, 165, 233, 0.15);
    --accent-glow-strong: rgba(14, 165, 233, 0.25);

    --gradient-primary: linear-gradient(135deg, #0c4a6e, #0284c7, #0ea5e9);
    --gradient-secondary: linear-gradient(135deg, #0369a1, #0ea5e9);
    --gradient-accent: linear-gradient(135deg, #0284c7, #38bdf8);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 50%);

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --shadow-glow-strong: 0 0 40px var(--accent-glow-strong);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(14, 165, 233, 0.2);
    --glass-border-hover: rgba(14, 165, 233, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}


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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) #e2e8f0;
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: #e2e8f0;
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}


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

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

.ambient-orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: #0ea5e9;
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.ambient-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #38bdf8;
    top: 50%;
    right: -100px;
    animation-delay: -7s;
}

.ambient-orb:nth-child(3) {
    width: 500px;
    height: 500px;
    background: #0284c7;
    bottom: -200px;
    left: 30%;
    animation-delay: -14s;
}

/* ---- System Sync Loader ---- */
.sync-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sync-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sync-content {
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sync-gif {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.sync-label {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- Laser Top Loader ---- */
.laser-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary));
    z-index: 100000;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.3s ease;
    pointer-events: none;
}

.laser-loader.active {
    width: 100%;
}

.laser-loader.finishing {
    opacity: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 40px) scale(1.02);
    }
}


/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(14, 165, 233, 0.1);
}

.nav-links a.active {
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.12);
}

.nav-cta {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.nav-cta:hover {
    background: var(--accent-primary) !important;
    color: var(--bg-primary) !important;
    box-shadow: var(--shadow-glow);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.mobile-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transition: var(--transition-slow);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.mobile-menu a:hover {
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.mobile-close:hover {
    border-color: var(--danger);
    color: var(--danger);
}


/* ---- Glass Card ---- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.1);
}


/* ---- Section Styles ---- */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}


/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.typing-text {
    color: var(--accent-tertiary);
    border-right: 2px solid var(--accent-tertiary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1.2s ease 0.3s forwards;
    opacity: 0;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-avatar {
    width: 420px;
    height: 480px;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 8px solid white;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}


/* ---- Project Cards ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(14, 165, 233, 0.15);
    z-index: 10;
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-card-image {
    transform: scale(1.05);
}

.project-card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.project-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9), transparent);
    pointer-events: none;
    transition: var(--transition-base);
}

.project-card:hover .project-card-image-wrapper::after {
    height: 50%;
    background: linear-gradient(to top, rgba(248, 250, 252, 0.7), transparent);
}

.project-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-card-footer {
    margin-top: auto;
}


/* ---- Experience Timeline ---- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px var(--accent-glow);
    z-index: 2;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: var(--transition-base);
}

.timeline-card:hover {
    border-color: rgba(14, 165, 233, 0.15);
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.timeline-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.03);
    padding: 8px;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-role {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.timeline-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-desc {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ---- Certification Cards ---- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.cert-card:hover {
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.cert-image-wrapper {
    overflow: hidden;
    position: relative;
}

.cert-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-body {
    padding: 24px;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-issuer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ---- Cricket Section ---- */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 48px;
    transition: var(--transition-base);
}

.team-card:hover {
    border-color: var(--glass-border-hover);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.03);
    padding: 8px;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.team-role-badge {
    display: inline-flex;
    padding: 4px 14px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-top: 4px;
}

.team-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}


/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-base);
    text-decoration: none;
}

.contact-card:hover {
    border-color: rgba(14, 165, 233, 0.15);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-icon.email {
    background: rgba(14, 165, 233, 0.12);
}

.contact-icon.linkedin {
    background: rgba(14, 165, 233, 0.12);
}

.contact-icon.phone {
    background: rgba(56, 189, 248, 0.12);
}

.contact-icon.location {
    background: rgba(56, 189, 248, 0.12);
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-value a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-value a:hover {
    color: var(--accent-secondary);
}


/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 32px;
    margin-top: 40px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-nav-group h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-nav-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition-base);
}

.footer-nav-group a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.footer-social-link:hover {
    border-color: var(--accent-primary);
    color: white;
    background: var(--accent-primary);
    transform: translateY(-2px);
}


/* ---- Animations ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Reveal */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}


/* ---- Admin Styles ---- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
}

.admin-sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-sidebar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav-list {
    list-style: none;
    padding: 0 12px;
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
    margin-bottom: 4px;
}

.admin-nav-item a:hover,
.admin-nav-item a.active {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-primary);
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Admin Forms */
.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.admin-form h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ---- UI Polishing & UX Enhancements ---- */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

.back-to-top:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.pulse {
    animation: pulse-glow 2s infinite;
}

/* Image Lazy Loading Transition */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.loaded {
    opacity: 1;
}

/* Custom Tech Badge Styling */
.tech-badge {
    transition: var(--transition-fast);
    cursor: default;
}

.tech-badge:hover {
    transform: translateY(-2px);
    background: var(--accent-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th {
    padding: 16px 20px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(241, 245, 249, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(14, 165, 233, 0.03);
}

.action-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
    border: 1px solid;
}

.action-btn.edit {
    color: var(--warning);
    border-color: var(--warning);
}

.action-btn.edit:hover {
    background: var(--warning);
    color: var(--bg-primary);
}

.action-btn.delete {
    color: var(--danger);
    border-color: var(--danger);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: white;
}

.actions-cell {
    text-align: right;
    white-space: nowrap;
    width: 200px;
}

.actions-cell .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* ---- Neural Toasts (Enhanced Flash Messages) ---- */
.flash-message {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.flash-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
}

.flash-success {
    border-left: 0;
}

.flash-success::before {
    background: var(--success);
}

.flash-error::before {
    background: var(--danger);
}

.flash-message.evaporate {
    animation: toastOut 0.4s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* ---- Page Transition ---- */
.page-transition {
    animation: pageIn 0.6s ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-description {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-avatar {
        width: 280px;
    }

    .hero-stats {
        gap: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-card {
        flex-direction: column;
        gap: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .footer-nav {
        gap: 32px;
    }

    /* Admin responsive */
    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Admin responsive */
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    /* Hobby responsive */
    .hobby-grid {
        grid-template-columns: 1fr;
    }

    .hobby-entry-header {
        flex-direction: column;
        gap: 12px;
    }

    .hobby-entry-duration {
        margin-left: 0 !important;
    }

    .hobby-hero {
        height: 280px;
    }

    .hobby-hero-title {
        font-size: 2rem;
    }
}


/* CSS for dropdown removed as per user request */


/* ---- Hobbies Card Grid ---- */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.hobby-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    transition: var(--transition-base);
    background: var(--bg-card);
}

.hobby-card:hover {
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.hobby-card-cover {
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

.hobby-card:hover .hobby-card-cover img {
    transform: scale(1.08);
}

.hobby-card-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(14, 165, 233, 0.2),
            rgba(30, 58, 138, 0.25),
            rgba(12, 74, 110, 0.15));
}

.hobby-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.hobby-card-body {
    padding: 24px;
    padding-top: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hobby-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.2));
}

.hobby-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hobby-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.hobby-card-cta {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-base);
}

.hobby-card:hover .hobby-card-cta {
    gap: 12px;
}


/* ---- Hobby Detail Hero ---- */
.hobby-hero {
    position: relative;
    height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 70px;
    z-index: 1;
}

.hobby-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hobby-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.hobby-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(transparent, var(--bg-primary));
}

.hobby-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hobby-hero-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
}

.hobby-hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 8px;
}

.hobby-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    max-width: 700px;
    line-height: 1.7;
}


/* ---- Hobby Entries ---- */
.hobby-entries {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hobby-entry-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-base);
}

.hobby-entry-card:hover {
    border-color: rgba(14, 165, 233, 0.15);
    background: var(--bg-card-hover);
}

.hobby-entry-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hobby-entry-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
    flex-shrink: 0;
}

.hobby-entry-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hobby-entry-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hobby-entry-subtitle {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-top: 4px;
}

.hobby-entry-duration {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hobby-entry-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Neural Confirmation Modal ---- */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.1);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    width: 64px;
    height: 64px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.confirm-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-confirm {
    background: var(--danger);
    color: white;
}

.btn-confirm:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* ---- Theme Switch ---- */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    margin-right: 12px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--glass-border);
    border: 1px solid var(--glass-border-hover);
    transition: .4s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}
.theme-slider .sun-icon {
    color: #f59e0b;
    font-size: 12px;
    z-index: 1;
}
.theme-slider .moon-icon {
    color: #f8fafc;
    font-size: 12px;
    z-index: 1;
}
.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-slider {
    background-color: var(--accent-primary);
}
[data-theme="dark"] .theme-slider:before {
    transform: translateX(26px);
}
