@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

:root {
    --primary-color: #3B0273;
    --secondary-color: #3B0273;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition-speed: 0.3s;
    --border-radius: 3px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-scale: 1.05;
}

/* General Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Rubik', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px;
    /* Height of navbar */
    height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

a {
    text-decoration: none;
}

/* Header & Navigation */
.navbar {
    transition: all var(--transition-speed) ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
    transform: scale(var(--hover-scale));
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(59, 2, 115, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    transition: all var(--transition-speed) ease;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    color: var(--primary-color) !important;
    transition: color var(--transition-speed) ease;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(59, 2, 115, 0.1);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .btn-primary {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    box-shadow: var(--box-shadow);
}

.hero-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    background-image: url('../images/hero-bg.png');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 12px rgba(59, 2, 115, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--i) * 0.2s);
}

.mission-vision {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    transition: transform var(--transition-speed) ease;
}

.mission-vision:hover {
    transform: translateY(-5px);
}

/* Partner Section */
.partner-logo {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
    max-height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

/* Estilo específico para o nome do parceiro */
.partner-logo h4.partner-name,
.partner-name {
    color: #333;
    font-size: 1rem !important;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.partner-logo:hover h4.partner-name {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .partner-logo {
        padding: 1rem;
    }

    .partner-logo img {
        max-height: 80px;
    }

    .partner-logo h4.partner-name,
    h4 .partner-name {
        font-size: 0.9rem !important;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.contact-info-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.1);
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-info:hover h3::after {
    width: 100%;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(59, 2, 115, 0.05);
    cursor: pointer;
}

.contact-link:hover {
    color: var(--secondary-color);
    background: rgba(59, 2, 115, 0.1);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.contact-link i {
    font-size: 1.2rem;
    margin: 0;
}

.nucleus-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.nucleus-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.nucleus-info:hover .nucleus-logo {
    transform: scale(1.05);
}

.nucleus-info h4 {
    color: var(--dark);
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.nucleus-info:hover h4 {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-floating {
    position: relative;
}

.form-floating>.form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.form-floating>textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: var(--gray);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    background-color: var(--white);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 2, 115, 0.1);
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-weight: 500;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 2, 115, 0.2);
    background: var(--secondary-color);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .spinner-border {
    margin-right: 0.5rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #dc3545;
}

@media (max-width: 991.98px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-info-wrapper,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .nucleus-logo {
        max-width: 80px;
    }
}

@media (max-width: 767.98px) {
    .contact-info-wrapper {
        margin-bottom: 2rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .btn-submit {
        width: 100%;
    }

    .nucleus-logo {
        max-width: 70px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Focus States */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {

    .navbar,
    .back-to-top,
    .contact-form {
        display: none;
    }

    body {
        color: #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}

/* Form Feedback */
.form-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.form-feedback.show {
    transform: translateX(0);
}

.form-feedback.success {
    border-left: 4px solid #28a745;
}

.form-feedback.error {
    border-left: 4px solid #dc3545;
}

.form-feedback i {
    font-size: 1.2rem;
}

.form-feedback.success i {
    color: #28a745;
}

.form-feedback.error i {
    color: #dc3545;
}

.form-feedback span {
    color: #333;
    font-size: 0.95rem;
}

/* Form Loading State */
.btn-submit {
    position: relative;
    min-width: 120px;
}

.btn-submit .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Form Validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-feedback {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: translateY(120%);
    }

    .form-feedback.show {
        transform: translateY(0);
    }
}

/* Embaixadores Section */
.embaixador-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.embaixador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.embaixador-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.embaixador-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embaixador-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.embaixador-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.embaixador-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .embaixador-image {
        width: 150px;
        height: 150px;
    }

    .embaixador-name {
        font-size: 1.3rem;
    }

    .embaixador-title {
        font-size: 1rem;
    }
}

/* Contact Form Button Alignment */
.contact-form .btn-primary {
    float: right;
    margin-top: 1rem;
}

.contact-form::after {
    content: '';
    display: table;
    clear: both;
}

/* Footer Vertical Alignment */
footer .row {
    min-height: 80px;
    align-items: center;
}

footer .text-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .text-md-start {
    display: flex;
    align-items: center;
}

footer .text-md-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Footer Gradient Line */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3B0273, #cddd00);
}

/* Developer Logo in Footer */
.developer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.developer-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
    line-height: 0;
}

.developer-logo:hover {
    opacity: 0.8;
}

.developer-logo img {
    display: block;
    max-height: 30px;
    width: auto;
}

/* Social Info in Footer */
.social-info {
    text-align: left;
}

.social-info h6 {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.social-info a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-info a:hover {
    transform: scale(1.1);
}

/* Error Pages Styles */
.error-page {
    margin-top: -76px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B0273 0%, #cddd00 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.error-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-home {
    background-color: white;
    color: #3B0273;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #3B0273;
}