/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Colors - Primary */
    --color-accent: #ffe014;
    --color-accent-rgb: 255, 224, 20;
    --color-accent-hover: rgba(255, 224, 20, 0.1);
    --color-accent-glow: rgba(255, 224, 20, 0.4);
    
    /* Colors - Background */
    --color-bg-primary: #2a2a2a;
    --color-bg-dark: #0a0a0a;
    --color-bg-glass: rgba(42, 42, 42, 0.6);
    --color-bg-glass-dark: rgba(10, 10, 10, 0.98);
    
    /* Colors - Text */
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #8b949e;
    --color-text-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.9);
    
    /* Colors - Border */
    --color-border-subtle: rgba(255, 255, 255, 0.1);
    --color-border-accent: var(--color-accent);
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-display: 'Cinzel', serif;
    --font-script: 'Dancing Script', cursive;
    --font-mono: 'Courier New', 'Monaco', 'Menlo', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --radius-circle: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-glass: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 15px var(--color-accent-glow);
    --shadow-glow-strong: 0 0 30px var(--color-accent-glow);
    
    /* Glass Effect */
    --glass-blur: blur(12px) saturate(180%);
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-nav: 1001;
    --z-modal: 9999;
    --z-tooltip: 10003;
    
    /* Breakpoints (for reference - can't use in media queries) */
    /* --bp-mobile: 480px */
    /* --bp-tablet: 768px */
    /* --bp-desktop: 1024px */
    /* --bp-wide: 1200px */
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Desktop: Reserve space for scrollbar */
    scrollbar-gutter: stable;
}

/* Hide scrollbar on mobile for touch-friendly experience */
@media (max-width: 768px) {
    html {
        scrollbar-gutter: auto;
    }
    
    /* Hide scrollbar but keep functionality */
    body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    body::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }
}

body {
    font-family: var(--font-system);
    line-height: 1.6;
    color: var(--color-text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: var(--color-bg-primary);
}

/* ============================================
   REUSABLE BASE CLASSES
   ============================================ */

/* Glass Effect - Reusable glass morphism style */
.glass-effect {
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Admin Panel Base - Using json-editor as benchmark */
.admin-panel {
    position: fixed !important;
    top: 50%;
    width: 600px;
    max-height: 80vh;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid #ffe014;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 224, 20, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999 !important;
    isolation: isolate !important;
    overflow: hidden;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.admin-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Panel position variants */
.admin-panel--right {
    right: 0;
    transform: translate(100%, -50%);
    border-radius: 8px 0 0 8px;
}

.admin-panel--right.active {
    transform: translate(-20px, -50%);
}

.admin-panel--left {
    left: 0;
    transform: translate(-100%, -50%);
    border-radius: 0 8px 8px 0;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 224, 20, 0.3);
}

.admin-panel--left.active {
    transform: translate(20px, -50%);
}

.admin-panel--center {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transform: none !important;
    max-height: none !important;
}

.admin-panel--center.active {
    transform: none;
}

.admin-panel--center .admin-panel-content {
    position: relative;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid #ffe014;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 224, 20, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-panel--center.active .admin-panel-content {
    transform: scale(1);
}

/* Admin Panel Content */
.admin-panel-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Admin Panel Header */
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 224, 20, 0.15);
    border-bottom: 1px solid rgba(255, 224, 20, 0.3);
    flex-shrink: 0;
}

/* Admin Panel Title */
.admin-panel-title {
    color: #ffe014;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    text-shadow: 0 0 8px rgba(255, 224, 20, 0.6);
    letter-spacing: 0.5px;
}

/* Admin Panel Close Button */
.admin-panel-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 224, 20, 0.5);
    color: #ffe014;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.admin-panel-close-btn:hover {
    background: rgba(255, 224, 20, 0.2);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.4);
}

/* Admin Panel Form */
.admin-panel-form {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Admin Form Group */
.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-form-group label {
    color: #ffe014;
    font-size: 0.9rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 224, 20, 0.4);
}

/* Admin Input */
.admin-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 224, 20, 0.4);
    border-radius: 4px;
    color: #ffe014;
    font-size: 0.95rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.admin-input:focus {
    outline: none;
    border-color: #ffe014;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

.admin-input::placeholder {
    color: rgba(255, 224, 20, 0.4);
}

.admin-input:-webkit-autofill,
.admin-input:-webkit-autofill:hover,
.admin-input:-webkit-autofill:focus,
.admin-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.8) inset !important;
    -webkit-text-fill-color: #ffe014 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 224, 20, 0.4) !important;
}

.admin-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Admin Submit Button */
.admin-submit-btn {
    background: transparent;
    border: 2px solid #ffe014;
    color: #ffe014;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.admin-submit-btn:hover:not(:disabled) {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
    transform: translateY(-2px);
}

.admin-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.admin-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Panel Status */
.admin-panel-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 200px;
}

.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.admin-submitted {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

/* Admin Panel Mobile Responsive */
@media (max-width: 768px) {
    .admin-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 90vh !important;
        border-radius: 0 !important;
    }
    
    .admin-panel--left,
    .admin-panel--right {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        transform: translateY(100%) !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .admin-panel--left.active,
    .admin-panel--right.active {
        transform: translateY(0) !important;
    }
    
    .admin-panel--center .admin-panel-content {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 85vh !important;
        margin: 0 auto;
    }
    
    .admin-panel-form {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .admin-form-group label {
        font-size: 0.85rem;
    }
    
    .admin-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .admin-textarea {
        min-height: 60px;
    }
    
    .admin-submit-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-panel-header {
        padding: 0.6rem 1rem;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .admin-panel-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }
    
    /* Specific panel overrides for mobile */
    .hobby-add-panel,
    .country-add-panel,
    .json-editor-panel,
    .secret-login-panel {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 480px) {
    .admin-panel {
        max-height: 85vh !important;
    }
    
    .admin-panel--center .admin-panel-content {
        max-height: 80vh !important;
    }
    
    .admin-panel-form {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .admin-form-group label {
        font-size: 0.8rem;
    }
    
    .admin-input {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .admin-submit-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Load JSON Button - Reusable button style */
.load-json-btn {
    background: transparent;
    border: 2px solid #ffe014;
    color: #ffe014;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-json-btn:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
    transform: translateY(-2px);
}

.load-json-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
}

/* ============================================
   END REUSABLE BASE CLASSES
   ============================================ */

/* ============================================
   NAVIGATION - Single Responsive Component
   Mobile-First Approach
   ============================================ */

/* Main Navigation Container */
.main-nav {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    padding: 0 1rem;
    pointer-events: none; /* Allow clicks through container */
    overflow: visible;
    isolation: isolate;
}

/* Navigation Inner Container */
.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    pointer-events: none;
}

/* Glass Effect Mixin - Applied to nav elements */
.nav-brand,
.nav-menu-wrapper,
.nav-social,
.nav-link--icon {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
        0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

/* Consistent height for all nav containers */
.nav-brand,
.nav-menu-wrapper,
.nav-social {
    height: 44px;
}

/* ============================================
   NAVIGATION - Brand Section (Left)
   ============================================ */

.nav-brand {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.nav-link--brand {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link--brand:hover {
    color: #ffe014;
}

.brand-text {
    display: inline;
}

/* ============================================
   NAVIGATION - Mobile "Navigation" Button & Dropdown
   ============================================ */

/* Mobile wrapper - contains button and dropdown */
.nav-mobile-wrapper {
    display: block;
    position: relative;
    pointer-events: auto;
    z-index: var(--z-nav);
}

/* Mobile Navigation Button */
.nav-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glass);
    font-family: var(--font-system);
}

.nav-mobile-toggle:hover,
.nav-mobile-toggle.is-active {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.nav-mobile-toggle__text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-mobile-toggle.is-active .nav-mobile-toggle__text {
    color: var(--color-accent);
}

.nav-mobile-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.nav-mobile-toggle.is-active .nav-mobile-toggle__icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

/* Mobile Dropdown Menu */
.nav-mobile-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: var(--color-bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 
        var(--shadow-glass),
        0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: var(--z-dropdown);
}

.nav-mobile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown arrow */
.nav-mobile-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--color-bg-glass);
}

/* Mobile Dropdown Links */
.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-mobile-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.nav-mobile-link:hover,
.nav-mobile-link:focus {
    background: var(--color-accent-hover);
    color: var(--color-accent);
}

.nav-mobile-link:hover i,
.nav-mobile-link:focus i {
    color: var(--color-accent);
}

.nav-mobile-link--external {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Mobile Dropdown Divider */
.nav-mobile-divider {
    height: 1px;
    background: var(--color-border-subtle);
    margin: 0.5rem 0;
}

/* Mobile Social Links */
.nav-mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 0 0.25rem;
}

.nav-mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.nav-mobile-social-link:hover {
    background: var(--color-accent-hover);
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

/* Hide desktop elements on mobile */
@media (max-width: 767px) {
    .nav-brand,
    .nav-menu-wrapper,
    .nav-social {
        display: none !important;
    }
    
    .nav-container {
        justify-content: center;
    }
}

/* Hide mobile elements on tablet+ */
@media (min-width: 768px) {
    .nav-mobile-wrapper {
        display: none !important;
    }
}

/* ============================================
   NAVIGATION - Menu Wrapper & Links (Desktop)
   ============================================ */

.nav-menu-wrapper {
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.5rem;
    order: 2;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu__item {
    width: auto;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-system);
    text-align: center;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent);
    background: var(--color-accent-hover);
    border-color: rgba(255, 224, 20, 0.3);
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.2);
}

/* ============================================
   NAVIGATION - Social Links (Right)
   ============================================ */

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
    border-radius: 24px;
    order: 2;
}

.nav-link--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.nav-link--icon i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link--icon:hover {
    color: #ffe014;
    background: rgba(255, 224, 20, 0.15);
    border-color: #ffe014;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
}

.nav-link--icon:hover i {
    transform: scale(1.1);
}

/* ============================================
   NAVIGATION - Tooltips
   ============================================ */

.nav-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(255, 224, 20, 0.3),
        0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
    z-index: 10003;
    pointer-events: none;
}

.nav-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(42, 42, 42, 0.95);
}

.nav-link--brand:hover .nav-tooltip,
.nav-link--icon:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/* Hide tooltips on touch devices */
@media (hover: none) {
    .nav-tooltip {
        display: none;
    }
}

/* ============================================
   NAVIGATION - Animations
   ============================================ */

/* Slide down animation for home page */
body.home-page .main-nav {
    animation: navSlideDown 0.6s ease-out 0.5s both;
}

body.home-page.navbar-animated .main-nav {
    animation: none;
    opacity: 1;
    top: 1rem;
}

@keyframes navSlideDown {
    from {
        top: -6rem;
        opacity: 0;
    }
    to {
        top: 1rem;
        opacity: 1;
    }
}

/* ============================================
   NAVIGATION - Tablet Breakpoint (768px+)
   ============================================ */

@media (min-width: 768px) {
    .main-nav {
        top: 1.5rem;
        padding: 0 2.5vw;
    }
    
    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
    }
    
    /* Hide hamburger on tablet+ */
    .nav-toggle {
        display: none;
    }
    
    /* Show menu inline */
    .nav-menu-wrapper {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.5rem 1.5rem;
        border-radius: 20px;
        order: 2;
        flex: 0 0 auto;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .nav-menu__item {
        width: auto;
    }
    
    .nav-link {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
        border-radius: 50px;
    }
    
    /* Reorder elements for desktop layout */
    .nav-brand {
        order: 1;
        flex: 0 0 auto;
    }
    
    .nav-menu-wrapper {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-social {
        order: 3;
        flex: 0 0 auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        gap: 0.75rem;
    }
    
    .nav-link--icon {
        width: 40px;
        height: 40px;
    }
    
    .nav-link--icon i {
        font-size: 1.1rem;
    }
    
    /* Animation adjustment */
    body.home-page .main-nav {
        animation-name: navSlideDownDesktop;
    }
    
    @keyframes navSlideDownDesktop {
        from {
            top: -10rem;
            opacity: 0;
        }
        to {
            top: 1.5rem;
            opacity: 1;
        }
    }
}

/* ============================================
   NAVIGATION - Desktop Breakpoint (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .nav-container {
        gap: 2rem;
    }
    
    .nav-link {
        padding: 0.5rem 2rem;
    }
    
    .nav-social {
        gap: 1rem;
    }
}

/* ============================================
   LEGACY CLASSES - Kept for Backward Compatibility
   These can be removed once all references are updated
   ============================================ */

/* Old wrapper classes - redirect to new nav */
.desktop-view-active,
.mobile-view-active {
    display: none !important;
}


.hero-section,
.library-hero-section,
.skills-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    padding-bottom: 15vh; /* Add padding to prevent clipping */
    z-index: 3; /* Above fixed background */
    background: transparent; /* Allow fixed background to show through */
}

.hero-image,
.page-hero-image {
    position: fixed;
    left: 0;
    top: -15%;
    width: 100%;
    height: calc(100vh + 20vh + 15vh); /* Full viewport + top offset + photo grid overlap */
    object-fit: cover;
    object-position: center top;
    background: #0a1a0a;
    z-index: 0;
}

.hero-overlay,
.page-hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through */
}

.hero-header {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    width: 100%;
    padding: 2rem;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    transform-origin: center center;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.projects-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 1rem 0 1rem;
    scroll-margin-top: 80px;
    overflow: hidden;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
}

.page-hero-section .container {
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
}

.projects-section .container {
    position: relative;
    z-index: 1;
}

.hero-header h1 {
    font-size: 5rem;
    margin-bottom: 0.1rem;
    animation: fadeInDown 0.8s ease;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(55, 0, 0, 0.5);
    transition: transform 0.3s ease-out, font-size 0.3s ease-out;
    letter-spacing: 0.05em;
}

.hero-name {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-name:hover {
    transform: scale(1.1);
}

.name-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 224, 20, 0.4), 0 2px 10px rgba(255, 224, 20, 0.3),
                0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
    z-index: 1000;
    pointer-events: none;
}

.name-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(42, 42, 42, 0.458);
}

.hero-name:hover .name-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.hero-header .subtitle {
    font-size: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease;
    color: #ffe014;
    text-shadow: 2px 2px 10px rgba(255, 188, 20, 0.5);
    transition: transform 0.3s ease-out, font-size 0.3s ease-out, opacity 0.3s ease-out;
    font-family: 'Dancing Script', 'Great Vibes', cursive;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.05em;
}

.hero-header .subtitle.hero-name {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.hero-subtitle-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secret-login-toggle {
    position: absolute;
    right: 0;
    background: rgba(255, 224, 20, 0.2);
    border: 2px solid rgba(255, 224, 20, 0.5);
    border-radius: 8px;
    color: #ffe014;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.3);
    padding: 0;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: auto;
}

.secret-login-toggle:hover {
    background: rgba(255, 224, 20, 0.3);
    border-color: #ffe014;
    box-shadow: 0 0 25px rgba(255, 224, 20, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.secret-login-toggle:active {
    transform: scale(0.95);
}

.toggle-icon {
    display: block;
    transition: transform 0.3s ease;
}

.secret-login-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.hero-header.scrolled {
    transform: scale(0.1);
    opacity: 0.0;
}

.hero-header.scrolled h1 {
    font-size: 1.5rem;
}

.hero-header.scrolled .subtitle {
    font-size: 0.75rem;
    opacity: 0.0;
    font-family: 'Dancing Script', 'Great Vibes', cursive;
}

/* Secret Login Panel */
/* Secret Login Panel - Uses base admin-panel classes with custom styling */
.secret-login-panel {
    /* Uses .admin-panel--right base class */
    width: 400px;
    max-height: 500px;
    border: 2px solid rgba(255, 224, 20, 0.4);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 
                inset 0 0 20px rgba(255, 224, 20, 0.1),
                0 0 40px rgba(255, 224, 20, 0.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, visibility 0.5s ease;
}

/* .secret-login-content uses .admin-panel-content base class */
/* .secret-login-header uses .admin-panel-header base class */

.secret-login-header-title {
    /* Uses .admin-panel-title base class */
    letter-spacing: 1px;
}

.secret-login-close-btn {
    /* Uses .admin-panel-close-btn base class */
    font-size: 1.5rem;
}

.secret-login-close-btn:hover {
    transform: scale(1.1);
}

.secret-login-title {
    color: #ffe014;
    font-size: 1.1rem;
    margin: 1.5rem 1rem 1rem 1rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    text-align: left;
    text-shadow: 0 0 8px rgba(255, 224, 20, 0.6);
    letter-spacing: 1px;
    font-weight: 600;
}

.secret-login-form {
    /* Uses .admin-panel-form base class */
    width: 100%;
    padding: 0 1rem 1.5rem 1rem;
    justify-content: center;
}

.secret-form-group {
    /* Uses .admin-form-group base class */
    margin-bottom: 1.5rem;
}

.secret-form-group label {
    /* Uses .admin-form-group label base class */
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-weight: 500;
}

/* .secret-input uses .admin-input base class */

/* Segmented PIN Input (OTP Style) */
.pin-input-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    cursor: text;
}

.pin-segment {
    width: 45px;
    height: 55px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 224, 20, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe014;
    font-size: 1.6rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    text-shadow: 0 0 8px rgba(255, 224, 20, 0.6);
}

.pin-segment.cursor {
    border-color: rgba(255, 224, 20, 0.6);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
}

.pin-segment.filled {
    border-color: #ffe014;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
    background: rgba(255, 224, 20, 0.1);
}

.pin-segment.active {
    border-color: #ffe014;
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.6);
    animation: pinPulse 0.3s ease;
}

.pin-segment::after {
    content: '';
    position: absolute;
    bottom: 12px;
    width: 3px;
    height: 20px;
    background: #ffe014;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: none;
}

.pin-segment.cursor::after {
    opacity: 1;
    animation: blink 1s infinite;
}

.pin-segment.active::after {
    opacity: 1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes pinPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hide the actual PIN input but keep it functional */
#secret-pin {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.01; /* Slightly visible to ensure it can receive focus */
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    cursor: text;
    z-index: 10;
    font-size: 16px; /* Prevent zoom on iOS */
    color: transparent;
    caret-color: transparent;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

.secret-login-btn {
    /* Uses .admin-submit-btn base class */
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 224, 20, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.2);
    margin-top: 1rem;
    text-transform: none;
}

.secret-login-btn.error-pulse {
    border-color: #ff1744 !important;
    color: #ff1744 !important;
    background: rgba(255, 23, 68, 0.1) !important;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.6), 0 0 25px rgba(255, 23, 68, 0.4) !important;
    animation: errorPulse 1s ease;
}

@keyframes errorPulse {
    0%, 100% {
        border-color: #ff1744;
        color: #ff1744;
        background: rgba(255, 23, 68, 0.1);
    }
    50% {
        border-color: #ff1744;
        color: #ff1744;
        background: rgba(255, 23, 68, 0.2);
    }
}

/* Secret Login Status */
.secret-login-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 200px;
}

.secret-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 224, 20, 0.2);
    border-top-color: #ffe014;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #ffe014;
    font-size: 1rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 224, 20, 0.6);
    margin: 0;
}

.secret-verified {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.verified-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 224, 20, 0.2);
    border: 3px solid #ffe014;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe014;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.5);
    animation: verifiedPulse 2s ease infinite;
}

@keyframes verifiedPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 224, 20, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 224, 20, 0.8), 0 0 40px rgba(255, 224, 20, 0.6);
    }
}

.verified-text {
    color: #ffe014;
    font-size: 1.2rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 224, 20, 0.8);
    font-weight: 600;
    margin: 0;
}

.verified-hint {
    color: rgba(255, 224, 20, 0.6);
    font-size: 0.75rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    letter-spacing: 1px;
    margin: 0.5rem 0 0 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.secret-verified {
    cursor: pointer;
}

.secret-verified:hover .verified-hint {
    opacity: 1;
}

@keyframes errorPulse {
    0%, 100% {
        border-color: #ff1744;
        color: #ff1744;
        background: rgba(255, 23, 68, 0.1);
        box-shadow: 0 0 15px rgba(255, 23, 68, 0.6), 0 0 25px rgba(255, 23, 68, 0.4);
    }
    25%, 75% {
        border-color: #ff5252;
        color: #ff5252;
        background: rgba(255, 23, 68, 0.2);
        box-shadow: 0 0 25px rgba(255, 23, 68, 0.8), 0 0 40px rgba(255, 23, 68, 0.6), 0 0 60px rgba(255, 23, 68, 0.4);
        transform: scale(1.02);
    }
    50% {
        border-color: #ff1744;
        color: #ff1744;
        background: rgba(255, 23, 68, 0.15);
        box-shadow: 0 0 30px rgba(255, 23, 68, 1), 0 0 50px rgba(255, 23, 68, 0.7), 0 0 70px rgba(255, 23, 68, 0.5);
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .secret-login-panel {
        width: 320px;
        max-height: 450px;
    }
    
    .secret-login-panel.active {
        transform: translate(-15px, -50%);
    }
    
    .secret-login-title {
        font-size: 1rem;
        margin: 1.25rem 0.75rem 0.75rem 0.75rem;
    }
    
    .secret-login-form {
        padding: 0 0.75rem 1.25rem 0.75rem;
    }
    
    .pin-segment {
        width: 38px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .pin-input-container {
        gap: 0.5rem;
    }
}

.content {
    background: transparent;
    border-radius: 20px;
    padding: 3rem;
    animation: fadeIn 1s ease;
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    color: #e0e0e0;
}

.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: #ffe014;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffe014 0%, #ffb814 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffe014 0%, #ffb814 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.active {
    display: block;
}

/* Old navigation responsive styles removed - now handled in main navigation section */

/* Responsive styles */
@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 3rem;
    }
    
    .hero-header .subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-header h1 {
        font-size: 2.5rem;
    }
    
    .hero-header .subtitle {
        font-size: 1.2rem;
    }

    /* Old mobile navigation styles removed - handled in main nav section */
}

/* Shared Section Styles */
/* Photo Grid Section */
.photo-grid-section {
    position: relative;
    width: 100%;
    margin-top: -15vh; /* Overlap with hero section - half on tiger, half on gray */
    margin-bottom: -10vh; /* Overlap with posts section */
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    pointer-events: none; /* Allow clicks to pass through */
    background: transparent; /* Transparent to show hero image through */
    padding: 4rem 0;
}

.photo-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    pointer-events: auto; /* Re-enable for grid */
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    pointer-events: auto;
}

.photo-box {
    width: 100%;
    height: 100%;
    border: 3px solid #ffe014;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.4), 
                0 0 40px rgba(255, 224, 20, 0.2),
                inset 0 0 20px rgba(255, 224, 20, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.photo-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 224, 20, 0.6), 
                0 0 60px rgba(255, 224, 20, 0.3),
                inset 0 0 30px rgba(255, 224, 20, 0.15);
    border-color: #ffe014;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-box:hover img {
    transform: scale(1.1);
}

/* Photo Tooltip */
.photo-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 224, 20, 0.4), 0 2px 10px rgba(255, 224, 20, 0.3),
                0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
    z-index: 10000;
    pointer-events: none;
    text-align: center;
    min-width: 100px;
}

.photo-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(42, 42, 42, 0.458);
}

.photo-item:hover .photo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Responsive Photo Grid - Now handled in mobile desktop-like layout section */
/* Keeping 3 columns on all screen sizes */

/* Posts Section */
.posts-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    background: transparent; /* Allow fixed background to show through */
    z-index: 10; /* Above fixed overlay (z-index: 2) */
}

.posts-section .content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-align: left;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    align-items: start;
}

.post-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    border: 1px solid rgba(255, 224, 20, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 224, 20, 0.2);
    border-color: rgba(255, 224, 20, 0.3);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    color: #ffe014;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.post-excerpt {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.post-tag {
    background: rgba(255, 224, 20, 0.1);
    color: #ffe014;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 224, 20, 0.2);
}

.post-card-hidden {
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transform: translateY(-30px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
    pointer-events: none;
}

.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
}

.post-card.showing {
    visibility: visible;
    opacity: 1;
    max-height: 2000px;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.posts-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    clear: both;
    width: 100%;
}

.posts-load-more-btn {
    background: #2a2a2a;
    border: 2px solid #ffffff;
    padding: 0.5rem 8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: auto;
    min-width: 400px;
}

.posts-load-more-btn:hover {
    background: #2a2a2a;
    border-color: #ffe014;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.3);
    transform: translateY(-2px);
}

.posts-load-more-btn .load-more-text {
    color: #ffffff;
    transition: color 0.3s ease;
}

.posts-load-more-btn:hover .load-more-text {
    color: #ffe014;
}

.load-more-arrow {
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 0.7rem;
    color: #ffffff;
}

.posts-load-more-btn:hover .load-more-arrow {
    color: #ffe014;
}

.posts-load-more-btn.expanded .load-more-arrow {
    transform: rotate(180deg);
}


/* Location Section Styles */
.location-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    background: transparent; /* Allow fixed background to show through */
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.location-button-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

/* Countries Visited Section */
.countries-section {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
    padding: 2rem 2rem 4rem 2rem;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.countries-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.countries-title {
    color: #ffe014;
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(255, 224, 20, 0.5);
    letter-spacing: 2px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* .countries-add-btn styles now handled by .add-button class */
/* Keeping for backward compatibility with existing JavaScript */

/* Override for countries button if needed */
.countries-title .add-button {
    background: rgba(255, 224, 20, 0.15);
    border: 1px solid rgba(255, 224, 20, 0.3);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.countries-add-btn:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.countries-add-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
}


.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    justify-items: center;
}

.country-card {
    width: 120px;
    height: 120px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 224, 20, 0.4);
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.2);
    position: relative;
}

.country-card:hover {
    border-color: rgba(255, 224, 20, 0.8);
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.5);
    transform: scale(1.1);
    z-index: 10001;
    position: relative;
}

.country-flag {
    font-size: 4rem;
    line-height: 1;
    display: block;
}

.country-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 224, 20, 0.4), 0 2px 10px rgba(255, 224, 20, 0.3),
                0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
    z-index: 10000;
    pointer-events: none;
    text-align: center;
    min-width: 120px;
}

.country-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(42, 42, 42, 0.458);
}

.country-card:hover .country-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.country-tooltip-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.country-tooltip-thoughts {
    font-size: 0.85rem;
    color: #ffe014;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-name {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}


.no-countries {
    color: #888;
    font-style: italic;
    padding: 2rem;
}

/* Countries responsive - Now handled in mobile desktop-like layout section */
/* Keeping 3 columns on smallest screens */

#location-map {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: transparent; /* Allow map tiles to show through */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 224, 20, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    touch-action: pan-y;
    position: relative;
}

/* Glass effect overlay for location map - added via JavaScript to Leaflet's overlayPane */
.location-map-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.15);
    backdrop-filter: blur(2px) saturate(150%);
    -webkit-backdrop-filter: blur(2px) saturate(150%);
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

/* Ensure overlay covers entire map viewport within Leaflet pane */
#location-map .leaflet-overlay-pane .location-map-glass-overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#location-map:hover {
    border-color: rgba(255, 224, 20, 0.6);
    box-shadow: 0 15px 40px rgba(255, 224, 20, 0.3);
    transform: scale(1.02);
}

.location-zoom-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #ffe014;
    border: 1px solid #ffe014;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #ffe014;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.location-zoom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 224, 20, 0.3), transparent);
    transition: left 0.5s;
}

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

.location-zoom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px #ffe014, 0 0 30px #ffe014;
}

.location-zoom-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #location-map {
        height: 400px;
    }
    
    .location-zoom-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #location-map {
        height: 300px;
    }
    
    .location-zoom-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Cityscape Section */
.cityscape-section {
    position: relative;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
    z-index: 10;
    min-height: 100vh;
}

.cityscape-section.content-section {
    padding: 0 !important;
    margin: 0 !important;
}

.cityscape-section .container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cityscape-content {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
}

.cityscape-title {
    display: none; /* Hide title as per requirements */
}

.cityscape-container {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

#cityscape-canvas {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

@media (max-width: 768px) {
    .cityscape-container {
        height: 400px;
    }
    
    .cityscape-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cityscape-container {
        height: 300px;
    }
    
    .cityscape-title {
        font-size: 1.5rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffe014;
    border: 2px solid #ffe014;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    flex-shrink: 0;
}

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

.scroll-to-top-btn:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.6);
    transform: translateY(-5px);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-to-top-icon {
    line-height: 1;
    display: block;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Hobbies Section - Database Style */
.hobbies-section {
    position: relative;
    width: 100%;
    background: transparent; /* Allow fixed background to show through */
    padding-bottom: 0.5rem; /* Reduced bottom padding to bring sections closer */
    z-index: 10; /* Above fixed overlay (z-index: 2) */
}

.hobbies-section .container {
    padding-top: 0.5rem;
}

.hobbies-title {
    color: #ffe014;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hobbies-database-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    position: relative;
}

.hobbies-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #ffe014;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.3);
}

.hobbies-table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr 1fr 1fr;
    background: #ffe014;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hobbies-header-cell {
    padding: 1.2rem 1rem;
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.hobbies-header-cell:last-child {
    border-right: none;
}

.hobbies-table-body {
    display: flex;
    flex-direction: column;
}

.hobbies-table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 224, 20, 0.3);
    transition: background 0.3s ease;
}

.hobbies-table-row:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 224, 20, 0.2);
}

.hobbies-table-row:last-child {
    border-bottom: none;
}

.hobbies-table-cell {
    padding: 0.5rem 1rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 224, 20, 0.2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.hobbies-table-cell:last-child {
    border-right: none;
}

/* Center Category and Social columns */
.hobbies-table-header .hobbies-header-cell:nth-child(4),
.hobbies-table-header .hobbies-header-cell:nth-child(5),
.hobbies-table-row .hobbies-table-cell:nth-child(4),
.hobbies-table-row .hobbies-table-cell:nth-child(5) {
    justify-content: center;
    text-align: center;
}

.hobby-category {
    display: inline-block;
    background: rgba(255, 224, 20, 0.2);
    color: #ffe014;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 224, 20, 0.4);
    white-space: nowrap;
}

.hobby-icon {
    font-size: 1.2rem;
    color: #ffe014;
    display: inline-block;
}

.hobbies-load-json-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* .hobbies-load-json-btn uses .load-json-btn base class */

.hobbies-add-btn {
    background: transparent;
    border: 2px solid #ffe014;
    color: #ffe014;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hobbies-add-btn:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.hobbies-add-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
}

/* JSON Editor Panel - Similar to Admin Access Panel */
/* JSON Editor Panel - Uses base admin-panel classes */
.json-editor-panel {
    /* Uses .admin-panel--right base class */
    width: 600px;
}

/* .json-editor-content uses .admin-panel-content base class */
/* .json-editor-header uses .admin-panel-header base class */
/* .json-editor-title uses .admin-panel-title base class */
/* .json-editor-close-btn uses .admin-panel-close-btn base class */

.json-editor-body {
    flex: 1;
    overflow-y: scroll; /* Always show scrollbar */
    overflow-x: hidden;
    padding: 1rem;
    padding-right: 2rem; /* Extra padding on right to create space from edge */
    background: #0a0a0a;
    max-height: calc(80vh - 60px); /* Account for header height */
}

/* Physical Neon Orange Scrollbar Styling */
.json-editor-body::-webkit-scrollbar {
    width: 16px; /* Thicker scrollbar */
}

.json-editor-body::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.8);
    border-left: 1px solid rgba(255, 224, 20, 0.2);
    border-radius: 0;
}

.json-editor-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffe014 0%, #ffb814 100%);
    border: 2px solid rgba(10, 10, 10, 0.8);
    border-radius: 8px;
    box-shadow: 
        inset 0 0 10px rgba(255, 224, 20, 0.5),
        0 0 15px rgba(255, 224, 20, 0.4),
        0 0 25px rgba(255, 224, 20, 0.2);
    min-height: 40px; /* Minimum thumb size */
}

.json-editor-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffb814 0%, #ffe014 100%);
    box-shadow: 
        inset 0 0 15px rgba(255, 224, 20, 0.7),
        0 0 20px rgba(255, 224, 20, 0.6),
        0 0 35px rgba(255, 224, 20, 0.4);
}

.json-editor-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #ffa814 0%, #ffc814 100%);
    box-shadow: 
        inset 0 0 20px rgba(255, 224, 20, 0.9),
        0 0 25px rgba(255, 224, 20, 0.8),
        0 0 40px rgba(255, 224, 20, 0.6);
}

/* Add Hobby Terminal Panel - Uses base admin-panel classes */
.hobby-add-panel {
    /* Uses .admin-panel--left base class */
    width: 500px;
}

/* .hobby-add-content uses .admin-panel-content base class */
/* .hobby-add-header uses .admin-panel-header base class */

.hobby-add-title {
    /* Uses .admin-panel-title base class */
    font-size: 1rem;
}

.hobby-add-close-btn {
    /* Uses .admin-panel-close-btn base class */
    font-size: 1.5rem;
}

/* .hobby-add-form uses .admin-panel-form base class */
/* .hobby-form-group uses .admin-form-group base class */
/* .hobby-form-group label uses .admin-form-group label base class */
/* .hobby-input uses .admin-input base class */
/* .hobby-textarea uses .admin-textarea base class */
/* .hobby-submit-btn uses .admin-submit-btn base class */
/* .hobby-add-status uses .admin-panel-status base class */
/* .hobby-loading uses .admin-loading base class */
/* .hobby-submitted uses .admin-submitted base class */

/* Add Country Terminal Panel - Uses base admin-panel classes */
.country-add-panel {
    /* Uses .admin-panel--left base class */
    width: 500px;
}

/* Skill Add Panel - Centered Popup */
/* Skill Add Panel - Uses base admin-panel classes */
/* .skill-add-panel uses .admin-panel--center base class */

/* .skill-add-content uses .admin-panel-content base class */
/* .skill-add-header uses .admin-panel-header base class */

.skill-add-title {
    /* Uses .admin-panel-title base class */
    font-size: 1rem;
}

.skill-add-close-btn {
    /* Uses .admin-panel-close-btn base class */
    font-size: 1.5rem;
}

/* .skill-add-form uses .admin-panel-form base class */
/* .skill-form-group uses .admin-form-group base class */
/* .skill-form-group label uses .admin-form-group label base class */

.skill-input {
    /* Uses .admin-input base class */
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 224, 20, 0.3);
    color: #e0e0e0;
}

.skill-input:focus {
    background: rgba(42, 42, 42, 0.95);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
}

/* .skill-textarea uses .admin-textarea base class */

.skill-submit-btn {
    /* Uses .admin-submit-btn base class */
    background: rgba(255, 224, 20, 0.15);
    border-radius: 4px;
}

.skill-add-status {
    /* Uses .admin-panel-status base class */
    padding: 1.5rem;
    text-align: center;
}

/* .skill-loading uses .admin-loading base class */
/* .skill-submitted uses .admin-submitted base class */

/* .country-add-content uses .admin-panel-content base class */
/* .country-add-header uses .admin-panel-header base class */

.country-add-title {
    /* Uses .admin-panel-title base class */
    font-size: 1rem;
}

.country-add-close-btn {
    /* Uses .admin-panel-close-btn base class */
    font-size: 1.5rem;
}

/* .country-add-form uses .admin-panel-form base class */
/* .country-form-group uses .admin-form-group base class */
/* .country-form-group label uses .admin-form-group label base class */
/* .country-textarea uses .admin-textarea base class */
/* .country-input uses .admin-input base class */

.country-input:-webkit-autofill,
.country-input:-webkit-autofill:hover,
.country-input:-webkit-autofill:focus,
.country-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.8) inset !important;
    -webkit-text-fill-color: #ffe014 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 224, 20, 0.4) !important;
}

/* .country-submit-btn uses .admin-submit-btn base class */
/* .country-add-status uses .admin-panel-status base class */
/* .country-loading uses .admin-loading base class */
/* .country-submitted uses .admin-submitted base class */

.json-editor-body::-webkit-scrollbar-button {
    display: none; /* Hide scrollbar buttons */
}

/* Firefox Scrollbar - Thicker and always visible */
.json-editor-body {
    scrollbar-width: auto; /* Use 'auto' instead of 'thin' for thicker scrollbar */
    scrollbar-color: #ffe014 rgba(10, 10, 10, 0.8);
}

.json-content {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.json-content code {
    color: #e0e0e0;
    font-family: inherit;
}

/* JSON Syntax Highlighting */
.json-content code {
    color: #e0e0e0;
}

.json-content code .json-key {
    color: #ffe014;
}

.json-content code .json-string {
    color: #4ec9b0;
}

.json-content code .json-number {
    color: #569cd6;
}

.json-content code .json-boolean {
    color: #569cd6;
}

.json-content code .json-null {
    color: #808080;
}


/* Responsive */
@media (max-width: 768px) {
    .json-editor-panel {
        width: 90vw;
        max-width: 500px;
        max-height: 85vh;
    }
    
    .json-editor-panel.active {
        transform: translate(-10px, -50%);
    }
    
    .json-editor-body {
        padding: 0.75rem;
    }
    
    .json-content {
        font-size: 0.75rem;
    }
}

.value-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-stars {
    display: flex;
    gap: 0.2rem;
}

.value-stars .star {
    color: #666;
    font-size: 1rem;
}

.value-stars .star.filled {
    color: #ffe014;
    text-shadow: 0 0 5px rgba(255, 224, 20, 0.8);
}

.value-number {
    color: #ffe014;
    font-weight: 600;
    font-size: 0.9rem;
}

.social-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
}

.social-badge.social-yes {
    background: rgba(255, 224, 20, 0.2);
    color: #ffe014;
    border-color: #ffe014;
    box-shadow: 0 0 8px rgba(255, 224, 20, 0.4);
}

.social-badge.social-no {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.social-badge.social-maybe {
    background: rgba(255, 200, 0, 0.2);
    color: #ffc800;
    border-color: #ffc800;
    box-shadow: 0 0 8px rgba(255, 200, 0, 0.4);
}

/* Responsive Hobbies Table */
@media (max-width: 1024px) {
    .hobbies-table-header,
    .hobbies-table-row {
        grid-template-columns: 0.8fr 1.2fr 1.8fr 0.8fr 0.8fr;
    }
    
    .hobbies-header-cell,
    .hobbies-table-cell {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Hobbies table mobile - Now handled in mobile desktop-like layout section */
/* Keeping table grid layout on all screen sizes */

/* Leaflet Map Control Styling */
/* Make the copyright text tiny and transparent */
.leaflet-control-attribution {
    opacity: 0.3;          /* Very faint */
    font-size: 10px;       /* Smaller text */
    transition: opacity 0.3s;
}

/* Reveal it when you hover over it (optional, good for usability) */
.leaflet-control-attribution:hover {
    opacity: 1;
}

/* Style the Zoom Buttons with neon theme */
.leaflet-bar a {
    background-color: #111 !important;
    color: #ffe014 !important; /* Neon orange */
    border: 1px solid #333 !important;
}

.leaflet-bar a:hover {
    background-color: #222 !important;
    box-shadow: 0 0 5px #ffe014;
}

/* Make map labels white and bright */
#location-map .leaflet-tile-container img,
#location-map .leaflet-tile-pane img,
#location-map .leaflet-tile {
    filter: brightness(2.5) contrast(2.5) saturate(0.6);
}

.about-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    background: transparent; /* Allow fixed background to show through */
}

.about-section .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

/* Glass Effect Container for Text Sections - Match Navbar Style */
.glass-container.glass-effect,
.glass-container {
    /* Extends .glass-effect base class */
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto 0.25rem auto; /* Further reduced bottom margin */
}

.about-content h2 {
    color: #ffe014;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.about-text {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* Technology Passion Section */
.technology-passion-section {
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    background: transparent; /* Allow fixed background to show through */
}

.technology-passion-section .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.technology-passion-content {
    text-align: center;
}

.technology-passion-text {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.technology-passion-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.technology-passion-text p:last-child {
    margin-bottom: 0;
}

/* Additional Text Section - Similar to About Me */
.additional-text-section {
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    background: transparent; /* Allow fixed background to show through */
}

.additional-text-section .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.additional-text-content h2 {
    color: #ffe014;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.additional-text {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.additional-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.additional-text a {
    color: #ffe014;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease, text-decoration 0.3s ease;
    position: relative;
    padding-right: 1.2em;
}

.additional-text a::after {
    content: '↗';
    position: absolute;
    top: -0.1em;
    right: 0;
    font-size: 0.85em;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.additional-text a:hover {
    color: #ffb814;
    text-shadow: 0 0 8px rgba(255, 224, 20, 0.6);
    text-decoration: underline;
}

.additional-text a:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}


/* Library Main Section */
.library-main-section {
    position: fixed;
    top: 5.5rem; /* Below navbar */
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 1000; /* Above fixed overlay (z-index: 2) and navbar (z-index: 1000) */
}

/* Library Layout Container - Flexbox for 1/5 and 4/5 split */
.library-layout-container {
    display: flex;
    width: 100%;
    max-width: 1600px; /* Max width to center content */
    height: 100%;
    margin: 0 auto; /* Center the container */
    gap: 1.5rem; /* Add gap between sidebar and main content */
}

/* Left Sidebar (1/5) */
.library-sidebar-left {
    width: 20%; /* Exactly 1/5 */
    height: 100%;
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 1px 0 0 0 rgba(255, 255, 255, 0.05) inset,
                4px 0 20px rgba(0, 0, 0, 0.1),
                0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
}

.library-sidebar-nav {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-top: 0;
}

.library-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute buttons evenly */
    gap: 1rem;
}

.library-sidebar-menu li {
    display: flex;
    flex: 1; /* Each list item takes equal space */
    min-height: 0; /* Allow flex shrinking */
}

.library-sidebar-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    flex: 1; /* Expand to fill available space */
    min-height: 0; /* Allow flex shrinking */
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    outline: none;
}

.library-sidebar-icon {
    font-size: 2.5rem; /* Large icon size */
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
}

.library-sidebar-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    text-align: center;
}

.library-sidebar-btn:hover {
    color: #ffe014;
    background: rgba(255, 224, 20, 0.1);
    transform: translateY(-3px);
    border-color: #ffe014;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4),
                inset 0 0 10px rgba(255, 224, 20, 0.1);
}

.library-sidebar-btn:hover .library-sidebar-icon,
.library-sidebar-btn:hover .library-sidebar-label {
    color: #ffe014;
}

.library-sidebar-btn:hover .library-sidebar-icon {
    transform: scale(1.1);
}

.library-sidebar-btn.active {
    color: #ffe014;
    background: rgba(255, 224, 20, 0.15);
    border-color: #ffe014;
    box-shadow: 0 0 15px rgba(255, 224, 20, 0.4),
                inset 0 0 10px rgba(255, 224, 20, 0.1);
}

.library-sidebar-btn.active .library-sidebar-icon,
.library-sidebar-btn.active .library-sidebar-label {
    color: #ffe014;
}

/* Main Content Area (4/5) */
.library-content-main {
    width: 80%; /* Exactly 4/5 */
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

/* Library Glass Container */
.library-glass-container {
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 2rem 2rem 1rem; /* Reduced left padding */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                1px 0 0 0 rgba(255, 255, 255, 0.05) inset;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Library page specific styles handled by .library-hero-section above */

/* Library Section Styles */
.library-section {
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.library-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.library-section-title {
    color: #ffe014;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Headers are hidden by default, JavaScript will show the active one */
.library-section:not(.active) .library-section-title {
    display: none;
}

/* Add Button Styles */
.add-button {
    background: rgba(255, 224, 20, 0.15);
    border: 1px solid rgba(255, 224, 20, 0.3);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe014;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.add-button:hover {
    background: rgba(255, 224, 20, 0.25);
    border-color: rgba(255, 224, 20, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.3);
}

.add-button:active {
    transform: scale(0.95);
}

.add-button i {
    line-height: 1;
}

.add-button-left {
    order: -1; /* Place before the title text */
}

.add-button-right {
    order: 1; /* Place after the title text */
    margin-left: auto;
}

/* Books Table Styles */
.books-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
}

.books-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #ffe014;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.3);
}

.books-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    background: #ffe014;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.books-header-cell {
    padding: 1rem;
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.books-header-cell:last-child {
    border-right: none;
}

.books-table-body {
    display: flex;
    flex-direction: column;
}

.books-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 224, 20, 0.3);
    transition: background 0.3s ease;
}

.books-table-row:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 224, 20, 0.2);
}

.books-table-row:last-child {
    border-bottom: none;
}

.books-table-cell {
    padding: 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 224, 20, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.books-table-cell:last-child {
    border-right: none;
}

.book-rating-stars {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.book-rating-stars .star {
    color: #666;
    font-size: 1rem;
}

.book-rating-stars .star.filled {
    color: #ffe014;
    text-shadow: 0 0 5px rgba(255, 224, 20, 0.8);
}

.book-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.book-title-row h3 {
    margin-bottom: 0;
    flex: 1;
}

/* Languages Table Styles */
.languages-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
}

.languages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #ffe014;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 224, 20, 0.3);
}

.languages-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: #ffe014;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.languages-header-cell {
    padding: 1rem;
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.languages-header-cell:last-child {
    border-right: none;
}

.languages-table-body {
    display: flex;
    flex-direction: column;
}

.languages-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    border-bottom: 1px solid rgba(255, 224, 20, 0.3);
    transition: background 0.3s ease;
}

.languages-table-row:hover {
    background: rgba(255, 224, 20, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 224, 20, 0.2);
}

.languages-table-row:last-child {
    border-bottom: none;
}

.languages-table-cell {
    padding: 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 224, 20, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.languages-table-cell:last-child {
    border-right: none;
}

.native-badge {
    display: inline-block;
    background: rgba(255, 224, 20, 0.2);
    color: #ffe014;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 224, 20, 0.4);
    margin-left: 0.5rem;
}

/* Page Hero Section (for non-home pages) - base styles */
.page-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    overflow: hidden;
    background: #0a0a0a url('../assets/DigitalAdamCreation.png') center 50% / cover no-repeat;
    background-attachment: fixed;
}

/* Library and Skills pages override with same structure as home */
.library-hero-section,
.skills-hero-section {
    padding: 20vh 0 15vh 0; /* Match home page padding */
    overflow: visible; /* Override base overflow: hidden */
    background: #2a2a2a; /* Override base background */
}


/* Image and overlay styles unified above with .hero-image and .hero-overlay */

.page-hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

.page-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-family: 'Dancing Script', cursive;
}

/* Projects Page Styles */
.projects-page-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    background: #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.project-card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #ffe014;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-skills {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-skills strong {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.75rem;
}

.project-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-skill-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 224, 20, 0.15);
    border: 1px solid rgba(255, 224, 20, 0.3);
    border-radius: 15px;
    color: #ffe014;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-skill-tag:hover {
    background: rgba(255, 224, 20, 0.25);
    border-color: rgba(255, 224, 20, 0.5);
    transform: translateY(-2px);
}

.project-technologies {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-technologies strong {
    color: #e0e0e0;
}

.project-technologies span {
    color: #b0b0b0;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffe014 0%, #ffb814 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #5568d3;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffe014;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Skills Page Styles */
.skills-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 1rem 0; /* Compact padding for tighter layout */
    position: relative;
    z-index: 2;
    text-align: left; /* Left align content */
}

.skills-section,
.languages-section {
    margin-bottom: 1rem; /* Compact bottom margin */
    margin-top: 0; /* Remove top margin */
    position: relative;
    z-index: 2;
    text-align: left; /* Left align sections */
}

.skills-section h2,
.languages-section h2 {
    color: #ffe014;
    font-size: 2rem;
    margin-bottom: 1rem; /* Compact bottom margin */
    margin-top: 0; /* Remove top margin */
    font-family: 'Cinzel', serif;
    text-align: left; /* Left align headings */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Skill Category Group */
.skill-category-group {
    margin-bottom: 1.5rem; /* Compact group spacing */
}

.skill-category-heading {
    color: #ffe014;
    font-size: 1.75rem;
    margin-bottom: 1rem; /* Compact heading margin */
    margin-top: 0;
    font-family: 'Cinzel', serif;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 224, 20, 0.3);
    padding-bottom: 0.5rem;
}

.section-link {
    color: #ffe014;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.section-link:hover {
    color: #ffb814;
    text-shadow: 0 0 10px rgba(255, 224, 20, 0.6);
}

.category-group {
    margin-bottom: 2rem;
}

.category-title {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

/* Skills Grid - 7 columns */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem; /* Tighter gap for compact layout */
    margin-bottom: 1rem; /* Compact bottom margin */
    position: relative;
    z-index: 2;
}

/* Languages Grid - 3 columns */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Glass card styling - matches navigation glass morphism */
.glass-card.glass-effect,
.glass-card {
    /* Extends .glass-effect base class */
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 224, 20, 0.3);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 8px 30px rgba(255, 224, 20, 0.2),
                0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Skill Card Styles */
.skill-card {
    min-height: 120px; /* Ensure consistent card height */
    display: flex;
    flex-direction: column;
}

.skill-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.skill-card-icon {
    font-size: 2rem;
    color: rgba(255, 224, 20, 0.9);
    margin-bottom: 0.75rem;
    display: block;
}

.skill-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.skill-card-placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.no-skills-message {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Language Card Styles */
.language-card {
    min-height: 120px; /* Ensure consistent card height */
    display: flex;
    flex-direction: column;
}

.language-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.language-card-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.language-card-placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Legacy skill-item for backwards compatibility */
.skill-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
}

/* Responsive styles for Skills page */
@media (max-width: 1400px) {
    .skills-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 columns on large screens */
    }
}

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 columns on medium-large screens */
    }
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on tablets */
    }
}

@media (max-width: 768px) {
    .skills-container {
        padding: 0.5rem 0.5rem 1rem 0; /* Compact padding on mobile */
    }
    
    .skills-hero-section {
        padding-top: 12vh; /* Reduce top padding on mobile */
        padding-bottom: 8vh;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns on tablets */
        gap: 0.5rem;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 0.75rem;
    }
    
    .skills-section h2,
    .languages-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-category-heading {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-category-group {
        margin-bottom: 1rem;
    }
    
    .glass-card {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .skill-card {
        min-height: 80px; /* Smaller cards on mobile */
    }
}

@media (max-width: 480px) {
    .skills-container {
        padding: 0.25rem 0.25rem 0.5rem 0; /* Even more compact on small mobile */
    }
    
    .skills-hero-section {
        padding-top: 10vh; /* Further reduce top padding on small mobile */
        padding-bottom: 5vh;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns on mobile */
        gap: 0.4rem;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 0.5rem;
    }
    
    .skills-section h2,
    .languages-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-category-heading {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .skill-category-group {
        margin-bottom: 0.75rem;
    }
    
    .glass-card {
        padding: 0.5rem;
        min-height: auto;
        border-radius: 10px;
    }
    
    .skill-card {
        min-height: 60px; /* Compact cards on small mobile */
    }
    
    .skill-card-title,
    .language-card-title {
        font-size: 0.8rem;
    }
    
    .skill-card-description {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

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

.skill-header h3,
.skill-header h4 {
    color: #e0e0e0;
    margin: 0;
    font-size: 1.2rem;
}

.experience-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.skill-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.proficiency-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffe014 0%, #ffb814 100%);
    transition: width 0.5s ease;
}

.proficiency-level {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.empty-message {
    color: #b0b0b0;
    font-style: italic;
    padding: 2rem;
    text-align: center;
}

/* Books Page Styles */
.books-page-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    background: #1a1a1a;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.book-card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.book-cover {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #e0e0e0;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: bold;
}

.book-content {
    padding: 1.5rem;
}

.book-content h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.book-author {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: #ffd700;
}

.book-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.book-review {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

/* Photos Page Styles */
.photos-page-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    background: #1a1a1a;
}

.photos-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.photos-section h2 {
    color: #ffe014;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.photo-card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.photo-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #e0e0e0;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.photo-info {
    padding: 1.5rem;
}

.photo-info h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.photo-location {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.photo-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.photo-date {
    color: #999;
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0b0b0;
    font-size: 1.1rem;
}

/* Responsive Styles for New Pages */
@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }

    .projects-grid,
    .books-grid,
    .photos-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Skills grid handled in Skills page responsive section above */
}

/* Mobile styles for projects grid */
@media (max-width: 480px) {
    .projects-grid,
    .books-grid,
    .photos-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Skills grid: 3 columns enforced in Skills page responsive section above */

    .about-text {
        text-align: left;
    }
    
    .additional-text {
        text-align: left;
    }

}

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

    .project-links {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   GitHub Contributions Section
   ========================================================================== */

.contributions-section {
    position: relative;
    z-index: 10; /* Above fixed overlay (z-index: 2) */
    background: transparent; /* Allow fixed background to show through */
    padding: 0.5rem 0 1rem 0; /* Significantly reduced top padding to bring closer to hobbies */
    overflow: visible;
}

.contributions-header {
    text-align: right;
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0;
    background: transparent; /* No glass effect - transparent background */
}

.contributions-title {
    color: #ffe014;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contributions-count {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0;
}

.contributions-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(42, 42, 42, 0.458);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 20px rgba(0, 0, 0, 0.1),
                0 0 30px rgba(255, 224, 20, 0.3);
    overflow: hidden; /* Clip any overflow */
    width: 100%;
    box-sizing: border-box;
}

.contribution-graph-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.contribution-months {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-left: 35px;
    padding-right: 35px;
    height: 20px;
    font-size: 0.75rem;
    color: #8b949e;
    width: 100%;
    box-sizing: border-box;
}

.contribution-months span {
    white-space: nowrap;
    flex-shrink: 0;
}

.contribution-graph-inner {
    display: flex;
    gap: 3px;
    width: 100%;
    align-items: flex-start;
    box-sizing: border-box;
}

.contribution-days {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
    flex-shrink: 0;
    width: 30px;
    height: 100%;
}

.contribution-days-left .day-label {
    font-size: 0.7rem;
    color: #8b949e;
    line-height: 1;
    text-align: right;
    padding-right: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contribution-days-right .day-label {
    font-size: 0.7rem;
    color: #8b949e;
    line-height: 1;
    text-align: left;
    padding-left: 6px;
    display: flex;
    align-items: center;
}

.contribution-days-left .day-label:nth-child(1),
.contribution-days-right .day-label:nth-child(1) { grid-row: 2; } /* Mon */
.contribution-days-left .day-label:nth-child(2),
.contribution-days-right .day-label:nth-child(2) { grid-row: 4; } /* Wed */
.contribution-days-left .day-label:nth-child(3),
.contribution-days-right .day-label:nth-child(3) { grid-row: 6; } /* Fri */

.contribution-graph {
    display: flex;
    gap: 3px;
    flex: 1;
    justify-content: space-between;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.week {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
    flex: 1;
    max-width: 14px;
    min-width: 8px;
}

.day {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Contribution Levels - Neon Orange Theme */
.day.NONE {
    background-color: #161b22;
    border: 1px solid #30363d;
}

.day.FIRST_QUARTILE {
    background-color: rgba(255, 224, 20, 0.2);
    border: 1px solid rgba(255, 224, 20, 0.3);
}

.day.SECOND_QUARTILE {
    background-color: rgba(255, 224, 20, 0.5);
    border: 1px solid rgba(255, 224, 20, 0.6);
    box-shadow: 0 0 3px rgba(255, 224, 20, 0.4);
}

.day.THIRD_QUARTILE {
    background-color: rgba(255, 224, 20, 0.7);
    border: 1px solid rgba(255, 224, 20, 0.8);
    box-shadow: 0 0 5px rgba(255, 224, 20, 0.6);
}

.day.FOURTH_QUARTILE {
    background-color: #ffe014;
    border: 1px solid #ffe014;
    box-shadow: 0 0 8px rgba(255, 224, 20, 0.8), 0 0 12px rgba(255, 224, 20, 0.5);
}

.day:hover {
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 224, 20, 0.6), 0 0 20px rgba(255, 224, 20, 0.4);
    z-index: 10;
}

.contribution-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.contribution-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.contribution-link {
    color: #ffe014;
    font-size: 0.85rem;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
    text-align: right;
    flex: 1;
}

.contribution-link:hover {
    color: #ffb814;
    text-decoration: underline;
}

.legend-label {
    color: #e0e0e0;
    font-size: 0.85rem;
}

.legend-colors {
    display: flex;
    gap: 3px;
}

.legend-day {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-day.NONE {
    background-color: #161b22;
    border: 1px solid #30363d;
}

.legend-day.FIRST_QUARTILE {
    background-color: rgba(255, 224, 20, 0.2);
    border: 1px solid rgba(255, 224, 20, 0.3);
}

.legend-day.SECOND_QUARTILE {
    background-color: rgba(255, 224, 20, 0.5);
    border: 1px solid rgba(255, 224, 20, 0.6);
    box-shadow: 0 0 3px rgba(255, 224, 20, 0.4);
}

.legend-day.THIRD_QUARTILE {
    background-color: rgba(255, 224, 20, 0.7);
    border: 1px solid rgba(255, 224, 20, 0.8);
    box-shadow: 0 0 5px rgba(255, 224, 20, 0.6);
}

.legend-day.FOURTH_QUARTILE {
    background-color: #ffe014;
    border: 1px solid #ffe014;
    box-shadow: 0 0 8px rgba(255, 224, 20, 0.8);
}

/* GitHub Contributions - Responsive */
@media (max-width: 768px) {
    .contributions-section {
        padding: 1rem 0;
    }
    
    .contributions-container {
        padding: 1rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    
    .contributions-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contributions-header {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .contribution-graph-wrapper {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contribution-graph-inner {
        gap: 2px;
    }
    
    .contribution-graph {
        gap: 2px;
    }
    
    .week {
        gap: 2px;
        max-width: 10px;
        min-width: 6px;
    }
    
    .contribution-days-left,
    .contribution-days-right {
        width: 24px;
    }
    
    .contribution-days-left .day-label,
    .contribution-days-right .day-label {
        font-size: 0.55rem;
    }
    
    .contribution-footer {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .contribution-legend {
        flex-shrink: 0;
        gap: 0.35rem;
    }
    
    .contribution-link {
        font-size: 0.7rem;
        text-align: right;
    }
    
    .legend-label {
        font-size: 0.7rem;
    }
    
    .legend-day {
        width: 8px;
        height: 8px;
    }
    
    .contribution-months {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .contribution-months span {
        font-size: 0.6rem;
    }
    
    .legend-day {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .contributions-container {
        padding: 0.75rem;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .contributions-title {
        font-size: 1.25rem;
    }
    
    .contributions-count {
        font-size: 0.9rem;
    }
    
    .week {
        gap: 1px;
        max-width: 8px;
        min-width: 5px;
    }
    
    .contribution-graph {
        gap: 1px;
    }
    
    .contribution-graph-inner {
        gap: 1px;
    }
    
    /* Hide day labels on very small screens */
    .contribution-days-left,
    .contribution-days-right {
        display: none;
    }
    
    .contribution-months {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contribution-months span {
        font-size: 0.5rem;
    }
    
    .contribution-footer {
        gap: 0.25rem;
    }
    
    .contribution-legend {
        gap: 0.25rem;
    }
    
    .legend-label {
        font-size: 0.6rem;
    }
    
    .legend-day {
        width: 6px;
        height: 6px;
    }
    
    .contribution-link {
        font-size: 0.6rem;
    }
}

/* Library Sidebar Responsive Styles */
@media (max-width: 1024px) {
    .library-main-section {
        left: 1rem;
        right: 1rem;
        top: 5.5rem;
        bottom: 1rem;
    }
    
    .library-sidebar-left {
        width: 18%;
    }
    
    .library-content-main {
        width: 82%;
    }
    
    .library-sidebar-icon {
        font-size: 2rem; /* Slightly smaller icons on tablets */
    }
}

@media (max-width: 768px) {
    .library-main-section {
        left: 0.5rem;
        right: 0.5rem;
        top: 5.5rem;
        bottom: 0.5rem;
    }
    
    .library-layout-container {
        flex-direction: row; /* Keep side-by-side layout on mobile */
        gap: 0.5rem;
    }
    
    /* Thin icon-only sidebar on mobile */
    .library-sidebar-left {
        width: 60px; /* Thin sidebar */
        min-width: 60px;
        height: 100%;
        padding: 0.5rem;
        flex-shrink: 0;
    }
    
    .library-sidebar-nav {
        padding-top: 0;
        height: 100%;
        width: 100%;
    }
    
    .library-sidebar-menu {
        flex-direction: column;
        gap: 0.5rem;
        height: 100%; /* Full height of container */
        justify-content: stretch;
        padding: 0;
    }
    
    .library-sidebar-menu li {
        flex: 1 1 0; /* Each li takes equal space (1/3) */
        display: flex;
        min-height: 0;
    }
    
    .library-sidebar-btn {
        padding: 0.5rem;
        flex: 1; /* Fill the entire li */
        min-height: 0;
        flex-direction: column;
        gap: 0.25rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .library-sidebar-icon {
        font-size: 1.5rem; /* Compact icons on mobile */
    }
    
    /* Hide labels on mobile - icons only */
    .library-sidebar-label {
        display: none;
    }
    
    .library-content-main {
        width: calc(100% - 60px - 0.5rem); /* Fill remaining space */
        height: 100%;
        flex: 1;
    }
    
    .library-glass-container {
        padding: 1rem;
    }
    
    .library-section-title {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
    }
}

/* ============================================
   MOBILE DESKTOP-LIKE LAYOUT OVERRIDES
   Keep mobile display similar to desktop
   ============================================ */

/* Navigation - Wider on mobile, closer to full width */
@media (max-width: 767px) {
    .main-nav {
        padding: 0 2.5% !important;
        width: 100% !important;
    }
    
    .nav-container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }
    
    .nav-mobile-wrapper {
        width: 100% !important;
        max-width: none !important;
    }
    
    .nav-mobile-toggle {
        width: 100% !important;
        padding: 0.75rem 1.25rem !important;
        justify-content: space-between !important;
    }
    
    .nav-mobile-dropdown {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateX(0) translateY(-10px) !important;
        min-width: unset !important;
    }
    
    .nav-mobile-dropdown.is-open {
        transform: translateX(0) translateY(0) !important;
    }
}

/* Library Sidebar - Extra small screens */
@media (max-width: 480px) {
    .library-main-section {
        left: 0.25rem;
        right: 0.25rem;
        top: 5rem;
        bottom: 0.25rem;
    }
    
    .library-layout-container {
        gap: 0.25rem;
    }
    
    .library-sidebar-left {
        width: 50px;
        min-width: 50px;
        padding: 0.25rem;
    }
    
    .library-sidebar-menu {
        gap: 0.25rem;
        padding: 0;
    }
    
    .library-sidebar-btn {
        padding: 0.25rem;
        border-radius: 8px;
    }
    
    .library-sidebar-icon {
        font-size: 1.25rem;
    }
    
    .library-content-main {
        width: calc(100% - 50px - 0.25rem);
    }
    
    .library-glass-container {
        padding: 0.75rem;
    }
    
    .library-section-title {
        font-size: 1.25rem;
    }
    
    .project-card {
        border-radius: 12px;
    }
    
    .project-content h3 {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
}

/* Photo Grid - Keep 3 columns on mobile */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
    
    .photo-grid-section {
        margin-top: -12vh;
        margin-bottom: -8vh;
    }
    
    .photo-grid-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem;
    }
    
    .photo-grid-section {
        margin-top: -10vh;
        margin-bottom: -6vh;
    }
    
    .photo-box {
        border-width: 2px;
    }
}

/* About Me Section - Compact text for more information */
@media (max-width: 768px) {
    .about-section .content {
        padding: 1.5rem;
    }
    
    .about-content {
        text-align: left !important;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: left !important;
    }
    
    .about-text {
        text-align: left !important;
    }
    
    .about-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
        text-align: left !important;
    }
    
    .glass-container.glass-effect,
    .glass-container {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .about-section .content {
        padding: 1rem;
    }
    
    .about-content {
        text-align: left !important;
    }
    
    .about-content h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
        text-align: left !important;
    }
    
    .about-text {
        text-align: left !important;
    }
    
    .about-text p {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.6rem;
        text-align: left !important;
    }
    
    .glass-container.glass-effect,
    .glass-container {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Hobbies Section - Keep desktop table layout on mobile */
@media (max-width: 768px) {
    .hobbies-table-header,
    .hobbies-table-row {
        grid-template-columns: 0.6fr 1.2fr 1.8fr 0.8fr 0.8fr !important;
    }
    
    .hobbies-header-cell,
    .hobbies-table-cell {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-right: 1px solid rgba(255, 224, 20, 0.2) !important;
        border-bottom: none !important;
    }
    
    .hobbies-header-cell:last-child,
    .hobbies-table-cell:last-child {
        border-right: none !important;
    }
    
    .hobbies-table-cell::before {
        display: none !important;
    }
    
    .hobbies-title {
        font-size: 1.5rem;
    }
    
    .hobby-icon {
        font-size: 1rem;
    }
    
    .hobby-category {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .social-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hobbies-table-header,
    .hobbies-table-row {
        grid-template-columns: 0.5fr 1fr 1.5fr 0.7fr 0.7fr !important;
    }
    
    .hobbies-header-cell,
    .hobbies-table-cell {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.65rem !important;
    }
    
    .hobbies-title {
        font-size: 1.3rem;
    }
    
    .hobby-icon {
        font-size: 0.9rem;
    }
    
    .hobby-category {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
    }
    
    .social-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .hobbies-database-container {
        margin-top: 1rem;
    }
}

/* Technology Passion Section - Compact text */
@media (max-width: 768px) {
    .technology-passion-content {
        padding: 1.25rem;
    }
    
    .technology-passion-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .technology-passion-content {
        padding: 1rem;
    }
    
    .technology-passion-text p {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.6rem;
    }
}

/* Additional Text / My Journey Section - Compact text */
@media (max-width: 768px) {
    .additional-text-content {
        padding: 1.25rem;
        text-align: left !important;
    }
    
    .additional-text-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: left !important;
    }
    
    .additional-text {
        text-align: left !important;
    }
    
    .additional-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .additional-text-content {
        padding: 1rem;
        text-align: left !important;
    }
    
    .additional-text-content h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
        text-align: left !important;
    }
    
    .additional-text {
        text-align: left !important;
    }
    
    .additional-text p {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.6rem;
        text-align: left !important;
    }
}

/* Countries Grid - Keep 3 columns on mobile */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .country-card {
        width: 90px;
        height: 90px;
    }
    
    .country-flag {
        font-size: 2.75rem;
    }
    
    .countries-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem;
        padding: 1rem 0.5rem;
    }
    
    .country-card {
        width: 80px;
        height: 80px;
    }
    
    .country-flag {
        font-size: 2.5rem;
    }
    
    .countries-title {
        font-size: 1.3rem;
    }
}

/* GitHub Contributions - Compact on mobile */
@media (max-width: 768px) {
    .contributions-title {
        font-size: 1.5rem;
    }
    
    .contributions-count {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contributions-title {
        font-size: 1.3rem;
    }
    
    .contributions-count {
        font-size: 0.8rem;
    }
}

/* Content sections - Reduce padding on mobile */
@media (max-width: 768px) {
    .content-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .content {
        padding: 1rem;
    }
}

/* Location map - Maintain good size on mobile */
@media (max-width: 480px) {
    #location-map {
        height: 350px;
    }
    
    .location-content {
        padding: 0 0.75rem;
    }
}

