/* ===================================
   GFG IEC - Modern Design System
   =================================== */

:root {
    /* Colors */
    --primary: #2f8d46;
    --primary-gradient: linear-gradient(135deg, #2f8d46 0%, #3da856 100%);
    --secondary: #111827;
    --accent: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-dark: #050810;
    --bg-surface: #0a0f1a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.07);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 0 20px rgba(47, 141, 70, 0.3);

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    width: fit-content;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(47, 141, 70, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo img {
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 150px;
    height: 4px;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    width: 0;
    height: 100%;
    background: var(--primary);
    animation: loading 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes loading {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
        margin-left: 100%;
    }
}

/* Navigation */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.premium-nav.scrolled {
    padding: 12px 0;
    background: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    color: var(--text-primary);
    line-height: 1;
}

.logo-sub {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 160px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(47, 141, 70, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
    margin-top: 10px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.card-title {
    font-size: 18px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.highlight-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-tag {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-item h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.highlight-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-item .btn-primary {
    margin-top: 8px;
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-surface);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.view-all:hover {
    color: var(--primary);
}

/* Grids */
.grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}

.grid-events {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.grid-deals {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}


.partners-grid,
.sponsors-grid {
    display: flex;
    gap: 24px;
    overflow: hidden;
    padding: 20px 0;
    align-items: stretch;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-grid:hover,
.sponsors-grid:hover {
    cursor: grab;
}

.partners-grid:active,
.sponsors-grid:active {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.partners-grid:hover .marquee-track,
.sponsors-grid:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* We will use calc in JS to set the exactly -50% width if needed, 
           or just assume 50% for duplicated content */
        transform: translateX(calc(-50% - 12px));
    }
}

.partners-grid .card,
.sponsors-grid .card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    height: 340px;
    display: flex;
    flex-direction: column;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.event-card .event-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 4px 12px;
    border-radius: 100px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.event-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.event-description {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

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

/* CTA Card */
.cta-card {
    background: var(--primary-gradient);
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    color: white;
    margin-bottom: 20px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    /* Increased from 24px */
    max-width: 300px;
}

.socials {
    display: flex;
    gap: 20px;
    /* Added gap */
}

.socials a {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    margin-bottom: 32px;
    /* Increased from 24px */
    font-size: 18px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 16px;
    /* Increased from 12px */
}

/* Image Modal */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.zoomable {
    cursor: zoom-in;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats,
    .hero-actions {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.75);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-content {
    padding: 30px;
    height: 100%;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.drawer-header img {
    height: 40px;
}

#drawer-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.drawer-link {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.drawer-link.active {
    color: var(--primary);
}