:root {
    --primary: #9d50bb;
    --secondary: #6e48aa;
    --accent: #00d2ff;
    --bg-dark: #0f0c29;
    --bg-gradient: radial-gradient(circle at top right, #302b63, #24243e, #0f0c29);
    --text-light: #ffffff;
    --text-muted: #d1d1d1;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.lang-switcher span {
    cursor: pointer;
    transition: all 0.3s;
    padding: 2px 4px;
}

.lang-switcher span.active {
    color: var(--accent);
}

.lang-switcher .separator {
    opacity: 0.3;
    font-weight: 300;
    cursor: default;
}

.lang-switcher span:hover:not(.active) {
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light) !important;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: -5px;
}

.logo-text p {
    font-size: 0.6rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the menu */
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transform hamburger to X when active */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(157, 80, 187, 0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

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

.btn-blur {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 90vh;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 45%;
}

.hero h2 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Orbit Animation */
.orbit-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.ring-1 { width: 300px; height: 300px; animation: rotate 20s linear infinite; }
.ring-2 { width: 450px; height: 450px; animation: rotate 30s linear infinite reverse; }
.ring-3 { width: 600px; height: 600px; animation: rotate 40s linear infinite; }

.hero-image-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    padding: 15px;
    overflow: hidden;
    z-index: 5;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Portal Section */
.portal-section {
    margin-top: -80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 100;
}

.portal-card {
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.portal-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
    border-color: var(--accent);
}

.portal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.portal-card h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: white;
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Highlight Animation */
.highlight-section {
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    50% { box-shadow: 0 0 50px 10px rgba(0, 210, 255, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.glass-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h3 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    height: 200px;
}

.card-image.horizontal {
    height: 250px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Book Specific Styles */
.book-card {
    background: rgba(48, 43, 99, 0.2) !important;
}

.book-cover {
    width: 100%;
    height: 350px;
    padding: 20px 20px 0;
    display: flex;
    justify-content: center;
}

.book-cover img {
    height: 100%;
    width: auto;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: rotateY(-10deg) scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.card-content h4 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.link-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

/* Glassmorphism Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(48, 43, 99, 0.1), inset 0 2px 4px rgba(0,0,0,0.02);
}

.glass-input::placeholder {
    color: rgba(0,0,0,0.4);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-map {
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 80px 2rem 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h3 {
    font-family: var(--font-head);
    letter-spacing: 3px;
    margin: 10px 0;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social p {
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    /* Mobile Menu Wrap Approach (No Hamburger) */
    .mobile-menu-btn {
        display: none !important;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-container {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        width: 100%;
    }
    
    .logo {
        margin-bottom: 5px;
    }

    .grid-3, .grid-2, .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        height: 300px;
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid var(--glass-border);
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 30px;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-head);
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    color: var(--text-light);
}

.bylaws-content h5 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--accent);
    margin: 30px 0 15px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 5px;
}

.bylaws-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

.bylaws-content .subsection {
    margin: 15px 0;
    padding-left: 15px;
    border-left: 2px solid var(--glass-border);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Corporate Modal Styles */
.corporate-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    position: sticky;
    top: -30px; /* Offset for modal-padding */
    z-index: 100;
    margin: -30px -30px 30px;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.tab-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    color: #0f0c29;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.member-grid {
    animation: fadeIn 0.5s ease;
}

.member-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.member-avatar {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
}

.member-card:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.audit-list {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
}

.cv-view {
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .corporate-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-btn {
        text-align: left;
        padding: 10px 15px;
    }
}
