/* =====================================================
   Mod Jo Finance LLC - Custom Styles
   Red Corporate Theme
   ===================================================== */

/* CSS Variables */
:root {
    --primary-red: #C41E3A;
    --primary-dark: #8B0000;
    --primary-light: #DC3545;
    --accent-red: #E63946;
    --accent-gold: #D4AF37;
    --dark: #1A1A1A;
    --dark-lighter: #2D2D2D;
    --light: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(196, 30, 58, 0.15);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar {
    padding: 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-mod {
    color: var(--primary-red);
}

.logo-jo {
    color: var(--dark);
}

.logo-finance {
    font-weight: 400;
    color: var(--gray);
    font-size: 1.25rem;
    margin-left: 0.25rem;
}

.header:not(.scrolled) .logo-mod,
.header:not(.scrolled) .logo-jo {
    color: var(--light);
}

.header:not(.scrolled) .logo-finance {
    color: rgba(255, 255, 255, 0.7);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--text-dark) !important;
}

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

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

.nav-link:hover {
    color: var(--primary-red) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header.scrolled .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%2833, 37, 41, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary-red) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title .highlight {
    color: var(--accent-gold);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-primary-custom {
    background: var(--primary-red);
    color: var(--light);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--light);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline-custom {
    background: transparent;
    color: var(--light);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--light);
    color: var(--primary-red);
    border-color: var(--light);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--light);
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

.hero-scroll a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* =====================================================
   Section Styles
   ===================================================== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-title .highlight {
    color: var(--primary-red);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =====================================================
   About Section
   ===================================================== */
.about {
    padding: 7rem 0;
    background: var(--light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray) 0%, transparent 50%, var(--light-gray) 100%);
}

.about-content {
    padding: 0;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light);
    border-radius: 12px;
    transition: var(--transition);
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: left;
}

.feature-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--light);
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* =====================================================
   Services Section
   ===================================================== */
.services {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--dark) 100%);
    z-index: -2;
}

.services-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
}

.services .section-title {
    color: var(--light);
}

.service-card {
    background: var(--light);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(230, 57, 70, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-red);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--light);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

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

.service-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    padding: 7rem 0;
    background: var(--light-gray);
}

.contact-info {
    padding-right: 2rem;
}

.contact-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--light);
}

.contact-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-content p {
    color: var(--text-muted);
    margin: 0;
}

.contact-content a {
    color: var(--primary-red);
}

.contact-content a:hover {
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    background: var(--light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.form-control::placeholder {
    color: #ADB5BD;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--dark);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo .logo-mod {
    color: var(--primary-red);
}

.footer-logo .logo-jo {
    color: var(--light);
}

.footer-logo .logo-finance {
    color: var(--gray);
    font-size: 1.1rem;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--light);
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-link {
        color: var(--text-dark) !important;
        padding: 0.75rem 0 !important;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-item {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 100px;
    }

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

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
    }

    .about-image-wrapper {
        padding: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

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

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

/* =====================================================
   Utility Classes
   ===================================================== */
.text-primary-red {
    color: var(--primary-red);
}

.bg-primary-red {
    background-color: var(--primary-red);
}

.text-accent-gold {
    color: var(--accent-gold);
}
