:root {
    /* Light theme - Pastel colors */
    --primary-color: #A7D7C5;
    --secondary-color: #F6C3D5;
    --accent-color: #FFB4B4;
    --background-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --nav-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #4A6670;
    --secondary-color: #8B6B8B;
    --accent-color: #AA7070;
    --background-color: #1A1A1A;
    --card-bg: #2D2D2D;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --nav-bg: #2D2D2D;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Light mode - darker color */
.logo-img {
    filter: brightness(0) saturate(100%);
}

/* Dark mode - white color */
[data-theme="dark"] .logo-img {
    filter: invert(1);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 32px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
}

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

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

/* Hero Section */
#hero {
    padding: 4rem 2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
}

/* Course Grid */
.course-category {
    margin-bottom: 3rem;
}

.category-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 5%;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 5%;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s;
}

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

.course-image {
    height: 150px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.course-card a {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.enroll-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    width: 100%;
}

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

/* Footer Social Buttons */
footer {
    padding: 2rem 5% 1rem;
    background-color: var(--nav-bg);
}

footer .social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

footer .social-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.social-text {
    font-size: 1.1rem;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.whatsapp {
    background-color: #25D366;
}

.gmail {
    background-color: #EA4335;
}

@media (max-width: 768px) {
    .social-btn {
        padding: 1rem 1.5rem;
    }
    
    .social-text {
        font-size: 1rem;
    }
}

/* Section Headers */
section h2 {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-primary);
}

/* Footer */
footer {
    background-color: var(--nav-bg);
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

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

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section Styling */
.contact-section {
    padding: 4rem 2rem;
    background-color: var(--background-color);
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.contact-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-description {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem;
    position: relative;
    animation: fadeIn 0.8s ease-out;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

/* About Section Styling */
.about-section {
    padding: 4rem 2rem;
    background-color: var(--card-bg);
}

.about-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.about-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.about-content {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    margin-top: 2rem;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .about-section h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        text-align: left;
        font-size: 1rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
}