/* style.css */

:root {
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Archivo Black', sans-serif;

    /* Complementary Color Scheme: Blue and Orange */
    --color-primary-rgb: 37, 99, 235; /* blue-600 */
    --color-primary: rgb(var(--color-primary-rgb));
    --color-primary-dark-rgb: 29, 78, 216; /* blue-700 */
    --color-primary-dark: rgb(var(--color-primary-dark-rgb));
    
    --color-secondary-rgb: 249, 115, 22; /* orange-500 */
    --color-secondary: rgb(var(--color-secondary-rgb));
    --color-secondary-dark-rgb: 234, 88, 12; /* orange-600 */
    --color-secondary-dark: rgb(var(--color-secondary-dark-rgb));

    --text-color-light: #FFFFFF;
    --text-color-light-muted: #E5E7EB; /* gray-200 for footer text on dark bg */
    --text-color-dark: #1F2937; /* gray-800 */
    --text-color-medium: #4B5563; /* gray-600 */
    --text-color-headings: #111827; /* gray-900 for extra contrast */

    --bg-body: #F9FAFB; /* gray-50 */
    --bg-light: #F3F4F6; /* gray-100 */
    --bg-white: #FFFFFF;
    --bg-dark-footer: #111827; /* gray-900, darker than gray-800 for footer */

    --border-color: #D1D5DB; /* gray-300 */
    --border-color-light: #E5E7EB; /* gray-200 */

    /* Volumetric UI Shadows & Elements */
    --card-bg: var(--bg-white);
    --card-border-radius: 0.75rem; /* Tailwind rounded-xl */
    --card-shadow-base: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    --card-shadow-volumetric: 0 20px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1); /* Similar to shadow-2xl but adjustable */
    --card-shadow-hover: 0 25px 50px -12px rgba(var(--color-primary-rgb), 0.25); /* Colored shadow on hover */

    --button-border-radius: 0.5rem; /* Tailwind rounded-lg */
    --button-shadow-base: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); /* shadow-md */
    --button-shadow-hover-primary: 0 10px 15px -3px rgba(var(--color-primary-rgb),0.3), 0 4px 6px -2px rgba(var(--color-primary-rgb),0.2);
    --button-shadow-hover-secondary: 0 10px 15px -3px rgba(var(--color-secondary-rgb),0.3), 0 4px 6px -2px rgba(var(--color-secondary-rgb),0.2);


    --input-border-radius: 0.5rem; /* Tailwind rounded-lg */
    --input-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    --input-focus-ring: 0 0 0 3px rgba(var(--color-primary-rgb), 0.3);

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    --header-height: 72px; /* Approximate height of the header */
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0; /* For page transition */
    transition: opacity var(--transition-speed) var(--transition-timing);
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--text-color-headings);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
    color: var(--text-color-medium);
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

/* Global Component Styles from HTML, adapted with CSS variables */

.section-title {
    font-size: 2.25rem; /* Tailwind text-3xl */
    line-height: 2.5rem; /* Tailwind text-3xl */
    font-weight: 700; /* Tailwind font-bold */
    text-align: center;
    margin-bottom: 3rem; /* Tailwind mb-12 */
    color: var(--text-color-headings);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Enhanced shadow for titles */
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem; /* Slightly larger for md screens */
        line-height: 1;
    }
}

/* Buttons - Global Styling */
.btn, button[type="submit"], input[type="submit"], .button {
    display: inline-block;
    padding: 0.75rem 2rem; /* Tailwind px-8 py-3 */
    border-radius: var(--button-border-radius);
    font-family: var(--font-primary); /* Ensure consistent font */
    font-weight: 600; /* Tailwind font-semibold */
    color: var(--text-color-light);
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--button-shadow-base);
    transition: all var(--transition-speed) var(--transition-timing);
    transform: perspective(1px) translateZ(0); /* Smooths animation */
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover, .button:hover {
    transform: scale(1.05) translateY(-2px);
}

.btn-primary {
    background-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: var(--button-shadow-hover-primary);
}

.btn-secondary {
    background-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    box-shadow: var(--button-shadow-hover-secondary);
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem; /* Tailwind px-4 py-3 */
    border-radius: var(--input-border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-color-dark);
    box-shadow: var(--input-shadow);
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.input-field::placeholder {
    color: #9CA3AF; /* gray-400 */
}
.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--input-shadow), var(--input-focus-ring);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow-volumetric);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex; /* STRICT */
    flex-direction: column; /* STRICT */
    align-items: center; /* STRICT: Centers flex items like .card-image, .card-content */
    text-align: center; /* STRICT: Centers inline/text content within .card-content */
}
.card:hover {
    transform: translateY(-8px); /* More pronounced volumetric lift */
    box-shadow: var(--card-shadow-hover);
}

.card-image {
    width: 100%; /* Ensure image container spans card */
    height: 224px; /* Tailwind h-56, fixed height */
    overflow: hidden; /* Crucial for object-fit */
    display: flex; /* Centers image if it's smaller, though object-cover usually handles this */
    justify-content: center;
    align-items: center;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STRICT */
    transition: transform var(--transition-speed) var(--transition-timing);
}
.card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on card hover */
}

.card-content {
    padding: 1.5rem; /* Tailwind p-6 */
    width: 100%; /* Ensure content block spans card width for text-align:center */
}
.card-content h3 {
    color: var(--color-primary);
    margin-top: 0; /* Reset margin if needed */
}
.card-content p {
    color: var(--text-color-medium);
    font-size: 0.95rem;
}
.card-content .font-semibold.text-orange-500 { /* Read more link style */
    color: var(--color-secondary);
    font-weight: 600;
}
.card-content .font-semibold.text-orange-500:hover {
    color: var(--color-secondary-dark);
}


/* Header */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000; /* High z-index for fixed header */
    height: var(--header-height);
}
header a.text-3xl.font-bold.text-blue-600 { /* Logo */
    font-family: var(--font-secondary);
    color: var(--color-primary);
}
header nav a {
    color: var(--text-color-dark);
    padding: 0.5rem 0;
    position: relative; /* For hover effect */
}
header nav a:hover {
    color: var(--color-primary);
}
header nav a::after { /* Underline hover effect */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-timing);
}
header nav a:hover::after {
    width: 70%;
}
header .btn-primary {
    padding: 0.5rem 1.5rem; /* Smaller button for header */
    font-size: 0.875rem;
}

/* Mobile Menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform var(--transition-speed) var(--transition-timing);
    background-color: rgba(31, 41, 55, 0.85); /* gray-800 with opacity */
}
#mobile-menu.open {
    transform: translateX(0);
}
#mobile-menu > div { /* The inner div that slides out */
    background: rgba(255, 255, 255, 0.9); /* Lighter, more opaque for readability with glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
}
#mobile-menu nav a {
    font-size: 1.125rem; /* Tailwind text-lg */
}


/* Hero Section */
#hero {
    background-size: cover; /* IMPORTANT */
    background-position: center;
    background-repeat: no-repeat; /* IMPORTANT */
    position: relative; /* For overlay */
    color: var(--text-color-light); /* IMPORTANT */
}
/* Overlay is applied via inline style linear-gradient in HTML */
#hero h1 {
    color: var(--text-color-light); /* IMPORTANT */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Ensure readability */
}
#hero p {
    color: var(--text-color-light); /* IMPORTANT */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6); /* Ensure readability */
}

/* Testimonials Section (Clientele) */
#testimonials .bg-gray-50 { /* Testimonial card background */
    background-color: var(--bg-light);
}
#testimonials .absolute.top-0.left-0 svg { /* Quote icon */
    color: rgba(var(--color-primary-rgb), 0.15); /* Lighter, more subtle */
}

/* Statistical Widgets in Testimonials Section */
#testimonials .bg-blue-500 { background-color: var(--color-primary); }
#testimonials .bg-orange-500 { background-color: var(--color-secondary); }
#testimonials [data-motion-animate^="counter-"] {
    box-shadow: var(--card-shadow-base);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
#testimonials [data-motion-animate^="counter-"]:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--card-shadow-volumetric);
}


/* Team Section */
#team .card-image { /* Specifically for team member circular images */
    width: 160px; /* Tailwind w-40 */
    height: 160px; /* Tailwind h-40 */
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.1); /* Soft shadow for profile pic */
}
#team .card-image img {
    border-radius: 50%;
}

/* Methodology Section */
#methodology {
    background-color: var(--color-primary); /* As per HTML */
    color: var(--text-color-light);
}
#methodology .section-title {
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#methodology p {
    color: var(--text-color-light-muted);
}
#methodology img {
    border: 4px solid var(--bg-white); /* Frame effect */
}

/* Careers Section */
#careers {
    background-color: rgba(var(--color-primary-rgb), 0.05); /* Very light blue tint */
}

/* Footer */
footer {
    background-color: var(--bg-dark-footer);
    color: var(--text-color-light-muted);
}
footer h4 {
    color: var(--text-color-light);
    font-family: var(--font-secondary);
}
footer ul a {
    color: var(--text-color-light-muted);
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
}
footer ul a:hover {
    color: var(--color-secondary); /* Orange accent on hover */
    padding-left: 5px; /* Micro-animation */
}
footer .border-t {
    border-color: rgba(var(--text-color-light-muted), 0.2);
}

/* Page Specific Styles */
/* For privacy.html and terms.html */
.static-page-content-wrapper {
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.static-page-content-wrapper h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}
.static-page-content-wrapper h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}
.static-page-content-wrapper p,
.static-page-content-wrapper li {
    color: var(--text-color-medium);
    line-height: 1.7;
}
.static-page-content-wrapper ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* IMPORTANT */
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-body);
}
.success-page-container .icon-success {
    font-size: 5rem; /* Placeholder for a tick icon, if you use one */
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.success-page-container h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.success-page-container p {
    color: var(--text-color-medium);
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-size: 1.1rem;
}

/* Cookie Consent Popup - ensure styles from HTML are functional and themed if needed */
#cookie-popup {
    /* Styles are mostly inline in HTML, this is just a placeholder if overrides needed */
    /* background-color: rgba(0,0,0,0.9) !important; Slightly darker for more contrast */
}
#cookie-popup button#accept-cookies {
    background-color: var(--color-primary) !important; /* Ensure it uses theme color */
    /* transition: background-color var(--transition-speed) var(--transition-timing) !important; */
}
#cookie-popup button#accept-cookies:hover {
    background-color: var(--color-primary-dark) !important;
}


/* Utility for Text Shadow on dark backgrounds if hero-text-shadow class is not enough */
.text-shadow-strong {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Ensuring high contrast for section titles on light backgrounds */
.section-title.text-gray-800 { /* From HTML, Tailwind class for dark text */
    color: var(--text-color-headings) !important; /* Use our even darker heading color */
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

header nav{
    flex-wrap: wrap;
}