/* =========================================================================
   Theme Variables & Reset
   ========================================================================= */
   :root {
    /* Light Theme (Default) */
    --bg-page: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-sidebar: #1e293b;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-sidebar: #f8fafc;
    --text-sidebar-muted: #cbd5e1;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --border-color: #e2e8f0;
    --border-sidebar: #334155;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-page: #0f172a;
    --bg-surface: #1e293b;
    --bg-sidebar: #0b1120;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-sidebar: #f8fafc;
    --text-sidebar-muted: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.15);
    --border-color: #334155;
    --border-sidebar: #1e293b;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* =========================================================================
   Layout & Components
   ========================================================================= */

.resume-container {
    max-width: 1280px;
    width: 100%;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    overflow: hidden;
    flex-wrap: wrap;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

/* --- TOP WIDGETS --- */
.top-widgets {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--bg-surface), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent-color);
    color: white;
}

/* --- HUD WIDGET --- */
.hud-widget {
    position: fixed;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    z-index: 100;
    box-shadow: var(--shadow-glass);
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    overflow: hidden;
    max-width: 800px; /* expanded max-width */
    height: 50px;
}

[data-theme="dark"] .hud-widget {
    background: rgba(30, 41, 59, 0.85);
}

.hud-widget.collapsed {
    max-width: 50px;
    background: rgba(var(--bg-surface), 0.7);
    cursor: pointer;
}

.hud-widget.collapsed:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.hud-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.hud-toggle:hover {
    background: var(--accent-color);
    color: white;
}

.hud-widget.collapsed .hud-toggle {
    animation: pulse-hud 2s infinite;
}

@keyframes pulse-hud {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hud-content {
    display: flex;
    gap: 20px;
    padding-right: 25px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease 0.2s;
}

.hud-widget.collapsed .hud-content {
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-item i {
    color: var(--accent-color);
    font-size: 16px;
}

/* Animated Background (Game vibe) */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    transition: background 2s ease;
}

/* --- SIDEBAR --- */
.sidebar {
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    width: 380px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Photo and Header */
.profile-header {
    text-align: center;
    margin-bottom: 45px;
}

.photo-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-sidebar);
    box-shadow: 0 0 0 4px var(--accent-color), 0 10px 25px rgba(0,0,0,0.5);
    background-color: var(--border-sidebar);
    transition: transform 0.5s ease;
}

.photo-container:hover .profile-photo {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 22px;
    height: 22px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 4px solid var(--bg-sidebar);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.profile-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-header h2 {
    font-size: 14.5px;
    color: #93c5fd;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
}

.profile-header h2 span {
    color: var(--text-sidebar-muted);
    font-size: 10px;
    vertical-align: middle;
    margin: 0 4px;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 45px;
}

.sidebar-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-sidebar);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sidebar-title i {
    color: var(--accent-color);
    font-size: 18px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Contact List Widget */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--text-sidebar-muted);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    group: contact;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    color: #fff;
    transform: translateX(5px);
}

.contact-item:hover .contact-icon {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Info List Widget */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-sidebar-muted);
    font-size: 15px;
}

.info-item i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* Certifications Widget */
.cert-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-box {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sidebar);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.cert-box i {
    color: var(--accent-color);
    font-size: 18px;
}

.cert-box:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Skills Progress Bars */
.skills-widget {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-bar-container {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-sidebar-muted);
    font-weight: 500;
}

.skill-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
    width: 0; /* Animated via JS */
    border-radius: 10px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
    0% { transform: translateX(-100%); }
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tag {
    background: transparent;
    border: 1px solid var(--border-sidebar);
    color: var(--text-sidebar-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Soft Skills */
.soft-skills {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-sidebar-muted);
    font-weight: 300;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    padding: 80px 70px;
    min-width: 320px;
    background-color: var(--bg-surface);
}

.section {
    margin-bottom: 60px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--accent-color);
    font-size: 24px;
    background: var(--accent-light);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Glass Card Concept */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.about-text {
    font-size: 16.5px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Wiki Highlight Widget */
.wiki-highlight {
    background: linear-gradient(135deg, var(--accent-light), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
}

.wiki-highlight:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.wiki-icon {
    font-size: 32px;
    color: #eab308; /* Yellow for bulb */
    filter: drop-shadow(0 4px 6px rgba(234, 179, 8, 0.3));
}

.wiki-text {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.interactive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    background: white;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-left: 5px;
}

[data-theme="dark"] .interactive-link {
    background: var(--bg-page);
}

.interactive-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Projects Grid Widget */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.interactive-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.interactive-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.project-card:hover::before {
    width: 10px;
}

.project-header {
    margin-bottom: 15px;
}

.project-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-title i {
    color: var(--text-secondary);
}

.project-tech {
    font-size: 12px;
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.project-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.project-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-page);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.live::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* Timeline Widget */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-light), 0 0 0 8px var(--bg-surface);
    transition: var(--transition);
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--accent-hover);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 0 0 8px var(--bg-surface);
}

.timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 15px;
    height: 15px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.job-title {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.job-period {
    font-size: 13px;
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.company-name {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-description {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Competencies Grid */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.comp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    gap: 20px;
}

.comp-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.comp-body h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.comp-list {
    list-style-type: none;
    padding-left: 0;
}

.comp-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comp-list li::before {
    content: '\f058'; /* FontAwesome circle-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 13px;
    opacity: 0.8;
}

/* =========================================================================
   Animations & Micro-interactions
   ========================================================================= */

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Sidebar entry animations */
.slide-up {
    animation: slideUpFade 0.8s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.sidebar-section:nth-child(2) { animation-delay: 0.2s; }
.sidebar-section:nth-child(3) { animation-delay: 0.3s; }
.sidebar-section:nth-child(4) { animation-delay: 0.4s; }
.sidebar-section:nth-child(5) { animation-delay: 0.5s; }
.sidebar-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* =========================================================================
   Responsive Design
   ========================================================================= */

@media (max-width: 1100px) {
    .resume-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 50px 30px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        align-items: flex-start;
    }

    .profile-header {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 30px;
        margin-bottom: 20px;
    }

    .photo-container {
        margin: 0;
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }

    .sidebar-section {
        flex: 1;
        min-width: 300px;
        margin-bottom: 20px;
    }

    .main-content {
        padding: 50px 30px;
    }
}

@media (max-width: 900px) {
    .hud-widget {
        top: auto;
        bottom: 25px;
        left: 25px;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .competencies-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* =========================================================================
   Dynamic Time/Season Themes & Interactive Elements
   ========================================================================= */

/* Time of Day Themes */
body.theme-morning {
    --bg-page: #fdf6e3;  /* Warm sunrise color */
    --accent-color: #f59e0b; /* Amber */
}
body.theme-morning .animated-bg {
    background: linear-gradient(120deg, #fdf6e3 0%, #ffedd5 100%);
}

body.theme-afternoon {
    --bg-page: #f0f9ff; /* Light sky blue */
    --accent-color: #0ea5e9; /* Sky blue */
}
body.theme-afternoon .animated-bg {
    background: linear-gradient(120deg, #e0f2fe 0%, #bae6fd 100%);
}

body.theme-evening {
    --bg-page: #ffedd5; /* Warm sunset */
    --accent-color: #f97316; /* Orange */
    --bg-sidebar: #431407; /* Dark reddish brown for sunset */
}
body.theme-evening .animated-bg {
    background: linear-gradient(120deg, #fed7aa 0%, #fdba74 100%);
}

body.theme-night {
    --bg-page: #0f172a;
    --bg-surface: #1e293b;
    --bg-sidebar: #020617;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-sidebar: #f8fafc;
    --text-sidebar-muted: #94a3b8;
    --accent-color: #8b5cf6; /* Violet for night */
    --accent-light: rgba(139, 92, 246, 0.15);
    --border-color: #334155;
}
body.theme-night .animated-bg {
    background: linear-gradient(120deg, #0f172a 0%, #1e1b4b 100%);
}

/* Season: Winter (Snowflakes) */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: fall linear infinite;
}

[data-theme="light"] .snowflake {
    color: #cbd5e1; /* Slightly darker snowflakes for light backgrounds */
}

@keyframes fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Season: Summer */
body.theme-summer .animated-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Season: Autumn */
body.theme-autumn .animated-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Season: Spring */
body.theme-spring .animated-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 60%);
    pointer-events: none;
}



/* =========================================================================
   GPS Project Card
   ========================================================================= */

.gps-card {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, var(--bg-surface), rgba(16, 185, 129, 0.03));
}

.gps-card::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.gps-card .project-title i {
    color: #10b981;
}

.gps-card .project-tech {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .gps-card .project-tech {
    color: #34d399;
}

.gps-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 4px;
}

.gps-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    transition: var(--transition);
}

[data-theme="dark"] .gps-tag {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.gps-tag:hover {
    background: rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

.gps-tag i {
    font-size: 11px;
}

/* =========================================================================
   Floating Contact Button (FAB)
   ========================================================================= */

.contact-fab {
    position: fixed;
    bottom: 35px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4), 0 4px 10px rgba(0,0,0,0.15);
    z-index: 200;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.contact-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.5), 0 6px 15px rgba(0,0,0,0.2);
}

.contact-fab:active {
    transform: scale(0.97);
}

.contact-fab i {
    font-size: 18px;
    animation: bounce-icon 2.5s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.25) rotate(-10deg); }
}

.fab-label {
    font-size: 15px;
    letter-spacing: 0.3px;
}

@media (max-width: 500px) {
    .contact-fab {
        bottom: 20px;
        right: 20px;
        padding: 15px;
        border-radius: 50%;
    }
    .fab-label { display: none; }
}

/* =========================================================================
   Contact Owner Modal
   ========================================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 540px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.modal-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form fields */
.form-group {
    margin-bottom: 18px;
}

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

.form-row .form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #1d4ed8);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.form-submit:active {
    transform: translateY(0);
}

/* Success state */
.cf-success {
    text-align: center;
    padding: 20px 0 10px;
}

.success-icon {
    font-size: 60px;
    color: #22c55e;
    margin-bottom: 20px;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.cf-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cf-success p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 500px) {
    .modal-box { padding: 28px 22px; }
    .form-row  { grid-template-columns: 1fr; }
}

/* =========================================================================
   Own Resources & Services Section
   ========================================================================= */

.own-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resource-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.resource-card:hover::after {
    opacity: 1;
}

.resource-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.resource-body {
    flex: 1;
    min-width: 0;
}

.resource-domain {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    background: var(--accent-light);
    border: 1px solid rgba(37,99,235,0.15);
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    text-transform: lowercase;
    font-family: monospace;
}

.resource-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.resource-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.resource-ext {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.resource-card:hover .resource-ext {
    opacity: 1;
    transform: translateY(0);
    color: var(--accent-color);
}

/* Services mini-chips */
.services-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-subtitle i {
    color: var(--accent-color);
}

.services-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-page);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.service-chip i {
    color: var(--accent-color);
    font-size: 13px;
}

.service-chip:hover {
    background: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.service-chip:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .own-resources-grid {
        grid-template-columns: 1fr;
    }
}
