:root {
    --bg-dark: #1e1e24;
    /* Fallback */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #3b82f6;
    --glass-bg: rgba(30, 30, 35, 0.85);
    /* Dark semi-transparent */
    --glass-border: rgba(255, 255, 255, 0.1);
    --sidebar-width: 240px;
    --card-max-width: 1200px;
}

/* ... existing code ... */

.sidebar {
    /* ... */
    max-height: 750px;
}

.main-content {
    /* ... */
    max-height: 750px;
}

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

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: #000;
    height: 100vh;
    overflow: hidden;
    /* Prevent body scroll, content scrolls if needed */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Image Layer */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Glass Card */
.glass-card {
    width: 100%;
    max-width: var(--card-max-width);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.5s ease-out 1.5s forwards;
    /* Disappear after 1.5s */
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Window Controls Header */
.window-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f57;
}

.dot.yellow {
    background-color: #febc2e;
}

.dot.green {
    background-color: #28c840;
}

.window-actions {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    gap: 12px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr 340px;
    /* Sidebar, Content, Image */
    min-height: 500px;
    /* Adjust as needed */
}

/* Sidebar */
.sidebar {
    padding: 30px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
    max-height: 600px;
    /* Hide scrollbar completely */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.sidebar::-webkit-scrollbar {
    display: none;
}

.menu-section h3 {
    color: #71717a;
    /* Darker gray for headers */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-weight: 600;
}

.menu-section i {
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-section ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    padding-inline-start: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-section li {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.menu-section li:hover,
.menu-section li.active {
    color: var(--accent-blue);
}

.menu-section li.active {
    font-weight: 500;
}

.menu-section li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: color 0.2s;
}

.menu-section li:hover a {
    color: var(--accent-blue);
}

/* Main Content */
/* Main Content */
@media (min-width: 769px) {
    #socials-modal {
        display: none !important;
    }
}

#socials-modal {
    display: none;
}

.main-content {
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    /* Allow text scroll if too long */
    max-height: 600px;
}

.main-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.bio {
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right Column - Image */
.image-column {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
}

.highlight {
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.credits a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Bottom Branding */
.bottom-branding {
    margin-top: 16px;
}

.badge {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    backdrop-filter: blur(4px);
}

/* Mobile Bottom Nav Styles */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(30, 30, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 12px 24px;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav .nav-item.active {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.bottom-nav .nav-item:active {
    transform: scale(0.9);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 200px 1fr;
    }

    .image-column {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        /* Allow body scroll if content exceeds viewport */
        height: auto;
        min-height: 100vh;
        padding-bottom: 100px;
        /* Space for bottom nav */
        align-items: flex-start;
        padding-top: 50px;
        /* Space for "notch" or top margin */
        background: url('assets/mobile_bg.png') no-repeat center center fixed;
        background-size: cover;
        overflow-y: auto;
        /* Enable vertical scrolling */
    }

    .background-container {
        display: none;
        /* Hide background image on mobile */
    }

    .main-container {
        padding: 0 16px;
        height: auto;
        justify-content: flex-start;
    }

    .glass-card {
        max-width: 100%;
        height: auto;
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .window-controls,
    .sidebar,
    .loading-overlay {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
    }

    .content-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .image-column {
        display: block;
        height: 300px;
        border-radius: 16px;
        margin-bottom: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .image-column img {
        border-radius: 16px;
    }

    .main-content {
        padding: 24px;
        border: none;
        max-height: none;
        overflow: visible;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 16px;
        margin: 0 0 24px 0;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-content h1 {
        font-size: 36px;
        /* Bigger "App Store" style headers */
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .bio {
        font-size: 16px;
        /* More readable text */
    }

    /* Socials Modal Styles */
    .socials-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        /* Center vertically */
        padding-bottom: 0;
        /* Remove bottom padding */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .socials-content {
        width: 90%;
        max-width: 400px;
        background: rgba(30, 30, 35, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        padding: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        transform: translateY(20px);
        animation: slideUp 0.3s forwards;
    }

    @keyframes slideUp {
        to {
            transform: translateY(0);
        }
    }

    .socials-content h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        color: var(--text-primary);
    }

    .social-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .social-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        padding: 20px;
        text-decoration: none;
        color: var(--text-primary);
        gap: 12px;
        transition: background 0.2s;
    }

    .social-btn:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }

    .social-btn i {
        font-size: 24px;
        color: var(--accent-blue);
    }

    .social-btn span {
        font-size: 14px;
        font-weight: 500;
    }
}

/* Full Width Mode (for YouTube tab) */
.content-grid.full-width {
    grid-template-columns: var(--sidebar-width) 1fr;
}

.content-grid.full-width .image-column {
    display: none;
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-grid iframe {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 8px;
    background: #000;
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-card .project-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.project-card .project-info {
    padding: 16px;
}

.project-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Ultra Wide Mode */
/* Ultra Wide Mode */
.glass-card.ultra-wide {
    max-width: 1400px;
    transition: max-width 0.4s ease;
}

/* AI Showcase Styles */
.ai-showcase {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
    gap: 30px;
}

.ai-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    min-width: 300px;
}

.ai-showcase iframe {
    width: 100%;
    max-width: 504px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
}

/* Responsive Grid for AI */
@media (max-width: 1200px) {
    .ai-showcase {
        flex-direction: column;
        align-items: center;
    }

    .ai-column {
        width: 100%;
        max-width: 504px;
    }
}

/* Project Image Container Styles */
.project-image-container {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Show the top of the screenshot */
    transition: transform 0.5s ease;
}

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

.project-image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-container .overlay {
    opacity: 1;
}

.project-image-container .overlay i {
    color: white;
    font-size: 24px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-image-container .overlay i {
    transform: translateY(0);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}