:root {
    --bg-color: #000000;
    --text-color: #f0f0f0;
    --accent-color: #FFD700;
    /* Gold */
    --accent-secondary: #FFFF00;
    /* Bright Yellow */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 215, 0, 0.2);
    /* Yellowish border hint */
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

.logo-mobile {
    display: none;
    /* Hidden by default on desktop */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-secondary);
}

/* Hero Section (Visual) */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    /* Fix: 100vw -> 100% to prevent scroll */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through to canvas */
    padding: 0 1rem;
    /* Add padding for mobile */
}

.hero-logo-img {
    max-width: 80%;
    /* responsive width */
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-overlay p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
    /* Removed bottom margin since button is gone */
    color: rgba(255, 255, 255, 0.8);
}

/* Removed Game Instructions and Button Styles */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.6;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections General */
.content-section {
    padding: 6rem 3rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-bg {
    background-color: #050505;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-secondary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.highlight-text {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.orb-visual {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-secondary), transparent 60%),
        radial-gradient(circle at 70% 70%, var(--accent-color), transparent 60%);
    filter: blur(40px);
    opacity: 0.6;
    animation: orb-pulse 10s infinite alternate;
}

@keyframes orb-pulse {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.7;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Better min-width */
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 1rem;
    transition: transform 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Portfolio Section */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 600px;
    /* Changed from height to min-height */
}

.portfolio-item {
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    min-height: 300px;
    /* Ensure visibility */
}

/* Portfolio Grid Logic */
.p1 {
    background: linear-gradient(135deg, #1a1a1a, #333);
    grid-column: 1 / 3;
}

.p2 {
    background: linear-gradient(45deg, #2a2a2a, #444);
}

.p3 {
    background: linear-gradient(225deg, #151515, #353535);
    grid-column: 2 / 4;
    margin-top: -100px;
}

.p-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .p-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-secondary);
}

.contact-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--accent-secondary);
    color: #fff;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hamburger Animation State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- RESPONSIVE QUERIES --- */

/* Tablet (New) */
@media (max-width: 1024px) {
    .content-section {
        padding: 5rem 2rem;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
        min-height: auto;
    }

    /* Reset specialized grid positioning for tablet/mobile */
    .p1,
    .p3 {
        grid-column: auto;
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fixed-header {
        padding: 1.5rem;
    }

    .logo .logo-desktop {
        display: none;
    }

    .logo .logo-mobile {
        display: block;
        height: 40px;
        /* Slightly larger icon */
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    nav a {
        font-size: 2rem;
        font-weight: 600;
        color: #fff;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: 300px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }

    .hero-logo-img {
        max-width: 95%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .orb-visual {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}