/* Variables & Global Styles */
:root {
    /* Brand Colors (CDE MIPYME) */
    --primary: #0A2540; /* Dark Blue */
    --primary-light: #1E3A8A;
    --secondary: #10B981; /* Green */
    --secondary-dark: #059669;
    --accent: #F97316; /* Orange */
    
    /* Light Brand Accents */
    --blue-light: rgba(59, 130, 246, 0.08);
    --green-light: rgba(16, 185, 129, 0.08);
    --orange-light: rgba(249, 115, 22, 0.08);
    
    /* Neutral Colors */
    --dark: #0F172A;
    --gray-800: #1E293B;
    --gray-600: #475569;
    --gray-400: #94A3B8;
    --gray-200: #E2E8F0;
    --light: #F8FAFC;
    --white: #FFFFFF;
    
    /* Functional Colors */
    --success: #22C55E;
    --warning: #EAB308;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Layout */
    --container: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.text-green { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }

/* Gradients */
.bg-gradient-1 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #f59e0b 0%, #e07a10 100%); }

.bg-blue-light { background-color: rgba(59, 130, 246, 0.1); }
.bg-green-light { background-color: rgba(16, 185, 129, 0.1); }
.bg-orange-light { background-color: rgba(249, 115, 22, 0.1); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-accent:hover {
    background-color: #e25e03;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.icon-btn:hover {
    background-color: var(--gray-200);
    color: var(--primary);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--secondary);
    color: white;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary);
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--gray-800);
    font-weight: 500;
    position: relative;
}

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

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.hero {
    padding: 4.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #F8FAFC, #E2E8F0);
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.2);
    bottom: -200px;
    left: -200px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin: 1.5rem 0;
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 5px;
    left: 0;
    background-color: rgba(16, 185, 129, 0.2);
    z-index: -1;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Hero Mockup Graphic */
.image-wrapper {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

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

.mockup-header {
    display: flex;
    gap: 8px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    padding: 1.5rem 0;
    position: relative;
    min-height: 350px;
}

.mockup-course {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--light);
}

.mc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-icon.bg-green {
    background: var(--secondary);
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    animation: float 4s ease-in-out infinite;
}

.fb-1 {
    bottom: 40px;
    right: -40px;
    background: white;
    border-left: 4px solid var(--secondary);
}

.fb-2 {
    bottom: 20px;
    left: -40px;
    background: white;
    animation-delay: 2s;
}

.fb-1 .material-icons { color: var(--secondary); font-size: 2rem; }

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Sections General */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Topics Section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.topic-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Subtle glowing backdrop on hover */
.topic-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 91, 167, 0.04) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.topic-card:hover .topic-card-glow {
    opacity: 1;
}

.topic-icon-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.topic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14,91,167,0.06) 0%, rgba(14,91,167,0.12) 100%);
    color: var(--primary);
    border-radius: 18px; /* Elegant squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(14, 91, 167, 0.05);
    border: 1px solid rgba(14, 91, 167, 0.08);
}

.topic-icon span {
    font-size: 2.2rem !important;
}

.topic-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 91, 167, 0.25);
    box-shadow: 0 20px 35px rgba(14, 91, 167, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.topic-card:hover .topic-icon {
    background: linear-gradient(135deg, #0E5BA7 0%, #072f5c 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(14, 91, 167, 0.22);
    border-color: transparent;
}

.topic-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.topic-card:hover h3 {
    color: var(--primary-light);
}

.topic-badge-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.topic-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.topic-card:hover .topic-badge {
    background: rgba(243, 146, 32, 0.1);
    color: var(--accent);
    border-color: rgba(243, 146, 32, 0.2);
}

/* Action Callout (appears on hover) */
.topic-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.topic-action span:not(.material-icons) {
    font-family: var(--font-heading);
}

.topic-action .material-icons {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.topic-card:hover .topic-action {
    opacity: 1;
    transform: translateY(0);
}

.topic-card:hover .topic-action .material-icons {
    transform: translateX(4px);
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.03);
}

.course-img {
    height: 190px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-main-icon {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem !important;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-main-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.26);
}

.course-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 2;
}

.bg-accent { background: linear-gradient(135deg, #F39220 0%, #E07A10 100%) !important; }

.course-content {
    padding: 1.75rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.course-meta .category {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.course-meta .level {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-meta .level .material-icons {
    font-size: 0.85rem;
    color: #f59e0b;
}

.course-title {
    font-size: 1.28rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    font-family: var(--font-heading);
    line-height: 1.35;
}

.course-title a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.course-card:hover .course-title a {
    color: var(--primary-light);
}

.course-desc {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--gray-200);
}

.instructor {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.instructor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.instructor span {
    font-size: 0.88rem;
    color: var(--gray-800);
    font-weight: 600;
}

.price {
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    transition: all 0.3s ease;
}

.price.text-green {
    color: #065f46 !important;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.price:not(.text-green) {
    color: var(--primary);
    background: #f0f4f8;
    border: 1px solid rgba(10, 37, 64, 0.12);
}


/* Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

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

.impact-card .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.impact-card h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul a {
    color: var(--gray-400);
}

.footer ul a:hover {
    color: white;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #090e1a;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .ai-container {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
