/* --- 1. GENERAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* --- 2. SCROLL OFFSET FIX --- */
/* Ensures navbar doesn't cover section titles when clicked */
section, footer, header {
    scroll-margin-top: 80px; 
}

/* --- 3. NAVBAR STYLING --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #D32F2F;
}

/* Highlight Button (AI Tax Advisor) */
.btn-highlight {
    background: #D32F2F;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-highlight:hover {
    background: #b71c1c;
}

/* Facebook Icon Styling */
.nav-social-icon svg {
    vertical-align: middle;
    transition: opacity 0.3s ease;
}
.nav-social-icon:hover svg {
    opacity: 0.7;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Dynamic Text Span */
#dynamic-text {
    color: #f1c40f; /* Gold accent color for dynamic text */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
}

.btn-primary { background: #D32F2F; color: white; }
.btn-primary:hover { background: #b71c1c; }

.btn-secondary { background: white; color: #333; }
.btn-secondary:hover { background: #f1f1f1; }

.btn-outline-white { border: 2px solid white; color: white; }
.btn-outline-white:hover { background: white; color: #333; }

/* --- 5. SECTIONS --- */
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f9f9f9; }
.bg-dark { background-color: #222; }
.text-white { color: #fff; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; color: #333; }

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-5px); }
.service-card .icon { font-size: 40px; margin-bottom: 20px; }

/* Founder Section */
.founder-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.founder-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.founder-bio h4 { color: #D32F2F; text-transform: uppercase; letter-spacing: 2px; }
.founder-bio h2 { font-size: 2.5rem; margin-bottom: 10px; }
.red-divider { border: 0; border-top: 3px solid #D32F2F; width: 60px; margin: 20px 0; }

/* --- 6. FOOTER --- */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-col { margin-bottom: 20px; }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- 7. MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    /* Navbar Mobile Style */
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px; /* Below navbar */
        height: 92vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 65%; /* Menu Width */
        transform: translateX(100%); /* Hide menu off-screen */
        transition: transform 0.4s ease-in;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding-top: 50px;
        z-index: 999;
    }

    /* Class added by JS to show menu */
    .nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0; /* Hidden for animation */
    }

    /* Show Hamburger on mobile */
    .hamburger {
        display: block;
    }

    /* Layout Adjustments */
    .hero h1 { font-size: 2rem; }
    
    .founder-layout { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
        align-items: center; 
        gap: 30px; 
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Animations (Hamburger & Links) */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}