:root {
    --surface-dark: rgba(17, 17, 17, 0.7);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --neon-yellow: #ffca28;
    --neon-glow: 0 0 10px rgba(255, 202, 40, 0.5), 0 0 20px rgba(255, 202, 40, 0.3);
    --shadow-color: rgba(255, 255, 255, 0.8); 
}

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

body {
    background-color: #050505;
    
    /* Bluish gradient starting from the bottom (0%) and fading to transparent near the top (70%) */
    background-image: 
        linear-gradient(to top, rgba(30, 45, 90, 0.95) 0%, transparent 70%),
        url('https://pbs.twimg.com/media/GE2lHG7awAAl3mJ?format=jpg&name=large'); 
    
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Dark overlay that fades in on scroll */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.95));
    opacity: 0; 
    transition: opacity 0.5s ease;
    z-index: -1; 
    pointer-events: none; 
}

body.scrolled::before {
    opacity: 1;
}

@keyframes radiate {
    0% { box-shadow: 0 0 0 0 rgba(255, 202, 40, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 202, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 202, 40, 0); }
}

@keyframes border-pulse {
    0% { border-color: rgba(255, 202, 40, 0.4); }
    50% { border-color: rgba(255, 202, 40, 1); box-shadow: var(--neon-glow); }
    100% { border-color: rgba(255, 202, 40, 0.4); }
}

/* Navigation - Main Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent; 
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s ease;
}

/* Scrolled Navigation - Full width dark glass */
body.scrolled nav {
    background: rgba(5, 5, 5, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* --- LOGO IMAGE STYLES --- */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 40px; /* Fixed height */
    width: auto; /* Width scales to maintain aspect ratio */
    border-radius: 12px; /* Rounded edges */
    object-fit: cover;
    box-shadow: 2px 2px 5px var(--shadow-color); /* Light shadow in normal view */
    transition: all 0.3s ease;
}

body.scrolled .main-logo {
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Darker shadow when scrolled */
}

.scroll-logo {
    height: 40px;
    width: 0; /* Hidden initially */
    opacity: 0;
    margin-left: 0;
    border-radius: 12px; /* Rounded edges */
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bouncy pop-in */
}

/* Logo styles - Scrolled */
body.scrolled .scroll-logo {
    width: 40px; /* Pop out to this width */
    opacity: 1;
    margin-left: 10px; /* Gap between the two logos */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Nav Links Container */
.nav-links {
    display: flex;
    gap: 2rem;
    transition: all 0.4s ease;
}

/* Nav links text styles - Default (Top) */
.nav-links a {
    color: #545454; 
    text-shadow: 2px 2px 5px var(--shadow-color); 
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #333; 
}

/* Base Underline - Normal View */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #000; 
    transition: width 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: none; 
}

.nav-links a:hover::after {
    width: 100%;
}

/* Nav links text styles - Scrolled */
body.scrolled .nav-links a {
    color: var(--text-dim);
    text-shadow: none; 
}

body.scrolled .nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px white; 
}

/* Scrolled Underline - Glowing Yellow */
body.scrolled .nav-links a::after {
    background-color: var(--neon-yellow);
    box-shadow: 0 0 5px var(--neon-yellow);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 1rem 6rem;
    position: relative;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); 
}

.hero p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-size: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    transition: color 0.3s ease;
}

/* Primary Button */
.primary-btn {
    display: inline-block;
    background-color: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(5px);
    color: var(--neon-yellow);
    padding: 1rem 2.5rem;
    border: 2px solid var(--neon-yellow);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    animation: border-pulse 3s infinite, radiate 2s infinite;
}

.primary-btn:hover {
    background-color: var(--neon-yellow);
    color: black;
    box-shadow: 0 0 20px var(--neon-yellow), 0 0 40px rgba(255, 202, 40, 0.4);
    animation: none;
}

/* Button Grid Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40%;
    height: 2px;
    background: var(--neon-yellow);
    margin-top: 0.5rem;
    box-shadow: 0 0 5px var(--neon-yellow);
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This centers the cards */
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Glowing Action Cards */
.action-card {
    flex: 1 1 260px; /* Allows cards to grow/shrink with a base width of 260px */
    max-width: 350px; /* Caps the width so they don't look gigantic if there's only 1 card */
    width: 100%; /* Ensures they scale down nicely on mobile */
    
    background-color: rgba(17, 17, 17, 0.4); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Card Icon Styling */
.card-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--neon-yellow);
    background-color: rgba(30, 30, 30, 0.8);
    box-shadow: 
        -5px 0 15px -5px var(--neon-yellow),
        0 10px 20px rgba(0,0,0,0.5);
}

/* Icon hover states */
.action-card:hover .card-icon {
    color: var(--neon-yellow);
    transform: scale(1.1);
    text-shadow: var(--neon-glow);
}

.action-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.action-card:hover h3 {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(255, 202, 40, 0.5);
}

.action-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Footer & Social Icons */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Brand Colors & Glows */
.icon-fb { color: #1877F2; transition: filter 0.3s ease; }
.social-icons a:hover .icon-fb { filter: drop-shadow(0 0 10px rgba(24, 119, 242, 0.8)); }

.icon-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: filter 0.3s ease;
}
.social-icons a:hover .icon-ig { filter: drop-shadow(0 0 10px #e38dc8cc); }

.icon-x { color: #67bdf6; transition: filter 0.3s ease; }
.social-icons a:hover .icon-x { filter: drop-shadow(0 0 10px #defcfdcc); }

.icon-wa { color: #25D366; transition: filter 0.3s ease; }
.social-icons a:hover .icon-wa { filter: drop-shadow(0 0 10px #25d366cc); }

.icon-yt { color: #ec1d1d; transition: filter 0.3s ease; }
.social-icons a:hover .icon-yt { filter: drop-shadow(0 0 10px #d32525cc); }

.footer-text {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}