/**
 * Custom CSS - Instituto Dering
 * Tema: Idiomas | Dark Blue Mode | Intuitivo e Moderno
 * Bandeiras: 🇺🇸 Inglês | 🇪🇸 Espanhol
 */

:root {
    --dark-blue: #0f1b3c;
    --dark-blue-light: #1a2d5c;
    --dark-blue-lighter: #253b7a;
    --english-blue: #2563eb;
    --spanish-red: #dc2626;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --text-light: #f3f4f6;
    --text-muted: #d1d5db;
    --border-color: #374151;
}

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

/* ===== BODY ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background-color: var(--dark-blue);
    color: var(--text-light);
    line-height: 1.6;
}

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

a:hover {
    color: var(--accent-green);
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold) !important;
    display: flex;
    align-items: right;
    gap: 0.5rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 120px;
	align-items: center;
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.nav-link {
    font-weight: 500;
    color: darkblue !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--english-blue), var(--spanish-red));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 50%, var(--dark-blue-lighter) 100%);
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.hero-section h1 span {
    background: linear-gradient(90deg, var(--english-blue), var(--spanish-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-section .btn {
    animation: slideInLeft 0.8s ease-out 0.4s both;
    position: relative;
    z-index: 1;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, var(--english-blue), var(--accent-green));
    border: none;
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
    color: white;
}

.hero-section .btn-outline-light {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background-color: var(--accent-gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

/* ===== LANGUAGE CARDS ===== */
.language-cards {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.card-language {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid;
    position: relative;
    overflow: hidden;
}

.card-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-language:hover::before {
    opacity: 1;
}

.card-language:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Bandeira Inglesa 🇺🇸 */
.card-english {
    background: linear-gradient(135deg, var(--english-blue) 0%, #1d4ed8 100%);
    border-color: var(--accent-gold);
}

.card-english::after {
    content: '🇺🇸';
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    top: -10px;
    right: -10px;
    z-index: 0;
}

.card-english .flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    z-index: 2;
}

.card-english span {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    z-index: 2;
}

.card-english p {
    color: white;
    font-weight: 600;
    margin-top: 0.5rem;
    z-index: 2;
    font-size: 1.1rem;
}

/* Bandeira Espanhola 🇪🇸 */
.card-spanish {
    background: linear-gradient(135deg, var(--spanish-red) 0%, #b91c1c 100%);
    border-color: var(--accent-gold);
    animation-delay: 0.5s;
}

.card-spanish::after {
    content: '🇪🇸';
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    bottom: -10px;
    left: -10px;
    z-index: 0;
}

.card-spanish .flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    z-index: 2;
}

.card-spanish span {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    z-index: 2;
}

.card-spanish p {
    color: white;
    font-weight: 600;
    margin-top: 0.5rem;
    z-index: 2;
    font-size: 1.1rem;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
}

.features-section h2 {
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.features-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--english-blue), var(--spanish-red));
    margin: 1rem auto 0;
    border-radius: 5px;
}

.feature-card {
    background: var(--dark-blue-lighter);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--english-blue), var(--spanish-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card .card-body {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--english-blue), var(--spanish-red));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

.feature-icon i {
    color: white;
    font-size: 2rem;
}

.feature-card .card-title {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card .card-text {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    background: linear-gradient(135deg, var(--dark-blue-light) 0%, var(--dark-blue-lighter) 100%);
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    padding: 3rem 0;
    animation: fadeIn 1s ease-in;
}

.social-proof h4 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--english-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.social-proof p {
    color: var(--text-muted);
    font-weight: 500;
}

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

/* ===== FORM SECTION ===== */
.form-section {
    min-height: 100vh;
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
    display: flex;
    align-items: center;
}

.form-section h2 {
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-section .text-muted {
    color: var(--text-muted) !important;
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.form-control,
.form-select {
    background-color: var(--dark-blue-lighter);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--dark-blue-lighter);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.3rem rgba(251, 191, 36, 0.25);
    outline: none;
    color: var(--text-light);
}

/* ===== RADIO BUTTONS (IDIOMA, MODALIDADE, ETC) ===== */
.btn-check {
    display: none;
}

.btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, var(--english-blue), var(--accent-green));
    border-color: var(--accent-gold);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--dark-blue-lighter);
}

.btn-outline-primary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: transparent;
}

/* ===== CHECKBOXES ===== */
.form-check-input {
    width: 1.3em;
    height: 1.3em;
    border: 2px solid var(--border-color);
    background-color: var(--dark-blue-lighter);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.3rem rgba(251, 191, 36, 0.25);
}

.form-check-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.3rem rgba(251, 191, 36, 0.25);
}

.form-check-label {
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0.85rem 1.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--english-blue), var(--accent-green));
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #059669);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

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

.btn-secondary:hover {
    background-color: #b91c1c;
    color: white;
    transform: translateY(-3px);
}

/* ===== ALERTS ===== */
.alert {
    border: 2px solid;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    animation: slideDown 0.3s ease-out;
    margin-bottom: 2rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
    color: #a7f3d0;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.15);
    border-color: var(--spanish-red);
    color: #fca5a5;
}

.alert-warning {
    background-color: rgba(251, 191, 36, 0.15);
    border-color: var(--accent-gold);
    color: #fde047;
}

.alert i {
    margin-right: 0.5rem;
}

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

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--english-blue) 0%, var(--spanish-red) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: white;
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn-light {
    background-color: var(--accent-gold) !important;
    color: var(--dark-blue) !important;
    border: none;
    position: relative;
    z-index: 1;
}

.cta-section .btn-light:hover {
    background-color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-blue);
    border-top: 3px solid var(--accent-gold);
    padding: 3rem 0 1rem;
}

footer h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

footer p {
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

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

footer hr {
    border-color: var(--border-color);
    margin: 2rem 0;
}

footer .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

.btn-outline-warning {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-blue);
    transform: translateY(-5px);
}

/* ===== INVALID FEEDBACK ===== */
.invalid-feedback {
    color: #fca5a5;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--spanish-red);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--accent-green);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .language-cards {
        gap: 1.5rem;
    }

    .card-language {
        width: 120px;
        height: 120px;
    }

    .card-language .flag {
        font-size: 2rem;
    }

    .card-language span {
        font-size: 1.5rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
    }

    .form-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .card-language {
        width: 110px;
        height: 110px;
    }

    .language-cards {
        gap: 1rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .social-proof h4 {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .btn-outline-primary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: linear-gradient(90deg, var(--english-blue), var(--spanish-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.transition-all {
    transition: all 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT ===== */
@media print {
    .navbar,
    footer,
    .cta-section,
    .btn {
        display: none;
    }
}