/* Global Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ffffff;
    --accent-color: #3b82f6;
    --light-gray: #f8f9fa;
    --dark-gray: #1e40af;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    --transition: all 0.3s ease;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(30, 58, 138, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 78px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section with Slider */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-gray) 100%);
    color: var(--text-dark);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.slider-btn {
    position: absolute;
    background: rgba(30, 58, 138, 0.2);
    border: none;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: rgba(30, 58, 138, 0.3);
    transform: scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    color: var(--primary-color) !important;
    background-color: var(--light-gray) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-light {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    color: white;
    border-color: #218838;
    transform: translateY(-2px);
}

/* Hero Main Image */
.hero-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    transition: all 0.3s ease;
}

.hero-main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.25);
}

/* Teacher Showcase */
.teacher-showcase {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-card-main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    text-align: center;
    z-index: 10;
    position: relative;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.teacher-card-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.25);
}

.teacher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.teacher-avatar i {
    font-size: 2.5rem;
    color: white;
}

.teacher-card-main:hover .teacher-avatar {
    transform: scale(1.1);
}

.teacher-card-main:hover .teacher-photo {
    transform: scale(1.05);
}

.teacher-info h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.teacher-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(30, 58, 138, 0.1);
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Stats Container */
.stats-container {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.stat-item {
    padding: 1rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Course Cards */
.course-card {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.course-image {
    background: var(--primary-color);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-color);
}

.course-content {
    padding: 1.5rem;
}

.course-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.course-content ul li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.course-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}



/* Contact Section */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h6 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
}

.contact-form {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-control, .form-select {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.form-control::placeholder, .form-select {
    color: var(--text-light);
}

.form-control:focus, .form-select:focus {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Level Test Section */
.test-features {
    margin-top: 2rem;
}

.test-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.test-feature i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Test Feature Cards */
.test-feature-card {
    background: var(--secondary-color);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.test-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.test-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.test-feature-icon i {
    font-size: 2rem;
    color: white;
    margin: 0;
}

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

.test-feature-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.test-feature-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}







/* Footer */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-elements {
        height: 300px;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-btn.prev {
        left: 15px;
    }
    
    .slider-btn.next {
        right: 15px;
    }
    
    .test-feature-card {
        margin-bottom: 1.5rem;
    }
    
    .test-feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .test-feature-icon i {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        max-height: 80px;
    }
    
    .hero-section {
        padding-top: 50px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-main-image {
        height: 300px;
    }
    
    .teacher-showcase {
        height: 300px;
    }
    
    .teacher-card-main {
        padding: 1.5rem;
    }
    
    .teacher-avatar {
        width: 60px;
        height: 60px;
    }
    
    .teacher-avatar i {
        font-size: 2rem;
    }
    
    .teacher-photo {
        width: 100%;
        height: 100%;
    }

}

@media (max-width: 576px) {
    body {
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .floating-elements {
        height: 250px;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-card, .course-card, .teacher-card {
        margin-bottom: 1rem;
    }
    
    .test-feature-card {
        padding: 1.5rem 1rem;
    }
    
    .test-feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .test-feature-icon i {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        max-height: 70px;
    }
    
    .hero-section {
        padding-top: 40px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-main-image {
        height: 250px;
    }
    
    .teacher-showcase {
        height: 250px;
    }
    
    .teacher-card-main {
        padding: 1rem;
    }
    
    .teacher-avatar {
        width: 50px;
        height: 50px;
    }
    
    .teacher-avatar i {
        font-size: 1.5rem;
    }
    
    .teacher-photo {
        width: 100%;
        height: 100%;
    }
    
    .teacher-info h6 {
        font-size: 1rem;
    }
    
    .teacher-info p {
        font-size: 0.8rem;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.feature-card:hover .feature-icon,
.teacher-card:hover .teacher-image {
    transform: scale(1.1);
    transition: var(--transition);
}

.course-card:hover .course-image {
    background: var(--accent-color);
    transition: var(--transition);
}

/* Button Animations */
.btn:active {
    transform: scale(0.95);
}

/* Text Selection */
::selection {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Test Modal Styles */
.test-questions-section,
.test-results-section {
    padding: 1rem 0;
}

.test-progress .progress {
    height: 10px;
    border-radius: 5px;
}

.test-progress .progress-bar {
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.question-card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.answer-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: rgba(30, 58, 138, 0.05);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--secondary-color);
}

.answer-option.correct {
    border-color: #10b981;
    background: #10b981;
    color: var(--secondary-color);
}

.answer-option.incorrect {
    border-color: #ef4444;
    background: #ef4444;
    color: var(--secondary-color);
}

.result-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.result-circle small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.result-details h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-details p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .social-links {
        display: none;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
}
