/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #0A4D68; /* Dark Blue */
    --primary-color-rgb: 10, 77, 104;
    --secondary-color: #088395; /* Turquoise */
    --accent-color: #F28C28; /* Orange */
    --accent-color-rgb: 242, 140, 40;
    --highlight-color: #FFC107; /* Yellow */

    --text-color: #343a40;
    --heading-color: #212529;
    --light-text-color: #f8f9fa;
    --light-bg-color: #F5F7F8;
    --white-color: #FFFFFF;
    --border-color: #dee2e6;
    --dark-bg-color: #1c2331; /* Custom dark for footer */

    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.10);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.12);

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.8rem;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* For .section-title */
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.section-title {
    font-family: var(--font-primary);
    font-weight: 800;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem !important; /* Bootstrap override */
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-sm);
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.header {
    background-color: var(--white-color);
    transition: all 0.3s ease;
    z-index: 1030; /* Ensure it's above other content */
}

.header .navbar-brand {
    font-family: var(--font-primary);
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.75rem;
}

.header .nav-link {
    font-family: var(--font-secondary);
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 0.8rem 1rem !important;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.navbar-toggler {
    border-color: rgba(var(--primary-color-rgb), 0.5);
}
.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(var(--primary-color-rgb), 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Primary Button Style (used as .modern-btn in HTML) */
.btn-primary, .modern-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color) !important; /* Ensure text is white */
}

.btn-primary:hover, .modern-btn:hover {
    background-color: #E07B24; /* Darker accent */
    border-color: #E07B24;
    color: var(--white-color) !important;
}

/* Outline Button Style (used as .modern-btn-outline in HTML) */
.btn-outline-light { /* For hero section */
    color: var(--white-color);
    border-color: var(--white-color);
}
.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}


.btn-outline-primary, .modern-btn-outline {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover, .modern-btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    border-color: var(--primary-color);
}

/* Read More Link Style (if not a button) */
.read-more-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}
.read-more-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.modern-input, .form-control {
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.modern-input:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .25rem rgba(var(--primary-color-rgb), .2);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    min-height: 85vh; /* Natural height based on content or min-height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white-color); /* Ensured in HTML, reinforced here */
    overflow: hidden; /* For curved bottom */
}

.hero-section .hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white-color); /* Explicitly white */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white-color); /* Explicitly white */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Subtle curved bottom for Hero Section */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Avoid small gap */
    left: 0;
    width: 100%;
    height: 80px; /* Adjust height of curve */
    background: var(--white-color); /* Color of the next section, or body bg */
    clip-path: ellipse(70% 100% at 50% 100%); /* Adjust ellipse for desired curve */
}
@media (max-width: 768px) {
    .hero-section::after {
        height: 50px;
    }
}

/*--------------------------------------------------------------
# About Us Section
--------------------------------------------------------------*/
#about-us img {
    border-radius: var(--border-radius-lg);
}
#about-us h3 {
    color: var(--primary-color);
    text-align: left; /* Override global centered h for content */
}
#about-us p {
    text-align: left;
}

/*--------------------------------------------------------------
# Mission Section
--------------------------------------------------------------*/
#mission img {
    margin: 0 auto 1.5rem auto;
}
#mission p.lead {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Features / Services Section
--------------------------------------------------------------*/
.feature-card { /* Extends .card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

/*--------------------------------------------------------------
# Cards (General)
--------------------------------------------------------------*/
.card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%; /* For equal height cards in a row */
    display: flex;
    flex-direction: column;
    align-items: center; /* STRICT: Center content */
    text-align: center; /* STRICT: Center text */
}

.card .card-image {
    width: 100%;
    height: 220px; /* STRICT: Fixed height */
    overflow: hidden;
    display: flex; /* For centering image inside */
    align-items: center; /* For centering image inside */
    justify-content: center; /* For centering image inside */
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STRICT: Cover and crop */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer/button to stick to bottom */
    width: 100%; /* Ensure card body takes full width */
}

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

.card .card-text {
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes button to bottom if card-body is flex */
    font-size: 0.95rem;
}


/*--------------------------------------------------------------
# Our Process Section (Timeline)
--------------------------------------------------------------*/
.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

.timeline::before { /* The central line */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white-color);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

/* Place a timeline item to the left */
.timeline-item:nth-child(odd) {
    left: 0;
}
/* Place a timeline item to the right */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Adjust circle for right-sided items */
.timeline-item:nth-child(even)::after {
    left: -10px; /* Adjusted from -17px to -10px for 20px circle */
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white-color);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}
.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--primary-color);
}


.timeline-title {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
}
.timeline-content p {
    font-size: 0.95rem;
    text-align: left;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 20px; /* Move line to the left */
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px; /* Space for line and dot */
        padding-right: 10px;
        left: 0 !important; /* All items on the right of the line */
    }
    .timeline-item::after {
        left: 10px; /* Position dot on the line */
    }
    .timeline-item:nth-child(even) {
        left: 0% !important;
    }
    .timeline-item:nth-child(even)::after {
        left: 10px;
    }
     .timeline-item:nth-child(even) .timeline-content {
        border-left: 5px solid var(--primary-color);
        border-right: none;
    }
}

/*--------------------------------------------------------------
# Methodology Section
--------------------------------------------------------------*/
#methodology img {
    border-radius: var(--border-radius-lg);
}
#methodology h3 {
    text-align: left;
}
#methodology p {
    text-align: left;
}

/*--------------------------------------------------------------
# Research Section
--------------------------------------------------------------*/
#research .progress {
    height: 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
}
#research .progress-bar {
    font-weight: 600;
    background-color: var(--secondary-color);
}
#research .progress-bar.bg-success {
    background-color: var(--triad-3) !important; /* Example of using a triad color */
}
#research .progress-bar.bg-info {
    background-color: var(--secondary-color) !important;
}
#research .progress-indicator span {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
#research ul li i { /* For FontAwesome icons if used */
    color: var(--primary-color);
    margin-right: 8px;
}
#research h5, #research p, #research ul {
    text-align: left;
}

/*--------------------------------------------------------------
# Accolades Section
--------------------------------------------------------------*/
.accolades-logo {
    max-width: 130px;
    height: auto;
    margin: 0 auto 0.5rem auto;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.accolades-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
    /* Potential for subtle pattern or gradient background */
    /* background-image: linear-gradient(to bottom right, var(--light-bg-color), var(--white-color)); */
}
.contact-form {
    background-color: var(--white-color); /* Was bg-light, now more distinct */
    padding: 2.5rem !important; /* Bootstrap override */
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-lg);
}
.contact-form label {
    font-weight: 600;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    font-size: 0.9rem;
}
.footer h5 {
    font-family: var(--font-primary);
    color: var(--white-color);
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer p.small {
    color: #adb5bd; /* Lighter gray for less emphasis */
}
.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
.footer .footer-link {
    color: #adb5bd;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer .footer-link:hover {
    color: var(--highlight-color);
    text-decoration: none;
    padding-left: 5px;
}
.footer hr {
    border-color: rgba(var(--white-color), 0.15);
}

/*--------------------------------------------------------------
# Specific Page Styles (Success, Privacy, Terms)
--------------------------------------------------------------*/
/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-bg-color);
}
body.success-page .header, body.success-page .footer {
    flex-shrink: 0; /* Prevent header/footer from shrinking */
}
body.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.success-container {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 600px; /* Limit width */
    width: 90%;
}
.success-container h1 {
    color: var(--primary-color); /* Using a triad color */
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.success-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.success-container .btn {
    min-width: 200px;
}

/* Privacy & Terms Pages */
body.privacy-page main,
body.terms-page main {
    padding-top: 120px; /* Increased to ensure header doesn't overlap on scroll */
    padding-bottom: 60px;
}

.text-content-page .container {
    max-width: 960px; /* Readable width for text-heavy pages */
}

.text-content-page h1,
.text-content-page h2,
.text-content-page h3,
.text-content-page h4 {
   text-align: left;
   color: var(--primary-color);
   margin-top: 2em;
   margin-bottom: 0.8em;
}
.text-content-page h1:first-child {
    margin-top: 0;
}
.text-content-page p,
.text-content-page ul,
.text-content-page ol {
   text-align: left;
   margin-bottom: 1.2em;
   line-height: 1.8;
}
.text-content-page ul, .text-content-page ol {
    padding-left: 25px;
}
.text-content-page li {
    margin-bottom: 0.5em;
}


/*--------------------------------------------------------------
# Animations (Scroll-triggered, if classes added by JS)
--------------------------------------------------------------*/
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in {
    opacity: 0;
}
.fade-in.is-visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(50px);
}
.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    transform: translateX(50px);
}
.slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    transform: translateX(-50px);
}
.slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* Parallax for background images (simple version) */
.parallax-bg {
    background-attachment: fixed; /* Note: can have issues on mobile */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* For better parallax, JS is recommended */

/* Background image with text overlay (general class if needed) */
.bg-image-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
}
.bg-image-overlay::before { /* Darkening overlay */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}
.bg-image-overlay > .container { /* Ensure content is above overlay */
    position: relative;
    z-index: 2;
}


/* Cookie Consent Popup (minimal styles already in HTML, can enhance here if needed) */
/* #cookieConsentPopup is styled inline in HTML. */