/* ===== Global Styles ===== */
:root {
    /* German Flag Color Palette */
    --german-black: #000000;
    --german-red: #DD0000;
    --german-gold: #FFCC00;
    
    /* Color Palette */
    --primary-color: #000000;  /* Black */
    --secondary-color: #DD0000;  /* Red */
    --accent-color: #FFCC00;  /* Gold/Yellow */
    --text-color: #333333;
    --light-text: #666666;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #DD0000;  /* Red */
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-overflow-scrolling: touch;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--german-black) 0%, var(--german-red) 50%, var(--german-gold) 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover::before {
    transform: translateX(-100%);
}

/* ===== Header ===== */
.language-bar {
    background-color: var(--primary-color);
    padding: 8px 0;
    font-size: 0.85rem;
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--accent-color);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    background-color: transparent;
    border-radius: 0;
    padding: 10px 20px;
    box-shadow: none;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo .red-text {
    color: #ff0000;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.nav-links > a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:hover {
        padding-left: 10px;
    }
    
    .language-switcher-container {
        margin: 20px 0 0;
    }
}

/* ===== Hero Section with Video Background ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    overflow: hidden;
    padding-top: 80px;
    color: var(--white);
}

/* Video Background Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

/* Video Foreground (iframe wrapper) */
.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-foreground video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    text-align: center;
    width: 90%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 30px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-slogan {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: 500px;
        text-align: center;
    }
    
    .hero-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-slogan {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-left: 0;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-box {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-box:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--german-black), var(--german-red), var(--german-gold));
    transition: left 0.6s ease;
}

.service-box:hover::before {
    left: 0;
}

.service-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.service-box:hover::after {
    width: 300px;
    height: 300px;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(221, 0, 0, 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-box:hover .service-icon::before {
    opacity: 1;
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--white);
    transition: all 0.4s ease;
}

/* Service Image Styling */
.service-icon .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
    /* Performance optimizations */
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.service-box:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 35px rgba(221, 0, 0, 0.4);
}

.service-box:hover .service-icon i {
    transform: scale(1.1);
}

.service-box:hover .service-icon .service-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.service-box h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-box:hover h3 {
    color: var(--secondary-color);
}

.service-box p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-box:hover p {
    color: var(--text-color);
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.8;
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Media containers for video/image switching */
.about-media-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.about-media-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

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

.about-image:hover img {
    transform: scale(1.05);
}

/* Experience Badge with Apple Glass Effect */
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
}

.experience-badge.apple-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.experience-badge.apple-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    z-index: -1;
    border-radius: 16px;
}

/* Counter Styles */
.counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.counter {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--german-black), var(--german-red), var(--german-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.plus {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--german-black), var(--german-red), var(--german-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
}

.animate .counter {
    animation: countUp 2s ease-out forwards;
}

.animate .plus {
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes widthGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* Scroll-triggered animations */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Button ripple effect */
.btn, .cta-button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Language dropdown animations */
.language-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-button.active i:last-child {
    transform: rotate(180deg);
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--german-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Hover effect for the glass badge */
.experience-badge.apple-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for the badge */
@media (max-width: 768px) {
    .experience-badge {
        padding: 15px 20px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
    
    .experience-badge .years {
        font-size: 1.8rem;
    }
    
    .experience-badge .text {
        font-size: 0.8rem;
    }
}

/* Students Section */
.students {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

/* Student Slider Styles */
.student-slider-container {
    position: relative;
    max-width: 100%;
    margin: 50px auto;
    padding: 0 40px;
    overflow: hidden;
}

.student-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    width: 100%;
    margin: 0;
    padding: 10px 5px;
    box-sizing: border-box;
}

.student-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.slide {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
    box-sizing: border-box;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

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

.slide:hover img {
    transform: scale(1.05);
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

/* Dots Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Testimonials */
.student-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 100px;
    color: rgba(255, 204, 0, 0.1);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.student-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    transition: var(--transition);
}

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

.student-info span {
    font-size: 0.9rem;
    color: var(--light-text);
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .slide {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .student-slider-container {
        padding: 0 30px;
    }
    
    .slide {
        flex: 0 0 100%;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial {
        padding: 25px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .student-slider-container {
        padding: 0 15px;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .student-testimonials {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

/* Centered contact layout */
.contact-content-centered {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.contact-info-centered {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 15px;
}

.contact-info {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--light-text);
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

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

.contact-form {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

/* Contact Grid - Side by Side Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info-side {
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-side {
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-side h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-form-side h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--german-black) 0%, var(--german-red) 50%, var(--german-gold) 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-primary);
}

.btn-send-message {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--german-gold) 0%, #FF9500 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.3);
}

.btn-send-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 204, 0, 0.4);
}

.btn-send-message:active {
    transform: translateY(-1px);
}

.btn-send-message i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-send-message:hover i {
    transform: translateX(5px);
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.3rem;
}

/* Google Maps Section */
.map-container {
    margin-top: 60px;
    text-align: center;
}

.map-container h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.map-container h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--german-black) 0%, var(--german-red) 50%, var(--german-gold) 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border: 3px solid var(--accent-color);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-side,
    .contact-form-side {
        padding: 30px 20px;
    }
    
    .contact-form-side h3 {
        font-size: 1.5rem;
    }
    
    .btn-send-message {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .map-container {
        margin-top: 40px;
    }
    
    .map-container h3 {
        font-size: 1.5rem;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 30px;
}

.footer-logo img {
    height: 220px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo img {
        height: 120px;
    }
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact ul li i {
    color: var(--accent-color);
    margin-top: 5px;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.language-switcher-container:hover .language-dropdown,
.language-toggle[aria-expanded="true"] + .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.language-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.language-option:hover {
    background-color: #f8f9fa;
    color: var(--accent-color);
}

.language-option.active {
    background-color: #f0f0f0;
    font-weight: 500;
    color: var(--accent-color);
}

.flag-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Animation for globe icon */
@keyframes spinGlobe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.language-toggle:hover i {
    animation: spinGlobe 1s ease-in-out;
}

/* RTL Support */
html[dir="rtl"] .flag-icon {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .dropdown-arrow {
    right: auto;
    left: 15px;
}

/* Language Level Indicators */
.language-levels {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.level-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 204, 0, 0.1);
    border: 2px solid #ffcc00;
    color: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    transform-style: preserve-3d;
}

.level-circle .level-text {
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}

.service-box:hover .level-circle,
.level-circle:hover {
    background-color: #ffcc00;
    color: #ffffff;
    transform: rotateY(180deg);
}

.service-box:hover .level-circle .level-text,
.level-circle:hover .level-text {
    transform: rotateY(-180deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .student-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 10000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 10001;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
        touch-action: manipulation;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-box {
        padding: 40px 25px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        gap: 30px;
    }

    .contact-info-centered {
        padding: 30px 20px;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-services h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 80px;
        min-height: 600px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-slogan {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 204, 0, 0.3);
    border-radius: 50%;
    animation: float-particle 8s infinite linear;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    width: 12px;
    height: 12px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    width: 14px;
    height: 14px;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.particle:nth-child(6) {
    width: 8px;
    height: 8px;
    left: 90%;
    animation-delay: 5s;
    animation-duration: 7s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .service-box {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-icon .service-image {
        width: 100%;
        height: 100%;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-legal span {
        display: none;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

.whatsapp-float i {
    animation: whatsapp-ring 3s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

@keyframes whatsapp-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* RTL Support - Selective Layout Changes */
/* Keep most elements centered/left-aligned, only flip specific sections */

/* Phone numbers should always be LTR */
.contact-item p,
.footer-contact ul li span {
    direction: ltr;
    display: inline-block;
}

/* Hero section stays centered */
[dir="rtl"] .hero-content {
    text-align: center;
}

/* Services section keeps original layout - only text changes */
[dir="rtl"] .service-box {
    text-align: center; /* Keep centered like original */
}

[dir="rtl"] .service-icon {
    margin: 0 auto 30px; /* Keep centered like original */
}

/* About section - THIS ONE CAN FLIP */
[dir="rtl"] .about-content {
    flex-direction: row-reverse; /* Flip image and text positions */
}

[dir="rtl"] .about-text {
    text-align: right;
}

/* Footer - only text alignment changes, layout stays same */
[dir="rtl"] .footer-about,
[dir="rtl"] .footer-links,
[dir="rtl"] .footer-contact {
    text-align: right;
}

/* Form inputs - right-align text but keep layout */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}
