:root {
    --primary-brown: #8B4513;
    --secondary-brown: #A0522D;
    --accent-gold: #FFD700;
    --accent-orange: #FFA500;
    --light-bg: #fdfaf6;
    --dark-text: #2F1B14;
    --light-text: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(-45deg, #2F1B14, #3D2317, #4A2C1A, #351F15);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
    padding: 0 1rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
    color: var(--primary-brown);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(47, 27, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 10px;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* General Section Styling */
.section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--primary-brown);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    border-radius: 2px;
}

.section-title.light {
    color: var(--light-text);
}

.section-title.light::after {
     background: var(--light-text);
}

/* About Section */
.about-section {
    background: var(--light-text);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 500px;
    padding-left: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

/* Services Section */
.services-section {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--light-text);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    text-align: center;
    border-top: 4px solid var(--primary-brown);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-top-color: var(--accent-gold);
}

.service-icon {
    margin: 0 auto 1.5rem auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--light-text);
    transition: background 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
     background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
}

.service-card h3 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: #555;
    font-size: 1rem;
}

/* Why Choose Us Section */
.why-choose-section {
    background: var(--light-text);
}

.why-choose-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.video-container {
    flex: 1 1 450px;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-hover-shadow);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-list {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.feature-item:hover {
    background: var(--light-bg);
}

.feature-item .feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--primary-brown);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item .feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-item h3 {
    color: var(--primary-brown);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonial Callout in Why Choose Us */
.testimonial-callout {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.testimonial-callout .quote-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--accent-gold);
}

.testimonial-callout .quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-callout p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-callout .quote-author {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Success Stories Section */
.success-stories-section {
    background: var(--light-bg);
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: -3rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.success-story-featured {
    background: var(--light-text);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--card-hover-shadow);
    margin-bottom: 3rem;
    border-top: 4px solid var(--accent-gold);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.student-info h3 {
    font-size: 1.5rem;
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.student-location {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.story-flags {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.story-flags .arrow {
    color: var(--accent-gold);
    font-weight: bold;
}

.story-quote {
    position: relative;
    margin: 2rem 0;
}

.quote-large-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
    opacity: 0.3;
}

.quote-large-icon svg {
    width: 100%;
    height: 100%;
}

.story-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-text);
    font-style: italic;
    padding-left: 2rem;
}

.story-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 3px solid var(--accent-gold);
}

.achievement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-text strong {
    display: block;
    color: var(--primary-brown);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.achievement-text span {
    color: #666;
    font-size: 0.9rem;
}

.success-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: var(--light-text);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-brown);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-top-color: var(--accent-gold);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    color: var(--primary-brown);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-card p {
    color: #666;
    line-height: 1.6;
}

.highlight-card strong {
    color: var(--primary-brown);
}

/* Languages Section */
.languages-section {
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
}

/* Language Quote Callout */
.language-quote-callout {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.language-quote-callout .quote-content {
    max-width: 700px;
    margin: 0 auto;
}

.language-quote-callout .quote-icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 1rem;
    color: var(--accent-gold);
}

.language-quote-callout .quote-icon svg {
    width: 100%;
    height: 100%;
}

.language-quote-callout p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.language-quote-callout .quote-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.language-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
}

.language-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.language-flag {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: #2c3e50;
}

.contact-section p {
    color: rgba(255,255,255,0.8);
    margin-top: -3rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .why-choose-content {
        flex-direction: column;
    }
    
    .story-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .story-flags {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: #3D2317;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .success-story-featured {
        padding: 2rem;
    }
    
    .story-quote p {
        padding-left: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .languages-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 0.5rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .section {
        padding: 3rem 0.5rem;
    }
    
    .success-story-featured {
        padding: 1.5rem;
    }
    
    .language-quote-callout {
        padding: 1.5rem;
    }
    
    .testimonial-callout {
        padding: 1.5rem;
    }
}

/* Multilingual Bookmarks */
.language-bookmark {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
}

/* Left side bookmark */
.language-bookmark.left {
    left: -150px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.language-bookmark.left.active {
    left: 0;
    opacity: 1;
    visibility: visible;
}

/* Right side bookmark */
.language-bookmark.right {
    right: -150px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.language-bookmark.right.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

/* Hover effects */
.language-bookmark:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Pulse animation for language change */
.language-bookmark.changing {
    animation: languagePulse 0.6s ease-in-out;
}

@keyframes languagePulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); opacity: 0.8; }
    100% { transform: translateY(-50%) scale(1); }
}

/* Slide in animation */
.language-bookmark.slide-in {
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Flag emoji styling */
.language-bookmark .flag {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* Different colors for different sections */
.language-bookmark.hero-bookmark {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.language-bookmark.about-bookmark {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.language-bookmark.services-bookmark {
    background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
    box-shadow: 0 8px 25px rgba(69, 183, 209, 0.3);
}

.language-bookmark.why-choose-bookmark {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.language-bookmark.success-bookmark {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    box-shadow: 0 8px 25px rgba(255, 216, 155, 0.3);
}

.language-bookmark.languages-bookmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-bookmark.contact-bookmark {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .language-bookmark {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .language-bookmark .flag {
        font-size: 1em;
        margin-right: 0.3rem;
    }
}

@media (max-width: 480px) {
    .language-bookmark {
        display: none; /* Hide on very small screens to avoid clutter */
    }
}

.logo img {
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}