/* style.css */

/* -------------------- */
/* CSS Variables
/* -------------------- */
:root {
    /* Color Scheme: Split-Complementary (Primary: Deep Blue, Accents: Amber, Red-Orange) + Tertiary Tech Accent */
    --primary-color: #0A2463;       /* Deep Space Blue */
    --primary-color-rgb: 10, 36, 99;
    --secondary-color: #FFB800;     /* Amber Gold (Main Accent) */
    --secondary-color-rgb: 255, 184, 0;
    --accent-color-1: #FF5700;      /* Vibrant Red-Orange (Secondary Accent) */
    --accent-color-1-rgb: 255, 87, 0;
    --accent-color-2: #3DDC97;      /* Neon Mint (Tertiary "Tech" Accent) */
    --accent-color-2-rgb: 61, 220, 151;

    /* Text Colors */
    --text-color: #EAEAEA;                /* Light gray for dark backgrounds */
    --text-color-subtle: #B0B0B0;         /* Medium gray for less important text on dark */
    --text-color-headings: #FFFFFF;       /* White for main headings on dark bg */
    --text-color-dark: #1A1A1A;           /* Very dark gray for light backgrounds */
    --text-color-dark-headings: #081C4D;  /* Darker blue for headings on light bg */
    --text-color-dark-subtle: #555555;    /* Medium dark gray for light backgrounds */

    /* Background Colors */
    --bg-color-dark: #0D1117;           /* Almost black (GitHub dark default) */
    --bg-color-light: #F4F7FC;          /* Very light gray/off-white */
    --bg-color-medium: #171D28;         /* Slightly lighter dark, for cards/elements on dark bg */
    --bg-color-medium-light: #FFFFFF;   /* White for cards/elements on light bg */

    /* Borders & Shadows */
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(0, 0, 0, 0.1);
    --box-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-volumetric-dark: 
        3px 3px 8px rgba(0,0,0,0.3), 
        -3px -3px 8px rgba(255,255,255,0.03),
        inset 1px 1px 2px rgba(255,255,255,0.05),
        inset -1px -1px 2px rgba(0,0,0,0.2);
    --box-shadow-volumetric-light: 
        3px 3px 8px rgba(0,0,0,0.1), 
        -3px -3px 8px rgba(255,255,255,0.7),
        inset 1px 1px 2px rgba(255,255,255,0.5),
        inset -1px -1px 2px rgba(0,0,0,0.05);
    --text-shadow-hero: 1px 1px 3px rgba(0,0,0,0.7);
    --text-shadow-subtle-light: 0 1px 2px rgba(0,0,0,0.1);

    /* Fonts */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;
    --fz-base: 16px;
    --fz-small: 0.875rem; /* 14px */
    --fz-normal: 1rem;    /* 16px */
    --fz-large: 1.125rem; /* 18px */
    --fz-h1: clamp(2.2rem, 5vw, 3.2rem);
    --fz-h2: clamp(1.8rem, 4vw, 2.5rem);
    --fz-h3: clamp(1.3rem, 3vw, 1.8rem);
    --fz-h4: clamp(1.1rem, 2.5vw, 1.4rem);

    /* Transitions & Durations */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --easing-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);

    /* Layout */
    --page-max-width: 1200px;
    --section-padding-y: 80px;
    --header-height: 70px; /* Approximate */
    --footer-min-height: 250px; /* Approximate */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
    --border-radius-volumetric: 10px; /* For volumetric UI */
}

/* -------------------- */
/* Global Styles
/* -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--fz-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    background-color: var(--bg-color-dark);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color-headings);
    margin-bottom: 0.75em; /* Default margin */
}

h1 { font-size: var(--fz-h1); }
h2 { font-size: var(--fz-h2); }
h3 { font-size: var(--fz-h3); }
h4 { font-size: var(--fz-h4); }

p {
    margin-bottom: 1.25em;
    font-size: var(--fz-normal);
    color: var(--text-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--easing-cubic);
}
a:hover, a:focus {
    color: var(--accent-color-1);
    text-decoration: underline;
}

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1em;
}

/* Utility Classes */
.page-wrapper {
    max-width: var(--page-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

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

.bg-light {
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
}
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: var(--text-color-dark-headings);
}
.bg-light p {
    color: var(--text-color-dark);
}
.bg-light a {
    color: var(--primary-color);
}
.bg-light a:hover, .bg-light a:focus {
    color: var(--accent-color-1);
}

/* For ScrollReveal animations */
.reveal {
    /*opacity: 0;*/
    transform: translateY(30px);
    transition: opacity var(--transition-speed-slow) var(--easing-cubic), transform var(--transition-speed-slow) var(--easing-cubic);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Main content container */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex-grow: 1;
}

/* Section Titles & Intros */
.section-title {
    text-align: center;
    margin-bottom: 1em; /* Reduced from 1.5em to 1em */
    font-weight: 900;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em; /* Increased from 2em to 2.5em */
    font-size: var(--fz-large);
    color: var(--text-color-subtle);
}
.bg-light .section-intro {
    color: var(--text-color-dark-subtle);
}

/* -------------------- */
/* Header & Navigation
/* -------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(13, 17, 23, 0.8); /* --bg-color-dark with alpha */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color-dark);
    transition: background-color var(--transition-speed-normal) var(--easing-cubic), box-shadow var(--transition-speed-normal) var(--easing-cubic);
}
.site-header.scrolled {
    background: rgba(13, 17, 23, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color-headings);
    text-decoration: none;
}
.logo sup {
    font-size: 0.6em;
    color: var(--secondary-color);
    font-weight: 700;
    vertical-align: super;
}
.logo:hover, .logo:focus {
    color: var(--secondary-color);
    text-decoration: none;
}
.logo:hover sup, .logo:focus sup {
    color: var(--text-color-headings);
}

.main-navigation .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation .nav-list li {
    margin-left: 25px;
}
.main-navigation .nav-list a {
    font-family: var(--font-family-body);
    font-weight: 500;
    font-size: var(--fz-normal);
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    position: relative;
    transition: color var(--transition-speed-fast) var(--easing-cubic), background-color var(--transition-speed-fast) var(--easing-cubic);
}
.main-navigation .nav-list a:hover,
.main-navigation .nav-list a:focus,
.main-navigation .nav-list a.active {
    color: var(--secondary-color);
    /* background-color: rgba(var(--secondary-color-rgb), 0.1); */
}
.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed-normal) var(--easing-cubic);
}
.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a:focus::after,
.main-navigation .nav-list a.active::after {
    width: 70%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}
.nav-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color-headings);
    position: relative;
    transition: transform var(--transition-speed-normal) var(--easing-cubic), background-color var(--transition-speed-normal) var(--easing-cubic);
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--text-color-headings);
    transition: transform var(--transition-speed-normal) var(--easing-cubic), top var(--transition-speed-normal) var(--easing-cubic), bottom var(--transition-speed-normal) var(--easing-cubic);
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { bottom: -7px; }

/* Mobile Menu Active State */
.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }


/* -------------------- */
/* Global Button Styles
/* -------------------- */
.btn, button[type="submit"], input[type="submit"], .contact-form button {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: var(--fz-normal);
    text-align: center;
    text-decoration: none;
    color: var(--bg-color-dark);
    background-color: var(--secondary-color);
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-volumetric);
    cursor: pointer;
    transition: all var(--transition-speed-normal) var(--easing-cubic);
    box-shadow: 0 4px 10px rgba(var(--secondary-color-rgb), 0.3), var(--box-shadow-volumetric-light);
    transform: translateY(0);
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover, .contact-form button:hover,
.btn:focus, button[type="submit"]:focus, input[type="submit"]:focus, .contact-form button:focus {
    background-color: var(--accent-color-1);
    color: var(--text-color-headings);
    box-shadow: 0 6px 15px rgba(var(--accent-color-1-rgb), 0.4), var(--box-shadow-volumetric-light);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn:active, button[type="submit"]:active, input[type="submit"]:active, .contact-form button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(var(--accent-color-1-rgb), 0.3);
}

.btn-primary { /* Default styling is already primary-like */ }

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: none;
}
.btn-outline:hover, .btn-outline:focus {
    background-color: var(--secondary-color);
    color: var(--bg-color-dark);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(var(--secondary-color-rgb), 0.3);
}
.bg-light .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.bg-light .btn-outline:hover, .bg-light .btn-outline:focus {
    background-color: var(--primary-color);
    color: var(--text-color-headings);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}


/* -------------------- */
/* Hero Section
/* -------------------- */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height)); /* Ensure it's at least viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-headings); /* IMPORTANT: Hero text is white */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    font-weight: 900;
    color: #FFFFFF; /* Explicitly white */
    margin-bottom: 0.5em;
    text-shadow: var(--text-shadow-hero);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #E0E0E0; /* Slightly off-white for better readability */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.btn-hero { /* Specific if needed, otherwise global .btn applies */
    padding: 15px 40px;
    font-size: var(--fz-large);
}

/* -------------------- */
/* Card Grid & Cards (Services, Team, etc.)
/* -------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-color-medium);
    border-radius: var(--border-radius-large);
    padding: 25px;
    box-shadow: var(--box-shadow-volumetric-dark);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center;   /* Center text within */
    transition: transform var(--transition-speed-normal) var(--easing-cubic), box-shadow var(--transition-speed-normal) var(--easing-cubic);
    overflow: hidden; /* Ensure content stays within rounded corners */
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3), 
                -5px -5px 15px rgba(255,255,255,0.04),
                inset 1px 1px 3px rgba(255,255,255,0.06),
                inset -1px -1px 3px rgba(0,0,0,0.25);
}

.bg-light .card {
    background-color: var(--bg-color-medium-light);
    box-shadow: var(--box-shadow-volumetric-light);
}
.bg-light .card:hover {
     box-shadow: 0 12px 30px rgba(0,0,0,0.15), 
                -5px -5px 15px rgba(255,255,255,0.8),
                inset 1px 1px 3px rgba(255,255,255,0.6),
                inset -1px -1px 3px rgba(0,0,0,0.08);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 200px; /* Fixed height for image container */
    margin-bottom: 20px;
    border-radius: var(--border-radius-medium);
    overflow: hidden; /* Crucial for object-fit and border-radius on img */
    background-color: var(--bg-color-dark); /* Fallback for image loading */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container without distortion */
    display: block; /* Removes extra space below image */
    transition: transform var(--transition-speed-slow) var(--easing-cubic);
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    flex-grow: 1; /* Allows content to fill space if card heights vary */
    width: 100%;
}
.card-content h3 {
    font-size: var(--fz-h4);
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}
.bg-light .card-content h3 {
    color: var(--primary-color);
}
.card-content p {
    font-size: var(--fz-small);
    color: var(--text-color-subtle);
    margin-bottom: 0; /* Remove default p margin if it's the last element */
}
.bg-light .card-content p {
    color: var(--text-color-dark-subtle);
}

/* Team Member Card Specifics */
.team-member-card .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Circular images for team members */
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 0 4px var(--bg-color-medium), 0 0 0 6px var(--secondary-color);
}
.bg-light .team-member-card .card-image {
    box-shadow: 0 0 0 4px var(--bg-color-medium-light), 0 0 0 6px var(--primary-color);
}
.team-member-card .card-content h3 {
    color: var(--text-color-headings); /* Team member names more prominent */
    font-size: var(--fz-large);
}
.bg-light .team-member-card .card-content h3 {
    color: var(--text-color-dark-headings);
}
.team-member-role {
    font-size: var(--fz-small);
    color: var(--accent-color-2); /* Tech accent for role */
    font-weight: 500;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -------------------- */
/* Clientele Section - Stats Widgets
/* -------------------- */
.stats-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.stat-widget {
    background-color: var(--bg-color-medium);
    padding: 30px 25px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--box-shadow-volumetric-dark);
}
.bg-light .stat-widget {
    background-color: var(--bg-color-medium-light);
    box-shadow: var(--box-shadow-volumetric-light);
}
.stat-value {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--accent-color-2); /* Tech accent for stats */
    margin-bottom: 0.1em;
    line-height: 1;
}
.stat-label {
    font-size: var(--fz-large);
    font-weight: 700;
    color: var(--text-color-headings);
    margin-bottom: 0.5em;
}
.bg-light .stat-label {
    color: var(--text-color-dark-headings);
}
.stat-widget p {
    font-size: var(--fz-small);
    color: var(--text-color-subtle);
    margin-bottom: 0;
}
.bg-light .stat-widget p {
    color: var(--text-color-dark-subtle);
}

/* -------------------- */
/* Innovation Section
/* -------------------- */
.innovation-features .feature-item {
    display: flex;
    flex-direction: column; /* Stack on mobile by default */
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    background-color: var(--bg-color-medium);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-volumetric-dark);
}
.bg-light .innovation-features .feature-item {
    background-color: var(--bg-color-medium-light);
    box-shadow: var(--box-shadow-volumetric-light);
}
.feature-item:last-child {
    margin-bottom: 0;
}
.feature-item .feature-image {
    width: 100%;
    max-width: 450px; /* Control image size */
    border-radius: var(--border-radius-medium);
    object-fit: cover;
    aspect-ratio: 16/10;
}
.feature-item .feature-content {
    flex: 1;
    text-align: center;
}
.feature-item .feature-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}
.bg-light .feature-item .feature-content h3 {
    color: var(--primary-color);
}

/* -------------------- */
/* Research Section - Accordion
/* -------------------- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background-color: var(--bg-color-medium);
    border-radius: var(--border-radius-medium);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow-volumetric-dark);
    overflow: hidden; /* Important for accordion content */
}
.bg-light .accordion-item {
    background-color: var(--bg-color-medium-light);
    box-shadow: var(--box-shadow-volumetric-light);
}
.accordion-header {
    width: 100%;
    background-color: transparent; /* Button takes color from item */
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-family: var(--font-family-headings);
    font-size: var(--fz-large);
    font-weight: 700;
    color: var(--text-color-headings);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed-fast);
}
.bg-light .accordion-header {
    color: var(--text-color-dark-headings);
}
.accordion-header:hover {
    background-color: rgba(var(--secondary-color-rgb), 0.1);
}
.bg-light .accordion-header:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}
.accordion-icon {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    transition: transform var(--transition-speed-normal) var(--easing-cubic);
}
.bg-light .accordion-icon {
    color: var(--primary-color);
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height var(--transition-speed-slow) var(--easing-cubic), padding var(--transition-speed-slow) var(--easing-cubic);
}
.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust as needed for content */
    padding: 10px 25px 25px;
}
.accordion-content p {
    font-size: var(--fz-normal);
    margin-bottom: 0;
    color: var(--text-color-subtle);
}
.bg-light .accordion-content p {
    color: var(--text-color-dark-subtle);
}

/* -------------------- */
/* External Resources Section
/* -------------------- */
.resources-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.resource-item {
    background-color: var(--bg-color-medium);
    padding: 25px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-volumetric-dark);
    transition: transform var(--transition-speed-normal) var(--easing-cubic), box-shadow var(--transition-speed-normal) var(--easing-cubic);
    display: flex;
    flex-direction: column;
}
.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25), 
                -4px -4px 12px rgba(255,255,255,0.035),
                inset 1px 1px 2.5px rgba(255,255,255,0.055),
                inset -1px -1px 2.5px rgba(0,0,0,0.22);
}
.bg-light .resource-item {
    background-color: var(--bg-color-medium-light);
    box-shadow: var(--box-shadow-volumetric-light);
}
.bg-light .resource-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 
                -4px -4px 12px rgba(255,255,255,0.75),
                inset 1px 1px 2.5px rgba(255,255,255,0.55),
                inset -1px -1px 2.5px rgba(0,0,0,0.07);
}
.resource-link {
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.resource-link:hover, .resource-link:focus {
    text-decoration: none; /* Override global link hover */
}
.resource-title {
    font-size: var(--fz-large);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}
.bg-light .resource-title {
    color: var(--primary-color);
}
.resource-description {
    font-size: var(--fz-small);
    color: var(--text-color-subtle);
    margin-bottom: 1em;
    flex-grow: 1;
}
.bg-light .resource-description {
    color: var(--text-color-dark-subtle);
}
.resource-url {
    font-size: 0.8rem;
    color: var(--accent-color-2);
    font-weight: 500;
    margin-top: auto; /* Push to bottom */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -------------------- */
/* Contact Section & Form
/* -------------------- */
.contact-section { /* Shared styling for index and contacts.html */ }

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-color-medium);
    padding: 30px 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-volumetric-dark);
}
.bg-light .contact-form {
    background-color: var(--bg-color-medium-light);
    box-shadow: var(--box-shadow-volumetric-light);
}

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: var(--fz-normal);
}
.bg-light .form-group label {
    color: var(--text-color-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    font-family: var(--font-family-body);
    font-size: var(--fz-normal);
    color: var(--text-color);
    background-color: rgba(0,0,0,0.2); /* Darker transparent */
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-medium);
    transition: border-color var(--transition-speed-normal), box-shadow var(--transition-speed-normal);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2), inset -2px -2px 5px rgba(255,255,255,0.02);
}
.bg-light .form-group input[type="text"],
.bg-light .form-group input[type="email"],
.bg-light .form-group textarea {
    color: var(--text-color-dark);
    background-color: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color-light);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,0.5);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color-subtle);
    opacity: 0.7;
}
.bg-light .form-group input[type="text"]::placeholder,
.bg-light .form-group input[type="email"]::placeholder,
.bg-light .form-group textarea::placeholder {
    color: var(--text-color-dark-subtle);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), 0.25),
                inset 2px 2px 5px rgba(0,0,0,0.1), 
                inset -2px -2px 5px rgba(255,255,255,0.01);
}
.bg-light .form-group input[type="text"]:focus,
.bg-light .form-group input[type="email"]:focus,
.bg-light .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25),
                inset 2px 2px 5px rgba(0,0,0,0.03), 
                inset -2px -2px 5px rgba(255,255,255,0.3);
}

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

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px; /* Larger padding for form submit */
    font-size: var(--fz-large);
}

/* Specific to contacts.html */
.contact-page-wrapper {
    display: grid;
    gap: 40px;
}
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { margin-bottom: 10px; font-size: var(--fz-normal); }
.contact-info li strong { color: var(--secondary-color); }
.bg-light .contact-info li strong { color: var(--primary-color); }
.contact-info .content-image {
    margin-top: 20px;
    border-radius: var(--border-radius-medium);
}

/* -------------------- */
/* Footer
/* -------------------- */
.site-footer {
    background-color: #080B10; /* Slightly darker than main dark bg for separation */
    color: var(--text-color-subtle);
    padding: 50px 0;
    border-top: 1px solid var(--border-color-dark);
    font-size: var(--fz-small);
}

.footer-content {
    display: grid;
    gap: 30px;
}

.footer-col h4 {
    font-size: var(--fz-large);
    color: var(--text-color-headings);
    margin-bottom: 1em;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 0.8em;
}
.footer-col a {
    color: var(--text-color-subtle);
    text-decoration: none;
}
.footer-col a:hover, .footer-col a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}
.logo-footer {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color-headings);
    margin-bottom: 0.5em;
}
.logo-footer sup {
    font-size: 0.6em;
    color: var(--secondary-color);
    font-weight: 700;
}
.site-footer p {
    color: var(--text-color-subtle);
    margin-bottom: 0.5em;
}
/* Social links are text only as requested */
.social-links li a {
    /* Style as regular footer links, or add specific styling */
    font-weight: 500;
}

/* -------------------- */
/* Specific Page Styles
/* -------------------- */

/* Page Title Section (for About, Contact, Privacy, Terms) */
.page-title-section {
    position: relative;
    padding: calc(var(--section-padding-y) + var(--header-height)) 0 var(--section-padding-y);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-headings);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(var(--primary-color-rgb), 0.7), rgba(var(--bg-color-dark-rgb, 13, 17, 23), 0.9));
    z-index: 1;
}
.page-title-section .page-wrapper {
    position: relative;
    z-index: 2;
}
.page-main-title {
    font-size: var(--fz-h1);
    color: #FFFFFF;
    margin-bottom: 0.3em;
    text-shadow: var(--text-shadow-hero);
}
.page-subtitle {
    font-size: var(--fz-large);
    color: #E0E0E0;
    max-width: 600px;
    margin: 0 auto;
}

/* About Us Page */
.content-section .content-wrapper {
    max-width: 850px; /* Slightly wider for content pages */
}
.values-list {
    list-style: none;
    padding-left: 0;
}
.values-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: var(--fz-normal);
}
.values-list li::before {
    content: '✓'; /* Or a futuristic icon/svg */
    position: absolute;
    left: 0;
    color: var(--accent-color-2);
    font-weight: bold;
}
.content-image {
    margin: 30px auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-medium);
}

/* Privacy & Terms Pages */
.legal-text {
    padding-top: var(--header-height); /* For fixed header */
    line-height: 1.8;
}
.legal-text h2 {
    font-size: var(--fz-h3);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: var(--secondary-color);
}
.bg-light .legal-text h2 {
    color: var(--primary-color);
}
.legal-text h3 {
    font-size: var(--fz-h4);
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}
.legal-text ul {
    padding-left: 20px;
    margin-bottom: 1.5em;
}
.legal-text li {
    margin-bottom: 0.5em;
}
.content-section.section-padding:has(.legal-text .page-wrapper) { /* Target section containing legal text */
    padding-top: 0; /* Remove top padding from section if .legal-text handles it */
}

/* Success Page */
.success-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-min-height));
    padding: 40px 20px;
}
body.success-page .main-container { /* If you add class to body of success.html */
   /* min-height: 100vh; // Already on .main-container */
}
.success-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    color: var(--accent-color-2); /* For SVG fill if it's an inline SVG */
}

/* "Read More" Links */
.read-more-link {
    display: inline-block;
    color: var(--accent-color-2);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-speed-fast), transform var(--transition-speed-fast);
}
.read-more-link::after {
    content: '→'; /* Or a proper SVG arrow */
    margin-left: 8px;
    transition: transform var(--transition-speed-fast);
    display: inline-block;
}
.read-more-link:hover, .read-more-link:focus {
    color: var(--secondary-color);
    text-decoration: none;
    transform: translateX(3px);
}
.read-more-link:hover::after {
    transform: translateX(5px);
}
.bg-light .read-more-link {
    color: var(--accent-color-1);
}
.bg-light .read-more-link:hover, .bg-light .read-more-link:focus {
    color: var(--primary-color);
}

/* Cookie Popup (minimal styling as per prompt, mainly for button hover) */
#cookie-popup button#accept-cookies {
    transition: background-color var(--transition-speed-fast), color var(--transition-speed-fast);
}
#cookie-popup button#accept-cookies:hover {
    background-color: #2aa870; /* Darker shade of --accent-color-2 */
    color: var(--bg-color-dark);
}

/* -------------------- */
/* Responsive Design
/* -------------------- */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 60px;
    }
    .hero-title { font-size: clamp(2rem, 5.5vw, 3.5rem); }
    .hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.3rem); }
}

@media (max-width: 768px) {
    .main-navigation .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform var(--transition-speed-normal) var(--easing-cubic);
        padding-top: var(--header-height);
        z-index: 1005; /* Below header content but above page */
    }
    .main-navigation .nav-list.active {
        transform: translateX(0);
    }
    .main-navigation .nav-list li {
        margin: 15px 0;
    }
    .main-navigation .nav-list a {
        font-size: var(--fz-large);
        padding: 10px 20px;
    }
    .nav-toggle {
        display: block;
    }

    .header-content { height: calc(var(--header-height) - 10px); /* Slightly reduce for mobile */}
    .site-header { padding: 5px 0; }

    .innovation-features .feature-item {
        padding: 20px;
    }
    .contact-page-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        margin-bottom: 20px;
    }
    .card-grid {
        grid-template-columns: 1fr; /* Single column for cards */
    }
    .stats-widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (min-width: 769px) { /* Desktop styles for Innovation section */
    .innovation-features .feature-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start; /* Align items to start for row layout */
    }
    .innovation-features .feature-item:nth-child(even) {
        flex-direction: row-reverse;
    }
    .innovation-features .feature-item .feature-content {
        text-align: left;
    }
}

@media (min-width: 992px) { /* Desktop styles for contact page */
    .contact-page-wrapper {
        grid-template-columns: minmax(300px, 1fr) 2fr; /* Info | Form */
        align-items: start;
    }
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }
}