/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Prevent horizontal overflow globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 0px;
    font-size: larger;
    overflow-x: hidden;
}
/* Unified 3D Background for all sections after slideshow */
#about, #why-join, #opportunities, #contact-us {
    background: linear-gradient(135deg, #1a3a5f 0%, #295b78 50%, #1a3a5f 100%);
    position: relative;
}

/* 3D Depth Effect with subtle patterns */
#about::before, #why-join::before, #opportunities::before, #contact-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.05) 0%, transparent 20%),
        linear-gradient(135deg, transparent 0%, rgba(42, 157, 244, 0.03) 100%);
    z-index: 0;
}
/* ===== LAYOUT & SECTIONS ===== */
/* Page Sections Base Styles */
.section {
    padding: 80px 10%;
    min-height: 100vh;
    scroll-margin-top: 50px;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, #F2C94C, #F2994A);
    box-shadow: 0 0 10px rgba(242, 201, 76, 0.5);
}

.section p {
    font-size: 1.1rem;
    line-height: 1.2;
    color: #ffffff;
    max-width: 800px;
    z-index: 1;
}

/* Section-specific IDs */
#home {
    scroll-margin-top: 120px;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

#about {
    padding: 80px 2%;
}

#why-join {
    padding: 80px 2%;
}

#opportunities {
    padding: 80px 2%;
}

#contact-us {
    padding: 80px 2%;
}

/* ===== COMPONENTS ===== */
/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: 100vw;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}


.logo img {
    height: 50px;
    transition: all 0.4s ease;
    position: relative;
    top: 3px;
}

.nav-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}


.nav-buttons a, .dropbtn {
    padding: 12px 18px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 1.5;
}
.nav-buttons a::before, .dropbtn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F2C94C, #F2994A);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(242, 201, 76, 0.7);
}

.nav-buttons a:hover, 
.dropbtn:hover {
    transform: translateY(-3px);
}

.nav-buttons a:hover::before, 
.dropbtn:hover::before {
    width: 100%;
}

/* Dropdown Menus - ORIGINAL FORMAT */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    top: 100%;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #34495e;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

/* Mobile Menu - ORIGINAL FORMAT */
.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1002;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-button i {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-button.active i {
    color: #ffffff;
}

.mobile-menu-button:hover {
    background: #e0e0e0;
}

.mobile-menu-button:active {
    transform: scale(0.95);
}

/* ===== ENHANCED SLIDESHOW ===== */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 120px 50px 27px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    height: 600px;
}
.slide-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
/* ===== SLIDESHOW ARROW NAVIGATION ===== */
.slideshow-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 15;
    pointer-events: none;
}

.slideshow-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slideshow-arrow:hover:not(:disabled) {
    background: #F2C94C;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.4);
}

.slideshow-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slideshow-arrow:active:not(:disabled) {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.slideshow-arrow-prev {
    margin-left: -10px;
}

.slideshow-arrow-next {
    margin-right: -10px;
}

/* Arrow hover animations */
.slideshow-arrow-prev:hover:not(:disabled) {
    transform: translateX(-5px) scale(1.1);
}

.slideshow-arrow-next:hover:not(:disabled) {
    transform: translateX(5px) scale(1.1);
}



.blurred-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(0px); /* Remove brightness(0) */
    transform: scale(1.1);
    transition: filter 0.8s ease, transform 0.8s ease;
}
.carousel-slide.active .blurred-image {
    filter: blur(0.7px) brightness(1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 20%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}
.slide-content-3d {
    position: absolute;
    top: auto; 
    bottom: 40px; 
    left: 40px; 
    right: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: flex-start; 
    text-align: left; 
    padding: 0;
    z-index: 2;
    transform: translateZ(50px);
}
.slide-content-3d h3 {
    font-size: 2.5rem;
    margin-bottom: 15px; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    max-width: 90%;
}

.description-button-container {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    gap: 20px; /* Space between paragraph and button */
    max-width: 90%;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}
.slide-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    font-style: italic;
    display: inline; /* Make paragraph inline */
}


.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.details-button-3d {
    background: linear-gradient(135deg, #F2C94C 0%, #F2994A 100%);
    color: #2c3e50 !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 10px; 
}

.details-button-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.5);
    color: #2c3e50;
}
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: #F2C94C;
    transform: scale(1.2);
}
/* About Section - Enhanced */
.about-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.about-image {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    align-self: stretch;
    position: relative;
    margin-bottom: -30px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover {
    transform: translateY(-5px) scale(1.02);
    filter: saturate(1.4) contrast(1.2) brightness(1.1);
    animation-duration: 2s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
}
.about-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F2C94C, #F2994A);
    box-shadow: 0 0 10px rgba(242, 201, 76, 0.5);
}

/* Logo Items - Enhanced */
.logo-items-container {
    margin-top: 0;
    padding-top: 20px;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px;
    background: rgba(255,255,255,0.1) !important;
    padding: 10px !important;
    border-radius: 10px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.logo-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.circle-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
}

/* ===== MODIFIED TIMELINE (Why Join Section) - Enhanced ===== */
.skills-timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 20px 0;
    z-index: 1;
}

.skills-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-50%);
}

.timeline{
    position: relative;
    width: 2px;
    background: #ccc;
    margin: 0 auto;
}

/* Timeline items */
.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
}

/* Fixed Timeline Icons - Stay in place */
.timeline-icon {
    position: absolute;
    left: 50%;
    top: 15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #295b78, #1a3a5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.timeline-icon:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.timeline-icon i {
    color: white;
    font-size: 1.5rem;
}

/* Animated Timeline Content - Moves towards fixed icons */
.timeline-content {
    width: 45%;
    padding: 25px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    transition: transform 0.8s ease-out, box-shadow 0.4s ease;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Initial positions for content boxes - further away from center */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
    transform: translateX(100px);
    opacity: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
    transform: translateX(-100px);
    opacity: 0;
}

/* Animated state - move towards center icons */
.timeline-item.animated .timeline-content {
    transform: translateX(0);
    opacity: 1;
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Corner accents */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #F2C94C transparent transparent;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 40px 0 0;
    border-color: #F2C94C transparent transparent transparent;
    z-index: 1;
}

/* Opportunities Section - Enhanced */
.opportunities-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    z-index: 1;
}

.opportunity-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 25px 20px;
    margin: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.opportunity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.opportunity-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.opportunity-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

.opportunity-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0 15px 15px;
    font-weight: 600;
}

#opportunities p {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 15px 0;
    padding: 0 15px;
}

/* Contact Section - Enhanced */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 0;
    gap: 50px;
    z-index: 1;
}

.contact-image {
    width: 45%;
    transition: transform 0.5s ease;
}

.contact-image:hover {
    transform: scale(1.03);
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transform: translateY(0px);
}
.social-icons-right {
    width: 45%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.social-icon i {
    font-size: 2.5rem;
    min-width: 0px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Footer - Enhanced */
footer {
    background: linear-gradient(135deg, #1a3a5f 0%, #2c3e50 100%);
    color: #ecf0f1;
    padding-top: 50px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 20%);
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-logo p {
    max-width: 400px;
    line-height: 1.7;
}

.footer-links, .footer-contact {
    min-width: 200px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #F2C94C, #F2994A);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F2C94C;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #F2C94C;
    padding-right: 5px;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-contact ul {
    list-style: none;
    margin-bottom: 20px;
}

.footer-contact li {
    margin-bottom: 15px;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #F2C94C;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(242, 201, 76, 0.4);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #bdc3c7;
    position: relative;
    z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0px;
    position: relative;
    padding-bottom: 0px;
    z-index: 1;
}

h4 {
    color: #ffffff;
    z-index: 1;
}

/* ===== ANIMATIONS & KEYFRAMES ===== */
/* Base Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Animations - Enhanced but keeping original format */
.nav-buttons a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #F2C94C;
    transition: width 0.3s ease;
}

.dropbtn:hover{
    border-color: #F2C94C;
    transform: translateY(-3px);
    box-shadow: 0 0 75px rgba(242, 201, 76, 0.5);
}

.nav-buttons a:hover::after, .dropbtn:hover::after {
    width: 100%;
}


/* About Section Animations - Enhanced */
.about-image {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.about-content {
    animation: fadeInRight 1s ease-out 0.6s both;
}

.logo-item {
    animation: fadeInUp 0.8s ease-out both;
}

.logo-item:nth-child(1) { animation-delay: 0.8s; }
.logo-item:nth-child(2) { animation-delay: 1s; }

.circle-logo:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(242, 201, 76, 0.5);
}

/* ===== MODIFIED TIMELINE ANIMATIONS - Enhanced ===== */
.timeline-content {
    transition: transform 0.8s ease-out, box-shadow 0.4s ease, opacity 0.8s ease-out;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Opportunities Animations - Enhanced */
.opportunity-item {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s ease-out;
}

.opportunity-item.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.opportunity-item:hover .opportunity-logo {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #F2C94C;
}

.opportunity-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Contact Animations - Enhanced */
.contact-image {
    animation: fadeInLeft 3s ease-out 0.3s both;
}

.social-icon {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease-out;
}

.social-icon:nth-child(1) { transition-delay: 0.1s; }
.social-icon:nth-child(2) { transition-delay: 0.2s; }
.social-icon:nth-child(3) { transition-delay: 0.3s; }
.social-icon:nth-child(4) { transition-delay: 0.4s; }

.social-icon.animated {
    opacity: 1;
    transform: translateX(0);
}

.social-icon:hover i {
    transform: scale(1.3);
}


/* ===== RESPONSIVE DESIGN ===== */
/* Tablet and Mobile Menu */
@media (max-width: 992px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        box-sizing: border-box;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
        box-sizing: border-box;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    
}
/* ===== CAST BUTTON STYLES (Refined) ===== */
.cast-button {
    background: linear-gradient(135deg, #F2C94C 0%, #F2994A 100%);
    color: #2c3e50 !important;
    padding: 6px 10px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 5px rgba(242, 201, 76, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cast-button img {
    width: 22px;
    height: auto;
    display: block;
    margin-bottom: 2px;
}

.cast-button::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: left 0.5s ease;
}

.cast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #f2c94c80;
    color: #2c3e50;
}

.cast-button:hover::before {
    left: 100%;
}

.cast-button:active {
    transform: translateY(0);
}

/* ===== CAST BUTTON - MOBILE FIX (LOGO NEXT TO TEXT) ===== */
@media (max-width: 992px) {
    .nav-buttons .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }

    /* اللوغو */
    .nav-buttons .cast-button img {
        width: 26px;
        height: auto;
        filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
        margin-left: 8px;
    }

    /* عند التمرير عليه */
    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
}
/* ===== TABLET & IPAD SPECIFIC STYLES ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navigation adjustments for tablet */
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
   
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .nav-buttons .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }
  /* اللوغو */
  .nav-buttons .cast-button img {
    width: 26px;
    height: auto;
    filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
    margin-left: 8px;
}
 /* عند التمرير عليه */
 .nav-buttons .cast-button:hover {
    background: rgba(58, 16, 113, 0.3);
    transform: none;
    box-shadow: none;
}
.nav-buttons.active {
    transform: translateX(0);
}
    

.nav-buttons a, .dropbtn {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: white;
    background: rgba(58, 16, 113, 0.1);
    font-size: 18px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

   
.nav-buttons a:hover, 
.dropbtn:hover {
    background: rgba(58, 16, 113, 0.3);
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    position: static;
    display: none;
    width: 100%;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border-radius: 0;
}
    
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 15px 20px 15px 40px;
    color: #e0e0e0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown > .dropbtn::after {
    content: '▼';
    float: right;
    font-size: 12px;
    transition: transform 0.3s;
}
.dropdown.active > .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown:not(.active) .dropdown-content {
    display: none !important;
}

.navbar {
    padding: 10px 20px;
}

.nav-buttons {
    gap: 10px;
}

.nav-buttons a, .dropbtn {
    padding: 10px 12px;
    font-size: 0.9rem;
}
/* Contact Section */
.contact-container {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.contact-image {
    width: 100%;
    max-width: 300px;
    padding: 0;
    margin-bottom: 0px;
}

.social-icons-right {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
}

.social-icon {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 10px;
    box-sizing: border-box;
}

.social-icon i {
    font-size: 3rem;
    margin-bottom: 1px;
}

.social-icon span {
    font-size: 1.3rem;
    display: contents;
    width: 10%;
}
}

/* ===== LANDSCAPE TABLET SPECIFIC STYLES ===== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    /* Adjust heights for landscape tablets */
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    .nav-buttons .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }
    /* اللوغو */
    .nav-buttons .cast-button img {
        width: 26px;
        height: auto;
        filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
        margin-left: 8px;
    }

    /* عند التمرير عليه */
    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .nav-buttons.active {
        transform: translateX(0);
    }
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
        box-sizing: border-box;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }

    .logo img {
        height: 40px;
    }
    /* Contact Section */
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-image {
        width: 100%;
        max-width: 300px;
        padding: 0;
        margin-bottom: 0px;
    }
    
    .social-icons-right {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .social-icon {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8px 10px;
        box-sizing: border-box;
    }
    
    .social-icon i {
        font-size: 3rem;
        margin-bottom: 1px;
    }
    
    .social-icon span {
        font-size: 1.3rem;
        display: contents;
        width: 10%;
    }
}

/* ===== SPECIFIC IPAD PRO ADJUSTMENTS ===== */
@media (min-width: 1024px) and (max-width: 1366px) {
    /* Slightly larger adjustments for iPad Pro */
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 20px 20px;
        flex-wrap: wrap;
    }
    .nav-buttons  {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        box-sizing: border-box;
    }
     .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }
   /* اللوغو */
   .cast-button img {
    width: 26px;
    height: auto;
    filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
    margin-left: 800px;
}
.cast-button::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: left 0.5s ease;
}
    
.cast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #f2c94c80;
    color: #2c3e50;
}

.cast-button:hover::before {
    left: 100%;
}

.cast-button:active {
    transform: translateY(0);
}

.nav-buttons.active {
    transform: translateX(0);
}
    
.nav-buttons a, .dropbtn {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: white;
    background: rgba(58, 16, 113, 0.1);
    font-size: 18px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.nav-buttons a:hover, 
.dropbtn:hover {
    background: rgba(58, 16, 113, 0.3);
}
    
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    position: static;
    display: none;
    width: 100%;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border-radius: 0;
}

.dropdown.active .dropdown-content {
    display: block;
}
    
.dropdown-content a {
    padding: 15px 20px 15px 40px;
    color: #e0e0e0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown > .dropbtn::after {
    content: '▼';
    float: right;
    font-size: 12px;
    transition: transform 0.3s;
}
    
.dropdown.active > .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown:not(.active) .dropdown-content {
    display: none !important;
}
.contact-container {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}
/* Contact Section */
.contact-container {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.contact-image {
    width: 100%;
    max-width: 300px;
    padding: 0;
    margin-bottom: 0px;
}

.social-icons-right {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
}

.social-icon {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 10px;
    box-sizing: border-box;
}

.social-icon i {
    font-size: 3rem;
    margin-bottom: 1px;
}

.social-icon span {
    font-size: 1.3rem;
    display: contents;
    width: 10%;
}
}

/* ===== TABLET FONT SIZE OPTIMIZATIONS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Base font size adjustment for better readability on tablets */
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }

    /* اللوغو */
    .nav-buttons .cast-button img {
        width: 26px;
        height: auto;
        filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
        margin-left: 8px;
    }



    /* عند التمرير عليه */
    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
        box-sizing: border-box;
    }

    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }


    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }

   

    
}
/* ===== TABLET DROPDOWN OPTIMIZATIONS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 20px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        box-sizing: border-box;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
        box-sizing: border-box;
    }
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
}
/* ===== MEDIUM SCREENS OPTIMIZATION ===== */
@media (min-width: 1025px) and (max-width: 1200px) {
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        box-sizing: border-box;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
        box-sizing: border-box;
    }
   
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
     
.dropdown > .dropbtn::after {
    content: '▼';
    float: right;
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown.active > .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown:not(.active) .dropdown-content {
    display: none !important;
}
}

/* ===== 1024PX SPECIFIC STYLES ===== */
@media (max-width: 1024px) and (min-width: 1025px) {
    /* About Section - Full width paragraphs at 1024px */
    #about .about-container {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    #about .about-image {
        width: 100%;
        max-width: 100vw;
        margin: 0 0 30px 0;
        border-radius: 0;
    }
    
    #about .about-content {
        width: 100%;
        max-width: 100vw;
        padding: 0;
        margin: 0;
    }
    
    #about .main-paragraph {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    /* Ensure the paragraphs span full width */
    #about .about-content h3,
    #about .about-content p {
        width: 100%;
        max-width: 100%;
    }
    
    /* Logo items adjustment for 1024px */
    #about .logo-item {
        width: 100%;
        justify-content: flex-start;
    }
    
}
/* ===== LANDSCAPE TABLET OPTIMIZATION ===== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        box-sizing: border-box;
    }
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
        box-sizing: border-box;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    .logo img {
        height: 40px;
    }
}
@media (max-width: 1024px) {
    .modal-image-container {
        height: 450px;
    }
}

@media (max-width: 1280px) {
    .nav-buttons .cast-button {
        background: none;
        background-color: rgb(58, 16, 113, 0.1);
        color: #ffffff !important;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row;
    }

    .nav-buttons .cast-button img {
        width: 26px !important;
        height: auto !important;
        filter: brightness(0) invert(1) !important;
        margin-left: 8px !important;
    }
    

    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    
}
/* ===== RESPONSIVE DESIGN ===== */
/* Tablet and Mobile Menu - ORIGINAL FORMAT */
@media (max-width: 992px) {
    .slide-content h3 {
        font-size: 1.5rem;
    }
    
    .slide-description {
        max-width: 90%;
    }
}

/* Mobile Devices - UPDATED FOR BORDERLESS SLIDESHOW */
@media (max-width: 768px) {
    /* Remove any potential horizontal overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Ensure navbar doesn't interfere */
    .navbar {
        padding: 10px 15px;
    }
    
    /* About Section */
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    .about-content h3::after {
        content: '';
        position: absolute;
        bottom:-10px;
        left: 40%;
        width: 70px;
        height: 3px;
        background: linear-gradient(90deg, #F2C94C, #F2994A);
        box-shadow: 0 0 10px rgba(242, 201, 76, 0.5);
    }
    

    .about-image {
        width: 200px;
        height: auto;
        margin: 0 auto 10px;
        object-fit: cover;
        border-radius: 8px;
    }

    .about-content {
        width: 100%;
        gap: 20px;
        text-align: center;
    }

    .logo-items-container {
        align-items: center;
    }

    .logo-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-text {
        font-size: 1rem;
    }
    
    /* Why Join Section - Mobile Timeline */
    .skills-timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 70px;
        padding-right: 15px;
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .timeline-icon {
        left: 5px;
        transform: translateX(0);
    }
    .timeline-icon:hover{
        transform: scale(1.3); 
    }

    .timeline-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px;
        position: relative;
        text-align: left;
        transform: translateX(100px);
        opacity: 0;
        transition: transform 0.8s ease-out,opacity 0.8s ease-in-out;
        box-sizing: border-box;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        transform: translateX(100px);
        opacity: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        transform: translateX(100px);
        opacity: 0;
    }
    .timeline-item.animated .timeline-content{
        transform: translateX(0);
        opacity: 1;
    }

    .timeline-item .timeline-content::before {
        content: '';
        position: absolute;
        top: 20px;
        right: -10px;
        border-style: solid;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent #f4b400;
        display: block;
    }
    
    /* Opportunities Section */
    .opportunities-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .opportunity-item {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .opportunity-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .opportunity-item h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    #opportunities p {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-image {
        width: 100%;
        max-width: 300px;
        padding: 0;
        margin-bottom: 0px;
    }
    
    .social-icons-right {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 0 10px;
    }
    
    .social-icon {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8px 10px;
        box-sizing: border-box;
    }
    
    .social-icon i {
        font-size: 3rem;
        margin-bottom: 1px;
    }
    
    .social-icon span {
        font-size: 1.3rem;
        display: contents;
        width: 10%;
    }
    
    /* ===== SLIDESHOW SECTION - MOBILE (BORDERLESS) ===== */
    /* Remove padding and margins from #home section */
    #home {
        padding: 0;
        margin: 0;
        width: 100vw;
        overflow: hidden;
    }
    
    /* Slideshow Container - Borderless */
    .slideshow-container {
        margin: 100px 0 20px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 500px;
        width: 100vw;
        position: relative;
        left: 0;
        right: 0;
    }
    
    .slideshow-arrows {
        padding: 0 5px;
    }
    
    .slideshow-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slideshow-arrow-prev {
        margin-left: 0;
    }
    
    .slideshow-arrow-next {
        margin-right: 0;
    }
    
    .carousel-slide {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        border-radius: 0 !important;
    }
    
    .blurred-image {
        width: 100vw;
        height: 100%;
        object-fit: cover;
        filter: blur(0.7px);
    }
    
    .carousel-slide.active .blurred-image {
        filter: blur(0.7px) brightness(1);
    }
    
    /* Adjust slide content positioning */
    .slide-content-3d {
        bottom: 20px;
        left: 15px;
        right: 15px;
    }
    
    .slide-content-3d h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .description-button-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .details-button-3d {
        margin-left: 0;
        align-self: flex-start;
    }
    
    /* Adjust carousel navigation dots */
    .carousel-nav {
        bottom: 10px;
    }
    
    .bg-cube {
        display: none; /* Hide 3D cubes on mobile for performance */
    }
    .bg-cube:nth-child(1),
    .bg-cube:nth-child(2) {
        display: block;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .slide-content-3d h3 {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide-content-3d {
        padding: 20px 15px;
    }
    
    .slideshow-container {
        height: 400px;
        margin: 100px 0 15px !important;
    }
    
    .slideshow-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .details-button-3d {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* ===== EVENT MODAL STYLES ===== */
.event-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    max-width: 1000px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 60px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    text-shadow: 0 2px 4px #000000;
    background: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.modal-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.modal-image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.event-date {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.modal-details-container {
    padding: 0 15px;
}

.modal-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}
.event-category.meeting {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}
.event-category.Competition {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}
.event-category.conference {
    background: rgba(155, 89, 182, 0.15);
    color: #8e44ad;
}
.event-category.initiative {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}
.event-category.AnnualGalaDinner {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}
/* Modal Animations */
@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Modal Styles */
@media (max-width: 992px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    .event-date {
        color: #e74c3c;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    .event-category.meeting {
        background: rgba(52, 152, 219, 0.15);
        color: #2980b9;
    }
    .event-category.Competition {
        background: rgba(52, 152, 219, 0.15);
        color: #2980b9;
    }
    .event-category.conference {
        background: rgba(155, 89, 182, 0.15);
        color: #8e44ad;
    }
    .event-category.initiative {
        background: rgba(46, 204, 113, 0.15);
        color: #27ae60;
    }
    .event-category.AnnualGalaDinner {
        background: rgba(241, 196, 15, 0.15);
        color: #f39c12;
    }
    .modal-image-container {
        height: 400px;
    }
    
    .close-modal {
        top: 0px;
        right: 0px;
        color: #333;
        width: 10px;
        height: 10px;
        font-size: 70px;
        display: flex;
        font-weight: bold;
        align-items: center;
        justify-content: center;
        text-shadow: none;
    }
}

@media (max-width: 768px) {
   
    .event-date {
        color: #e74c3c;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .modal-image-container {
        height: 250px;
    }
    .event-category.meeting {
        background: rgba(52, 152, 219, 0.15);
        color: #2980b9;
    }
    .event-category.Competition {
        background: rgba(52, 152, 219, 0.15);
        color: #2980b9;
    }
    .event-category.conference {
        background: rgba(155, 89, 182, 0.15);
        color: #8e44ad;
    }
    .event-category.initiative {
        background: rgba(46, 204, 113, 0.15);
        color: #27ae60;
    }
    .event-category.AnnualGalaDinner {
        background: rgba(241, 196, 15, 0.15);
        color: #f39c12;
    }
    .close-modal {
        top: 1px;
        right: 1px;
        font-size: 50px;
        width: 30px;
        height: 30px;
        font-weight: bold;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 15px 15px;
        position: relative;
    }
    .modal-image-container {
        height: 300px;
        margin-top: 25px;
    }
  /* Add these event category styles to home.css */
.event-category.meeting {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}
.event-category.Competition {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}
.event-category.conference {
    background: rgba(155, 89, 182, 0.15);
    color: #8e44ad;
}
.event-category.initiative {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}
.event-category.AnnualGalaDinner {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}
    .event-date {
        color: #e74c3c;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .close-modal {
        top: 9px;
        right: 0px;
        color: #333;
        width: 30px;
        height: 10px;
        font-size: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-shadow: none;
        font-weight: bold;
    }
    
    .close-modal:hover {
        background: #f1f1f1;
        color: #000;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
}





/* ===== GALLERY CAROUSEL WITH ARROWS & COUNTER ===== */
.gallery-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-carousel-slide.active {
    opacity: 1;
}

.gallery-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation */
.gallery-carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.gallery-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.gallery-arrow:hover {
    background: #F2C94C;
    transform: scale(1.1);
}

.gallery-counter {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* ===== MODAL CAROUSEL WITH ARROWS & COUNTER ===== */
.modal-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-carousel-slide.active {
    opacity: 1;
}

.modal-carousel-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Modal Navigation */
.modal-carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.modal-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.modal-arrow:hover {
    background: #F2C94C;
    transform: scale(1.1);
}

.modal-counter {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Ensure the modal image container maintains aspect ratio */
.modal-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-carousel-nav {
        gap: 10px;
    }
    
    .gallery-arrow {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .gallery-counter {
        font-size: 0.8rem;
        padding: 3px 10px;
        min-width: 45px;
    }
    
    .modal-carousel-nav {
        gap: 15px;
    }
    
    .modal-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .modal-counter {
        font-size: 0.9rem;
        padding: 5px 12px;
    }
    .modal-content {
        margin: 15% auto;
    }
    
    .modal-image-container {
        height: 350px;
    }
    
    .close-modal {
        top: 1px;
        right: 1px;
        font-size: 50px;
        width: 30px;
        height: 30px;
        font-weight: bold;
    }
}
/* Add to home.css */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #F2C94C;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}