/* site.css - Main stylesheet for Beraldi Tech Informática website */

:root {
    /* Color variables */
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white: #ffffff;
    
    /* Font variables */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing variables */
    --section-padding: 80px 0;
    --header-height: 80px;
}

/* General Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a:hover {
    color: #0069d9;
    text-decoration: none;
}

.btn {
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 30px;
}

/* Header / Navbar */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    z-index: 100;
}

.header-scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.logo-img {
    margin-right: 10px;
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

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

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
}

/* Hero Section */
.hero-section {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(135deg, rgba(240,245,255,1) 0%, rgba(255,255,255,1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-graphic {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-graphic i {
    transition: all 0.3s ease;
}

.hero-graphic i:hover {
    transform: translateY(-10px);
}

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

/* About Section */
.about-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.about-image-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.about-graphic {
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.about-graphic i {
    transition: all 0.3s ease;
}

.about-graphic:hover i {
    transform: scale(1.2);
}

.about-image {
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-highlights {
    margin-top: 30px;
}

.highlight-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.highlight-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.founder-text {
    margin-top: 20px;
    font-style: italic;
}

.founder-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    padding: var(--section-padding);
    background-color: #f9f9f9;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003c7d 100%);
    color: var(--white);
}

.cta-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0069d9;
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-divider {
    margin: 30px 0;
    border-color: rgba(255, 255, 255, 0.1);
}

.copyright, .credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: all 0.3s ease;
    display: none;
}

.back-to-top:hover {
    background-color: #0069d9;
    color: var(--white);
    transform: translateY(-3px);
}

/* Error Page */
.error-page {
    padding: 150px 0;
    background-color: #f9f9f9;
    min-height: calc(100vh - 300px);
}

.error-title {
    font-size: 5rem;
    margin-bottom: 10px;
    color: var(--danger-color);
}

.error-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.error-details {
    margin-bottom: 20px;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

.error-message {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.error-actions {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-image-container {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

/* Animation classes */
/* Ensure content is visible even if animations fail to initialize */
[data-aos] {
    visibility: visible;
}

.aos-animate {
    visibility: visible;
}

/* Form styles */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    opacity: 0.8;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.invalid-feedback {
    display: block;
    text-align: left;
}