/* --- KipuCon 2026 Official Styles --- */

/* 1. VARIABLES & RESET */
:root {
    --primary-red: #FF3B30; /* Bright Cyber Red */
    --primary-hover: #d32f2f;
    --bg-dark: #0a0a0a;     /* Deepest Black */
    --bg-panel: #141414;    /* Slightly lighter for cards */
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --border-color: #333333;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* 2. UTILITY CLASSES */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red { color: var(--primary-red); }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 12px 30px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    border-radius: 2px;
}
.btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}
.btn-outline:hover {
    background: var(--primary-red);
    color: white;
}

/* 3. HEADER & NAVIGATION (STICKY FIXED) */
header {
    padding: 15px 0;
    position: fixed;      /* PINS HEADER TO TOP */
    width: 100%;
    top: 0;
    z-index: 1000;        /* Sits above everything */
    background: rgba(10, 10, 10, 0.95); /* Dark semi-transparent background */
    backdrop-filter: blur(10px);        /* Blur effect */
    border-bottom: 1px solid #222;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO FIX: Inverts colors to hide white box background */
.logo {
    height: 100px; 
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover { color: var(--primary-red); }
.nav-link.active { color: var(--primary-red); font-weight: 700; }

/* 4. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    /* Padding Top ensures content isn't hidden behind fixed header on desktop */
    padding: 120px 20px 0 20px; 
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.location-tag {
    display: inline-block;
    border: 1px solid var(--primary-red);
    padding: 5px 15px;
    font-size: 0.9rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 5. FORMS */
.email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.input-field {
    flex: 1;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    font-family: inherit;
    width: 100%;
}
.input-field:focus { outline: 1px solid var(--primary-red); }

/* 6. LAYOUT GRIDS & SECTIONS */
.section-padding { padding: 100px 0; }
.bg-panel { background-color: var(--bg-panel); }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-dark);
    padding: 40px;
    border-left: 3px solid var(--primary-red);
    transition: transform 0.3s;
    height: 100%;
}
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 20px; }

/* 7. FOOTER */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
    margin-top: auto;
}

/* 8. MOBILE RESPONSIVE (Critical Fixes) */
/* --- COMPACT MOBILE HEADER (Burger Left / Logo Right) --- */
@media (max-width: 768px) {
    
    /* 1. Make Header Compact */
    header {
        padding: 10px 0; /* Reduce vertical padding */
        background-color: var(--bg-dark); /* Ensure background is solid black */
        position: fixed; /* Stick to top */
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid #222; /* Subtle separator */
    }

    /* 2. Flip Layout: Burger Left, Logo Right */
    .nav-flex {
        display: flex;
        flex-direction: row; /* This performs the magic swap */
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    /* 3. Resize Logo for Mobile */
    .logo {
        height: 50px; /* Smaller, cleaner logo */
    }

    /* 4. Show Hamburger */
    .hamburger {
        display: block;
    }

    /* 5. Mobile Menu Positioning */
    nav {
        position: fixed;
        top: 60px; /* Starts exactly below the new compact header */
        left: -100%; /* Hidden to the left */
        width: 100%;
        height: 100vh; /* Full screen menu */
        background-color: rgba(10, 10, 10, 0.98); /* Slightly transparent black */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centers links vertically */
        align-items: center;
        transition: 0.3s;
    }

    /* Active State (Open) */
    nav.active {
        left: 0;
    }

    /* Mobile Links Styling */
    .nav-link {
        font-size: 1.5rem; /* Bigger, easy to tap text */
        margin: 20px 0;
    }

    /* 6. Adjust Content Pushes */
    .hero {
        padding-top: 100px; /* Push content down so it doesn't hide behind header */
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    /* Fix Grid */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .email-form { flex-direction: column; }
    .btn { width: 100%; }
}

/* --- HAMBURGER MENU STYLES --- */

/* 1. The Burger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101; /* Stays on top of the menu */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
}

/* 2. Mobile Behavior */
@media (max-width: 768px) {
    /* Show the burger on mobile */
    .hamburger {
        display: block;
    }

    /* Hide the Nav Links by default */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen to the right */
        height: 100vh;
        width: 70%; /* Covers 70% of screen */
        background-color: #0a0a0a; /* Black background */
        border-left: 1px solid #333;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        z-index: 100;
        padding-top: 60px;
    }

    /* When JavaScript adds the 'active' class, slide it in */
    nav.active {
        right: 0;
    }

    /* Style the links inside the mobile menu */
    .nav-link {
        font-size: 1.5rem;
        margin: 20px 0;
        display: block;
    }

    /* Optional: Animate Burger to 'X' */
    .hamburger.open .bar:nth-child(2) { opacity: 0; }
    .hamburger.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


