/* ==========================================
   CSS Variables & Design Tokens
   ========================================== */
:root {
    --bg-main: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-hover: #1f2937;
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #14b8a6; /* Teal */
    --secondary-glow: rgba(20, 184, 166, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', 'Sarabun', sans-serif;
    --font-body: 'Outfit', 'Sarabun', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-padding: 1.5rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

body.light-theme {
    --bg-main: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-hover: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.1);
    --secondary: #0d9488;
    --secondary-glow: rgba(13, 148, 136, 0.1);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
}

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

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

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

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

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

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

/* Sections Global */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: var(--primary-glow);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* ==========================================
   1. Navigation Bar (Mobile First)
   ========================================== */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color var(--transition-fast);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu {
    display: none; /* Hidden on mobile */
}

.nav-cta {
    display: none; /* Hidden on mobile */
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all var(--transition-smooth);
}

/* Active hamburger icon transform to X */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Menu Slider */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-main);
    z-index: 99;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 4rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--primary);
}

.mobile-cta {
    width: 80%;
    margin-top: 1rem;
}

/* ==========================================
   2. Hero Section (Mobile First)
   ========================================== */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
    align-items: center;
}

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

.badge-welcome {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profile Image Wrapper */
.hero-image-container {
    position: relative;
    width: 260px;
    height: 260px;
    z-index: 1;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-surface);
    transition: border-radius var(--transition-smooth);
    animation: morphing 8s ease-in-out infinite alternate;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
    }
    100% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }
}

/* Background blob */
.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

/* ==========================================
   3. About Me Section (Mobile First)
   ========================================== */
.about-section {
    background-color: var(--bg-surface);
}

.about-info-column, .about-education-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card, .education-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
    transition: all var(--transition-fast);
}

.info-card:hover, .education-card:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.02);
}

.info-card h3, .education-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.info-card h3 i, .education-card h3 i {
    color: var(--primary);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-list li {
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.4rem;
}

.info-list li strong {
    color: var(--text-primary);
}

.current-study {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(20, 184, 166, 0.05);
    border: 1px dashed rgba(20, 184, 166, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.motto-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hobby-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.hobby-badge:hover {
    border-color: var(--secondary);
    background-color: var(--bg-surface-hover);
    transform: translateY(-2px);
}

/* Timeline Layout */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-region {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.region-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.15);
    margin-left: 0.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--bg-main);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   4. Projects Section (Mobile First)
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.p-cyan {
    background: linear-gradient(135deg, #0e7490, #14b8a6);
    color: #ccfbf1;
}

.p-purple {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: #e0e7ff;
}

.p-orange {
    background: linear-gradient(135deg, #c2410c, #f97316);
    color: #ffedd5;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.btn-project-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.btn-project-link.primary-link {
    color: var(--primary);
    border-color: var(--primary-glow);
    background-color: var(--primary-glow);
}

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

/* ==========================================
   5. Contact Section (Mobile First)
   ========================================== */
.contact-section {
    background-color: var(--bg-surface);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.contact-item p {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-primary);
    border-color: var(--secondary);
    background-color: var(--secondary-glow);
    transform: translateY(-3px);
}

/* Form Styles */
.contact-form-wrapper {
    position: relative;
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

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

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

.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    background-color: var(--bg-surface);
    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: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-submit {
    align-self: flex-start;
    padding: 0.9rem 2.2rem;
}

/* Form Feedback Dialog */
.form-feedback-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.form-feedback-message.show {
    opacity: 1;
    pointer-events: auto;
}

.form-feedback-message i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.form-feedback-message h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   6. Footer Section (Mobile First)
   ========================================== */
.footer {
    padding: 3rem 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}


/* ==========================================
   Media Queries & Breakpoints
   ========================================== */

/* ------------------------------------------
   Tablet Layout (>= 768px)
   ------------------------------------------ */
@media screen and (min-width: 768px) {
    /* Base Size */
    html {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Navigation Bar */
    .hamburger {
        display: none; /* Hide on Tablet/Desktop */
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-secondary);
        position: relative;
        padding: 0.5rem 0;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transition: width var(--transition-fast);
    }
    
    .nav-link:hover {
        color: var(--text-primary);
    }
    
    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }
    
    .nav-link.active {
        color: var(--text-primary);
    }
    
    .nav-cta {
        display: flex;
        align-items: center;
    }
    
    .mobile-nav {
        display: none;
    }

    /* Hero Section */
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: left;
        flex: 1;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-image-container {
        width: 320px;
        height: 320px;
    }
    
    /* About Section */
    .about-grid {
        flex-direction: row;
    }
    
    .about-info-column, .about-education-column {
        flex: 1;
    }
    
    /* Projects Grid (Tablet: 2 Columns) */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Section */
    .contact-grid {
        flex-direction: row;
    }
    
    .contact-info, .contact-form-wrapper {
        flex: 1;
    }
    
    /* Footer Section */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer p {
        text-align: left;
    }
}

/* ------------------------------------------
   Desktop Layout (>= 1024px)
   ------------------------------------------ */
@media screen and (min-width: 1024px) {
    .section-title {
        font-size: 2.75rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-image-container {
        width: 380px;
        height: 380px;
    }
    
    /* Projects Grid (Desktop: 3 Columns) */
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   Theme Toggle & Sticky Bottom Nav Styles
   ========================================== */

/* Theme Toggle Button */
.theme-toggle-container {
    display: flex;
    align-items: center;
}

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

.theme-toggle-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--primary);
    transform: rotate(15deg) scale(1.05);
}

/* Light Theme overrides for specific components to make it look premium */
body.light-theme {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.02);
}

body.light-theme .navbar-header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .info-card, 
body.light-theme .education-card {
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.08);
    background-color: var(--bg-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-theme .info-card h3,
body.light-theme .education-card h3 {
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .hobby-badge {
    background-color: var(--bg-surface);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .project-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.light-theme .contact-item .icon-box {
    background-color: var(--bg-surface);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .social-links a {
    background-color: var(--bg-surface);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .mobile-nav {
    background-color: var(--bg-main);
}

body.light-theme .timeline-item::before {
    background-color: var(--bg-main);
}

body.light-theme .timeline-item {
    border-left: 2px dashed rgba(0, 0, 0, 0.1);
}

/* Mobile Sticky Bottom Navigation */
.sticky-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 480px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform var(--transition-smooth), background-color var(--transition-fast), border-color var(--transition-fast);
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.bottom-nav-link i {
    font-size: 1.2rem;
}

.bottom-nav-link:hover, .bottom-nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
}

@media screen and (max-width: 767px) {
    body {
        padding-bottom: 90px;
    }
}

@media screen and (min-width: 768px) {
    .sticky-bottom-nav {
        display: none;
    }
}

/* Scrolled Header Background overrides for theme support */
.navbar-header.scrolled {
    background-color: rgba(11, 15, 25, 0.95) !important;
}
body.light-theme .navbar-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
}
