/* BIBA Website Redesign - Modern Color Scheme & Typography */

/* CSS Variables for New Color Scheme */
:root {
    /* Primary Colors */
    --deep-purple: #6B46C1;
    --vibrant-teal: #14B8A6;
    --coral-pink: #FB7185;
    --slate-gray: #1E293B;
    --soft-white: #F8FAFC;
    
    /* Gradient Combinations */
    --hero-gradient: linear-gradient(135deg, var(--deep-purple) 0%, var(--vibrant-teal) 100%);
    --card-gradient: linear-gradient(135deg, var(--vibrant-teal) 0%, var(--deep-purple) 100%);
    --button-gradient: linear-gradient(135deg, var(--coral-pink) 0%, var(--deep-purple) 100%);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* Spacing & Effects */
    --border-radius: 24px;
    --card-shadow: 0 8px 32px rgba(107, 70, 193, 0.15);
    --glassmorphism: backdrop-filter: blur(10px);
    
    /* Standardized Spacing System */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 3rem;    /* 48px */
    --spacing-2xl: 4rem;   /* 64px */
    --spacing-3xl: 5rem;   /* 80px */
    --spacing-4xl: 6rem;   /* 96px */
    
    /* Section Spacing */
    --section-padding: var(--spacing-3xl); /* 80px */
    --section-margin: var(--spacing-2xl);   /* 64px */
    --container-padding: var(--spacing-md); /* 24px */
    
    /* Component Spacing */
    --component-gap: var(--spacing-lg);     /* 32px */
    --card-padding: var(--spacing-lg);      /* 32px */
    --text-margin: var(--spacing-md);       /* 24px */
}

/* Global Typography Updates */
body {
    font-family: var(--font-body);
    color: var(--soft-white);
    background-color: var(--slate-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: var(--text-margin);
}

p {
    margin-top: 0;
    margin-bottom: var(--text-margin);
}

/* Standardized Container */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

/* Standardized Section Spacing */
section {
    padding: var(--section-padding) 0;
}

/* Standardized Section Headers */
.section-bubble {
    background: var(--card-gradient);
    color: var(--soft-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--section-margin);
}

/* Hero Section Updates */
.main {
    position: relative;
    background: var(--hero-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
    opacity: 0.8;
    z-index: 1;
}

.main-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.main-title {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    max-width: 300px;
    margin: 0 auto var(--spacing-lg);
}

.main-subtitle {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Header Updates */
.header-logo img {
    filter: brightness(0) invert(1);
}

#mobileMenu {
    background: var(--slate-gray);
    border: 1px solid var(--vibrant-teal);
}

#mobileMenu a {
    color: var(--soft-white);
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

#mobileMenu a:hover {
    color: var(--vibrant-teal);
}

/* About Section Updates */
.about {
    background: linear-gradient(180deg, var(--slate-gray) 0%, #2d3748 100%);
}

.about-bubble {
    background: var(--card-gradient);
    color: var(--soft-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.about-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--vibrant-teal) 0%, var(--soft-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--section-margin);
}

/* Desktop About Grid */
.desktop-about {
    display: block;
}

.mobile-about {
    display: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--component-gap);
    margin-bottom: var(--section-margin);
}

.about-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(107, 70, 193, 0.25);
}

.about-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(107, 70, 193, 0.9) 0%, transparent 100%);
}

.about-card-content {
    padding: var(--card-padding);
    position: relative;
}

.about-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.about-card-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--soft-white);
    opacity: 0.8;
}

.about-card-dots {
    display: flex;
    gap: 8px;
}

.about-card-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--soft-white);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.about-card-dots .dot.active {
    opacity: 1;
    background: var(--vibrant-teal);
    transform: scale(1.2);
}

.about-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: var(--spacing-md);
}

.about-card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--soft-white);
    opacity: 0.9;
}

.about-card-text .highlight {
    color: var(--coral-pink);
    font-weight: 500;
}

/* Mobile About Carousel */
.about-swiper {
    padding: 0 20px;
    margin-bottom: 60px;
}

.about-slide-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.about-slide-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-slide-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(107, 70, 193, 0.9) 0%, transparent 100%);
}

.about-slide-content {
    padding: 25px;
}

.about-slide-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft-white);
    opacity: 0.8;
    display: block;
    margin-bottom: 10px;
}

.about-slide-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: 12px;
}

.about-slide-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--soft-white);
    opacity: 0.9;
}

.about-slide-text .highlight {
    color: var(--coral-pink);
    font-weight: 500;
}

.about-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.about-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--soft-white);
    opacity: 0.5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.about-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--vibrant-teal);
    transform: scale(1.2);
}

/* BIBA Section */
.biba-section {
    margin-top: var(--section-margin);
}

.biba-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--coral-pink) 0%, var(--soft-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.biba-content {
    max-width: 800px;
    margin: 0 auto;
}

.biba-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--soft-white);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    text-align: justify;
}

.biba-text:last-child {
    margin-bottom: 0;
}

/* President Speech Section */
.speech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--component-gap);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.speech-video {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 400px;
}

.speech-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.speech-content {
    padding: var(--spacing-md);
}

.speech-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: var(--spacing-md);
}

.speech-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--soft-white);
    opacity: 0.9;
}

/* Gallery Section Updates */
.galery-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--soft-white);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* Desktop Gallery */
.desktop-gallery {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    scroll-snap-type: x mandatory;
}

.desktop-gallery .galery-photo {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    object-fit: cover;
    scroll-snap-align: center;
}

/* Mobile Gallery Carousel */
.mobile-gallery {
    display: none;
    margin: 0 -5px; /* Extend to edges for larger images */
}

.gallery-row {
    display: flex;
    gap: 12px;
    height: 100%;
}

.gallery-row .galery-photo {
    flex: 1;
    height: 210px; /* 150px + 40% = 210px */
    object-fit: cover;
    border-radius: 14px;
}

.galery-photo {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--card-gradient) border-box;
    cursor: pointer;
}

.galery-photo:hover {
    transform: scale(1.05);
    border-color: var(--vibrant-teal);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

/* Gallery Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--soft-white);
    opacity: 0.5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gallery-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--vibrant-teal);
    transform: scale(1.2);
}

/* Awards Section Updates */
.awards {
    background: linear-gradient(180deg, #2d3748 0%, var(--slate-gray) 100%);
}

.awards-item {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.awards-item:hover {
    transform: translateY(-4px);
}

.awards-item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--soft-white);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.awards-item-text {
    font-family: var(--font-body);
    color: var(--soft-white);
    line-height: 1.6;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(160deg);
    transition: filter 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(140deg) saturate(2);
}

/* Awards Dots */
.awards-item-dots span {
    background: var(--soft-white);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.awards-item-dot__active {
    opacity: 1;
    background: var(--vibrant-teal);
    transform: scale(1.2);
}

/* Apply Now Section Updates */
.apply-now {
    background: linear-gradient(135deg, var(--slate-gray) 0%, #334155 100%);
}

.apply-now-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--soft-white);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.apply-now-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--soft-white);
    opacity: 0.8;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* Apply Form Styles */
.apply-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: var(--spacing-2xl);
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--vibrant-teal);
    border-radius: 2px;
}

.form-section-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--soft-white);
    opacity: 0.7;
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft-white);
    margin-bottom: var(--spacing-sm);
}

.form-group input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--soft-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(248, 250, 252, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: var(--vibrant-teal);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-item {
    position: relative;
}

.category-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.category-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--vibrant-teal);
    transform: translateY(-2px);
}

.category-item input[type="checkbox"]:checked + .category-label {
    background: var(--card-gradient);
    border-color: var(--vibrant-teal);
    box-shadow: 0 4px 16px rgba(107, 70, 193, 0.3);
}

.category-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.category-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft-white);
}

/* Form Submit */
.form-submit {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.apply-form-button {
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--button-gradient);
    color: var(--soft-white);
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(251, 113, 133, 0.3);
    min-width: 200px;
}

.apply-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 113, 133, 0.4);
}

.form-note {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--soft-white);
    opacity: 0.6;
    margin-top: var(--spacing-md);
}

/* Footer Updates */
footer {
    background: var(--slate-gray);
    border-top: 1px solid var(--vibrant-teal);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
}

.footer-logo {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    filter: brightness(0) invert(1);
    max-width: 160px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) sepia(1) hue-rotate(160deg) saturate(2);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-social-link {
    color: var(--soft-white);
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-social-link:hover {
    color: var(--vibrant-teal);
    background: rgba(20, 184, 166, 0.2);
    border-color: var(--vibrant-teal);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(20, 184, 166, 0.2);
    width: 100%;
}

.footer-bottom p {
    color: rgba(248, 250, 252, 0.7);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 0;
}

/* Partners Section Updates */
.companyes-img,
.companyes-mobile-img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.companyes-img:hover,
.companyes-mobile-img:hover {
    opacity: 1;
}

/* Mobile Menu Enhancements */
#mobileMenu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Enhanced Mobile Responsive Design */

/* Mobile First Approach */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 var(--spacing-md);
    }
    
    :root {
        --section-padding: var(--spacing-2xl);
        --section-margin: var(--spacing-xl);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    :root {
        --section-padding: var(--spacing-xl);
        --section-margin: var(--spacing-lg);
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .galery-title,
    .contacts-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-md);
    }
    
    :root {
        --section-padding: var(--spacing-lg);
        --section-margin: var(--spacing-md);
        --container-padding: var(--spacing-sm);
    }
    
    /* Header Mobile Redesign */
    header {
        display: flex !important;
        backdrop-filter: blur(20px);
        background: linear-gradient(135deg, rgba(107, 70, 193, 0.95) 0%, rgba(20, 184, 166, 0.95) 100%);
        border: 2px solid var(--vibrant-teal);
        border-radius: 20px;
        padding: 8px 16px;
        position: fixed;
        top: 10px;
        right: 50%;
        transform: translateX(50%);
        width: 95%;
        max-width: 500px;
        z-index: 1000;
        box-shadow: 0 8px 32px rgba(107, 70, 193, 0.3);
    }
    
    .header-logo img {
        width: 120px !important;
        filter: brightness(0) invert(1);
    }
    
    /* Mobile Menu Button Redesign */
    #mobile-button {
        background: linear-gradient(135deg, var(--coral-pink) 0%, var(--deep-purple) 100%);
        border-radius: 50%;
        border: 2px solid var(--soft-white);
        outline: none;
        cursor: pointer;
        width: 45px;
        height: 45px;
        position: relative;
        z-index: 1001;
        transition: all 0.3s ease;
        box-shadow: 0 4px 16px rgba(251, 113, 133, 0.4);
    }
    
    #mobile-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(251, 113, 133, 0.6);
    }
    
    #mobile-button span {
        background-color: var(--soft-white);
        width: 24px;
        height: 3px;
        border-radius: 3px;
        display: block;
        margin-left: 10.5px;
        transition: all 0.3s ease;
    }
    
    #mobile-menu-top-line {
        margin-bottom: 5px;
    }
    
    #mobile-menu-midle-line {
        margin-bottom: 5px;
    }
    
    /* Mobile Menu Redesign */
    #mobileMenu {
        background: linear-gradient(135deg, var(--slate-gray) 0%, #334155 100%);
        backdrop-filter: blur(20px);
        position: fixed;
        right: 10px;
        top: 80px;
        display: none;
        opacity: 0;
        align-items: center;
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        border-radius: 20px;
        border: 2px solid var(--vibrant-teal);
        box-shadow: 0 12px 40px rgba(107, 70, 193, 0.4);
        min-width: 200px;
    }
    
    #mobileMenu.active {
        display: flex !important;
        opacity: 1;
        animation: mobileMenuSlide 0.4s ease forwards;
    }
    
    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    #mobileMenu a {
        text-decoration: none;
        color: var(--soft-white);
        font-size: 18px;
        font-family: var(--font-heading);
        font-weight: 500;
        text-align: center;
        padding: 12px 24px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid transparent;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    #mobileMenu a:hover {
        color: var(--vibrant-teal);
        background: rgba(20, 184, 166, 0.2);
        border-color: var(--vibrant-teal);
        transform: translateY(-2px);
    }
    
    /* Typography Mobile */
    .about-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .galery-title,
    .contacts-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    /* Cards Mobile */
    .awards-item {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    /* About Section Mobile */
    .about {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .desktop-about {
        display: none;
    }
    
    .mobile-about {
        display: block;
    }
    
    .about-swiper {
        padding: 0 10px;
    }
    
    .about-slide-image {
        height: 160px;
    }
    
    .about-slide-content {
        padding: 20px;
    }
    
    .about-slide-number {
        font-size: 1.3rem;
    }
    
    .about-slide-title {
        font-size: 1.2rem;
    }
    
    .about-slide-text {
        font-size: 0.9rem;
    }
    
    .biba-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .biba-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .speech-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .speech-video {
        height: 250px;
    }
    
    .speech-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .speech-text {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Apply Now Mobile */
    .apply-now-title {
        font-size: 2rem;
    }
    
    .apply-now-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-section-title {
        font-size: 1.3rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .category-label {
        padding: var(--spacing-sm);
    }
    
    .category-icon {
        font-size: 1rem;
        width: 25px;
        height: 25px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
    
    .about-item {
        margin-bottom: 20px;
    }
    
    /* Gallery Mobile - 2-Line Carousel */
    .desktop-gallery {
        display: none;
    }
    
    .mobile-gallery {
        display: block;
        padding: 0 5px;
    }
    
    .gallery-row {
        gap: 12px;
    }
    
    .gallery-row .galery-photo {
        height: 196px; /* 140px + 40% = 196px */
        border-radius: 14px;
    }
    
    .gallery-pagination {
        margin-top: 20px;
    }
    
    .gallery-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    /* Contact Form Mobile */
    .contacts-form {
        padding: 0 10px;
    }
    
    .contacts-form input,
    .contacts-form textarea {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    /* Footer Mobile */
    .footer-content {
        padding: 0 10px;
        gap: 20px;
    }
    
    .footer-logo img {
        max-width: 120px;
        height: auto;
    }
    
    .footer-social {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .footer-social-link {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .footer-bottom {
        padding-top: 15px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    :root {
        --section-padding: var(--spacing-md);
        --section-margin: var(--spacing-sm);
        --container-padding: var(--spacing-sm);
    }
    
    header {
        width: 98%;
        padding: 6px 12px;
    }
    
    .header-logo img {
        width: 100px !important;
    }
    
    #mobile-button {
        width: 40px;
        height: 40px;
    }
    
    #mobile-button span {
        width: 20px;
        margin-left: 10px;
    }
    
    #mobileMenu {
        right: 5px;
        top: 70px;
        padding: 20px 16px;
        min-width: 180px;
    }
    
    #mobileMenu a {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .galery-title,
    .contacts-title {
        font-size: 1.6rem;
    }
    
    .main-subtitle {
        font-size: 1.1rem;
    }
    
    .awards-item {
        padding: 20px;
    }
    
    .about-item-wrapper {
        padding: 16px;
    }
    
    .about-bubble {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* Video Mobile */
    video {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* President Speech Mobile */
    .wiba-cards iframe {
        width: 100%;
        height: 250px;
        border-radius: 16px;
    }
    
    /* Gallery Extra Small Mobile */
    .gallery-row .galery-photo {
        height: 168px; /* 120px + 40% = 168px */
        border-radius: 12px;
    }
    
    .gallery-row {
        gap: 10px;
    }
    
/* About Section Extra Small Mobile */
    .about-title {
        font-size: 2rem;
    }
    
    .about-slide-image {
        height: 140px;
    }
    
    .about-slide-content {
        padding: 15px;
    }
    
    .biba-title {
        font-size: 1.6rem;
    }
    
    .speech-video {
        height: 200px;
    }
    
    /* Apply Now Small Mobile */
    .apply-now-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .category-label {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .category-icon {
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    /* Footer Extra Small Mobile */
    .gallery-row .galery-photo {
        height: 168px; /* 120px + 40% = 168px */
        border-radius: 12px;
    }
    
    .gallery-row {
        gap: 8px;
    }
    
    .footer-logo img {
        max-width: 100px;
        height: auto;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social-link {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .footer-bottom {
        padding-top: 12px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        top: 5px;
    }
    
    #mobileMenu {
        top: 60px;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .galery-title,
    .contacts-title {
        font-size: 1.4rem;
    }
    
    /* Adjust gallery for landscape */
    .gallery-row .galery-photo {
        height: 140px; /* Slightly smaller for landscape */
    }
}

/* Tablet Specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .about-title {
        font-size: 2.8rem;
    }
    
    .galery-title,
    .contacts-title {
        font-size: 2.2rem;
    }
    
    header {
        max-width: 700px;
    }
    
    /* Footer Tablet */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-logo {
        margin-bottom: 0;
    }
    
    .footer-logo img {
        max-width: 140px;
    }
    
    .footer-social {
        justify-content: flex-end;
        gap: 20px;
        margin-bottom: 0;
    }
    
    .footer-social-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Large Desktop Footer */
@media (min-width: 1025px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .footer-logo {
        margin-bottom: 0;
    }
    
    .footer-logo img {
        max-width: 180px;
    }
    
    .footer-social {
        justify-content: flex-end;
        gap: 24px;
        margin-bottom: 0;
    }
    
    .footer-social-link {
        font-size: 15px;
        padding: 10px 20px;
    }
}

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

.about-item,
.awards-item,
.galery-photo {
    animation: fadeInUp 0.8s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--vibrant-teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-purple);
}

/* Mobile Menu Animations */
.top-line {
    transform: rotate(45deg) translate(6px, 6px);
}

.bottom-line {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Touch-friendly mobile interactions */
@media (max-width: 768px) {
    button, a, .about-item, .awards-item, .galery-photo {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Better mobile text rendering */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}