/* 1. VARIABLES & NEW COLOR SCHEME */
:root {
    --color-bg: #03051c;
    --color-text: #EAEAEA;
    --color-text-muted: #a0a0a0;
    --color-primary: #9D00FF; /* Vibrant Purple */
    --color-primary-light: #bb63ff;
    --color-border: #444444;
    --font-base: "Bai Jamjuree", sans-serif;
}

/* 2. GENERAL & TYPOGRAPHY */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 1.05rem;
    line-height: 1.7;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-white);
    font-weight: 700;
}
.display-4 { font-size: 3.5rem; }
.display-5 { font-size: 3rem; }
@media (max-width: 768px) {
    .display-4 { font-size: 2.5rem; }
    .display-5 { font-size: 2.2rem; }
}

p, .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.text-brand {
    color: var(--color-primary) !important;
}

/* 3. LAYOUT & SECTIONS */
section {
    padding-top: 120px;
    padding-bottom: 120px;
}
.full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* 4. NAVIGATION */
.navbar {
    background-color: rgba(17, 17, 17, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.navbar-brand img {
    height: 50px !important;
    width: auto;
    max-width: 150px;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: var(--color-primary) !important;
}
@media (min-width: 992px) {
    .navbar { min-height: 80px; }
}

/* 5. CARDS, BUTTONS & UI ELEMENTS */
.card-custom {
    background-color: rgba(34, 34, 34, 0.5);
    border: 1px solid var(--color-border);
    height: 100%;
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}
.card-custom:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.btn-brand {
    background-color: var(--color-primary);
    color: #fff !important;
    border: none;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 14px 32px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-brand:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
}

.iconbox {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

/* 6. SPECIFIC SECTIONS */

/* Team Section */
.team-member {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}
.team-member-img {
    position: relative;
    margin-bottom: 1.5rem;
}
.team-member-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-border);
    transition: all 0.4s ease;
}
.team-member:hover .team-member-img img {
    border-color: var(--color-primary);
    transform: scale(1.05);
}
.team-member-info h5 {
    color: var(--color-text-white);
}
.team-member-info p {
    color: var(--color-primary);
    font-weight: 600;
}
@media (max-width: 768px) {
    .team-member-img img { width: 150px; height: 150px; }
}

/* Sidebar
.sidebar-nav {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width:90px;
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}
.sidebar-links { display: flex; flex-direction: column; gap: 24px; width: 100%; align-items: center; }
.sidebar-link { display: flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; transition: background 0.2s; padding: 8px 0; border-radius: 8px; width: 100%; text-align: center; }
.sidebar-link:hover, .sidebar-link:focus { background: var(--color-primary);  color: #fff;}
.sidebar-icon.large-letter { font-size: 2rem; font-weight: bold; }
.sidebar-text { font-size: 12px; }

/* --- Desktop Styles (Default) --- */
.sidebar-nav {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 90px;
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease; /* Smooth transition when resizing window */
}

.sidebar-links { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    width: 100%; 
    align-items: center; 
}

.sidebar-link { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    color: #fff; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 13px; 
    transition: background 0.2s; 
    padding: 8px 0; 
    border-radius: 8px; 
    width: 100%; 
    text-align: center; 
}

.sidebar-link:hover, .sidebar-link:focus { 
    background: var(--color-primary);  
    color: #fff;
}

.sidebar-icon.large-letter { 
    font-size: 2rem; 
    font-weight: bold; 
}

.sidebar-text { 
    font-size: 12px; 
}

/* --- Mobile Styles (Screens 768px and below) --- */
@media (max-width: 768px) {
    .sidebar-nav {
        width: 60px;          /* Thinner sidebar */
        left: 8px;            /* Closer to the edge */
        padding: 15px 0;      /* Reduced vertical padding */
        border-radius: 12px;  /* Slightly smaller corners */
    }

    .sidebar-links {
        gap: 15px;            /* Less space between items */
    }

    .sidebar-icon.large-letter {
        font-size: 1.5rem;    /* Smaller icons/letters */
    }

    
    
    .sidebar-link {
        padding: 10px 0;      /* Larger tap target for fingers */
    }
}

.sponsor-logo {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    /* This makes dark logos visible on a dark background */
    /* filter: brightness(0) invert(1);  */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    filter: brightness(1) invert(0); /* Returns to original color on hover */
    opacity: 1;
}

/* Gallery */
.gallery-scroll-container { overflow: hidden; }
.gallery-scroll-inner { display: flex; white-space: nowrap; }
.gallery-scroll { display: flex; animation: scroll-left 60s linear infinite; }
.gallery-scroll-container:hover .gallery-scroll { animation-play-state: paused; }
.gallery-scroll-item { padding: 0 1rem; }
.gallery-scroll-item img { height: 250px; width: auto; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
} */


/* events section  */


.btn-outline-brand {
    color: var(--brand-color); /* Replace with your color code */
    border-color: var(--brand-color);
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: var(--brand-color);
    color: white;
}

.card-custom {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px;
}

.card-custom:hover {
    transform: translateY(-10px);
}

/* 7. FOOTER & SCROLLBAR */
footer {
    background-color: #000;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0;
}
.social-icons a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background-color: #222; border-radius: 50%; font-size: 18px; color: #fff; margin: 0 5px; }
.social-icons a:hover { background-color: var(--color-primary); }

::-webkit-scrollbar { width: 8px; background: #111; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }

/* Container to give perspective */
.logo-wrapper {
    perspective: 1000px;
}

.floating-logo {
    width: 80%;
    max-width: 400px;
    /* This creates the floating and 3D tilt effect */
    animation: float3D 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

@keyframes float3D {
    0% {
        transform: translateY(0px) rotateY(0deg) rotateX(0deg);
    }
    33% {
        transform: translateY(-20px) rotateY(10deg) rotateX(5deg);
    }
    66% {
        transform: translateY(10px) rotateY(-10deg) rotateX(-5deg);
    }
    100% {
        transform: translateY(0px) rotateY(0deg) rotateX(0deg);
    }
}

/* Optional: Add a glow behind the logo */
.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--brand-color); /* Your theme color */
    filter: blur(120px);
    opacity: 0.3;
    z-index: -1;
    transform: translate(-50%, -50%);
}