/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #2563eb;
    /* Vibrant Blue */
    --secondary-color: #1e293b;
    /* Dark Slate */
    --accent-color: #D34928;
    /* Amber */
    --text-light: #f8fafc;
    --text-dark: #334155;
    --bg-light: #ffffff;
    --nav-height: 80px;
    --section-spacing: 100px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
           Navigation Section
        ======================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: var(--bg-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.brand-logo img {
    height: 70px;
    margin-right: 10px;
}

.navbar.scrolled .brand-logo {
    color: var(--secondary-color);
}

.navbar.scrolled .brand-logo img {
    filter: none;
}


.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar.scrolled .nav-links li a {
    color: var(--secondary-color);
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.apply-btn-nav {
    /* Placed top right as per standard UX, though prompt said left */
    margin-left: 20px;
}

/* Mobile Nav Toggle (Hidden on desktop) */
.menu-toggle {
    display: none;
}

/* =======================
           Hero Section
        ======================= */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: textSlideUp 1s ease-out forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: textSlideUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-btn-group {
    animation: textSlideUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* =======================
           Job Placement Section
        ======================= */
#jobs {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-off-white);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.job-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
}

.job-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 20px;
}

.job-card p {
    color: #64748b;
    margin-bottom: 25px;
}

/* =======================
    Service Section - UPDATED TO FLEXBOX
    ======================= */
#services {
    padding: var(--section-spacing) 0;
    background: var(--bg-light);
}

.service-grid {
    display: flex;
    /* Use Flexbox */
    flex-wrap: wrap;
    /* Allow items to wrap to the next line */
    gap: 30px;
    justify-content: center;
    /* Center items when they don't fill the full width */
}

.service-item {
    /* Set a flexible basis for items */
    flex: 1 1 300px;
    /* Grow: 1, Shrink: 1, Basis: 300px (ensuring at least 300px wide) */
    max-width: 350px;
    /* Prevent stretching too wide on large screens */

    text-align: center;
    padding: 40px 20px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-off-white);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-item h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-item p {
    color: #4b5563;
    line-height: 1.6;
}

/* =======================
           About Section
        ======================= */
#about {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-off-white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img img {
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: #64748b;
}

/* =======================
           Our Partner Section (Auto Scroll)
        ======================= */
#partners {
    padding: 60px 0;
    background: var(--bg-light);
    overflow: hidden;
}

#partners h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.partner-slider {
    display: flex;
    width: 100%;
}

/* === FADE OVERLAYS === */
.partner-slider::before,
.partner-slider::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
    /* Width of the fade zone */
    z-index: 10;
    pointer-events: none;
    /* Allows clicks to pass through */
}

/* Left Fade */
.partner-slider::before {
    left: 0;
    /* Gradient: Transparent to Background Color */
    background: linear-gradient(to right, var(--bg-off-white) 0%, rgba(243, 244, 246, 0) 100%);
}

/* Right Fade */
.partner-slider::after {
    right: 0;
    /* Gradient: Background Color to Transparent */
    background: linear-gradient(to left, var(--bg-off-white) 0%, rgba(243, 244, 246, 0) 100%);
}

/* === END FADE OVERLAYS === */

.partner-track {
    display: flex;
    align-items: center;
    animation: scroll 25s linear infinite;
}

/* Ensure duplicate track for seamless loop */
.partner-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    width: 200px;
    padding: 0 30px;
}

.partner-logo img {
    max-height: 150px;
    /* Grayscale to colored on hover */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way, assuming track is doubled */
    }
}

/* =======================
    Contact & Enquire Section
    ======================= */
#contact-enquire {
    padding: var(--section-spacing) 0;
    /* Using the defined variables for background */
    background: linear-gradient(to right, var(--secondary-color) 50%, var(--bg-off-white) 50%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    /* Use dark text color for header */
    margin-bottom: 10px;
}

.section-header p {
    color: #6b7280;
    /* Gray-500 */
}

.contact-wrapper {
    display: flex;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-light);
}

em {
    color: var(--accent-color);
    /* Highlight color for "Get In" */
    font-style: normal;
}

/* Contact Info Box (Dark Side) */
.contact-info-box {
    flex: 1;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 60px;
    display: flex;
    /* Flex container to center content */
    flex-direction: column;
    justify-content: center;
}

.contact-info-box h2 {
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

/* Individual Info Items */
.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    /* Aligns the icon to the top of the text block */
    gap: 15px;
    /* Spacing between icon and text */
}

.info-item:last-of-type {
    margin-bottom: 0;
}

/* SVG Icon Styling */
.info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    /* Highlight color for the SVG stroke/fill */
    /* Removed margin-top to ensure flush alignment with the h4 */
}

.info-item h4 {
    color: var(--accent-color);
    margin-top: 0;
    /* FIX: Removes default h4 top margin for clean alignment with icon */
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p,
.info-item a {
    color: #cbd5e1;
    /* Lighter text color for readability on dark background */
    text-decoration: none;
    line-height: 1.4;
    font-size: 1rem;
}

.info-item a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
}

.social-links a {
    color: #94a3b8;
    /* Gray on dark background */
    transition: color 0.3s, transform 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.social-links svg {
    width: 28px;
    height: 28px;
}


/* Enquiry Form Box (Light Side) */
.enquire-form-box {
    flex: 1.5;
    padding: 60px;
    background: var(--bg-light);
}

.enquire-form-box h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Crucial for width: 100% to work with padding */
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Button Styling */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #d97706;
    /* Slightly darker orange */
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* =======================
           Footer Section
  ======================= */
footer {
    background: var(--secondary-color);
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about h3 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-widget h4 {
    color: var(--text-light);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =======================
           Responsive Design
        ======================= */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-container {
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    #contact-enquire {
        background: var(--bg-off-white);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    em {
        color: var(--secondary-color);
        font-style: normal;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: block;
        color: var(--text-light);
        font-size: 1.8rem;
        cursor: pointer;
    }

    .navbar.scrolled .menu-toggle {
        color: var(--secondary-color);
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        background: var(--bg-light);
        height: calc(100vh - var(--nav-height));
        width: 80%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--text-dark);
        font-size: 1.2rem;
    }

    .apply-btn-nav {
        margin: 20px 0 0 0;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo {
        width: 150px;
        padding: 0 15px;
    }

    .contact-info-box,
    .enquire-form-box {
        padding: 30px;
    }

    em {
        color: var(--secondary-color);
        font-style: normal;
    }
}