:root {
    --dark-bg: #0a0a12;
    --darker-bg: #050508;
    --accent-light: #ffebbe;
    --accent: #fcce63;
    --accent-dark: #be983d;
    --accent-transparent: #be983d1a;
    --text: #ffffff;
    --text-muted: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header & Navigation */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 8, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .header-icon {
    width: 160px;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 32px;
    position: relative;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    display: inline-block;
    padding: 8px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

/* Underline effect */
nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::after {
    width: 100%;
}



/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.hamburger-box {
    width: 100%;
    height: 100%;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Active state for mobile menu */
.mobile-menu-btn.active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
}

.mobile-menu-btn.active .hamburger-inner::after {
    bottom: 0;
    opacity: 0;
}

.radial-animation {
    position: relative;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        var(--accent-transparent),
        transparent 60%
    );
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    align-items: center;
    margin-left: 100px;
}

.hero-image {
    position: relative;
    margin-right: 100px;
}

.offset-gif {
    width: 100%;
    height: auto;
}

.hero h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 5.3vw;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero h1 {
    overflow: hidden; /* ensures no overflow from animation */
}

.line {
    display: block;
    overflow: hidden; /* hide the text moving up */
}

.line-inner {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: textRise 0.8s ease-out forwards;
}

.line:nth-child(1) .line-inner {
    animation-delay: 0.1s;
}

.line:nth-child(2) .line-inner {
    animation-delay: 0.3s;
}

.line:nth-child(3) .line-inner {
    animation-delay: 0.5s;
}

@keyframes textRise {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.smaller-line
{
    margin-top: 1vh;
    font-size: 3.5vw;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-transparent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--accent);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: var(--darker-bg);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 60px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    margin: 15px auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(145deg, #131321, #0c0c18);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(120deg, var(--accent), var(--accent-dark));
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.roblox-logo
{
    width: 40px;
    height: 40px;
}

.heroquests-img
{
    background-image: url('../public/img/heroquests_render.png');
    background-size: cover;
}

.kaiju-img
{
    background-image: url('../public/img/kaiju_render.png');
    background-size: cover;
}

.starfall-img
{
    background-image: url('../public/img/starfall_render.png');
    background-size: cover;
}

.heroquests-img,
.kaiju-img,
.starfall-img {
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-out;
    transform: scale(1.1);
}

.heroquests-img:hover,
.kaiju-img:hover,
.starfall-img:hover {
    transform: scale(1);
}


.project-content {
    padding: 20px;
}

.project-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--accent);
}

.project-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 600;
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background-image: url('../public/svg/blurry_bg.svg');
    background-size: cover;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-logo {
    color: var(--text-muted);
    font-size: 32px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
}

.client-logo:hover {
    color: var(--accent);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #131321, #0c0c18);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 15px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 18px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--darker-bg);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* enough to show text */
    padding: 10px 0 20px;
}

footer {
    background-color: var(--darker-bg);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        margin-left: 50px;
    }

    .offset-gif {
        display: none;
    }

    .hero h1 {
        font-size: 8vw;
    }

    .smaller-line {
        font-size: 5vw;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 100px 30px 40px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 1000;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0 0 25px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.15s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.25s; }
    
    nav ul li a {
        font-size: 18px;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 10vw;
    }
    
    .btn {
        display: block;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .logo .header-icon {
        width: 15vh;
    }

    .hero-content {
        margin-left: 0px;
    }

    .hero h1 {
        font-size: 12vw;
        min-width: 440px;
    }

    .smaller-line {
        font-size: 7vw;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .project-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 464px)
{
    .line-inner
    {
        max-width: 320px;
    }
}