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

:root {
    --color-primary-dark: #07223f;
    --color-primary-light: #0d3866;
    --color-teal-bright: #14b8a6;
    --color-teal-dark: #0f766e;
    --color-bg-light: #f8fafc;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Global Image Constraints --- */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.brand-logo {
    display: block;
}

.brand-logo img {
    max-height: 55px;
    width: auto;
    transition: var(--transition);
}

.logo-desktop {
    display: block;
    max-height: 55px;
    width: auto;
    transition: var(--transition);
}

.logo-mobile {
    display: none; /* Hidden on desktop screens */
}

.nav-menu {
    display: flex;
    gap: 1.25rem; /* Balanced spacing between layout items */
    align-items: center;
}

.nav-btn {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--color-primary-dark);
    white-space: nowrap;
}

.nav-btn:hover {
    background-color: transparent;
    color: var(--color-primary-dark);
}

/* LinkedIn Nav Integration */
.nav-linkedin {
    display: block;
    transition: var(--transition);
}

.nav-linkedin img {
    height: 42px; /* Uniform profile alignment with button height */
    width: auto;
    border-radius: 6px;
}

.nav-linkedin:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- Hero Section --- */
.hero {
    padding: 1rem 0 2rem 0; 
    background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-light) 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-teal-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
    animation: float 6s ease-in-out infinite;
}

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

/* --- Value Proposition / Core Services --- */
.services {
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--color-bg-light);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: 0 20px 40px rgba(7, 34, 63, 0.05);
    border-color: rgba(20, 184, 166, 0.2);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-teal-bright);
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0; /* Prevents the emoji from getting squished on ultra-narrow screens */
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 0;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.975rem;
}

.card-header {
    display: flex;
    align-items: center; /* Vertically aligns the icon and text */
    gap: 1rem; /* Puts space between the icon and the heading */
    margin-bottom: 1rem; /* Pushes the paragraph text down */
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 2rem 0; 
    border-top: 4px solid var(--color-teal-bright);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* =========================================
   Responsive Design Media Queries 
   ========================================= */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem; 
    }

    .hero {
        padding: 1rem 0 1rem 0; 
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem; 
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto 2rem auto;
    }

    .hero-image-container {
        display: none;
    }

    .logo-desktop {
        display: none; /* Hide the small icon */
    }

    .logo-mobile {
        display: block !important;
        width: 100% !important; /* Overrides inline HTML attributes */
        max-width: 450px; /* Sets an optimal max boundary so it fits beautifully */
        height: auto !important; /* Keeps proportional aspect ratio */
        max-height: none !important; /* Removes the 55px desktop ceiling */
        margin: 0 auto; /* Centers it within the parent layout */
    }
    
    /* Gives navigation links room under the expanded logo layout */
    nav {
        width: 100%;
    }

    .nav-menu {
        justify-content: center; /* Centers the buttons below the wide logo layout */
    }

    /* Restructure the header layout to give the logo its own full-width row */
    .nav-container {
        flex-direction: column !important; /* Stacks the logo above the navigation menu */
        align-items: center !important;
        gap: 1.5rem;
        width: 100% !important;
    }

    .brand-logo {
        display: block !important;
        width: 100% !important; /* Allows the link container to expand completely */
        text-align: center;
    }

    .services {
        padding: 2rem 0 4rem 0; 
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; 
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem; 
    }

    .brand-logo img {
        max-height: 38px; 
    }

    .logo-mobile {
        max-width: 100%; /* Lets it expand fully to the edge of the padding on tiny phones */
    }

    .nav-menu {
        gap: 0.75rem; /* Pulls elements closer on ultra-narrow displays */
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .nav-linkedin img {
        height: 34px; /* Graceful scaling down next to button modifications */
    }

    .hero-content h1 {
        font-size: 1.9rem; 
    }
}