/* Qlicktop Custom Styles */

/* Import Clash Display Font */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@700,600,500,400&display=swap');

/* Color Variables */
:root {
    --color-primary-teal: #0C4651;
    --color-primary-yellow: #E6FF2A;
    --color-light-bg: #F0F1F6;
    --color-dark-text: #1A1A1A;
    --color-gray-text: #6B7280;
    --color-white: #FFFFFF;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
}

/* Global box-sizing to prevent layout overflow issues */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--color-dark-text);
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 24px; line-height: 1.4; }
h4 { font-size: 20px; line-height: 1.4; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
.navbar {
    background-color: var(--color-white);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Clash Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.nav-link {
    color: var(--color-dark-text);
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--color-primary-teal);
}

/* Buttons */
.btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #0a3a43;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 70, 81, 0.3);
}

.btn-secondary {
    background-color: var(--color-primary-yellow);
    color: var(--color-dark-text);
}

.btn-secondary:hover {
    background-color: #d4ed1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 255, 42, 0.3);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f0f1f6 0%, #ffffff 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--color-primary-teal);
}

.hero-content .highlight-yellow {
    color: var(--color-primary-yellow);
    text-shadow: 2px 2px 0 var(--color-primary-teal);
}

.hero-content p {
    font-size: 18px;
    color: var(--color-gray-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-avatars {
    display: flex;
    margin-left: -10px;
}

.trust-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -10px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

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

.stat-card {
    text-align: center;
    padding: 30px;
    background-color: var(--color-light-bg);
    border-radius: 12px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 48px;
    color: var(--color-primary-teal);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--color-primary-teal);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--color-gray-text);
    font-size: 16px;
}

/* Value Section */
.value-section {
    padding: 80px 0;
    background-color: var(--color-light-bg);
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-text);
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.value-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

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

.value-card i {
    font-size: 48px;
    color: var(--color-primary-teal);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--color-gray-text);
    line-height: 1.6;
}

/* Course Cards */
.course-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 24px;
}

.course-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.course-content p {
    color: var(--color-gray-text);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-teal);
}

.cart-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--color-primary-teal);
    color: var(--color-white);
}

/* Global mobile nav/menu badge adjustments to prevent expanding parent widths */
.mobile-nav-item { position: relative; }
.nav-badge, .menu-badge, .mobile-menu-badge, .notification-badge {
    position: absolute !important;
    top: 2px !important;
    right: 6px !important;
    background: #e74c3c !important;
    color: white !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 5px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

.why-choose-section .section-title {
    color: var(--color-primary-yellow);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-text h3 {
    color: var(--color-primary-yellow);
    font-size: 28px;
    margin-bottom: 20px;
}

.why-choose-text p {
    color: var(--color-white);
    line-height: 1.8;
    margin-bottom: 15px;
}

.why-choose-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.why-choose-image img {
    width: 100%;
    border-radius: 16px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 60px;
    background-color: var(--color-primary-yellow);
    border-radius: 16px;
    margin: 80px auto;
    max-width: 1000px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: var(--color-gray-text);
    margin-bottom: 30px;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background-color: var(--color-white);
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.partner-logo {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-light-bg);
}

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

.testimonial-card {
    background-color: var(--color-primary-teal);
    color: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    position: relative;
}

.testimonial-content {
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author-info h4 {
    color: var(--color-white);
    margin-bottom: 5px;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.rating {
    color: var(--color-primary-yellow);
    margin-top: 10px;
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    color: var(--color-white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--color-gray-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-primary-yellow);
}

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

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

.social-icon:hover {
    background-color: var(--color-primary-yellow);
    color: var(--color-dark-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-text);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    
    .hero-section {
        padding: 40px 0;
        min-height: 400px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

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

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

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

/* Apply animations to sections */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-section img {
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

/* Stats cards animation */
.stat-card {
    animation: scaleIn 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(12, 70, 81, 0.15);
}

/* Value cards animation */
.value-card {
    animation: fadeInUp 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(12, 70, 81, 0.12);
}

.value-card i {
    transition: transform 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Course cards animation */
.course-card {
    animation: fadeInUp 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.course-card img {
    transition: transform 0.4s ease;
}

.course-card:hover img {
    transform: scale(1.08);
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(12, 70, 81, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(230, 255, 42, 0.3);
}

.btn-outline:hover {
    background-color: var(--color-primary-teal);
    color: var(--color-white);
    border-color: var(--color-primary-teal);
}

/* Testimonial cards */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }

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

/* CTA Section */
.cta-section {
    animation: scaleIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.cta-section:hover {
    transform: scale(1.02);
}

/* Play button animation */
.play-button {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.15);
    background-color: var(--color-primary-yellow);
}

/* Section titles */
.section-title {
    animation: fadeInUp 0.6s ease-out;
}

.section-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Social icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: var(--color-primary-yellow);
    color: var(--color-dark-text);
}

/* Partner logos */
.partner-logo {
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out backwards;
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }
.partner-logo:nth-child(5) { animation-delay: 0.5s; }

.partner-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Trust indicators */
.trust-avatars img {
    transition: transform 0.3s ease;
}

.trust-avatars img:hover {
    transform: scale(1.15);
    z-index: 10;
}

/* Navbar animation on scroll */
.navbar {
    transition: all 0.3s ease;
}

/* Footer links */
.footer a {
    transition: all 0.3s ease;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
