/* style.css */

/* ------------------------- */
/* ----- 0. ROOT & GLOBALS -- */
/* ------------------------- */
:root {
    --dark-bg: #111827;
    --panel-bg: #1f2937;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Rubik', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0 5%;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ------------------------- */
/* ----- 1. ANIMATIONS ----- */
/* ------------------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------- */
/* ----- 2. REUSABLE COMPONENTS -- */
/* ------------------------- */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
}

/* NEW BUTTON STYLE */
.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--panel-bg);
    padding: 10px 24px;
}

.btn-outline:hover {
    background-color: var(--primary); /* Change background to primary blue */
    border-color: var(--primary);     /* Match the border color */
    color: white;                     /* Ensure text is readable */
    transform: translateY(-3px);      /* Add the lift effect like the primary button */
    box-shadow: 0 0 25px var(--primary-glow); /* Add the glow effect */
}


.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem; 
}

.section-title.text-start { text-align: left; }

/* NEW: Modifier for smaller section titles */
.section-title--small {
    font-size: 2rem;
    margin-bottom: 2rem;
}


/* ------------------------- */
/* ----- 3. HEADER & NAV --- */
/* ------------------------- */
.main-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}
.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 80px; }
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-links li { margin-left: 25px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}
/* -------------------------------------- */
/* ----- 9. NAV LINK POPUP LOGO STYLES ---- */
/* -------------------------------------- */

   .learning-link-wrapper {
    position: relative;
}

.popup-logo {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%); 
    margin-top: 15px; 
    z-index: 10;
    height: 100px; 
    width: auto;
    background-color: var(--panel-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50%) translateY(10px); 
    pointer-events: none; 
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.learning-link-wrapper:hover .popup-logo {
    opacity: 1;
    transform: translateX(-50%) translateY(0); 
}
.nav-links a.btn { color: white; }

.hamburger { display: none; } 

/* ------------------------- */
/* ----- 4. PAGE SECTIONS -- */
/* ------------------------- */
.hero-section {
    text-align: center;
    padding: 60px 0; 
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 40%);
}
.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    max-width: auto;
    margin: 0 auto 1.5rem; 
    line-height: 1.2;
}
/* NOTE: The long hero paragraph is intentionally kept left-aligned for better readability. */
.hero-section .lead {
    font-size: 1.2rem;
    max-width: 900px; 
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.hero-cta-btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    padding: 60px 0; 
}

/* MODIFIED: This rule now centers the text in all lead paragraphs within a content-section */
.content-section .lead {
    max-width: auto; /* As requested, allows it to fill the container width */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center; /* This is the key change */
}

.service-card {
    background-color: var(--panel-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #374151;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 0; 
    text-align: center;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px white;
}
.service-card h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
    text-align: left; 
}

.placeholder-graphic img{
    margin-top: 10%;
    height: 300px;
    width: 98%;
    border-radius: 12px;
    border: 4px solid var(--primary);
}

.service-icon {
    font-size: 2.5rem; 
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* ------------------------- */
/* ----- 5. FOOTER --------- */
/* ------------------------- */
.main-footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--panel-bg);
    margin-top: 60px; 
}

/* --------------------------------- */
/* ----- 6. TEAM SECTION STYLES ---- */
/* --------------------------------- */
.team-card {
    background-color: var(--panel-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #374151;
    height: 100%;
}


.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
    object-fit: cover;
}
.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    margin: 0;
}
.team-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}
.team-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.social-links {
    margin-top: 20px;
}
.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary);
}

/* ---------------------------------- */
/* ----- 8. CONTACT PAGE STYLES ---- */
/* ---------------------------------- */

.contact-info-block {
    margin-bottom: 30px;
    background-color: var(--panel-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #374151;
}

.icon-text {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon-text i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.icon-text span, .icon-text a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.icon-text a:hover {
    color: var(--primary);
}

iframe {
    border: 1px solid #374151;
    border-radius: 12px;
}

.map-iframe {
    filter: invert(0.9) hue-rotate(180deg);
}

/* ---------------------------------- */
/* ----- 8b. CUSTOM FORM STYLES ---- */
/* ---------------------------------- */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Replace the old block with this one */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; /* CHANGED: This makes all fields consistent */
    box-sizing: border-box; /* ADDED: Ensures padding is included in the width */
    padding: 12px 15px;
    background-color: var(--panel-bg);
    border: 1px solid #374151;
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#thank-you-message {
    background-color: var(--panel-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--primary);
}

#thank-you-message h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
}

.packages-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    max-width: 1100px; 
    margin: 0 auto;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 40px; 
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.feature-list i {
    position: absolute;
    left: 0;
    top: 5px; 
    color: var(--primary);
    font-size: 1.5rem; 
}

.feature-list strong {
    color: var(--text-color);
    font-weight: 500;
}

/* ---------------------------------- */
/* ----- 10. CAREERS PAGE STYLES ---- */
/* ---------------------------------- */

.job-listing {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    background-color: var(--panel-bg);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #374151;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.job-listing:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.job-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.job-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-right: 30px;
    line-height: 1; 
}

.job-title-location h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: white;
    margin: 0;
}

.job-title-location p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 5px 0 0 0;
}

.job-listing .btn {
    margin-top: 20px;
}

.hiring-soon-panel {
    background-color: var(--panel-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #374151; 
}

.hiring-soon-panel h3 {
    font-family: var(--font-heading);
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hiring-soon-panel p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

@media (min-width: 768px) {
    .job-listing {
        flex-direction: row; 
        align-items: center;
    }
    .job-listing .btn {
        margin-left: auto; 
        margin-top: 0;
    }
}
/* Add this to the end of css/style.css */

/* ---------------------------------- */
/* ----- 11. PHONE INPUT STYLES ----- */
/* ---------------------------------- */

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group select {
    flex: 0 0 120px; /* Do not grow, do not shrink, base width of 120px */
}

.phone-input-group input {
    flex: 1 1 auto; /* Grow and shrink as needed */
    width: auto; /* Override the default width */
}

/* --------------------------------- */
/* ----- 7. RESPONSIVE & MOBILE ---- */
/* --------------------------------- */

@media (max-width: 992px) {
    /* --- Nav Menu --- */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        /* MODIFICATION: Use viewport units and a negative margin to span the full screen,
           bypassing the body padding that constrains the parent header. */
        width: 100vw;
        margin-left: -5vw;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Page Content Adjustments --- */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .contact-info-block {
        margin-top: 40px; 
    }
}