/* Modern Nicaraguan Theme for CodeAder */
:root {
    --primary-blue: #003893;
    /* Nicaragua Flag Blue - Deep & Professional */
    --secondary-blue: #00A5DC;
    /* Nicaragua Flag Light Blue/Cyan - Modern Accent */
    --white: #FFFFFF;
    --light-gray: #F4F6F9;
    --dark-text: #2C3E50;
    --light-text: #ECF0F1;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-blue);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

/* Jumbotron/Hero */
.jumbotron.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #00205B 100%);
    color: var(--white);
    border-radius: 0 0 50px 50px;
    /* Modern curved bottom */
    padding: 6rem 2rem 4rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    /* Subtle geometric pattern overlay could go here, keeping it clean for now */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.btn-cta {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background-color: #008CBA;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card-title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--secondary-blue);
}

.card-text {
    color: #666;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 3rem 0;
    margin-top: 5rem;
    font-size: 0.9rem;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Contact FAB & Modal */
.contact-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-fab {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.fab-text {
    font-weight: 600;
    display: none;
}

.contact-fab:hover .fab-text {
    display: inline-block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

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

/* Custom Modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
}

.custom-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.custom-modal.show .custom-modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding: 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.close-modal {
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dark-text);
}

.form-group label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 10px;
    padding: 1.2rem 1rem;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 165, 220, 0.1);
}

.btn-send {
    background: var(--primary-blue);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

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

.contact-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
}