/* --- Variables & Reset --- */
:root {
    --bg-color: #ffffff;
    --dark-bg: #0a0a0a;
    --accent: #00ffc3;
    --text-main: #1a1a1a;
    --text-dim: #666666;
    --white: #ffffff;
    --gray-card: #141414;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
}

/* Offset for fixed navbar when scrolling to sections */
section[id] {
    scroll-margin-top: 80px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 800px;
}

/* --- Layout Components --- */
.section {
    padding: 60px 0;
}

.dark-bg {
    background-color: var(--dark-bg);
    color: var(--white);
}

.light-bg {
    background-color: var(--white);
    color: var(--text-main);
}

.light-bg .section-title {
    color: var(--text-main);
}

.light-bg .lead-text {
    color: var(--text-main);
}

.light-bg p {
    color: var(--text-dim);
}

.light-bg .text-link {
    color: var(--text-main);
}

.border-top {
    border-top: 1px solid #222;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid #222;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: -1px;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* --- Hero Section (Clean Monochrome Styling) --- */
.hero {
    height: 100vh;
    background-color: var(--dark-bg);
    /* Subtle radial glow to replace the image */
    background-image: radial-gradient(circle at 80% 20%, #111 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 6rem);
    line-height: 0.95;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.accent-text {
    color: var(--accent);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: #888;
}

.hero-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-benefits {
    display: flex;
    gap: 25px;
    margin-bottom: 3.5rem;
    color: #666;
    font-weight: 500;
}

/* --- Buttons --- */
.btn-disabled {
    background: #222;
    color: #555;
    border: 1px solid #333;
    padding: 20px 45px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: not-allowed;
    border-radius: 2px;
}

/* --- Typography --- */
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.centered { text-align: center; }
.mini-margin { margin-top: 80px; }

.lead-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.text-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

/* --- Detail Cards --- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.detail-card {
    background: #fff;
    padding: 50px 40px;
    text-align: left;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.detail-card .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* --- Map Section --- */
.map-section {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.map-section .container {
    max-width: 1000px;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: #666;
    font-weight: 700;
}

/* --- Logo Grids --- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.logo-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.logo-grid.small.supported-by {
    max-width: 900px;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
}

@media (max-width: 768px) {
    .logo-grid.small.supported-by {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-grid.small.supported-by {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logo-grid.sponsors-logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Sponsors Section --- */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.sponsor-card img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

.sponsor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Pen Testing Challenge Section --- */
#pentesting {
    padding: 80px 0;
}

.pentest-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.pentest-logo img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

#pentesting .section-title {
    color: var(--white);
    margin-bottom: 3rem;
}

.pentest-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.pentest-intro .lead-text {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.pentest-intro p {
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.8;
}

.pentest-highlights {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.highlights-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: var(--white);
    text-transform: uppercase;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.highlight-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.highlight-content strong {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-content span {
    color: #ccc;
    font-size: 1rem;
}

.highlight-value {
    color: var(--white) !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    line-height: 1;
}

.date-range {
    color: #888 !important;
    font-size: 0.85rem !important;
    font-style: italic;
}

.pentest-schedule {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.schedule-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: var(--white);
    text-transform: uppercase;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-date {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.schedule-event {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.6;
}

.pentest-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark-bg);
    border: none;
    padding: 20px 60px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.3);
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsor-card {
        padding: 20px;
    }
    
    .sponsor-card img {
        max-width: 100%;
        max-height: 180px;
    }
}

.logo-placeholder {
    background: #fafafa;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    color: #ccc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Co-Organizer Cards --- */
.co-org-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.co-org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.co-org-card img {
    width: 100%;
    max-width: 120px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.co-org-card .placeholder-logo {
    width: 100%;
    max-width: 120px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg), #2a2a2a);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.co-org-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.co-org-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 5px;
    font-weight: 500;
}

/* --- FAQ --- */
.faq-list {
    margin-top: 50px;
}

.faq-item {
    padding: 30px 0;
    border-bottom: 1px solid #222;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--accent);
}

.faq-item p {
    color: #888;
}

/* --- Footer --- */
.footer {
    background: #000;
    color: #fff;
    padding: 50px 0 25px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.footer-brand p { 
    color: #666; 
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-bottom {
    padding-top: 20px;
    text-align: left;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-brand p {
        white-space: normal;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* --- Partner Carousel --- */
.partner-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding: 0 50px;
}

.partner-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}

.partner-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.partner-card {
    flex: 0 0 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.partner-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.placeholder-logo {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg), #2a2a2a);
    border-radius: 10px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.partner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-bg);
    color: var(--white);
    border: 1px solid #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .navbar nav {
        display: none;
    }
    
    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-stats, .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

    .schedule-item {
        padding: 20px;
    }

    .btn-primary {
        padding: 18px 40px;
        font-size: 0.9rem;
    }

    .partner-carousel-wrapper {
        padding: 0 40px;
        max-width: 100%;
    }

    .partner-card {
        flex: 0 0 160px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .sponsors-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .logo-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .partner-card {
        flex: 0 0 calc(100% - 20px);
    }

    .partner-carousel-wrapper {
        padding: 0 45px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .sponsors-logo-grid {
        grid-template-columns: 1fr;
    }
}