:root {
    --bg-color: #05070a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: move 20s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: move 15s infinite alternate-reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    top: 40%;
    left: 30%;
    animation: move 25s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Buttons */
.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}



.status-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.4rem;
}

.status-msg.success {
    color: #10b981;
}

.status-msg.error {
    color: #ef4444;
}

.registration-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 960px;
    margin: 2rem auto 0;
}

.registration-area .subscribe-box-expanded {
    margin: 0;
    flex: 1 1 320px;
    max-width: 700px;
}

.registration-qr-panel {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1.75rem;
    border-radius: 24px;
    align-self: center;
}

.registration-qr-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.registration-qr-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.qr-join-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.2rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qr-join-link:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Section */
.video-section {
    padding: 6rem 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

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

    .project-section-layout {
        flex-direction: column;
    }
}

/* Expanded Subscription Form */
.subscribe-box-expanded {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.subscribe-box-expanded .form-row {
    display: flex;
    gap: 1rem;
}

.subscribe-box-expanded input,
.subscribe-box-expanded select {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1.3rem;
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.subscribe-box-expanded select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.subscribe-box-expanded select option {
    background: #1a1a1a;
    color: white;
}

.subscribe-box-expanded input:focus,
.subscribe-box-expanded select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(255, 255, 255, 0.1);
}

.subscribe-box-expanded button {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.subscribe-box-expanded button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

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

    .registration-area .subscribe-box-expanded {
        width: 100%;
    }

    .subscribe-box-expanded .form-row {
        flex-direction: column;
    }

    .project-section-layout {
        flex-direction: column;
    }

    .project-video-col,
    .project-content-col {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Projects Section Styles */
.projects-section {
    padding: 6rem 5%;
    background: rgba(0, 0, 0, 0.2);
}

.project-block {
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.project-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--text-color);
}

.project-header .chevron {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.project-block.active .project-header .chevron {
    transform: rotate(180deg);
}

.project-block.active .project-title {
    color: var(--primary);
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s;
    padding: 0 2rem;
    overflow-y: auto;
}

/* Custom Scrollbar for Accordion */
.project-content::-webkit-scrollbar {
    width: 6px;
}

.project-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.project-content::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}

.project-block.active .project-content {
    max-height: 700px;
    /* Limits height to ~3 sections */
    padding: 0 2rem 2rem;
}

/* WhatsApp Card Styles */
.whatsapp-card-container {
    display: flex;
    justify-content: center;
    margin-top: 0.2rem;
}

.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 3rem;
    border-radius: 24px;
    max-width: 650px;
    transition: all 0.3s ease;
}

.whatsapp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.whatsapp-card img {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    border: 2px solid var(--primary);
}

.whatsapp-info {
    text-align: left;
}

.whatsapp-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.whatsapp-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .whatsapp-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .whatsapp-info {
        text-align: center;
    }
}

.project-section-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
}

.project-video-col {
    flex: 0 0 30%;
    min-width: 200px;
}

.project-video-col iframe {
    border-radius: 8px;
    aspect-ratio: 16/9;
    height: auto;
}

.project-content-col {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
}

.project-content-col h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-content-col p,
.project-content-col pre {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.project-content-col pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Admin Panel Styles */
.admin-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.admin-container {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 24px;
}

.admin-wide {
    max-width: 800px;
}

.admin-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    filter: brightness(1.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    margin-bottom: 0;
}

.admin-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.admin-section-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px dashed var(--glass-border);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    width: auto;
    display: inline-block;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    filter: brightness(1.2);
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}