:root {
    --primary-dark: #0d1117;
    --accent-blue: #5865F2;
    --text-primary: #ffffff;
    --github-dark: #161b22;
    --discord-blurple: #5865F2;
    --vh: 1vh; /* Added for mobile height calculation */
    --nav-height: 70px;
    --gold: #b8860b;
    --gold-light: rgba(184, 134, 11, 0.8);
    --gold-transparent: rgba(184, 134, 11, 0.2);
    --purple-gradient: linear-gradient(135deg, #260241, #401161 60%, #521b85);
    --purple-dark: #260241;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cascadia Code', monospace;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Basic responsive styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== New Navigation Styles ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--purple-gradient);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: var(--nav-height);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--gold-transparent);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1100;
}

.logo {
    height: 45px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
    background: linear-gradient(to right, #d4af37, #b8860b, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Links Container */
.nav-links-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-item {
    color: var(--gold);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-item:hover::after {
    width: 80%;
    opacity: 1;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(184, 134, 11, 0.15);
}

.nav-icon {
    font-size: 1rem;
    opacity: 0.9;
}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1100;
    display: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: auto; /* Position to the right */
}

.hamburger:hover {
    background: rgba(184, 134, 11, 0.2);
}

.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .hamburger {
        display: block;
        order: 2; /* Changed from -1 to 2 to move to the right */
    }
    
    .brand {
        order: 1; /* Ensure brand is on the left */
    }
    
    .nav-container {
        justify-content: flex-start; /* Align items to the left */
    }
    
    .nav-links-container {
        position: fixed;
        top: 0;
        right: -280px; /* Changed from left to right */
        width: 280px;
        bottom: 0;
        background: var(--purple-gradient);
        z-index: 1000;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.25); /* Changed shadow direction */
        transition: all 0.3s ease;
        border-left: 1px solid var(--gold-transparent); /* Changed from right to left border */
        padding-top: var(--nav-height);
        overflow-y: auto;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .nav-links-container.active {
        right: 0; /* Changed from left to right */
    }
    
    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
}

/* Class to make nav links active */
.nav-item.active {
    font-weight: bold;
    background: rgba(184, 134, 11, 0.2);
}

/* ================= End Navigation Styles ================= */

/* Landing Section */
.Landing {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.Landing canvas.webgl {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.Landing-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.Landing-title {
    font-size: 4rem;
    margin-bottom: 4.5rem;
    line-height: 1.1;
    color: #b8860b;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
}

.Landing-subtitle {
    font-size: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    color: #b8860b;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
    line-height: 1.2;
}

/* Solutions Section */
.content-section {
    padding: 8rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #b8860b;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.solution-card {
    background: var(--github-dark);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid rgba(184, 134, 11, 0.1);
    transform-style: preserve-3d;
}

.solution-card::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(184, 134, 11, 0) 30%,
        rgba(184, 134, 11, 0.25) 70%,
        rgba(184, 134, 11, 0) 100%
    );
    z-index: 1;
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(184, 134, 11, 0) 30%,
        rgba(184, 134, 11, 0.1) 70%,
        rgba(184, 134, 11, 0.05) 100%
    );
    mix-blend-mode: soft-light;
    pointer-events: none;
    border-radius: 15px;
}

.solution-card.active-card {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(184, 134, 11, 0.3),
                0 0 40px rgba(184, 134, 11, 0.15) inset;
}

.solution-card.active-card::before {
    opacity: 1;
}

.card-media {
    height: 250px;
    background: #000;
    position: relative;
}

.card-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: none;
    pointer-events: none;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: #b8860b;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
}

.solution-card p {
    color: #b8860b;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
}

.card-cta {
    display: inline-block;
    margin-top: 1rem;
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 2px 2px 4px black;
}

/* Scroller Page Specific Styles */
.scroll-container {
    height: auto;
    overflow-y: auto;
}

.scroll-panel {
    height: 100vh;
    width: 100%;
    position: relative;
    /* opacity: 0.3; */
    /* transform: scale(0.9); */
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 2rem;
}

.scroll-panel.active {
    opacity: 1;
    transform: scale(1);
    /* filter: none; */
    filter: drop-shadow(0 0 30px rgba(184, 134, 11, 0.3));
}

.panel-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.scroll-panel .card-media {
    height: 60vh;
}

.scroll-panel .card-content {
    padding: 2rem;
    background: var(--github-dark);
}

/* City Skyline Section */
.cityscape-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 8rem 2rem;
    background-color: #000;
    overflow: hidden;
}

.cityscape-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    z-index: 5;
}

.cityscape-canvas-container {
    position: relative;
    height: calc(100% - 100px);
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

#cityscapeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cityscape-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-align: center;
}

.cityscape-text {
    font-size: 2.5rem;
    color: #b8860b;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.8), 0 0 20px rgba(88, 101, 242, 0.5);
    margin-bottom: 2rem;
    max-width: 700px;
}

.cityscape-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #260241, #401161 60%, #521b85);
    color: #b8860b;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid rgba(184, 134, 11, 0.5);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.cityscape-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.8);
    border-color: rgba(184, 134, 11, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .Landing-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }
    
    .solution-card p {
        font-size: 0.9rem;
    }
    
    .Landing-subtitle {
        font-size: 1.5rem;
    }

    /* Scroller Mobile Adjustments */
    .panel-content {
        top: 45%;
        padding: 0;
    }
    
    .scroll-panel .card-media {
        height: 50vh;
    }
    
    .scroll-panel {
        padding: 1rem;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .cityscape-text {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .cityscape-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .cityscape-section {
        padding: 6rem 1rem;
    }
}

/* Blog Specific Styles */
.blog-meta {
    display: flex;
    gap: 1rem;
    color: #b8860b;
    font-size: 0.9rem;
}

.blog-video {
    object-position: top;
}

/* Additional styles to support the AI interface while maintaining compatibility with existing pages */
main {
    flex: 1;
}

/* Ensure footer stays at bottom even with flexible content */
footer {
    margin-top: auto;
}
