/* ==========================================================================
   CSS Variables & Reset (IdeaLab Group Branding)
   ========================================================================== */
:root {
    --brand-red-dark: #680A15;
    /* Dark red from top of credential */
    --brand-red-light: #B10815;
    /* Bright red from bottom */
    --brand-navy: #11335D;
    /* Navy blue from text */

    --bg-main: #ffffff;
    --bg-alt: #f4f6f9;
    /* Light gray for alternate sections */
    --card-bg: #ffffff;

    --primary-color: var(--brand-red-light);
    --primary-hover: #900610;
    --secondary-color: var(--brand-navy);
    --secondary-hover: #0a2140;

    --text-main: var(--brand-navy);
    --text-muted: #5a6a80;

    --font-main: 'Outfit', sans-serif;

    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--brand-navy);
}

.section-title span,
h1 span,
h2 span {
    color: var(--brand-red-light);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(177, 8, 21, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(177, 8, 21, 0.4);
}

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

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 51, 93, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 51, 93, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    /* Starts transparent over hero */
}

/* When scrolled, white background with shadow */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

/* Brand logo image */
.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition-smooth);
}

.footer-logo {
    height: 55px;
}

/* Scrolled version brand logo visibility */
/* Using filter to invert the white logo to dark gray/black so it is visible on the white navbar */
.navbar.scrolled .logo-img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(26%) saturate(3015%) hue-rotate(185deg) brightness(97%) contrast(98%);
    /* The above filter combination roughly creates the Navy Blue #11335D color from white! */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Nav links over the red hero */
.nav-links a:not(.btn-primary-outline) {
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary-outline):hover {
    color: var(--brand-red-light);
}

/* Scrolled nav links colors */
.navbar.scrolled .nav-links a:not(.btn-primary-outline) {
    color: var(--brand-navy);
}

.navbar.scrolled .nav-links a:not(.btn-primary-outline):hover {
    color: var(--brand-red-light);
}

.mobile-menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
}

.navbar.scrolled .mobile-menu-icon {
    color: var(--brand-navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--brand-red-dark);
    /* Pattern background representing the waves from the ID badge */
    background-image: repeating-radial-gradient(circle at top left,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 11px);
    color: #ffffff;
    overflow: hidden;
}

/* Optional overlay to emphasize text contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(104, 10, 21, 0.9) 0%, rgba(104, 10, 21, 0.6) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content h1 span {
    color: #ffffff;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hero primary button variant to contrast dark red */
.hero .btn-primary {
    background-color: #ffffff;
    color: var(--brand-red-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
    background-color: #f1f1f1;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(17, 51, 93, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 51, 93, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(177, 8, 21, 0.1);
    /* light red bg */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 2rem;
    color: var(--brand-red-light);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--brand-navy);
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: var(--bg-main);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(17, 51, 93, 0.15);
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-navy);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ID Card decoration */
.id-card-quote {
    margin-top: 20px;
    padding: 20px;
    border-left: 4px solid var(--brand-red-light);
    background-color: var(--bg-alt);
    font-style: italic;
    font-weight: 600;
    color: var(--brand-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(17, 51, 93, 0.1);
    padding-top: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--brand-red-light);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--brand-navy);
    font-weight: 600;
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-alt);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(17, 51, 93, 0.05);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-navy);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--brand-navy);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--bg-alt);
    border: 1px solid rgba(17, 51, 93, 0.1);
    border-radius: 12px;
    color: var(--brand-navy);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(177, 8, 21, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--brand-red-light);
    /* Using the brighter red for bottom exactly like the credential */
    padding: 60px 0 20px;
    color: #ffffff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-brand .brand {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: #ffffff;
}

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

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

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

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}