/* ================================================
   CEFISCO International — Premium Dark Theme
   Bootstrap 5 + Custom CSS
   ================================================ */

/* ---------- VARIABLES ---------- */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #060609;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --green: #2ecc71;
    --green-light: #4cd98b;
    --green-dark: #1fa85a;
    --red: #c0392b;
    --red-light: #e74c3c;
    --red-dark: #a93226;
    --text-primary: #f0f0f0;
    --text-secondary: #9a9ab0;
    --text-muted: #6b6b80;
    --border-subtle: rgba(46, 204, 113, 0.15);
    --border-red: rgba(192, 57, 43, 0.2);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
}

/* ---------- UTILITY CLASSES ---------- */
.text-gold { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.border-gold { border-color: var(--green) !important; }

.py-section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-darker {
    background-color: var(--bg-darker);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 1rem;
    padding: 6px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* ---------- NAVBAR LOGO ---------- */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar-logo {
    height: 45px;
    width: auto;
    margin-right: 4px;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

#mainNav.scrolled .navbar-logo {
    height: 38px;
}

/* ---------- BUTTONS ---------- */
.btn-gold {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--red-light), var(--red));
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-gold:hover::before {
    left: 0;
}

.btn-gold:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.35);
}

.btn-gold > * {
    position: relative;
    z-index: 1;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 30px;
    border-radius: 6px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--green);
    color: var(--green);
}

/* ---------- NAVBAR ---------- */
#mainNav {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: 1px solid var(--green);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    filter: brightness(2);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    min-height: 100vh;
    position: relative;
    background:
        linear-gradient(135deg, rgba(10, 10, 15, 0.92), rgba(6, 6, 9, 0.85)),
        url('../assets/img/flyer-cefisco.jpg') center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(46, 204, 113, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(192, 57, 43, 0.06) 0%, transparent 60%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    50% { transform: translateY(-10vh) scale(1); }
}

.z-2 { z-index: 2; }

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--green);
    letter-spacing: 1px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    background: rgba(46, 204, 113, 0.05);
}

.hero-badge i {
    margin-right: 8px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 1.5rem 0;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Hero Visual Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.hero-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.hero-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll-indicator a {
    color: var(--green);
    font-size: 1.2rem;
    animation: scrollBounce 2s infinite;
    display: block;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ---------- ABOUT SECTION ---------- */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    position: relative;
}

.about-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.6));
    border-radius: 16px;
}

.about-img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

.about-experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    padding: 20px 30px;
    border-radius: 16px 0 16px 0;
    text-align: center;
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.about-feature-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

/* ---------- SERVICE CARDS ---------- */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--green), var(--red));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(46, 204, 113, 0.05);
}

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

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--green-light);
    gap: 12px;
}

.service-card-highlight {
    background: linear-gradient(135deg, var(--bg-card), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.service-icon-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin: 0 auto;
}

/* ---------- STATS SECTION ---------- */
.section-stats {
    background:
        linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(46, 204, 113, 0.05)),
        var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--green);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green);
    font-weight: 700;
    display: inline;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

/* ---------- EVENT CARDS ---------- */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.event-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-card-img img {
    transform: scale(1.08);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
}

.event-day {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-body {
    padding: 25px;
}

.event-card-body h5 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.event-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    background: var(--bg-dark);
}

.cta-box {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(46, 204, 113, 0.08));
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 50px;
}

.cta-box h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- CONTACT SECTION ---------- */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item h6 {
    color: #fff;
    margin-bottom: 2px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-info-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.contact-hours h6 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.contact-hours p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
}

.form-control,
.form-select {
    background-color: var(--bg-darker) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary) !important;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15) !important;
}

.form-floating label {
    color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--green);
}

.form-select option {
    background: var(--bg-darker);
    color: var(--text-primary);
}

/* ---------- FOOTER ---------- */
.footer-section {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.footer-brand .brand-text {
    font-size: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--green);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--bg-dark);
    transform: translateY(-5px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .py-section {
        padding: 70px 0;
    }

    .navbar-collapse {
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 16px;
        margin-top: 10px;
        border: 1px solid var(--border-subtle);
    }

    .cta-box {
        padding: 30px;
        text-align: center;
    }

    .cta-box .text-lg-end {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .service-card-highlight .row {
        text-align: center;
    }

    .service-card-highlight .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
}

/* ---------- SELECTION ---------- */
::selection {
    background: var(--red);
    color: #fff;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--red-dark);
    border-radius: 4px;
}

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