/* ==========================================================================
   Aldo Mogol - Personal Website Stylesheet
   Modern Glassmorphism, CSS Variables, Responsive Grid & Flexbox Layout
   ========================================================================== */

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-base: #0a0e17;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #06b6d4;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Accent & Brand Colors */
    --primary: #06b6d4;          /* Cyan */
    --primary-hover: #0891b2;
    --secondary: #6366f1;        /* Indigo */
    --accent: #8b5cf6;           /* Purple */
    --success: #10b981;          /* Emerald */
    --danger: #ef4444;           /* Rose */
    --warning: #f59e0b;          /* Amber */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-glow: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.6);
    --glass-blur: blur(12px);

    /* Layout & Spacing */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-focus: #0891b2;

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

    --primary: #0891b2;
    --secondary: #4f46e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px -6px rgba(0, 0, 0, 0.15);
    --gradient-glow: radial-gradient(circle, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
}

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

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Helpers */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

/* Glass Panel Styling */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-panel:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 182, 212, 0.3);
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.85);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

.brand-bracket { color: var(--primary); }
.brand-slash { color: var(--secondary); margin: 0 1px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Database Connection Badge */
.db-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.db-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulseGlow 2s infinite;
}

.db-badge.offline .pulse-dot {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
}

.btn-block { width: 100%; }

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-outline-cyan {
    background: rgba(6, 182, 212, 0.08);
    color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    z-index: 999;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-item {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
}

.blob-1 {
    top: 10%;
    left: -5%;
    background: var(--primary);
}

.blob-2 {
    bottom: 10%;
    right: -5%;
    background: var(--accent);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.status-ping {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.hero-greeting {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    min-height: 2.2rem;
}

.typing-text {
    color: var(--primary);
    font-weight: 700;
}

.cursor-blink {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.tech-label {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.25rem;
}

.badge {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

.badge-tech {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-category {
    background: rgba(99, 102, 241, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Hero Visual / Avatar Card */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.avatar-card-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.avatar-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.avatar-glow {
    position: absolute;
    inset: -15px;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    filter: blur(25px);
    opacity: 0.25;
    z-index: -1;
}

.avatar-inner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
    border: 2px dashed rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-avatar-symbol {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 16px rgba(6, 182, 212, 0.6);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 2;
}

.badge-top-right {
    top: -15px;
    right: -20px;
    border-color: rgba(6, 182, 212, 0.4);
}

.badge-bottom-left {
    bottom: 20px;
    left: -30px;
    border-color: rgba(99, 102, 241, 0.4);
}

.badge-bottom-right {
    bottom: -20px;
    right: -10px;
    border-color: rgba(16, 185, 129, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: var(--transition);
}

.scroll-indicator:hover { opacity: 1; }

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: block;
    position: relative;
}

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

/* ================= SECTION COMMONS ================= */
.section {
    padding: 90px 0;
    position: relative;
}

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

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Loading Spinner */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: var(--text-secondary);
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ================= ABOUT SECTION ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
}

.about-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-subheading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.info-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-badge {
    background: var(--bg-surface);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.info-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-val {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.3rem;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================= SKILLS SECTION ================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: var(--shadow-md);
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.skill-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.skill-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[data-theme="light"] .skill-bar-bg {
    background: rgba(0, 0, 0, 0.08);
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

.skill-category-badge {
    margin-top: 0.75rem;
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ================= PROJECTS SECTION ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.4);
}

.project-banner {
    height: 160px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.project-featured-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-brand);
    color: #fff;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: block;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.tag-badge {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.project-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="light"] .project-footer {
    background: rgba(0, 0, 0, 0.02);
}

/* ================= TIMELINE SECTION ================= */
.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: var(--gradient-brand);
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.timeline-card {
    padding: 1.5rem;
}

.timeline-period {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    display: inline-block;
}

.timeline-role {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================= GUESTBOOK SECTION ================= */
.guestbook-container {
    max-width: 900px;
    margin: 0 auto;
}

.guestbook-messages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.guestbook-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.guestbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.guest-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.guest-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.guest-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.guestbook-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* ================= CONTACT SECTION ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
}

.contact-info-card {
    padding: 2.5rem;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.c-icon {
    font-size: 1.4rem;
}

.c-item strong {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.c-item p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form-card {
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Button Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* ================= FOOTER ================= */
.footer {
    padding: 50px 0 30px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 0.3rem;
}

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

.copyright { margin-top: 0.25rem; }

/* ================= MODAL DIALOGS ================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 10;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover { color: var(--text-primary); }

.modal-body {
    padding: 1.5rem;
}

/* Admin Styles */
.admin-auth-box {
    padding: 2.5rem;
    text-align: center;
}

.pin-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 320px;
    margin: 1.25rem auto 0.75rem;
}

.admin-panel-body {
    padding: 1.25rem 1.5rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.admin-tab-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.tab-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    cursor: pointer;
}

/* Admin Messages List */
.admin-messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.admin-msg-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-msg-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

/* Project Detail Modal */
.project-modal-banner {
    height: 180px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.3));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.project-modal-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1rem 0 1.25rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.modal-project-links {
    display: flex;
    gap: 0.75rem;
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 280px;
    animation: toastSlideIn 0.3s ease;
}

.toast-success {
    border-color: var(--success);
    border-left: 4px solid var(--success);
}

.toast-error {
    border-color: var(--danger);
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-tech-stack {
        justify-content: center;
    }

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

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

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

    .mobile-toggle {
        display: flex;
    }

    .hero-greeting {
        font-size: 2.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-badges-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-tech {
        text-align: center;
    }
}

