/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --color-primary-dark: #1a1a1a;
    --color-text-headings: #222222;
    --color-text-body: #333333;
    --color-text-muted: #555555;
    --color-text-light: #f8f9fa;
    --color-text-light-secondary: #ced4da;

    --color-background-body: #ffffff;
    --color-background-section-neutral: #f1f3f5; /* Used for alternating sections */
    --color-background-section-dark: #212529; /* Dark gray for contrast sections */
    --color-background-footer: #1e1e1e;

    --color-accent: #007bff;
    --color-accent-rgb: 0, 123, 255;
    --color-accent-dark: #0056b3;
    --color-accent-darker: #004085;
    --color-accent-light: #66aeff;

    --color-border-strong: #1a1a1a;
    --color-border-subtle: #dee2e6;
    --color-border-input: #adb5bd;
    --color-background-input: #ffffff;
    --color-background-input-focus: #ffffff;

    --brutalist-shadow-hard: 3px 3px 0px var(--color-primary-dark);
    --brutalist-shadow-hard-accent: 3px 3px 0px var(--color-accent-dark);
    --neo-brutalist-shadow-soft: 0px 4px 10px rgba(0, 0, 0, 0.1);
    --neo-brutalist-shadow-strong: 0px 6px 15px rgba(0, 0, 0, 0.15);

    --spacing-base: 1rem;
    --border-radius-sharp: 0;
    --border-radius-soft: 0.25rem;

    --navbar-height: 70px; /* Approximate height for sticky nav calculations */
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
body {
    font-family: var(--font-secondary);
    color: var(--color-text-body);
    background-color: var(--color-background-body);
    line-height: 1.7;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-headings);
    margin-bottom: calc(var(--spacing-base) * 1.5);
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }

p {
    margin-bottom: var(--spacing-base);
    color: var(--color-text-muted);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Helps with bottom margin issues */
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.section-bg-neutral {
    background-color: var(--color-background-section-neutral);
}

.section-bg-neutral-dark {
    background-color: var(--color-background-section-dark);
    color: var(--color-text-light);
}
.section-bg-neutral-dark h1,
.section-bg-neutral-dark h2,
.section-bg-neutral-dark h3,
.section-bg-neutral-dark h4,
.section-bg-neutral-dark h5,
.section-bg-neutral-dark h6 {
    color: var(--color-text-light);
}
.section-bg-neutral-dark p {
    color: var(--color-text-light-secondary);
}

.text-shadow-dark { text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.text-shadow-light { text-shadow: 1px 1px 2px rgba(255,255,255,0.3); }

.read-more-link {
    display: inline-block;
    margin-top: var(--spacing-base);
    font-weight: bold;
    color: var(--color-accent);
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}
.read-more-link:hover {
    color: var(--color-accent-dark);
}

/*--------------------------------------------------------------
# Buttons (Global)
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-primary);
    font-weight: bold;
    text-transform: uppercase;
    padding: calc(var(--spacing-base) * 0.75) calc(var(--spacing-base) * 1.5);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sharp); /* Brutalist edge */
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: var(--brutalist-shadow-hard-accent);
    cursor: pointer;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--color-accent-darker);
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px var(--color-accent-darker);
}


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

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-darker);
    color: var(--color-text-light); /* Ensure text color remains on hover for Bootstrap compatibility */
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 2px 2px 0px var(--color-accent);
}

.btn-outline-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-color: var(--color-accent);
    box-shadow: 4px 4px 0px var(--color-accent-dark);
}
.btn-outline-primary:active {
    box-shadow: 1px 1px 0px var(--color-accent-dark);
}


.btn-lg {
    padding: calc(var(--spacing-base) * 1) calc(var(--spacing-base) * 2);
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Header / Navbar
--------------------------------------------------------------*/
header.sticky-top {
    /* Bootstrap handles stickiness. Add shadow for depth. */
    box-shadow: var(--neo-brutalist-shadow-soft);
    background-color: var(--color-background-body); /* Ensure bg for sticky state */
    z-index: 1030; /* Ensure it's above other content */
}

.navbar {
    padding: calc(var(--spacing-base) * 0.8) 0;
    min-height: var(--navbar-height);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8em;
    color: var(--color-text-headings) !important; /* Override Bootstrap if needed */
}
.navbar-brand span {
    color: var(--color-accent) !important;
}

.navbar-nav .nav-link {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-text-body) !important;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent; /* For hover effect */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-accent) !important;
    border-bottom-color: var(--color-accent);
}

.navbar-toggler {
    border: 2px solid var(--color-text-headings);
    border-radius: var(--border-radius-sharp);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34, 34, 34, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border-radius: var(--border-radius-sharp);
    border: 2px solid var(--color-border-subtle);
    box-shadow: var(--brutalist-shadow-hard);
    margin-top: 0.5rem !important; /* Position it slightly below the toggle */
}
.dropdown-item {
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}


/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    padding: 5rem 0; /* Increased default padding */
    overflow: hidden; /* For AOS animations */
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem; /* Increased margin */
    font-weight: 900;
    color: var(--color-text-headings);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after { /* Brutalist underline */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    min-height: 85vh; /* Use min-height for better adaptability */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    padding: 3rem 1rem; /* Add some padding */
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-base);
    color: var(--color-text-light) !important; /* Ensure white text */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive font size */
    margin-bottom: calc(var(--spacing-base) * 2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light) !important; /* Ensure white text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-cta {
    padding: calc(var(--spacing-base) * 0.9) calc(var(--spacing-base) * 2.5);
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# About Us Section
--------------------------------------------------------------*/
#about .img-fluid {
    border: 4px solid var(--color-border-strong);
    box-shadow: var(--brutalist-shadow-hard);
}
#about h3 {
    color: var(--color-text-headings);
    font-weight: 700;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Cards (General - Features, Team, Resources, Success Stories)
--------------------------------------------------------------*/
.card {
    border: 2px solid var(--color-border-strong);
    border-radius: var(--border-radius-sharp);
    background-color: var(--color-background-body);
    box-shadow: var(--brutalist-shadow-hard);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    height: 100%; /* For equal height cards in a row */

    /* Strict rule: display: flex, flex-direction: column, align-items: center */
    /* This centers direct children of the card horizontally. */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--color-primary-dark);
}

.card .card-image { /* This is the container for the image */
    width: 100%; /* Take full width relative to card's centered alignment */
    /* Fixed height needs to be contextual based on card type */
    /* e.g. for feature-icon, it's derived from the image size, not a fixed container height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* If object-fit is used on image inside */
    padding-top: 1.5rem; /* Consistent padding for image containers */
    padding-bottom: 1rem;
}

.card .card-image img {
    /* object-fit: cover; */ /* Apply this if .card-image has a fixed height */
    /* height: 100%; */ /* To fill fixed height of .card-image */
    /* width: auto; */ /* or width:100% depending on the aspect ratio and container */
    max-width: 100%; /* Default responsive behavior */
}

.card .card-content,
.card .card-body {
    padding: 1.5rem;
    width: 100%; /* Ensure it takes full width */
    text-align: center; /* Center text content */
    flex-grow: 1; /* Allow body to grow and push footer (if any) down */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content within body if desired */
}

.card .card-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-headings);
    margin-bottom: 0.75rem;
}
.card .card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}


/* Feature Cards Specifics */
.feature-card .card-image .feature-icon {
    width: 70px; /* From HTML width="80" */
    height: 70px; /* From HTML height="80" */
    object-fit: contain; /* Ensure icon is not distorted */
    margin-bottom: 0; /* Removed default margin, card-image has padding */
}
.feature-card .card-body {
    padding-top: 0; /* Image container has padding */
}

/* Team Cards Specifics */
.team-card .card-image .team-img { /* This is the img tag itself */
    width: 140px; /* from HTML width="150" */
    height: 140px; /* from HTML height="150" */
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-background-body), 0 0 0 6px var(--color-accent); /* Neo-brutalist border */
}
.team-card .card-text.text-muted { /* Role */
    font-weight: bold;
    color: var(--color-accent) !important;
    margin-bottom: 0.5rem;
}

/* Success Story Cards Specifics */
.success-story-card {
    max-width: 700px; /* From HTML */
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--neo-brutalist-shadow-soft); /* Softer shadow for testimonials */
}
.success-story-card:hover {
    box-shadow: var(--neo-brutalist-shadow-strong);
    transform: translateY(-5px);
}
.success-story-card .row > .card-image { /* This is the col-md-4 */
    padding: 0; /* Reset bootstrap column padding if needed */
}
.success-story-card .card-image img {
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sharp) 0 0 var(--border-radius-sharp); /* Sharp edge for brutalism */
}
@media (max-width: 767.98px) {
    .success-story-card .card-image img {
        border-radius: var(--border-radius-sharp) var(--border-radius-sharp) 0 0;
        max-height: 250px; /* Control height on mobile */
    }
}
.success-story-card .card-body {
    text-align: left; /* Testimonials usually left-aligned */
}
.carousel-indicators button {
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent-dark);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
.carousel-indicators .active {
    background-color: var(--color-accent-dark);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: var(--border-radius-sharp);
    padding: 10px;
    background-size: 60%;
}


/* Resource Cards Specifics */
.resource-card .card-title a {
    color: var(--color-accent-dark);
    text-decoration: none;
}
.resource-card .card-title a:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Statistical Widgets Section
--------------------------------------------------------------*/
#stats {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}
.stat-widget {
    padding: 1.5rem;
    /* border: 2px dashed var(--color-text-light-secondary); */ /* Subtle brutalist element */
}
.stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--color-text-light) !important; /* Needs to override section-bg-neutral-dark's h3 if different */
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light-secondary) !important;
}


/*--------------------------------------------------------------
# Clientele Section
--------------------------------------------------------------*/
.client-logo {
    max-height: 50px; /* Adjusted from HTML for consistency */
    width: auto;
    filter: grayscale(100%) brightness(150%); /* Brutalist: high contrast grayscale */
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    margin: 0 auto 1rem auto; /* Center block images */
}

.client-logo:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
    transform: scale(1.1);
}

/*--------------------------------------------------------------
# Careers Section
--------------------------------------------------------------*/
#careers .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact .form-control {
    border: 2px solid var(--color-border-input);
    background-color: var(--color-background-input);
    padding: 0.85rem 1.15rem; /* Slightly larger padding */
    border-radius: var(--border-radius-sharp);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text-body);
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05); /* Subtle inset for neo-brutalism */
}

#contact .form-control:focus {
    border-color: var(--color-accent);
    background-color: var(--color-background-input-focus);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15), inset 2px 2px 0px rgba(0,0,0,0.05);
    outline: 0;
}
#contact .form-label {
    font-weight: bold;
    color: var(--color-text-headings);
    margin-bottom: 0.5rem;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background-color: var(--color-background-footer);
    color: var(--color-text-light-secondary);
    padding: 3rem 0 2rem 0;
}

footer h5 {
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
footer .navbar-brand { /* Re-use brand styling */
    color: var(--color-text-light) !important;
    font-size: 1.6em;
}
footer .navbar-brand span {
    color: var(--color-accent) !important;
}

footer p {
    color: var(--color-text-light-secondary);
    font-size: 0.9rem;
}

footer .footer-links li,
footer .footer-social-links li {
    margin-bottom: 0.5rem;
}

footer .footer-links a,
footer .footer-social-links a {
    color: var(--color-text-light-secondary);
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-weight: 500;
    display: inline-block; /* For padding effect */
}

footer .footer-links a:hover,
footer .footer-social-links a:hover {
    color: var(--color-accent-light);
    padding-left: 5px; /* Slight indent on hover */
    text-decoration: none;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

/*--------------------------------------------------------------
# Specific Page Styles (success.html, privacy.html, terms.html)
--------------------------------------------------------------*/
/* For success.html */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background-section-neutral);
}
.success-page-container h1 {
    color: var(--color-accent-dark);
    margin-bottom: 1.5rem;
}
.success-page-container .icon-success {
    font-size: 5rem; /* Example if using an icon font */
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* For privacy.html and terms.html */
.privacy-policy-page,
.terms-page {
    padding-top: calc(var(--navbar-height) + 3rem); /* Navbar height + extra space */
    padding-bottom: 4rem;
}
.privacy-policy-page .container h1,
.terms-page .container h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-policy-page .container h2,
.terms-page .container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.privacy-policy-page .container p,
.terms-page .container p,
.privacy-policy-page .container ul,
.terms-page .container ul {
    margin-bottom: 1rem;
    color: var(--color-text-body);
}
.privacy-policy-page .container ul,
.terms-page .container ul {
    padding-left: 1.5rem;
}
.privacy-policy-page .container li,
.terms-page .container li {
    margin-bottom: 0.5rem;
}


/*--------------------------------------------------------------
# AOS Animation Overrides (if any)
--------------------------------------------------------------*/
[data-aos] {
    /* Example: Make default duration slightly longer */
    /* transition-duration: 600ms !important; */
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .section-title { margin-bottom: 2.5rem; }
    section { padding: 3.5rem 0; }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem; /* More space for touch */
        margin: 0.3rem 0;
        border-bottom: none; /* Remove underline for mobile menu item */
        text-align: center;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--color-background-section-neutral);
        color: var(--color-accent) !important;
    }
    .navbar-collapse {
        border-top: 1px solid var(--color-border-subtle);
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-section { min-height: 70vh; }
    .stat-widget { margin-bottom: 1.5rem; }
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    .success-story-card .card-body {
        text-align: center; /* Center text on mobile for testimonials */
    }
}

@media (max-width: 575.98px) {
    section { padding: 2.5rem 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn, button, input[type="submit"], input[type="button"] {
        padding: calc(var(--spacing-base) * 0.6) calc(var(--spacing-base) * 1.2);
        font-size: 0.9rem;
    }
    .btn-lg {
        padding: calc(var(--spacing-base) * 0.8) calc(var(--spacing-base) * 1.8);
        font-size: 1rem;
    }
}

.carousel-control-next, .carousel-control-prev{
    box-shadow: none !important;
}