/* Base Variables & Reset */
:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a24;
    --text-secondary: #5e5e6e;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-bg: #f8fafc;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --card-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    --hover-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn) {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.7em;
    margin-left: 4px;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--text-primary);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--secondary-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--accent-gradient);
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #a855f7;
    filter: blur(120px);
    opacity: 0.1;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-container {
    position: relative;
    animation: fadeIn 1.2s ease-out 0.2s backwards;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--hover-shadow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    display: block;
}

.hero-image-container:hover .hero-image {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Specific decorative element for image */
.hero-image-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--accent-gradient);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(20px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Features */
.features {
    background-color: var(--secondary-bg);
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: var(--accent-gradient);
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}


.ad-slot {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    min-height: 90px;
    display: none; /* Temporarily hidden per request */
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    border-radius: 8px;
}

/* About Us Grid & Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.about-card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.about-card:hover .about-card-icon-wrapper {
    background: var(--accent-gradient);
    color: white;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Responsive for About Grid */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: white;
    padding: 60px 0 40px;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
    margin-bottom: 24px;
}

.footer-links-group h3 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

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

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

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none; /* In a real app, implement a mobile menu */
    }
    
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Enjoy Fun Koding Section */
.enjoy {
    background-color: var(--secondary-bg);
}

.enjoy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.enjoy-content {
    animation: fadeUp 1s ease-out;
}

.enjoy-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.enjoy-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.enjoy-feature-icon {
    font-size: 1.75rem;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.enjoy-feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.enjoy-feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Quiz Widget Styling */
.quiz-widget {
    background: #1e1e24;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--hover-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2d2d3a;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.quiz-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.quiz-dot.red { background: #ef4444; }
.quiz-dot.yellow { background: #f59e0b; }
.quiz-dot.green { background: #10b981; }

.quiz-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-left: 8px;
}

.quiz-question-container {
    background: #0f0f13;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #2d2d3a;
}

.quiz-question-container pre {
    margin: 0;
    overflow-x: auto;
}

.quiz-question-container code {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #10b981;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-option-btn {
    background: #272732;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option-btn:hover:not(:disabled) {
    background: #3f3f52;
    border-color: var(--primary-color);
}

.quiz-option-btn:disabled {
    cursor: not-allowed;
}

.quiz-option-btn.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.quiz-option-btn.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.quiz-feedback {
    text-align: center;
    font-size: 0.95rem;
    color: #a1a1aa;
    min-height: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.quiz-feedback.correct {
    color: #10b981;
    font-weight: 600;
}

.quiz-feedback.wrong {
    color: #ef4444;
    font-weight: 600;
}

.quiz-controls {
    display: flex;
    justify-content: flex-end;
}

/* Responsive for Enjoy Section */
@media (max-width: 992px) {
    .enjoy-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Errors Makes You Perfect Section */
.errors-perfect {
    background-color: var(--bg-color);
}

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

.lang-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.lang-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}


.lang-card h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.lang-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--secondary-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}


