/* css/style.css */

/* --- Global Styles & Resets --- */
:root {
    --primary-color: #007bff; /* Blue - Can be changed to your brand color */
    --secondary-color: #6c757d; /* Gray */
    --light-gray-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --light-text-color: #ffffff;
    --success-color: #28a745;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-headings: "Georgia", serif; /* Example for headings */
    --default-transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px; /* Base font size */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--default-transition);
}

a:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; } /* ~40px */
h2 { font-size: 2rem; }   /* ~32px */
h3 { font-size: 1.75rem; } /* ~28px */
h4 { font-size: 1.5rem; }  /* ~24px */

p {
    margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    padding: 60px 0;
}

.page-header {
    /*background-color: var(--primary-color); /* Or use a background image */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/page-header-bg.jpg'); 
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-text-color);
    font-size: 2.8rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.bg-light {
    background-color: var(--light-gray-color);
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0 !important; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }


.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.25rem;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Basic Row/Col for layout (simplified) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > * { /* All direct children of .row */
    padding-left: 15px;
    padding-right: 15px;
    width: 100%; /* Default to full width on small screens */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1rem; /* Adjusted padding */
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: var(--default-transition);
}

.btn-primary {
    color: var(--light-text-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--light-text-color);
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 12%);
    text-decoration: none;
}

.btn-secondary {
    color: var(--light-text-color);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    color: var(--light-text-color);
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 12%);
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
}

.learn-more-link {
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures header stays on top */
    width:100%;
}

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

.logo {
    height: 100px; /* Adjust as needed */
    width: auto;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-decoration: none;
}
.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
}


.nav-toggle { /* Hamburger button */
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: var(--default-transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    left: 0;
    transition: var(--default-transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* --- Hero Section (Home Page) --- */
#hero {
    background-image: linear-gradient(rgba(0, 50, 100, 0.6), rgba(0, 20, 50, 0.7)), url('../images/hero-bg.jpg'); /* Add your hero image */
    background-size: cover;
    background-position: center center;
    color: var(--light-text-color);
    padding: 100px 0;
    text-align: center;
    min-height: 70vh; /* Make hero section taller */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    font-size: 3rem; /* ~48px */
    margin-bottom: 1rem;
    color: var(--light-text-color);
    font-weight: bold;
}

#hero p {
    font-size: 1.25rem; /* ~20px */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#hero .btn {
    margin: 0.5rem;
}

/* --- Success Mantra Section (Home Page) --- */
/* --- Success Mantra Section (Home Page) --- */
#success-mantra h2 {
    text-align: center;
    margin-bottom: 40px;
}
.mantra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    /* text-align: center; -- This on the grid will center the .mantra-item content if it's inline-block, but .mantra-item itself is a grid item */
}

.mantra-item {
    padding: 25px 20px; /* Slightly increased padding */
    border: 1px solid #e0e0e0; /* Slightly softer border */
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Explicitly center text content within each item */
    display: flex; /* Use flexbox for better internal alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally in the flex container */
}

.mantra-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mantra-icon {
    width: 80px;   /* << INCREASED SIZE (was 60px) */
    height: 80px;  /* << INCREASED SIZE (was 60px) */
    margin-bottom: 20px; /* Increased space below icon */
    /* margin-left: auto;   -- No longer needed if .mantra-item uses flex align-items: center */
    /* margin-right: auto;  -- No longer needed */
    /* display: block; -- This is already in global img styles, but ensure the icon itself is an <img> or behaves like one */
    object-fit: contain; /* Ensures the icon image scales nicely within the dimensions if it's not square */
}

.mantra-item h3 {
    font-size: 1.3rem; /* Slightly increased font size */
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mantra-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Services Overview (Home Page) --- */
#services-overview h2 {
    text-align: center;
    margin-bottom: 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item-overview {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden; /* To contain image corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: var(--default-transition);
    display: flex;
    flex-direction: column;
}
.service-item-overview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-overview-img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers area without distortion */
}
.service-item-overview h3 {
    font-size: 1.3rem;
    margin: 15px 20px 10px;
    color: var(--primary-color);
}
.service-item-overview p {
    font-size: 0.95rem;
    margin: 0 20px 15px;
    flex-grow: 1; /* Allows p to take available space pushing link down */
}
.service-item-overview .learn-more-link {
    margin: 0 20px 20px;
    align-self: flex-start;
}


/* --- CTA Section (Home Page) --- */
.cta-section {
    background-color: var(--dark-color);
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 40px;
}

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

.footer-logo {
    max-width: 200px; /* Adjust as needed */
    margin-bottom: 15px;
    /* filter: brightness(0) invert(1); If your logo is dark and needs to be white on dark bg */
}
.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    /* Style your social icons (images or font icons) */
}
.social-links img {
    width: 24px;
    height: 24px;
}


.footer-links h4, .footer-contact h4 {
    color: var(--light-text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--light-text-color);
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-contact a:hover {
    color: var(--light-text-color);
}


.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
}

/* --- About Us Page Specifics --- */
#company-vision .row, #mission .row {
    align-items: center; /* Vertically align items in a row */
}
#company-vision img, #mission img {
    margin-bottom: 1rem; /* Space below image on mobile */
}

/* --- Services Page Specifics --- */
.service-page-item {
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}
.service-page-item:last-child {
    border-bottom: none;
}
.service-page-item .row {
    align-items: center;
}
.service-page-item img {
    margin-bottom: 1rem;
}
.service-features {
    list-style: none; /* Using icons instead of bullets */
    padding-left: 0;
}
.service-features li {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}
.service-features i { /* For Font Awesome icons */
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 4px; /* Align icon with text */
}

/* --- Forms (Contact & Careers) --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 0, 123, 255), 0.25); /* Needs --primary-color-rgb if using rgba with CSS var */
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control-file {
    display: block;
    width: 100%;
}
.form-text.text-muted {
    font-size: 0.875em;
    color: #6c757d;
}

/* --- Careers Page Specifics --- */
#career-intro img {
    max-width: 400px; /* Or adjust as needed */
    margin-left:auto;
    margin-right:auto;
}

/* --- Contact Page Specifics --- */
.contact-info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}
.contact-info-item i { /* If using Font Awesome icons */
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px; /* Give icon a fixed width */
    text-align: center;
}
.contact-info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}
.contact-info-item p {
    margin-bottom: 0;
}
.map-placeholder img {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 1rem;
}
.no-padding-top { padding-top:0 !important; }


/* --- Responsive Design --- */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    .nav-links {
        display: none; /* Hide normal nav links */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 0; /* For transition */
        overflow: hidden; /* For transition */
        transition: max-height 0.5s ease-in-out;
    }
    .nav-links.active { /* Class added by JS to show menu */
        display: flex; /* Re-enable flex for column layout */
        max-height: 500px; /* Or large enough height */
    }

    .nav-links li {
        margin: 0;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links a.active::after,
    .nav-links a:hover::after {
        display: none; /* Remove underline for mobile nav items */
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Adjusting .row and .col-md-* for simplified grid */
    .col-md-5, .col-md-6, .col-md-7 { /* These were half or near-half width */
        width: 100%; /* Stack them on tablets and smaller */
    }
    .order-md-1 { order: 1; } /* For reordering columns on mobile */
    .order-md-2 { order: 2; }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 20px;
    }
    .footer-logo { margin-left: auto; margin-right: auto;}

}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .content-section { padding: 40px 0; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 2.2rem; }

    #hero { padding: 60px 0; min-height: 60vh;}
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }

    .mantra-grid, .services-grid {
        grid-template-columns: 1fr; /* Stack items */
    }
    .service-overview-img { height: 180px; }

    .row {
      margin-left: 0;
      margin-right: 0;
    }
    .row > * {
      padding-left: 0;
      padding-right: 0;
    }
    .d-none { display: none !important; } /* Utility to hide elements on mobile if needed */
    .d-md-block { display: none !important; } /* If we want to hide something that was md-block */
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container { width: 95%; }
    .btn-lg { font-size: 1.1rem; padding: 0.6rem 1.2rem;}
    #hero h1 { font-size: 1.8rem; }
    .page-header h1 { font-size: 2rem; }
    .cta-section h2 { font-size: 1.8rem; }
}

/* Hamburger animation when active */
.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 7px);
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -7px);
}