/* All your existing CSS remains the same */
:root {
    --trace-color: #00629B; /* Blue for light mode */
    --trace-glow: 0 0 15px 3px var(--trace-color);
    --trace-duration: 4s; /* Total animation duration */
    --primary-color: #00629B;
    --secondary-color: #FF6900;
    --accent-color: #5C87A2;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --text-color: #333333;
    --text-light: #6C757D;
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E9ECEF;
    --footer-bg: #212529;
    --footer-text: #FFFFFF;
    --section-padding: 80px 0;
    --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transform-3d: perspective(1000px);
    --particle-color: rgba(0, 98, 155, 0.5);
    --particle-size: 3;
    --particle-speed: 1;
    --connection-distance: 100;
    --connection-color: rgba(0, 98, 155, 0.2);
}

/* Orange 3D Theme */
body.orange-3d-theme {
    --trace-color: #FF6900; /* Orange for orange mode */
    --trace-glow: 0 0 20px 5px var(--trace-color);
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #FFAB00;
    --light-color: #FFF8F0;
    --dark-color: #1A1A1A;
    --text-color: #FFFFFF;
    --text-light: #FFD8A8;
    --bg-color: #0D0D0D;
    --card-bg: rgba(255, 107, 53, 0.1);
    --border-color: rgba(255, 107, 53, 0.3);
    --footer-bg: #000000;
    --footer-text: #FFFFFF;
    --shadow-3d: 0 15px 30px rgba(255, 107, 53, 0.3);
    --transform-3d: perspective(1000px) rotateX(5deg);
    --particle-color: rgba(255, 107, 53, 0.8);
    --particle-size: 4;
    --particle-speed: 1.5;
    --connection-distance: 120;
    --connection-color: rgba(255, 107, 53, 0.4);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.5s ease;
    padding-top: 80px;
}

/* Add this to your CSS */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    transition: opacity 0.5s ease;
}

body.loaded::before {
    opacity: 0;
    pointer-events: none;
}

/* 3D Particle Background Canvas */
/* Three.js 3D Background Container */
#threejs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

/* Theme Toggle in Header */
.theme-toggle-container {
    display: flex !important;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* Navbar Toggler Wrapper for Mobile */
.navbar-toggler-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Desktop theme toggle container */
.theme-toggle-container-desktop {
    display: none;
    align-items: center;
    margin-left: 15px;
}

/* Hide wrapper on desktop, show theme toggle in collapse */
@media (min-width: 992px) {
    .navbar-toggler-wrapper {
        display: none;
    }
    
    .theme-toggle-container-desktop {
        display: flex !important;
    }
}

/* Hide desktop toggle on mobile */
@media (max-width: 991px) {
    .theme-toggle-container-desktop {
        display: none !important;
    }
}

.theme-toggle {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-3d);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

body.orange-3d-theme .theme-toggle {
    background: var(--secondary-color);
}

/* Ensure theme toggle is always visible on all screen sizes */
@media (max-width: 768px) {
    .navbar-toggler-wrapper {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    
    .theme-toggle-container {
        display: flex !important;
    }
    
    .theme-toggle {
        display: flex !important;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* 3D Effects for Orange Theme */
body.orange-3d-theme .card-3d {
    transform: var(--transform-3d);
    box-shadow: var(--shadow-3d);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.orange-3d-theme .card-3d:hover {
    transform: perspective(1000px) rotateX(10deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.5);
}

body.orange-3d-theme .btn-3d {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

body.orange-3d-theme .btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

body.orange-3d-theme .btn-3d:hover::before {
    left: 100%;
}

body.orange-3d-theme .btn-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
}

/* Navbar */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(0);
}

/* Auto-hide navbar on mobile when scrolling down */
.navbar.scrolled-down {
    transform: translateY(-100%);
}

body.orange-3d-theme .navbar {
    background-color: rgba(13, 13, 13, 0.9);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-width: 180px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px !important;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

body.orange-3d-theme .nav-link {
    color: var(--text-color) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 98, 155, 0.1);
    transform: translateY(-2px);
}

body.orange-3d-theme .nav-link:hover {
    background-color: rgba(255, 107, 53, 0.1);
}

body.orange-3d-theme .nav-link:hover {
    background-color: rgba(255, 107, 53, 0.1);
}

.nav-link::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-link.active::before {
    opacity: 1;
    transform: translateX(0);
}

/* Remove arrow from dropdown-toggle (More menu) */
.nav-link.dropdown-toggle::before {
    display: none;
}

.nav-link.dropdown-toggle::after {
    display: none;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.orange-3d-theme .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

.dropdown-item {
    color: var(--dark-color);
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: rgba(0, 98, 155, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

body.orange-3d-theme .dropdown-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
}

body.orange-3d-theme .dropdown-item {
    color: var(--text-color);
}

body.orange-3d-theme .dropdown-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--border-color);
}

body.orange-3d-theme .dropdown-divider {
    border-color: var(--border-color);
}

.navbar-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-social a {
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-social a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

body.orange-3d-theme .navbar-social a {
    color: var(--text-color);
}

body.orange-3d-theme .navbar-social a:hover {
    color: var(--accent-color);
}
/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 98, 155, 0.8), rgba(0, 123, 191, 0.8)), url('../assets/images/background/website bg 4-01.png');
    background-size: 120% 120%;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    min-height: 100vh;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: backgroundMove 20s ease-in-out infinite;
}

body.orange-3d-theme .hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(247, 147, 30, 0.8)), url('../assets/images/background/website bg 4-01.png');
    background-size: 120% 120%;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundMove 20s ease-in-out infinite;
}

/* Desktop animation - smooth X and Y movement */
@keyframes backgroundMove {
    0% { 
background-position: 0% 50%;
    }
    25% { 
background-position: 50% 40%;
    }
    50% { 
background-position: 100% 30%;
    }
    75% { 
background-position: 50% 60%;
    }
    100% { 
background-position: 0% 50%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero {
background: linear-gradient(135deg, rgba(0, 98, 155, 0.8), rgba(0, 123, 191, 0.8)), url('../assets/images/background/WEBSITEBK.jpg');
background-size: 140% 140%;
background-position: center 60%;
background-repeat: no-repeat;
animation: backgroundMoveMobile 20s ease-in-out infinite;
    }
    
    body.orange-3d-theme .hero {
background: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(247, 147, 30, 0.8)), url('../assets/images/background/WEBSITEBK.jpg');
background-size: 140% 140%;
background-position: center 60%;
background-repeat: no-repeat;
animation: backgroundMoveMobile 20s ease-in-out infinite;
    }

    /* Mobile animation - smooth X and Y movement */
    @keyframes backgroundMoveMobile {
0% { 
    background-position: 0% 60%;
}
25% { 
    background-position: 50% 50%;
}
50% { 
    background-position: 100% 40%;
}
75% { 
    background-position: 50% 70%;
}
100% { 
    background-position: 0% 60%;
}
    }
}

/* Responsive hero text */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
display: none;
    }
    
    .mobile-text {
display: inline;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid white;
    animation: typing 2.5s steps(35, end), blink-caret 0.75s step-end infinite;
    animation-fill-mode: forwards;
}


@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Hide cursor after animation completes */
.hero h1.animation-complete {
    border-right: none;
}

/* Letter-by-letter animation */
.hero h1 span {
    opacity: 0;
    display: inline-block;
    animation: fadeInLetter 0.1s ease forwards;
    white-space: pre; /* Preserve spaces */
}

@keyframes fadeInLetter {
    to {
opacity: 1;
    }
}

body.orange-3d-theme .hero h1 {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
    line-height: 1.6;
}

/* Fade-in animation for paragraph */
@keyframes fadeInUp {
    from {
opacity: 0;
transform: translateY(20px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}
      .btn-primary {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    animation-fill-mode: both;
}

body.orange-3d-theme .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-color: #e55a00;
    transform: translateY(-3px);
}

body.orange-3d-theme .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}
/* Add this CSS to your existing styles */

/* See All Events Button Styles */
.btn.see-all-events {
    background-color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.orange-3d-theme .btn.see-all-events {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn.see-all-events:hover {
    background-color: #5C87A2;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(92, 135, 162, 0.4);
}

body.orange-3d-theme .btn.see-all-events:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.6);
}

/* Add a subtle animation on hover */
.btn.see-all-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn.see-all-events:hover::before {
    left: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

body.orange-3d-theme .section-title h2 {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

body.orange-3d-theme .section-title h2::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 120px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(0, 98, 155, 0.05) 0%, rgba(0, 123, 191, 0.1) 50%, rgba(0, 98, 155, 0.05) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 98, 155, 0.03) 50%, transparent 70%);
    animation: mirror-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 98, 155, 0.1);
    border-radius: 0;
    pointer-events: none;
}

@keyframes mirror-shimmer {
    0%, 100% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% { 
        transform: translateX(100%);
        opacity: 1;
    }
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
    min-width: 300px;
    animation: slideInLeft 0.8s ease-out;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 98, 155, 0.1);
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.about-text h3:hover::after {
    width: 100%;
}

body.orange-3d-theme .about-text h3 {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

body.orange-3d-theme .about-text h3::after {
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    line-height: 1.6;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.3;
    border-radius: 2px;
}

body.orange-3d-theme .about-text p::before {
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    animation: slideInRight 0.8s ease-out;
}

.about-image img {
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 98, 155, 0.15), 0 0 20px rgba(0, 98, 155, 0.1);
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 98, 155, 0.2), 0 0 30px rgba(0, 98, 155, 0.15);
}

body.orange-3d-theme .about-image img {
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
    border: 1px solid var(--border-color);
}

body.orange-3d-theme .about-image img:hover {
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2);
}

/* Circuit animation keyframes */
@keyframes circuit-pulse {
    0%, 100% { 
        box-shadow: none;
        opacity: 0.7;
    }
    50% { 
        box-shadow: var(--trace-glow);
        opacity: 1;
    }
}

@keyframes circuit-travel {
    0% { 
        box-shadow: none;
        opacity: 0.7;
    }
    50% { 
        box-shadow: var(--trace-glow);
        opacity: 1;
    }
    100% { 
        box-shadow: none;
        opacity: 0.7;
    }
}

.about-image {
    position: relative;
    display: inline-block;
    background: var(--bg-color); /* PCB background */
    padding: 10px;
    animation: container-pulse var(--trace-duration) infinite;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10px;
    right: 10px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 98, 155, 0.1), transparent);
    transform: scaleY(-1);
    opacity: 0.3;
    border-radius: 0 0 10px 10px;
    pointer-events: none;
}

body.orange-3d-theme .about-image::after {
    background: linear-gradient(to bottom, rgba(255, 107, 53, 0.1), transparent);
}

@keyframes container-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    }
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* PCB texture effect */
.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0,255,0,0.03) 0px, transparent 1px, transparent 2px, rgba(0,255,0,0.03) 3px),
        repeating-linear-gradient(90deg, rgba(0,255,0,0.03) 0px, transparent 1px, transparent 2px, rgba(0,255,0,0.03) 3px);
    pointer-events: none;
    z-index: 1;
}

/* Shared trace style */
.about-image span {
    position: absolute;
    background: var(--trace-color); /* Uses theme-appropriate color */
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* === TOP-LEFT CORNER === */
.about-image .trace-tl-v { /* vertical line */
    top: 0;
    left: 0;
    width: 4px;
    height: 40px;
    animation: circuit-pulse var(--trace-duration) infinite 0s;
}
.about-image .trace-tl-h { /* horizontal line */
    top: 0;
    left: 0;
    width: 40px;
    height: 4px;
    animation: circuit-pulse var(--trace-duration) infinite 0s;
}
.about-image .trace-tl-node { /* node circle */
    top: 36px;
    left: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: circuit-pulse var(--trace-duration) infinite 0s;
}

/* === TOP-RIGHT CORNER === */
.about-image .trace-tr-v {
    top: 0;
    right: 0;
    width: 4px;
    height: 40px;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) / 4);
}
.about-image .trace-tr-h {
    top: 0;
    right: 0;
    width: 40px;
    height: 4px;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) / 4);
}
.about-image .trace-tr-node {
    top: 36px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) / 4);
}

/* === BOTTOM-LEFT CORNER === */
.about-image .trace-bl-v {
    bottom: 0;
    left: 0;
    width: 4px;
    height: 40px;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) / 2);
}
.about-image .trace-bl-h {
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) / 2);
}
.about-image .trace-bl-node {
    bottom: 36px;
    left: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) / 2);
}

/* === BOTTOM-RIGHT CORNER === */
.about-image .trace-br-v {
    bottom: 0;
    right: 0;
    width: 4px;
    height: 40px;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) * 3 / 4);
}
.about-image .trace-br-h {
    bottom: 0;
    right: 0;
    width: 40px;
    height: 4px;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) * 3 / 4);
}
.about-image .trace-br-node {
    bottom: 36px;
    right: -4px;
    width: 12px;
  
  
    height: 12px;
    border-radius: 50%;
    animation: circuit-pulse var(--trace-duration) infinite calc(var(--trace-duration) * 3 / 4);
}

/* Enhanced hover effect */



/* Removed hover effect for About Us photo in orange mode */

.about-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 150px;
    transition: all 0.3s ease;
}

body.orange-3d-theme .stat-item {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

.stat-item:hover {
    transform: translateY(-5px);
    animation: pulse 1.5s infinite;
}

body.orange-3d-theme .stat-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

body.orange-3d-theme .stat-number {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 171, 0, 0.5);
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Committee Members Section */
.committee {
    background-color: var(--light-color);
    padding: var(--section-padding);
}

body.orange-3d-theme .committee {
    background-color: rgba(255, 107, 53, 0.05);
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

body.orange-3d-theme .subsection-title {
    color: var(--secondary-color);
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

body.orange-3d-theme .subsection-title::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-lead {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.team-lead img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

body.orange-3d-theme .team-lead img {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 171, 0, 0.5);
}

.team-lead img:hover {
    transform: scale(1.05);
}

body.orange-3d-theme .team-lead img:hover {
    transform: scale(1.1) rotateX(5deg);
}

.team-lead h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

body.orange-3d-theme .team-lead h3 {
    color: var(--secondary-color);
}

.team-lead p {
    color: var(--text-light);
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.team-member {
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation-fill-mode: both;
    flex: 0 1 calc(33.333% - 30px);
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
.team-member:nth-child(5) { animation-delay: 0.5s; }
.team-member:nth-child(6) { animation-delay: 0.6s; }

body.orange-3d-theme .team-member {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

.team-member:hover {
    transform: translateY(-5px);
    animation: pulse 1.5s infinite;
}

body.orange-3d-theme .team-member:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

body.orange-3d-theme .team-member img {
    border-color: var(--accent-color);
}

.team-member img:hover {
    transform: scale(1.05);
}

body.orange-3d-theme .team-member img:hover {
    transform: scale(1.1) rotateX(5deg);
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

body.orange-3d-theme .team-member h4 {
    color: var(--secondary-color);
}

.team-member p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
    align-items: center;
    z-index: 2;
}

.team-member:hover .team-member-social {
    opacity: 1;
}

.team-member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.team-member:hover .team-member-social a {
    transform: translateY(0);
}

.team-member-social a:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member-social a:nth-child(2) {
    transition-delay: 0.2s;
}

body.orange-3d-theme .team-member-social a {
    background-color: rgba(255, 107, 53, 0.9);
    color: var(--text-color);
}

.team-member-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

body.orange-3d-theme .team-member-social a:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

/* Team Leaders Section - Match Committee Members Style */
.team-leaders {
    margin-bottom: 60px;
    width: 100%;
}

.team-leaders .subsection-title {
    margin-bottom: 30px;
}

.team-leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Animated Team Leader Cards */
.team-leader-card {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    margin: 20px;
}

.team-leader-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-leader-card:hover .team-leader-inner {
    transform: rotateY(180deg);
}

.team-leader-front, .team-leader-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.team-leader-front {
    background-color: var(--card-bg);
}

.team-leader-back {
    background-color: var(--card-bg);
    transform: rotateY(180deg);
}

.team-leader-front img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.team-leader-front h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-leader-front p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.team-leader-back h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.team-leader-back p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.expand-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.expand-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Orange theme styles for team leader cards */
body.orange-3d-theme .team-leader-front {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

body.orange-3d-theme .team-leader-back {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

body.orange-3d-theme .team-leader-front img {
    border-color: var(--accent-color);
}

body.orange-3d-theme .team-leader-front h4 {
    color: var(--secondary-color);
}

body.orange-3d-theme .team-leader-back h3 {
    color: var(--secondary-color);
}

body.orange-3d-theme .expand-btn {
    background: var(--secondary-color);
}

body.orange-3d-theme .expand-btn:hover {
    background: var(--accent-color);
}

/* Team Leader Simple Style - No Hover Conflicts */
.team-leader-simple {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.team-leader-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.leader-info {
    padding: 30px 20px 20px;
}

.team-leader-simple img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.team-leader-simple:hover img {
    transform: scale(1.05);
}

.team-leader-simple h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.team-leader-simple p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.team-leader-simple .team-member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.team-leader-simple .team-member-social a {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 98, 155, 0.1);
}

.team-leader-simple .team-member-social a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.team-view-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.team-view-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: none;
}

.team-view-btn:active {
    transform: scale(0.98);
}

/* Team Members Container */

.team-leaders-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.team-leader-column {
    display: flex;
    flex-direction: column;
    width: 45%;
    max-width: 400px;
}

.team-leader-simple {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0;
}

.team-members-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    position: relative;
    left: 0;
    right: 0;
}

.team-member-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-member-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.team-member-info {
    flex: 1;
    text-align: left;
}

.team-member-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-member-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}



.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.team-member-card img:hover {
    transform: scale(1.05);
}

.team-member-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.team-member-card p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-member-social a {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 98, 155, 0.1);
}

.team-member-social a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

/* Orange theme styles */
body.orange-3d-theme .team-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.orange-3d-theme .team-member-card {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--border-color);
}

body.orange-3d-theme .team-member-card img {
    border-color: var(--accent-color);
}

body.orange-3d-theme .team-member-card h4 {
    color: var(--text-color);
}

body.orange-3d-theme .team-member-card p {
    color: var(--secondary-color);
}

body.orange-3d-theme .team-member-social a {
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary-color);
}

body.orange-3d-theme .team-member-social a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Orange theme for new team leader style */
body.orange-3d-theme .team-leader-simple {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.orange-3d-theme .team-leader-simple img {
    border-color: var(--accent-color);
}

body.orange-3d-theme .team-leader-simple h4 {
    color: var(--text-color);
}

body.orange-3d-theme .team-leader-simple p {
    color: var(--secondary-color);
}

body.orange-3d-theme .team-leader-simple .team-member-social a {
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary-color);
}

body.orange-3d-theme .team-leader-simple .team-member-social a:hover {
    background: var(--secondary-color);
    color: white;
}

body.orange-3d-theme .team-view-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

body.orange-3d-theme .team-view-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .team-leaders-grid {
        flex-direction: column;
        gap: 20px;
    }

    
    .team-leader-column {
        width: 100%;
        max-width: 100%;
    }
    
    .team-leader-simple {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .team-members-container {
        gap: 10px;
        padding: 15px;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .team-member-card {
        padding: 15px;
        gap: 10px;
    }
    
    .team-member-card img {
        width: 50px;
        height: 50px;
    }
    
    .team-member-card h4 {
        font-size: 1rem;
    }
    
    .team-member-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-leaders-grid {
        gap: 15px;
    }
    
    .team-leader-column {
        margin-bottom: 15px;
    }
    
    .team-leader-simple {
        margin-bottom: 15px;
    }
    
    .team-members-container {
        padding: 10px;
        gap: 8px;
    }
    
    .team-member-card {
        padding: 12px;
        gap: 8px;
    }
    
    .team-member-card img {
        width: 45px;
        height: 45px;
    }
    
    .team-member-card h4 {
        font-size: 0.9rem;
    }
    
    .team-member-card p {
        font-size: 0.75rem;
    }
    
    /* Adjust social button spacing on very small screens */
    .mobile-social-container {
        bottom: 75px;
        right: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .mobile-social-container.active .social-item.instagram {
        transform: translate(-95px, -20px) scale(1);
    }
    
    .mobile-social-container.active .social-item.facebook {
        transform: translate(-70px, -70px) scale(1);
    }
    
    .mobile-social-container.active .social-item.linkedin {
        transform: translate(-20px, -95px) scale(1);
    }
    
    .mobile-social-container.active .social-item.instagram:hover {
        transform: translate(-95px, -20px) translateY(-5px) scale(1.05);
    }
    
    .mobile-social-container.active .social-item.facebook:hover {
        transform: translate(-70px, -70px) translateY(-5px) scale(1.05);
    }
    
    .mobile-social-container.active .social-item.linkedin:hover {
        transform: translate(-20px, -95px) translateY(-5px) scale(1.05);
    }
    
    body.orange-3d-theme .mobile-social-container.active .social-item.instagram:hover {
        transform: translate(-95px, -20px) translateY(-10px) rotateX(5deg) scale(1.05);
    }
    
    body.orange-3d-theme .mobile-social-container.active .social-item.facebook:hover {
        transform: translate(-70px, -70px) translateY(-10px) rotateX(5deg) scale(1.05);
    }
    
    body.orange-3d-theme .mobile-social-container.active .social-item.linkedin:hover {
        transform: translate(-20px, -95px) translateY(-10px) rotateX(5deg) scale(1.05);
    }
}

/* Events Timeline Section */
.events-timeline {
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

body.orange-3d-theme .timeline::after {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

body.orange-3d-theme .timeline-item::after {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    /* Performance optimizations */
    contain: layout style paint;
    will-change: opacity;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

body.orange-3d-theme .timeline-img {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1) 25%, rgba(255, 107, 53, 0.2) 50%, rgba(255, 107, 53, 0.1) 75%);
    background-size: 200% 100%;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    display: block;
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Compression hints */
    image-resolution: 72dpi;
    /* Better compression */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.timeline-img img.loaded {
    opacity: 1;
}

.timeline-img.loaded {
    animation: none;
    background: transparent;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.timeline-item:hover .timeline-img img {
    transform: scale(1);
}

.timeline-content {
    padding: 30px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.orange-3d-theme .timeline-content {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 5px 4px rgba(121, 92, 250, 0.5);

}

body.orange-3d-theme .timeline-item:hover .timeline-content {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.5);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

body.orange-3d-theme .timeline-date {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF6B35;
    margin-bottom: 15px;
    text-shadow: none;
}

body.orange-3d-theme .timeline-content h3 {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.timeline-content p {
    color: white;
    margin-bottom: 20px;
    flex-grow: 1;
    text-shadow: none;
}

body.orange-3d-theme .timeline-content p {
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Blog Preview Section */
.blog-preview {
    background-color: var(--light-color);
    padding: var(--section-padding);
}

body.orange-3d-theme .blog-preview {
    background-color: rgba(255, 107, 53, 0.05);
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    flex: 0 1 calc(33.333% - 30px);
    max-width: 380px;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }

body.orange-3d-theme .blog-card {
    background-color: rgba(255, 107, 53, 0.1);
    border: (--border-color);
    box-shadow: var(--shadow-);

}

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

body.orange-33d-theme .blog-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.5);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height:100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 1;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding:25px;
}

.blog-date {
    display:inline-block;
    padding:5px 15px;
    background-color: var(--primary-color);
    color:white;
    border-radius:20px;
    font-size:0.9rem;
    font-weight:500;
    margin-bottom:15px;
}

body.orange-3d-theme .blog-date {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.blog-content h3 {
    font-size:1.3rem;
    font-weight:600;
    color: var(--primary-color);
    margin-bottom:15px;
}

body.orange-3d-theme .blog-content h3 {
    color: var(--secondary-color);
}

.blog-content p {
    color: var(--text-color);
    margin-bottom:20px;
}

/* Resources Section */
.resources-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.resource-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation-fill-mode: both;
    flex: 0 1 calc(25% - 30px);
    max-width: 300px;
}

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }

body.orange-3d-theme .resource-card {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

.resource-card:hover {
    transform: translateY(-5px);
    animation: pulse 1.5s infinite;
}

body.orange-3d-theme .resource-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.resource-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

body.orange-3d-theme .resource-icon {
    color: var(--secondary-color);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
}

body.orange-3d-theme .resource-card:hover .resource-icon {
    transform: scale(1.2) rotateY(10deg);
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

body.orange-3d-theme .resource-card h3 {
    color: var(--secondary-color);
}

.resource-card p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.resource-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

body.orange-3d-theme .resource-link {
    color: var(--accent-color);
}

.resource-link:hover {
    gap: 10px;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    animation: slideInLeft 0.8s ease-out;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

body.orange-3d-theme .contact-info h3 {
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-color);
}

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

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

body.orange-3d-theme .contact-icon {
    color: var(--accent-color);
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

body.orange-3d-theme .contact-text h4 {
    color: var(--secondary-color);
}

.contact-text p {
    margin: 0;
    color: var(--text-light);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: slideInRight 0.8s ease-out;
}

body.orange-3d-theme .contact-form {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-3d);
}

.contact-form:hover {
    transform: translateY(-5px);
}

body.orange-3d-theme .contact-form:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

body.orange-3d-theme .contact-form h3 {
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.orange-3d-theme .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 98, 155, 0.1);
    outline: none;
}

body.orange-3d-theme .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

body.orange-3d-theme .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Form message styling */
.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #00629B 50%, #f8f9fa 100%);
    color: var(--footer-text);
    padding: 50px 0 20px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

body.orange-3d-theme footer {
    background: linear-gradient(135deg, #0D0D0D 0%, #FF6B35 50%, #F7931E 100%);
}

body.orange-3d-theme footer {
    background: linear-gradient(135deg, #000000 0%, #FF6B35 50%, #0A0A0A 100%);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

body.orange-3d-theme .footer-social a {
    background-color: rgba(255, 107, 53, 0.2);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.orange-3d-theme .footer-links h4 {
    color: var(--secondary-color);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

body.orange-3d-theme .footer-links h4::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

body.orange-3d-theme .footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.orange-3d-theme .footer-contact h4 {
    color: var(--secondary-color);
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

body.orange-3d-theme .footer-contact h4::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info-item i {
    color: var(--secondary-color);
    margin-top: 5px;
}

body.orange-3d-theme .contact-info-item i {
    color: var(--accent-color);
}

.contact-info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-credits {
    font-size: 0.85rem !important;
    opacity: 0.8;
    margin-top: 10px !important;
}

.footer-credits strong {
    color: var(--primary-color);
    font-weight: 600;
}

body.orange-3d-theme .footer-credits strong {
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
}

body.orange-3d-theme .back-to-top {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

body.orange-3d-theme .back-to-top:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
}

/* 3D Floating Elements - Removed for better performance */
.floating-element {
    display: none !important;
}

/* Modal Styles */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.event-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
    position: relative;
}

body.orange-3d-theme .modal-content {
    background-color: rgba(13, 13, 13, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.orange-3d-theme .modal-header {
    border-color: rgba(255, 107, 53, 0.3);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

body.orange-3d-theme .modal-title {
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

body.orange-3d-theme .modal-close {
    color: rgba(255, 255, 255, 0.7);
}

body.orange-3d-theme .modal-close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

.modal-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 98, 155, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1000;
}

body.orange-3d-theme .modal-nav-btn {
    background: rgba(255, 107, 53, 0.8);
}

.modal-nav-btn:hover {
    background: rgba(0, 98, 155, 1);
    transform: translateY(-50%) scale(1.1);
}

body.orange-3d-theme .modal-nav-btn:hover {
    background: rgba(255, 107, 53, 1);
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

.modal-image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

body.orange-3d-theme .modal-nav-btn {
    background: rgba(255, 107, 53, 0.8);
}

body.orange-3d-theme .modal-nav-btn:hover {
    background: rgba(255, 107, 53, 1);
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.modal-meta-item i {
    color: var(--secondary-color);
}

body.orange-3d-theme .modal-meta-item i {
    color: var(--accent-color);
}

.modal-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-color);
}

.modal-details {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

body.orange-3d-theme .modal-details {
    background-color: rgba(255, 107, 53, 0.1);
}

.modal-details h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

body.orange-3d-theme .modal-details h4 {
    color: var(--secondary-color);
}

.modal-details ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.modal-details li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

body.orange-3d-theme .modal-footer {
    border-color: rgba(255, 107, 53, 0.3);
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn-close {
    background-color: #333333;
    color: #ffffff;
}

.modal-btn-close:hover {
    background-color: #222222;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .featured-event {
        flex-direction: column;
    }
    
    .featured-event-image {
        min-height: 250px;
    }
    
    .event-card, .team-member {
        flex: 0 1 calc(50% - 20px);
    }
    
    .resource-card {
        flex: 0 1 calc(50% - 30px);
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 60px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
}

/* Mobile Social Media Sidebar */
.mobile-social-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: none;
}

.mobile-social-sidebar.active {
    right: 0;
}

body.orange-3d-theme .mobile-social-sidebar {
    background: var(--card-bg);
    box-shadow: -5px 0 15px rgba(255, 107, 53, 0.2);
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.2rem;
}

body.orange-3d-theme .sidebar-header h4 {
    color: var(--text-color);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: var(--primary-color);
    color: white;
}

body.orange-3d-theme .sidebar-close {
    color: var(--text-color);
}

body.orange-3d-theme .sidebar-close:hover {
    background: var(--accent-color);
}

.sidebar-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(0, 98, 155, 0.05);
}

.sidebar-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

body.orange-3d-theme .sidebar-social a {
    color: var(--text-color);
    background: rgba(255, 107, 53, 0.05);
}

body.orange-3d-theme .sidebar-social a:hover {
    background: var(--accent-color);
}

.sidebar-social a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-social a span {
    font-weight: 500;
}

/* Mobile Social Media Container */
.mobile-social-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    display: none;
}

.mobile-social-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

body.orange-3d-theme .mobile-social-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.mobile-social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.orange-3d-theme .mobile-social-btn:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
}

.mobile-social-btn.active {
    transform: rotate(45deg);
}

.mobile-social-btn.active:hover {
    transform: rotate(45deg) translateY(-5px);
}

body.orange-3d-theme .mobile-social-btn.active:hover {
    transform: rotate(45deg) translateY(-10px) rotateX(5deg);
}

.mobile-social-btn.active #socialIcon {
    transform: rotate(-45deg);
}

/* Social Menu */
.social-menu {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
}

.social-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0);
    z-index: 1;
}

body.orange-3d-theme .social-item {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.social-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.orange-3d-theme .social-item:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
}

/* Animation for expanded state - Circular arrangement with spacing */
.mobile-social-container.active .social-item {
    opacity: 1;
    transform: scale(1);
}

.mobile-social-container.active .social-item.instagram {
    transform: translate(-110px, -25px) scale(1);
}

.mobile-social-container.active .social-item.facebook {
    transform: translate(-80px, -80px) scale(1);
}

.mobile-social-container.active .social-item.linkedin {
    transform: translate(-25px, -110px) scale(1);
}

/* Hover states for expanded items */
.mobile-social-container.active .social-item.instagram:hover {
    transform: translate(-110px, -25px) translateY(-5px) scale(1.05);
}

.mobile-social-container.active .social-item.facebook:hover {
    transform: translate(-80px, -80px) translateY(-5px) scale(1.05);
}

.mobile-social-container.active .social-item.linkedin:hover {
    transform: translate(-25px, -110px) translateY(-5px) scale(1.05);
}

body.orange-3d-theme .mobile-social-container.active .social-item.instagram:hover {
    transform: translate(-110px, -25px) translateY(-10px) rotateX(5deg) scale(1.05);
}

body.orange-3d-theme .mobile-social-container.active .social-item.facebook:hover {
    transform: translate(-80px, -80px) translateY(-10px) rotateX(5deg) scale(1.05);
}

body.orange-3d-theme .mobile-social-container.active .social-item.linkedin:hover {
    transform: translate(-25px, -110px) translateY(-10px) rotateX(5deg) scale(1.05);
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand img {
        max-width: 140px;
    }
    
    .navbar-social {
        display: none;
    }
    
    .mobile-social-sidebar {
        display: block;
    }
    
    .mobile-social-container {
        display: block;
    }
    
    /* Hide social media button in hero section */
    .hero-section .mobile-social-container {
        display: none !important;
    }
    
    .navbar-nav {
        padding: 15px 0;
        background: var(--bg-color);
        border-radius: 10px;
        margin-top: 10px;
    }
    
    body.orange-3d-theme .navbar-nav {
        background: var(--card-bg);
    }
    
    .navbar-nav .nav-item {
        margin: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 12px 20px !important;
        margin: 0;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-link i {
        width: 20px;
        text-align: center;
    }
    
    .dropdown-menu {
        min-width: 100%;
        margin-top: 0;
        margin-left: 20px;
        border: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.05);
    }
    
    body.orange-3d-theme .dropdown-menu {
        background: rgba(255, 107, 53, 0.1);
    }
    
    .dropdown-item {
        padding: 10px 20px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .dropdown-item i {
        width: 20px;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .navbar-toggler {
        border: 2px solid var(--primary-color);
        padding: 5px 10px;
    }
    
    body.orange-3d-theme .navbar-toggler {
        border-color: var(--secondary-color);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 98, 155, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    body.orange-3d-theme .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 107, 53, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Improve touch targets */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Center all button text on mobile */
    .btn-primary, .btn, .btn-3d {
        text-align: center;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 40px 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 20px;
        padding-top: 80px;
        animation: backgroundMove 25s ease-in-out infinite;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        animation: typing 1.2s steps(12, end), blink-caret 0.75s step-end infinite;
        animation-fill-mode: forwards;
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 90%;
        line-height: 1.5;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .event-card, .team-member, .resource-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .blog-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .team-leader-card {
        max-width: 100%;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
        margin-bottom: 70px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero {
        animation: backgroundMove 30s ease-in-out infinite;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        /* Adjust animation for smaller mobile */
        animation: typing 1s steps(10, end), blink-caret 0.75s step-end infinite;
        animation-fill-mode: forwards;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 95%;
        line-height: 1.4;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .team-members {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .resources-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 40px;
        padding-right: 10px;
        margin-bottom: 80px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item::after {
        left: 9px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 9px;
    }
    
    .modal-content {
        width: 98%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-image-counter {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
