:root {
    /* Brand Colors - DEM Parti Purple & Green & Gold */
    --primary: #581c87; /* Violet / Deep Purple */
    --primary-rgb: 88, 28, 135;
    --primary-light: #7c3aed; /* Vibrant Purple */
    --secondary: #10b981; /* Emerald Green */
    --secondary-rgb: 16, 185, 129;
    --accent: #f59e0b; /* Golden Yellow / Orange */
    --accent-rgb: 245, 158, 11;
    
    /* Dark Theme Base */
    --bg-dark: #090514; /* Deep purple-tinted dark */
    --bg-darker: #05020a;
    --bg-card: rgba(18, 10, 36, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(124, 58, 237, 0.4);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* System Colors */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.text-muted { color: var(--text-muted); }
.w-100 { width: 100%; }

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--bg-darker);
    transform: translateY(-2px);
}

/* Top Info Bar */
.top-bar {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 10px 0;
    font-size: 0.85rem;
}
.top-bar-left span {
    margin-right: 20px;
}
.top-bar-left i {
    color: var(--secondary);
    margin-right: 5px;
}
.social-icons a {
    color: var(--text-muted);
    margin-left: 15px;
    font-size: 0.95rem;
}
.social-icons a:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Navbar */
.main-nav {
    background: rgba(9, 5, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.4s ease;
    z-index: 1000;
}
.main-nav.sticky {
    position: sticky;
    top: 0;
}
.main-nav.scrolled {
    padding: 5px 0;
    background: rgba(5, 2, 10, 0.9);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo img {
    height: 55px;
    transition: transform 0.5s ease;
}
.logo:hover img {
    transform: rotate(360deg);
}
.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}
.btn-nav {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important;
    border: 1px solid var(--border-glass);
    padding: 8px 20px !important;
    border-radius: 20px !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover {
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(88, 28, 135, 0.35) 0%, rgba(9, 5, 20, 1) 90%);
    padding-top: 1rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}
.announcement-bar {
    display: flex;
    align-items: center;
    background: rgba(5, 2, 10, 0.6);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}
.announcement-label {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 1px;
}
.marquee-container {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 580px;
    padding: 3rem 20px;
    position: relative;
    z-index: 2;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero-subtitle {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.hero-title {
    color: #fff;
    font-size: 3.8rem;
    font-family: var(--font-heading);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-title span {
    color: var(--secondary);
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}
.hero-portrait {
    max-width: 420px;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-glass);
}
.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 24px;
    top: 20px;
    right: -20px;
    z-index: 1;
    opacity: 0.5;
}

/* About / Biography Section */
.about-section {
    background: var(--bg-darker);
    position: relative;
}
.about-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}
.about-image-card img {
    display: block;
    width: 100%;
}
.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-top-left-radius: 24px;
    text-align: center;
}
.experience-badge span {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 3px;
}
.about-text-area {
    padding-left: 4rem;
}
.section-title-left {
    margin-bottom: 2rem;
}
.section-title-left h2 {
    font-size: 2.4rem;
    color: #fff;
    font-family: var(--font-heading);
    margin-top: 5px;
}
.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.bio-paragraph {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* News Section */
.section-title {
    margin-bottom: 4rem;
}
.section-title h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-top: 5px;
}
.subtitle {
    display: block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
}
.title-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    margin-top: 15px;
}
.mx-auto { margin-left: auto; margin-right: auto; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.news-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-focus);
}
.news-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-img-wrapper img {
    transform: scale(1.08);
}
.news-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-light);
    color: #fff;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}
.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
}
.news-title a {
    color: #fff;
}
.news-title a:hover {
    color: var(--secondary);
}
.read-more-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.read-more-link:hover {
    color: var(--primary-light);
}

/* Activities Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.activity-card {
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    display: block;
    cursor: pointer;
}
.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}
.activity-icon {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.activity-card:hover .activity-icon {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.activity-content h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}
.activity-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.view-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Contact Section with Glassmorphism Form */
.contact-section {
    background: linear-gradient(135deg, rgba(9, 5, 20, 0.9) 0%, rgba(5, 2, 10, 0.9) 100%), url('portrait.png') center/cover no-repeat;
    position: relative;
    background-blend-mode: overlay;
}
.contact-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 24px;
}
.contact-info-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border-glass);
}
.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-item i {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-top: 5px;
}
.contact-item h5 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
}
.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.contact-social h5 {
    margin-bottom: 15px;
    color: #fff;
}
.contact-form-panel {
    background: rgba(18, 10, 36, 0.4);
}
.modern-form label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}
select.form-control option {
    background-color: var(--bg-dark);
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding-top: 5rem;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}
.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 25px 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 2, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    width: 90%;
    max-width: 650px;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-family: var(--font-body);
}
.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}
.close-modal:hover { color: #fff; }
.modal-body {
    padding: 25px;
    max-height: 65vh;
    overflow-y: auto;
}
.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}
.modal-list {
    list-style: none;
}
.modal-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-glass);
    align-items: flex-start;
}
.modal-list li:last-child { border-bottom: none; }
.modal-list li i { margin-top: 4px; }
.modal-empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}
.modal-empty-state i {
    font-size: 3.5rem;
    color: var(--border-glass);
    margin-bottom: 15px;
}

.spinner {
    width: 45px; height: 45px;
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-left-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Grid columns helper */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}
.col-md-5 { width: 41.666667%; padding: 15px; }
.col-md-7 { width: 58.333333%; padding: 15px; }
.col-md-6 { width: 50%; padding: 15px; }
.col-md-4 { width: 33.333333%; padding: 15px; }
.col-12 { width: 100%; padding: 15px; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .col-md-5, .col-md-7, .col-md-6, .col-md-4 { width: 100%; }
    .about-text-area { padding-left: 15px; margin-top: 30px; }
    .contact-info-panel { border-right: none; border-bottom: 1px solid var(--border-glass); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 25px;
        gap: 20px;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { margin-top: 3rem; }
    
    .top-bar { display: none; }
    .hero-title { font-size: 2.5rem; }
}
