@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;700&display=swap');

:root {
    --primary: #001f3f; /* Navy Blue */
    --primary-light: #004080; /* Brighter Blue for Gradient */
    --secondary: #f8f9fa; /* Light Gray */
    --accent: #00a8ff; /* Brighter Accent */
    --white: #ffffff;
    --black: #1a1a1a;
    --text-muted: #6c757d;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --bg-gradient: linear-gradient(to right, #001529 0%, #003366 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

/* Glassmorphism Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card-tilt {
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    animation: breathing-tilt 8s ease-in-out infinite;
}

@keyframes breathing-tilt {
    0%, 100% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
    }
    50% {
        transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
    }
}

.info-card-tilt:hover {
    animation: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Navbar */
nav {
    background: linear-gradient(to left, #001529 0%, #003366 100%);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Carousel */
.carousel-container {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

@media (min-aspect-ratio: 16/9) {
    .video-background { height: 56.25vw; }
}
@media (max-aspect-ratio: 16/9) {
    .video-background { width: 177.78vh; }
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 31, 63, 0.8) 0%, rgba(0, 31, 63, 0.2) 100%);
    z-index: 5;
}

.carousel-caption {
    position: relative;
    color: var(--white);
    z-index: 15;
    max-width: 600px;
}

.carousel-caption h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    color: var(--white);
}

/* Sections */
section {
    padding: 5rem 10%;
}

#cursos {
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%) !important;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all cards have same height */
}

.course-img {
    display: block;
    height: 200px;
    width: 100%;
    background: var(--primary);
    position: relative;
    flex-shrink: 0;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #333333; /* Dark Gray */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.course-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.course-info i {
    color: var(--primary);
    margin-right: 5px;
}

.course-btn-wrapper {
    margin-top: auto;
    text-align: right;
    padding-top: 1.5rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--bg-gradient);
    color: var(--white);
    padding: 4rem 10% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    animation: bounce 2s infinite;
    pointer-events: none;
}

.scroll-indicator i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.scroll-indicator i:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
