/* =====================================
   KBR DESIGN SYSTEM & VARIABLES
===================================== */
:root {
    --bg-color: #030305;
    --surface-color: rgba(20, 20, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;

    --primary-color: #ff003c;
    --primary-glow: rgba(255, 0, 60, 0.4);
    --secondary-color: #00f0ff;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);

    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =====================================
   RESET & TYPOGRAPHY
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================
   UTILITIES
===================================== */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =====================================
   INTRO ANIMATION LAYER
===================================== */
.intro-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1.2s ease;
}

.intro-layer.fade-out-bg {
    background-color: transparent;
    pointer-events: none;
}

#transitional-logo {
    width: clamp(250px, 35vw, 400px);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    z-index: 10000;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* =====================================
   MAIN CONTENT
===================================== */
#main-content {
    /* Don't use display: none initially; otherwise getBoundingClientRect varies based on render order.
       We hide it with opacity so standard layout math holds. */
    opacity: 1;
    transition: opacity 1.2s ease;
}

#main-content.hidden {
    opacity: 0;
}

/* =====================================
   NAVBAR
===================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo-slot {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-img {
    width: 100%;
    height: auto;
    animation: fadeIn 0.5s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =====================================
   HERO SECTION
===================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    left: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -100px;
    opacity: 0.2;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* =====================================
   BUTTONS
===================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
    background: #8b3de3;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-outline .arrow {
    transition: transform 0.3s ease;
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover .arrow {
    transform: translateX(5px);
}

.btn-discord {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #5865F2;
    /* Discord Color */
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

/* =====================================
   PROJECTS SECTION
===================================== */
.projects-section {
    padding: 8rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.project-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

/* Real Project Images & Icons */
.wzero-bg {
    background-image: url('../Assets/img/foto-world-zero.jpeg');
    background-size: cover;
    background-position: center;
}

.bzero-bg {
    background: #0f0f15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-basketball {
    width: 90px;
    height: 90px;
    fill: var(--primary-color);
    filter: drop-shadow(0 0 15px var(--primary-glow));
    transition: transform 0.4s ease;
}

.project-card:hover .icon-basketball {
    transform: scale(1.1) rotate(15deg);
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.badge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* =====================================
   FOOTER
===================================== */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.8);
    position: relative;
    z-index: 5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5%;
    text-align: center;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* =====================================
   ANIMATIONS
===================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Can implement hamburger menu later */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-info {
        padding: 1.5rem;
    }
}