/* =========================================
   1. VARIABLES & FONTS
   ========================================= */
:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-sans: 'Open Sans', sans-serif;
    --color-bg: #050505;
    --color-text: #ffffff;
    --glass-bg: rgba(23, 23, 23, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Brand Gradients */
    --grad-gold: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    --grad-blue: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-purple: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

/* =========================================
   2. GLOBAL RESETS & THEME
   ========================================= */
* { box-sizing: border-box; }

body.registration-page {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    margin: 0; padding: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }

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

.gradient-text {
    background: linear-gradient(to right, #8b5cf6, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   3. NAVBAR STYLES (UPDATED FOR WHITE TEXT)
   ========================================= */
.registration-page .navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 1rem 0;
    transition: all 0.3s ease;
}

/* State 1: Top of page (Transparent) */
.registration-page .navbar.navbar-transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* State 2: Scrolled Down (Dark Background, WHITE TEXT) */
.registration-page .navbar:not(.navbar-transparent) {
    background-color: rgba(10, 10, 10, 0.95); /* Dark background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

/* HIDE Navbar Logic (for scroll down) */
.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-content { display: flex; justify-content: space-between; align-items: center; }

/* LOGO Logic: Force White Logo Always */
.registration-page .logo-link { text-decoration: none; display: block; }
.registration-page .logo-white { display: block !important; }
.registration-page .logo-black { display: none !important; }

/* LINKS: Force White Text Always */
.registration-page .nav-links { display: flex; gap: 2rem; align-items: center; }
.registration-page .nav-item { 
    color: #e2e8f0; /* Default White/Light Grey */
    text-decoration: none; font-weight: 600; font-size: 0.95rem; 
    transition: color 0.3s;
}
/* Ensure text stays white even when navbar has background */
.registration-page .navbar:not(.navbar-transparent) .nav-item {
    color: #ffffff; 
}
.registration-page .nav-item:hover { color: #FFC107; }

/* REGISTER BUTTON */
.registration-page .nav-btn {
    padding: 0.6rem 1.5rem;
    background: white; color: black;
    border-radius: 50px; text-decoration: none;
    font-weight: 700; transition: transform 0.2s;
}
.registration-page .nav-btn:hover { transform: scale(1.05); }

/* MOBILE TOGGLE */
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   4. MOBILE MENU (SIDEBAR)
   ========================================= */
.mobile-nav-container {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: 80%; max-width: 300px;
    background: #111; z-index: 2000;
    display: flex; flex-direction: column; padding: 2rem;
    transform: translateX(100%); transition: transform 0.3s ease;
}
/* 'open' class used in your JS */
.mobile-nav-container.open { transform: translateX(0); }

.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 1500;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav-header { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.close-menu-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.mobile-link { color: white; font-size: 1.2rem; margin-bottom: 1.5rem; text-decoration: none; font-weight: 600; border-bottom: 1px solid #333; padding-bottom: 0.5rem;}

/* =========================================
   5. BACKGROUND & HERO
   ========================================= */
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px);
    z-index: -1; opacity: 0.4; animation: float 6s ease-in-out infinite; pointer-events: none;
}
.bg-purple { width: 400px; height: 400px; background: #8b5cf6; top: 0; left: 0; }
.bg-pink { width: 400px; height: 400px; background: #ec4899; bottom: 0; right: 0; animation-delay: 2s; }
.bg-cyan { width: 300px; height: 300px; background: #06b6d4; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translate(-50%, -50%); }
    50% { transform: translateY(-20px) translate(-50%, -50%); }
}

.reg-main { padding-top: 6rem; padding-bottom: 4rem; }
.reg-hero { text-align: center; padding: 4rem 0 3rem 0; }
.page-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.page-subtitle { font-size: 1.1rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* =========================================
   6. PRICING (ID CARDS)
   ========================================= */
.pricing-section { padding: 2rem 0 5rem 0; perspective: 1000px; }
.pricing-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }

.badge-card {
    position: relative; width: 300px; height: 460px;
    border-radius: 20px; display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); overflow: hidden;
}
.badge-card:hover { transform: translateY(-10px) rotateX(5deg); box-shadow: 0 25px 50px rgba(0,0,0,0.7); }

.lanyard-clip {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 30px; background: #222; border-radius: 15px; z-index: 10;
    border: 2px solid rgba(255,255,255,0.3);
}
.badge-hole {
    width: 60px; height: 8px; background: rgba(0,0,0,0.6);
    border-radius: 10px; margin-top: 15px; margin-bottom: 25px;
}
.badge-header { margin-bottom: 1.5rem; width: 100%; }

/* --- ICON & LOGO STYLING --- */
.badge-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 1rem auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 2px solid rgba(255,255,255,0.3);
}

/* Image logic inside the badge */
.badge-icon img {
    width: 80%;       /* Controls size of logo inside the circle */
    height: 80%;      /* Controls size of logo inside the circle */
    object-fit: contain; /* Ensures logo doesn't get cut off */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); 
}

.badge-card h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; margin: 0; line-height: 1.2; }
.badge-body { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-bottom: 10px; }
.price-tag {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.25); padding: 12px 15px;
    border-radius: 8px; font-weight: 700; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.1);
}
.badge-btn {
    display: block; width: 100%; padding: 14px; margin-top: 5px;
    text-align: center; text-decoration: none; border-radius: 50px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s;
}
.badge-btn:hover { transform: scale(1.05); }

/* --- CARD THEMES --- */

/* IAS Card (Gold) - Background white for logo visibility */
.ias-card { background: var(--grad-gold); color: #1a1a1a; }
.ias-card .badge-icon { background: rgba(255, 255, 255, 0.9); } /* White background for logo */
.ias-card .badge-btn { background: #111; color: #FFC107; }
.ias-card .price-tag { color: #000; border-color: rgba(0,0,0,0.1); }

/* IEEE Card (Blue) - Background white for logo visibility */
.ieee-card { background: var(--grad-blue); color: #fff; transform: scale(1.05); z-index: 2; }
.ieee-card:hover { transform: scale(1.05) translateY(-10px) rotateX(5deg); }
.ieee-card .badge-icon { background: rgba(255, 255, 255, 0.9); } /* White background for logo */
.ieee-card .badge-btn { background: #fff; color: #0ea5e9; }

/* Non-Member (Standard) - Keep transparent icon background */
.standard-card { background: var(--grad-purple); color: #fff; }
.standard-card .badge-icon { background: rgba(255,255,255,0.2); color: #fff; }
.standard-card .badge-btn { background: #fff; color: #8b5cf6; }

/* =========================================
   7. SIDE EVENTS
   ========================================= */
.side-events-section { padding: 4rem 0 6rem 0; }
.section-heading { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 0.5rem; text-align: center; }
.section-desc { text-align: center; color: #94a3b8; margin-bottom: 3rem; }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.event-card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 1.25rem;
    padding: 0; text-align: left; display: flex; flex-direction: column;
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover { transform: translateY(-5px); border-color: #06b6d4; box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15); }
.card-img-holder { width: 100%; height: 150px; background: #222; position: relative; }
.card-img-holder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: white; margin: 1.2rem 1.2rem 0.5rem 1.2rem; }
.event-card p { font-size: 0.9rem; color: #cbd5e1; line-height: 1.5; margin: 0 1.2rem 1.5rem 1.2rem; flex-grow: 1; }
.register-link {
    font-size: 0.85rem; font-weight: 700; color: #ffffff; text-decoration: none;
    padding: 0.5rem 1.2rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px;
    margin: 0 1.2rem 1.5rem 1.2rem; align-self: flex-start; transition: all 0.3s;
}
.register-link:hover { background: white; color: black; border-color: white; }

/* --- MORE EVENTS CALLOUT --- */
.more-events-callout {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px border var(--glass-border);
}

.more-events-callout p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.more-events-callout h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

@media (max-width: 768px) {
    .more-events-callout h3 {
        font-size: 1.5rem;
    }
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer { background: #000; border-top: 1px solid #222; padding: 4rem 0 2rem 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: white; letter-spacing: 1px; }
.footer-brand p { color: #9ca3af; line-height: 1.6; margin-bottom: 0.5rem; max-width: 400px; }
.footer-social h3 { color: white; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1.5rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { 
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: all 0.3s; 
}
.social-icons a:hover { background: #06b6d4; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #666; font-size: 0.9rem; }

/* =========================================
   9. RESPONSIVE
   ========================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }

@media (max-width: 1024px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { flex-direction: column; gap: 2.5rem; }
    .ieee-card { transform: scale(1); }
}

@media (max-width: 768px) {
    .registration-page .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .page-title { font-size: 2.2rem; }
    .pricing-section { padding-top: 1rem; }

    /* --- EVENT CARDS GRID (2 Columns Side-by-Side) --- */
    .events-grid { 
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 0.75rem; /* Reduce gap */
        padding: 0 0.5rem; 
    }

    /* Adjust Card Styles for Compact Grid */
    .event-card h3 { 
        font-size: 1rem; 
        margin: 0.8rem 0.8rem 0.3rem 0.8rem;
    }
    
    .event-card p { 
        font-size: 0.75rem; 
        margin: 0 0.8rem 1rem 0.8rem; 
        line-height: 1.3;
    }
    
    .card-img-holder { 
        height: 100px; /* Shorter image */
    }
    
    .register-link { 
        font-size: 0.75rem; 
        padding: 0.4rem 0.8rem; 
        margin: 0 0.8rem 1rem 0.8rem;
    }

    /* --- FOOTER FIX: LEFT ALIGNED --- */
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: left; /* CHANGED: Forces Left Alignment */
        gap: 2rem;
    }
    
    .footer-brand p { 
        margin: 0 0 1rem 0; /* CHANGED: Removes auto margin centering */
    }
    
    .social-icons { 
        justify-content: flex-start; /* CHANGED: Aligns icons to start (left) */
    }
}