:root {
    --primary-dark: #080A10; /* Richer dark background */
    --shape-fill-color: #111827; /* Darker hexagons for better contrast */
    --primary-yellow: #FACC15;
    --primary-yellow-rgb: 250, 204, 21;
    --hover-yellow: #F59E0B; /* Slightly more orange-yellow for hover */
    --primary-yellow-dark: #EAB308;
    --primary-yellow-glow: rgba(250, 204, 21, 0.7); /* More intense glow */
    --text-light: #F9FAFB; /* Whiter text for better readability */
    --text-medium: #D1D5DB; /* Lighter gray for better contrast */
    --text-dark: #09090B; /* Near black text for light bg */
    --bg-medium: #27272E; /* Slightly bluer-gray for elements */
    --bg-dark: #1E1F25;  /* Slightly bluer than primary dark */
    --border-color: #4B5563;
    --border-color-light: #6B7280;
    --honeycomb-color: rgba(10, 10, 10, 0.8); /* Unused now */
    --honeycomb-active: rgba(250, 204, 21, 0.8); /* Brighter active yellow */
    --neural-connection: rgba(242, 201, 76, 0.15);

    /* New colors for enhanced visual appeal */
    --accent-blue: #3B82F6;
    --accent-blue-glow: rgba(59, 130, 246, 0.6);
    --accent-purple: #8B5CF6;
    --accent-purple-glow: rgba(139, 92, 246, 0.6);
    --gradient-start: #FACC15;
    --gradient-end: #F59E0B;

    --transition-speed: 0.15s; /* Faster transitions (was 0.2s) */
    --transition-speed-slow: 0.5s; /* Faster transitions (was 0.8s) */
    --transition-speed-med: 0.3s; /* Faster transitions (was 0.5s) */
    --font-primary: 'Poppins', sans-serif;
    --border-radius-sm: 6px;
    --border-radius-md: 10px; /* Increased radius for softer edges */
    --border-radius-lg: 16px; /* Increased radius for softer edges */
    --section-count: 5; /* Number of horizontal sections */
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

/* ---------- HONEYCOMB BACKGROUND ---------- */

.honeycomb-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#light-source-canvas {
    display: block;
    width: 100%; height: 100%;
}

.honeycomb-shapes-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

#shape-canvas {
    display: block;
    width: 100%; height: 100%;
}

/* ---------- LOGO ---------- */

.logo-container {
    position: absolute; /* Changed from fixed to absolute so it scrolls with page */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: top var(--transition-speed-slow) ease-in-out, 
                transform var(--transition-speed-slow) ease-in-out,
                opacity 0.3s ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    text-align: center;
}

.logo-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* Remove underline effect for logo link */
.logo-link::after {
    display: none;
}

.logo-container.logo-zoomed {
    transform: translate(-50%, -50%) scale(3.5);
    transition: transform 0.7s cubic-bezier(0.8,0,0.2,1), 
                top 0.7s cubic-bezier(0.8,0,0.2,1), 
                opacity 0.3s ease-in-out;
}

.logo-container.moved-up {
    top: 25px;
    transform: translate(-50%, 0) scale(1);
}

.logo {
    display: block;
    max-width: 250px;
    height: auto;
    opacity: 0.95;
    margin: 0 auto;
}

/* Tagline styling */
.tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.logo-container.moved-up .tagline {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile overrides */
@media (max-width: 768px) {
    .logo-container {
        transition: opacity 0.4s ease-in-out;
    }
    
    .logo-container.moved-up {
        top: 20px; /* Slightly higher position on mobile */
        transform: translate(-50%, 0) scale(1.1); /* Increased scale on mobile */
    }
    
    .logo {
        max-width: 200px; /* Larger logo on mobile */
    }
    
    .tagline {
        font-size: 0.75rem; /* Smaller tagline on mobile */
        white-space: normal; /* Allow wrapping if needed */
        max-width: 80vw; /* Constrain width to prevent overflow */
    }
}

/* ---------- CHAT FLOW ---------- */

#chat-container {
    position: relative; 
    margin: 140px auto 40px auto;
    width: 90%;
    max-width: 800px;
    min-height: 220px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px 16px 16px;
    opacity: 0; /* Changed back to 0 to hide by default */
    transition: opacity 0.25s ease-in-out; /* Slightly faster fade-in */
    mask-image: none;
    -webkit-mask-image: none;
    background: linear-gradient(120deg, rgba(20,20,30,0.1) 60%, rgba(40,40,60,0.1) 100%);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.15);
    overflow: visible; /* Ensure no scrollbars */
}

.chat-bubble {
    padding: 16px 20px;
    border-radius: var(--border-radius-lg);
    max-width: 85%;
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateY(0); /* Remove the initial transform */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    min-height: 60px; /* Add minimum height */
}

.chat-bubble p {
    margin: 0;
    font-size: 1.05rem;
}

.chat-bubble p + p {
    margin-top: 10px;
}

.chat-bubble.question {
    background-color: var(--bg-medium);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(39, 39, 46, 0.9), rgba(30, 31, 37, 0.9));
}

.chat-bubble.answer {
    background-color: rgba(250, 204, 21, 0.1);
    color: var(--text-light);
    align-self: flex-end;
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-bottom-right-radius: var(--border-radius-sm);
    border-right: 3px solid var(--primary-yellow);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(245, 158, 11, 0.08));
}

.chat-bubble.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- TOP NAVIGATION ---------- */
.top-nav {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px 20px;
}

.nav-links {
    display: flex;
    flex-direction: row; /* Show links horizontally on desktop */
    gap: 12px;
    margin-right: 16px;
    align-items: center; /* Center-align items horizontally */
}

.nav-links a {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 100px; /* Set a minimum width for buttons */
    justify-content: center; /* Center content in buttons */
}

.nav-links a:hover {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(250, 204, 21, 0.15);
    transform: translateY(-2px);
    color: var(--primary-yellow);
}

.nav-links a i {
    font-size: 1rem;
}

/* GitHub Button */
.nav-links .github-corner-button {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--text-light);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.github-corner-button i {
    font-size: 1.1rem;
}

.github-corner-button:hover {
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- TECH BADGES ---------- */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tech-badge {
    background-color: var(--bg-medium);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tech-badge:hover {
    background-color: var(--primary-yellow-dark);
    transform: translateY(-2px); /* Slight lift on hover */
}

/* ---------- Technical Details Link ---------- */
.details-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-yellow);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.details-link:hover {
    opacity: 1;
    color: var(--hover-yellow);
    text-decoration: underline;
}

.details-link i {
    margin-right: 4px;
}

/* ---------- Modal Styles ---------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text-light);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--primary-yellow);
    text-align: center;
    font-weight: 600;
}

.modal-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-yellow-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    font-weight: 600;
}

.modal-content ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-content li::before {
    content: '\25CF'; /* Unicode bullet character */
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 4px; /* Adjust vertical alignment */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ---------- GENERAL STYLES ---------- */

.container {
    width: 100%;
    max-width: 1280px; /* Slightly reduced width */
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    font-weight: 500; /* Make links slightly bolder */
    position: relative;
    padding: 0 2px;
}

a:hover {
    color: var(--hover-yellow);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3 {
    font-weight: 700; /* Slightly less bold */
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 800; /* Keep H1 bold */
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(250, 204, 21, 0.3);
}

.highlight {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 0.1em 0.3em;
    border-radius: 4px;
    margin: 0 0.1em;
    box-decoration-break: clone; /* Handle wrapping */
    -webkit-box-decoration-break: clone; /* Handle wrapping for Safari */
    display: inline; /* Ensure it stays inline */
    line-height: 1.7; /* Adjust if needed for better vertical alignment */
}

/* Make sure links inside highlights look okay */
.highlight a {
    /* Add specific styling if default link style clashes */
    color: var(--primary-yellow); /* Keep link color */
}

.highlight a:hover {
    color: var(--hover-yellow);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gradient-start), var(--primary-yellow-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- FEATURES SECTION ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    /* Removed perspective */
}

.feature-item {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease,
                background-color var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 8px rgba(var(--primary-yellow-rgb), 0.3);
    background-color: var(--bg-medium);
    border-color: var(--primary-yellow-dark);
}

.feature-item .icon {
    color: var(--primary-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform var(--transition-speed) ease;
    filter: drop-shadow(0 2px 4px rgba(var(--primary-yellow-rgb), 0.3));
}

.feature-item:hover .icon {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed) ease;
    font-weight: 600;
}

.feature-item:hover h3 {
    color: var(--primary-yellow);
}

.feature-item p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease;
}

/* ---------- HOW IT WORKS SECTION ---------- */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.step {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 10px rgba(var(--primary-yellow-rgb), 0.2);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-yellow-dark));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(var(--primary-yellow-rgb), 0.5);
    transition: transform var(--transition-speed) ease;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ---------- DOWNLOAD SECTION ---------- */

.download-section .section-title {
    margin-bottom: 2rem;
}

.download-section p {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.download-button {
    padding: 1rem 1.5rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 180px;
    justify-content: center;
    transition: border-color var(--transition-speed) ease, background-color var(--transition-speed) ease; /* Smooth transition */
}

.download-button i {
    font-size: 1.3rem;
    color: var(--primary-yellow);
    transition: color var(--transition-speed) ease;
}

.download-button:hover {
    /* Removed transform */
    border-color: var(--border-color-light);
    background-color: #313135; /* Slightly lighter medium */
}

.download-button:hover i {
    /* Removed transform */
    color: var(--hover-yellow);
}

.version-info {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 2rem;
}

.version-info a {
    color: var(--primary-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.version-info a:hover {
    color: var(--hover-yellow);
}

/* ---------- FOOTER ---------- */

.footer {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 3;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    /* Removed backdrop-filter */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-img {
    height: 35px;
}

.footer-logo p {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-medium);
    transition: color 0.3s ease;
    font-size: 0.95rem;
    /* Removed ::after */
}

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

.copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ---------- TECH BADGES ---------- */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tech-badge {
    background-color: var(--bg-medium);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tech-badge:hover {
    background-color: var(--primary-yellow-dark);
    transform: translateY(-2px); /* Slight lift on hover */
}

/* ---------- Technical Details Link ---------- */
.details-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-yellow);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.details-link:hover {
    opacity: 1;
    color: var(--hover-yellow);
    text-decoration: underline;
}

.details-link i {
    margin-right: 4px;
}

/* ---------- Modal Styles ---------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text-light);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--primary-yellow);
    text-align: center;
    font-weight: 600;
}

.modal-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-yellow-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    font-weight: 600;
}

.modal-content ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-content li::before {
    content: '\25CF'; /* Unicode bullet character */
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 4px; /* Adjust vertical alignment */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ---------- TOP NAVIGATION (Mobile) ---------- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .top-nav {
        width: 100%; /* Full width on mobile */
        padding: 12px 16px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 70px 30px 30px;
        gap: 20px;
        transition: left 0.3s ease;
        margin: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
        align-items: flex-start; /* Align items to the left in mobile menu */
    }
    
    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 12px 15px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
    
    .nav-links a i {
        margin-right: 10px;
        font-size: 1.2rem;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Overlay when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Make the GitHub button look consistent with other links in mobile menu */
    .nav-links .github-corner-button {
        background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--border-radius-sm);
        padding: 12px 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-links .github-corner-button:hover {
        background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(245, 158, 11, 0.08));
        border: 1px solid rgba(250, 204, 21, 0.15);
    }
    
    /* UI Showcase mobile styles */
    .ui-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }
    
    .showcase-item {
        max-width: 100%;
    }
    
    .showcase-image {
        max-width: 100%;
    }
    
    .showcase-caption {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    /* Make chat bubbles wider on mobile */
    .chat-bubble {
        max-width: 95%;
        padding: 12px 15px;
    }
}

/* ---------- UI SHOWCASE SECTION ---------- */
.ui-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer; /* Add cursor pointer to indicate clickable */
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.showcase-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border-color);
    transition: opacity var(--transition-speed);
}

.showcase-item:hover .showcase-image {
    opacity: 0.9;
}

.showcase-caption {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-medium);
}

/* Image Lightbox Styles */
.image-lightbox {
    background-color: rgba(0, 0, 0, 0.85); /* Darker background for image modal */
}

.modal-image-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 5% auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#enlarged-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.image-caption {
    color: var(--text-light);
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

.image-lightbox .close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-light);
    font-size: 2rem;
    background-color: transparent;
}

/* Responsive design for the showcase */
@media (max-width: 768px) {
    .ui-showcase {
        grid-template-columns: 1fr;
    }
}

/* ---------- CONTAINER STYLES ---------- */
.container {
    width: 100%;
    max-width: 1280px; /* Slightly reduced width */
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

/* ... rest of styles ... */

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 101;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-yellow);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .top-nav {
        width: 100%; /* Full width on mobile */
        padding: 12px 16px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 70px 30px 30px;
        gap: 20px;
        transition: left 0.3s ease;
        margin: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
        align-items: flex-start; /* Align items to the left in mobile menu */
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Overlay when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Adjust link styling in mobile menu */
    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 12px 15px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
    
    .nav-links a i {
        margin-right: 10px;
        font-size: 1.2rem;
    }
    
    /* Make the GitHub button look consistent with other links in mobile menu */
    .nav-links .github-corner-button {
        background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--border-radius-sm);
        padding: 12px 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-links .github-corner-button:hover {
        background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(245, 158, 11, 0.08));
        border: 1px solid rgba(250, 204, 21, 0.15);
    }
    
    /* UI Showcase mobile styles */
    .ui-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }
    
    .showcase-item {
        max-width: 100%;
    }
    
    .showcase-image {
        max-width: 100%;
    }
    
    .showcase-caption {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    /* Make chat bubbles wider on mobile */
    .chat-bubble {
        max-width: 95%;
        padding: 12px 15px;
    }
}
