@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #30003a; /* Deep Purple */
    --secondary-color: #30bae4; /* Amber/Orange */
	--third-color: #30003a; /* Amber/Orange */
    --accent-color: #00e5ff; /* Cyan */
    --background-color: #f4f4f9;
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --card-bg: #ffffff;
    --gradient-start: #30003a; /* Slightly lighter purple */
    --gradient-end: #30003a; /* Darker purple */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    color: var(--light-text-color);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3; /* Above the background animation */
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #30bae4; /* Darker shade of secondary */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background-color: #00b8d4; /* Darker shade of accent */
    color: var(--primary-color);
}


/* Hero Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.hero-bg-animation::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 45%;
    transform-origin: center center;
    transform: translateX(-50%) rotate(0deg);
    animation: rotate-bg 25s linear infinite;
}
.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 48%;
    transform-origin: center center;
     transform: rotate(0deg);
    animation: rotate-bg-reverse 30s linear infinite;
}


@keyframes rotate-bg {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes rotate-bg-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Course Categories Section */
.course-categories {
    padding: 2rem 0;
}

.course-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 350px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
	text-decoration: none;
}

.category-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem; /* Add margin for button */
}

.view-more-btn {
    display: inline-block;
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn:hover,
.view-more-btn:focus {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}


/* CTA Section */
.cta-section {
    background: linear-gradient(35deg, var(--third-color), #30003a);
    color: var(--light-text-color);
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}


/* Footer */
.main-footer {
    background-color: #333;
    color: #aaa;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav ul {
    list-style: none;
    display: flex;
}

.footer-nav ul li {
    margin-left: 15px;
}

.footer-nav ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--light-text-color);
}

.desing {
    color: var(--light-text-color);
    padding: 2rem 0;
}

.desing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.desing p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
	color: var(--primary-color);
}

.nosotros {
    color: var(--light-text-color);
    padding: 2rem 0;
}

.nosotros h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.nosotros p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
	color: var(--primary-color);
}

.contacto {
    color: var(--light-text-color);
    padding: 2rem 0;
}

.contacto h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contacto p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
	color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
         margin-bottom: 1rem;
    }

    .main-nav ul {
        padding-left: 0; /* Reset padding */
        justify-content: center; /* Center nav items */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }

     .main-footer .container {
        flex-direction: column;
        text-align: center;
    }
     .main-footer p {
        margin-bottom: 1rem;
    }
    .footer-nav ul {
         padding-left: 0; /* Reset padding */
        justify-content: center; /* Center nav items */
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
     .hero h1 {
        font-size: 2rem;
    }

    .course-categories h2 {
        font-size: 2rem;
    }
     .category-card h3 {
        font-size: 1.2rem;
    }
}

