/* assets/css/styles.css - Complete Stylesheet with Mobile Menu */

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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background: var(--white);
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 1002;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1002;
}

/* Dropdown Menu - FIXED */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 0;  /* Changed from 10px to 0 */
    border-radius: 8px;
    padding: 10px 0;
}

/* Add invisible bridge to prevent dropdown from closing */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: var(--bg-light);
}

/* Hero Section */
.hero {
    margin-top: 120px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #0ea674;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16,185,129,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.feature-content {
    padding: 20px;
}

.feature-content h3 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 20px;
}

.feature-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Loan Programs Section */
.loan-programs {
    padding: 80px 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.program-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.program-content {
    padding: 30px;
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    font-size: 20px;
    color: var(--secondary-color);
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background: var(--white);
}

.calc-container {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calc-input {
    margin-bottom: 20px;
}

.calc-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.calc-input input, .calc-input select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.calc-result {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.calc-result h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.calc-amount {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.team-member {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.blog-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide desktop menu */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    /* Show mobile menu when active */
    .nav-menu.active {
        display: flex;
        right: 0;
        animation: slideInRight 0.3s ease;
    }
    
    /* Mobile menu overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile dropdown */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-left: 20px;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Adjust header top for mobile */
    .header-top {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Hero adjustments */
    .hero {
        margin-top: 90px;
        padding: 60px 0;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
        width: 100%;
    }
    
    /* Grid adjustments */
    .features-grid,
    .programs-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Section padding adjustments */
    .features,
    .loan-programs,
    .process,
    .calculator,
    .about,
    .blog,
    .contact-form-section,
    .cta-section {
        padding: 50px 0;
    }
    
    /* Title adjustments */
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .calc-amount {
        font-size: 28px;
    }
}