@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* --- Tech/Cyber CSS Variables --- */
:root {
    --bg-dark: #09090b;
    --bg-darker: #050505;
    --bg-card: rgba(15, 23, 42, 0.7);
    --primary: #00f0ff; /* Neon cyan */
    --primary-hover: #00c3cf;
    --secondary: #bc13fe; /* Neon purple */
    --accent: #22d3ee;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --tech-border: rgba(0, 240, 255, 0.2);
    --glass-bg: rgba(9, 9, 11, 0.85);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-darker);
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Typography & Headings --- */
h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

h2::before {
    content: "< ";
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
}

h2::after {
    content: " />";
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
}

h2 span {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.underline {
    height: 2px;
    width: 80px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    margin: 0.5rem auto 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Utility Classes --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--tech-border);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Corner Accents for Tech feel */
.glass-panel::before, .glass-panel::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.glass-panel::before {
    top: -1px; left: -1px;
    border-top-color: var(--primary);
    border-left-color: var(--primary);
}

.glass-panel::after {
    bottom: -1px; right: -1px;
    border-bottom-color: var(--primary);
    border-right-color: var(--primary);
}

.glass-panel:hover::before, .glass-panel:hover::after {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 10px var(--primary);
}

.btn-primary {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,240,255,0.1), 0 0 10px rgba(0,240,255,0.1);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.edit-btn:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.delete-btn:hover { color: var(--danger); text-shadow: 0 0 8px var(--danger); }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

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

.nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand::before {
    content: '>>';
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.nav-brand span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    background: rgba(5, 5, 5, 0.5);
    padding: 3rem;
    border: 1px solid var(--tech-border);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    box-shadow: inset 0 0 30px rgba(0,240,255,0.05);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 0px var(--secondary), -2px -2px 0px var(--primary);
}

.tagline {
    font-size: 1.3rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- Decorative Backgrounds --- */
.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.15;
    animation: drift 10s infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -30px); }
}

.top-right { top: 10%; right: 5%; background: var(--secondary); }
.bottom-left { bottom: 10%; left: 5%; background: var(--primary); }

/* --- Sections Common --- */
section {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- About Section --- */
.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    padding: 3rem;
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-muted);
    border-left: 4px solid var(--primary);
}

.terminal-header {
    background: #111;
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    margin: -3rem -3rem 2rem -3rem;
    border-bottom: 1px solid var(--tech-border);
    display: flex;
    gap: 0.5rem;
}

.terminal-header span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header span:nth-child(1) { background: #ef4444; }
.terminal-header span:nth-child(2) { background: #f59e0b; }
.terminal-header span:nth-child(3) { background: #10b981; }
.terminal-title { margin-left: 1rem; color: #fff; opacity: 0.8; }

.about-subhead {
    color: var(--text-light);
    margin: 3rem 0 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px dashed var(--tech-border);
    padding-bottom: 0.5rem;
}

.founder-highlight {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.founder-highlight:last-child {
    margin-bottom: 0;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

.founder-img-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 2px;
    padding: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(0,240,255,0.4);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.founder-img:hover {
    filter: grayscale(0%);
}

.founder-info h4 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-badge {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(188, 19, 254, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.2rem 0.6rem;
}

.bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* --- Events Section --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

.event-image {
    height: 200px;
    position: relative;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--tech-border);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.event-card:hover .event-image img {
    opacity: 1;
    transform: scale(1.05);
}

.placeholder-image {
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.event-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.8);
    border: 1px solid;
    letter-spacing: 1px;
}

.status-upcoming { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 10px rgba(0,240,255,0.4); }
.status-ongoing { border-color: var(--success); color: var(--success); box-shadow: 0 0 10px rgba(16,185,129,0.4); }
.status-completed { border-color: var(--text-muted); color: var(--text-muted); }
.status-coming-soon { border-color: var(--warning); color: var(--warning); box-shadow: 0 0 10px rgba(245,158,11,0.4); }

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.event-details h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

.event-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '>>';
    transition: transform 0.3s ease;
}

.event-card:hover .read-more::after {
    transform: translateX(5px);
}

/* --- Single Event Page Layout --- */
.single-event-page {
    padding-top: 120px;
    max-width: 1000px;
}

.event-detail-container {
    padding: 0;
    overflow: hidden;
    border-top: 3px solid var(--primary);
}

.event-detail-banner {
    width: 100%;
    height: 400px;
    background: #000;
    position: relative;
    border-bottom: 1px solid var(--tech-border);
}

.event-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.event-detail-content {
    padding: 3rem;
}

.event-detail-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0,240,255,0.2);
}

.event-detail-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-left: 2px solid var(--secondary);
    padding-left: 1rem;
}

.event-blog-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.event-blog-body h1, 
.event-blog-body h2, 
.event-blog-body h3 {
    color: var(--text-light);
    margin: 2.5rem 0 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.event-blog-body h3::before {
    content: '>';
    color: var(--primary);
    margin-right: 0.5rem;
}

/* --- Contact Section --- */
.contact-container {
    padding: 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--tech-border);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.contact-card:hover {
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,240,255,0.1);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

.contact-card h4 {
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-card span {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* --- Login Form --- */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; 
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-top: 4px solid var(--primary);
    position: relative;
    z-index: 10;
}

.login-header h2 {
    font-size: 2.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0,240,255,0.2);
    background: rgba(0,0,0,0.8);
}

/* AI Generation specific styling */
.ai-box {
    background: rgba(188, 19, 254, 0.05);
    border: 1px dashed var(--secondary);
    padding: 1.5rem;
}

.ai-generate-btn {
    border-color: var(--secondary);
    color: var(--secondary);
    margin-top: 1rem;
}

.ai-generate-btn:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 20px rgba(188,19,254,0.4);
}

.ai-loading {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    margin-left: 1rem;
}

/* --- Admin Dashboard --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    text-align: left;
}

.events-table th, .events-table td {
    padding: 1.2rem;
}

.events-table th {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--tech-border);
    background: rgba(0, 240, 255, 0.05);
}

.events-table td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.events-table tbody tr {
    transition: all 0.3s ease;
}

.events-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.admin-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--tech-border);
}

.admin-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-muted);
}

.modal {
    background: rgba(5,5,5,0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    border: 1px solid var(--tech-border);
    border-top: 4px solid var(--secondary);
    background: #09090b;
}

/* --- Footer --- */
footer {
    background: #050505;
    border-top: 1px solid var(--tech-border);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Navbar Mobile Menu */
    body {
        overflow-x: hidden;
    }

    .nav-container {
        padding: 1rem 1rem !important; /* Smaller padding on mobile */
    }

    .nav-toggle {
        display: block !important;
        margin-left: auto; /* Force it to stay on the right */
        z-index: 1001; /* Stay above everything else */
    }
    
    .nav-brand {
        font-size: 1.2rem !important; /* Shrink text on mobile */
        gap: 5px !important;
    }

    .nav-brand img {
        height: 35px !important; /* Shrink logo on mobile */
    }

    .nav-brand::before {
        display: none; /* Hide the fancy arrows on small screens to save space */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        border-bottom: 1px solid var(--primary);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Hero section */
    .hero h1 { font-size: 2.8rem; }
    .hero-content {
        padding: 3rem 1.5rem !important;
        margin-top: 60px;
        transform: translateY(0) !important;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Founder and team row */
    .founder-highlight {
        flex-direction: column;
        text-align: center;
    }
    .founder-img-wrapper {
        margin: 0 auto 1.5rem auto;
    }

    /* Sections */
    section {
        padding: 5rem 1.5rem 2rem !important;
    }

    /* Header text adjustments */
    h2 { font-size: 2.2rem; }
    .terminal-header { margin: -1.5rem 0 2rem 0; }
    .about-content { padding: 3rem 1.5rem; }
    .event-detail-content { padding: 2rem 1.5rem; }
    .event-detail-title { font-size: 2rem; }
    .event-detail-meta { flex-direction: column; gap: 0.5rem; }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    /* Login */
    .login-container {
        padding: 2rem 1.5rem;
    }
}

/* --- Neon Flicker Animation --- */
.neon-flicker {
    animation: neonFlicker 3.5s infinite alternate;
}
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px #00f0ff;
    }
    20%, 24%, 55% {
        opacity: 0.1;
        text-shadow: none;
    }
}
