/* Global Styles with CSS Variables for Theming */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --youtube-color: #ff0000;
    --facebook-color: #3b5998;
    --instagram-color: #e1306c;
    --whatsapp-color: #25d366;
    
    /* Theme variables */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.98);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --nav-link-color: #2c3e50;
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ddd;
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e6e6e6;
    --card-bg: #16213e;
    --header-bg: rgba(26, 26, 46, 0.98);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --nav-link-color: #e6e6e6;
    --footer-bg: #0f3460;
    --footer-text: #e6e6e6;
    --input-bg: #1e2a47;
    --input-border: #2c3e50;
}

[data-theme="dark"] .platform-links {
    background-color: var(--bg-color);
}

[data-theme="dark"] .platform-links h2 {
    color: var(--text-color);
}

[data-theme="dark"] .platform-card {
    background-color: var(--card-bg);
}

[data-theme="dark"] .platform-card h3 {
    color: var(--text-color);
}

[data-theme="dark"] .platform-card p {
    color: #b8b8b8;
}

[data-theme="dark"] .feedback {
    background: linear-gradient(135deg, #25a25a, #1e8749);
}

[data-theme="dark"] .feedback-form input,
[data-theme="dark"] .feedback-form textarea {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
}

[data-theme="dark"] footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

[data-theme="dark"] .footer-about p,
[data-theme="dark"] .footer-contact p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-bottom p,
[data-theme="dark"] .legal-links a {
    color: var(--footer-text);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-links a:hover {
    background-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 70px;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Animated elements base class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Button styles with hover animations */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

.btn.primary:hover {
    background-color: #2980b9;
}

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

.btn.secondary:hover {
    background-color: #27ae60;
}

.btn.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Header Styles with hover animations */
.transparent-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.4s ease;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.logo a:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    list-style: none;
}

.nav-right li {
    margin-left: 25px;
    position: relative;
}

.nav-right li a {
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 10px;
    color: var(--nav-link-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.nav-right > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-right > li > a:hover::after,
.nav-right > li > a.active::after {
    width: 100%;
}

.nav-right li a:hover, .nav-right li a.active {
    color: var(--primary-color);
}

/* Dropdown Menu with animation */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    transform: translateY(10px) scale(0.95);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    margin: 0;
    padding: 8px 20px;
    transition: background-color 0.3s;
}

.dropdown-menu li:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.dropdown-menu li a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nav-link-color);
    margin-left: 20px;
    background: none;
    border: none;
    transition: transform 0.3s;
}

.mobile-menu-btn:hover {
    transform: rotate(90deg);
}

/* Hero Section with animated background */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,224C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    animation: waveAnimation 15s linear infinite;
}

@keyframes waveAnimation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1440px; }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

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

/* Trust Indicators with hover effects */
.trust-indicators {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.trust-indicators .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item {
    padding: 30px 20px;
    border-radius: 15px;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.5s;
}

.trust-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

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

.trust-item p {
    color: var(--text-color);
}

/* Featured Content with card hover animations */
.featured-content {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.featured-content h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--text-color);
}

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

.content-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.content-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.content-card:hover::before {
    opacity: 1;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.content-card:hover .card-image {
    transform: scale(1.1);
}

.content-card h3 {
    padding: 20px 20px 10px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.content-card p {
    padding: 0 20px 20px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.content-card .btn {
    margin: 0 20px 20px;
    position: relative;
    z-index: 2;
}

/* Testimonials with enhanced slider */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--text-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    text-align: center;
    padding: 30px;
    display: none;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: all 0.4s;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
    position: relative;
}

.testimonial p::before, .testimonial p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.student-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.student-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    transition: all 0.3s;
}

.testimonial:hover .student-info img {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

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

.student-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

.slider-dot:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

/* Platform Links */
.platform-links {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.platform-links h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.platform-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.platform-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.platform-card:hover i {
    transform: scale(1.1);
}

.platform-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.platform-card p {
    color: #777;
}

.youtube {
    border-top: 4px solid var(--youtube-color);
}

.facebook {
    border-top: 4px solid var(--facebook-color);
}

.instagram {
    border-top: 4px solid var(--instagram-color);
}

.whatsapp {
    border-top: 4px solid var(--whatsapp-color);
}

.youtube i {
    color: var(--youtube-color);
}

.facebook i {
    color: var(--facebook-color);
}

.instagram i {
    color: var(--instagram-color);
}

.whatsapp i {
    color: var(--whatsapp-color);
}

/* Feedback Section */
.feedback {
    padding: 60px 0;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.feedback .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.feedback-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.feedback-content h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.feedback-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-form input,
.feedback-form textarea {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.feedback-form textarea {
    min-height: 100px;
    resize: vertical;
}

.feedback-form button {
    padding: 12px 25px;
    align-self: flex-start;
}

/* Footer with enhanced styling */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    color: #bbb;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-right {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px var(--shadow-color);
    }
    
    .nav-right.active {
        right: 0;
    }
    
    .nav-right li {
        margin: 15px 0;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
        display: none;
        margin-top: 10px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Ensure dropdown links are clickable */
    .dropdown-menu li a {
        pointer-events: auto !important;
    }
    
    /* Fix dropdown display on mobile */
    .dropdown.active .dropdown-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        padding-left: 20px;
    }
    
    /* Make sure dropdown links are visible and clickable */
    .dropdown-menu li {
        margin: 10px 0;
    }
    
    .dropdown-menu li a {
        color: var(--nav-link-color) !important;
        padding: 8px 0 !important;
        display: block !important;
    }
    
    .dropdown-menu li a:hover {
        color: var(--primary-color) !important;
        transform: translateX(5px) !important;
    }
}

@media (max-width: 768px) {
    .trust-indicators .container {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animation utility classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.bounce {
    animation: bounce 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}