/* 
 * styles.css
 * Main stylesheet for domain.com C++ courses website
 */

/* ---------- Global Variables ---------- */
:root {
    --primary-color: #00B8A9;
    --primary-color-h3: #bbfff9;
    --accent-color: #F8F32B;
    --dark-color: #2E2E2E;
    --light-color: #FFFFFF;
    --border-color: #BFC6CE;
    --gradient-bg: linear-gradient(135deg, #00B8A9, #2E2E2E);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ---------- Reset & Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

/* ---------- Header ---------- */
.header {
    background-color: var(--dark-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--light-color);
    font-weight: 600;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--light-color);
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    background: rgba(0, 0, 0, 0.7);
    background-image: url('../img/3diERb.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: 1;
    opacity: 0.8;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    z-index: 3;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}



/* ---------- About Section ---------- */
.about {
    background-color: var(--dark-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ---------- Benefits Section ---------- */
.benefits {
    background: var(--gradient-bg);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: var(--primary-color-h3);
    margin-bottom: 15px;
}

/* ---------- Courses Section ---------- */
.courses {
    background-color: var(--dark-color);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: rgba(0, 184, 169, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-content {
    padding: 30px;
}

.course-level {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.course-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.course-content ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
}

.course-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: var(--gradient-bg);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin: 10px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
}

.author-info small {
    color: var(--border-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent-color);
}

/* ---------- Form Section ---------- */
.contact {
    background-color: var(--dark-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 184, 169, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: -3px;
    right: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: calc(var(--border-radius) + 3px);
    z-index: -1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--light-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.3);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-checkbox input {
    margin-right: 10px;
    margin-top: 6px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23BFC6CE' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
    color: var(--light-color);
}

select.form-control option {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* ---------- Contact Info Section ---------- */
.contact-info {
    background: var(--gradient-bg);
}

.contact-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-info-item {
    padding: 20px;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--dark-color);
    padding: 60px 0 30px;
    position: relative;
    margin-top: 30px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    box-shadow: 0 -5px 15px rgba(0, 184, 169, 0.4);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-about h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    color: var(--light-color);
    font-size: 1.5rem;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 3px solid var(--primary-color);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--border-color);
    position: relative;
}

.footer-bottom::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
}

/* ---------- Policy Pages ---------- */
.policy-page {
    padding: 120px 0 60px;
    min-height: 100vh;
    background-color: var(--dark-color);
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 184, 169, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
}

.policy-container::before {
    content: '';
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: -3px;
    right: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: calc(var(--border-radius) + 3px);
    z-index: -1;
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
}

.policy-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.policy-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.policy-content p {
    margin-bottom: 20px;
}

.policy-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.policy-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    list-style-type: disc;
}

/* ---------- Cookie Consent ---------- */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-text {
    max-width: 800px;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

/* ---------- Gracias Page ---------- */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-bg);
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.thank-you h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ---------- FAQ Styles ---------- */
.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: rgba(0, 184, 169, 0.2);
    color: var(--light-color);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px;
}

/* ---------- Media Queries ---------- */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        z-index: 2000;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 20px;
        transition: right 0.3s ease;
        z-index: 1500;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-img {
        opacity: 0.3;
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .benefit-card,
    .course-card,
    .testimonial-card {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .cookie-consent {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-btns {
        margin-top: 20px;
    }
}
