/* style.css */

/* --- CSS Variables --- */
:root {
    /* Pastel Color Scheme - Adjusted for vibrancy based on previous context */
    --primary-color: #4a90e2; /* Vibrant Pastel Blue */
    --primary-darker-color: #3a7bc8; /* Darker Blue for hovers/borders */
    --secondary-color: #78c0a8; /* Vibrant Pastel Green/Teal */
    --secondary-darker-color: #62a891; /* Darker Green/Teal */
    --accent-color: #f7c59f; /* Pastel Peach/Orange */
    --accent-darker-color: #e6b48f; /* Darker Peach */

    --background-color: #f0f4f8; /* Very Light Pastel Blue/Gri */
    --card-background-color: #ffffff;
    --text-color: #333333;
    --text-light-color: #555555;
    --heading-color: #222222; /* Strong contrast for headings */
    --white-color: #FFFFFF;
    --light-gray-color: #e9eef2; /* For borders, subtle backgrounds */
    --dark-gray-color: #4F4F4F;

    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Gradients */
    --gradient-dynamic-pastel: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-soft-background: linear-gradient(135deg, #e6f7ff 0%, #e0fff5 100%); /* Softer pastel for backgrounds */
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));

    /* UI Elements */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-std: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Standard "drawn" feel */
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Header Height */
    --header-height: 70px; /* Adjust as needed */
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 0.75em;
    line-height: 1.2;
    text-rendering: optimizeLegibility;
}

h1 { font-size: 3rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
h2 { font-size: 2.5rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25em;
    color: var(--text-light-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-std);
}
a:hover, a:focus {
    color: var(--primary-darker-color);
    text-decoration: none; /* Or underline if preferred */
}

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

/* --- Layout Containers --- */
.main-container {
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}
.section-padding-gradient {
    padding: 80px 0;
    background: var(--gradient-soft-background);
}

.section-title {
    text-align: center;
    margin-bottom: 40px; /* Increased for better separation */
    font-size: 2.8rem; /* Slightly larger default */
}
.section-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: var(--text-light-color);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-white { color: var(--white-color) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* --- Header / Fixed Navigation --- */
.site-header {
    background-color: var(--white-color);
    padding: 0; /* Let container handle padding */
    box-shadow: var(--shadow-md);
    position: fixed; /* Changed to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition-std);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: normal; /* Archivo Black is bold by itself */
    letter-spacing: -0.5px;
}
.logo:hover {
    color: var(--secondary-color);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-link {
    font-weight: 700;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
}
.main-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-std);
    transform: translateX(-50%);
}
.main-nav .nav-link:hover::before,
.main-nav .nav-link.active::before {
    width: calc(100% - 20px); /* Adjust for padding */
}
.main-nav .nav-link.active {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav list */
}
.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: var(--transition-std);
}
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition-std);
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile Nav Open State */
.nav-open .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Global Button Styles --- */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-body); /* Roboto for buttons */
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-std);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before, button::before, input[type="submit"]::before, input[type="button"]::before { /* Ripple effect element */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    z-index: -1;
}
.btn:active::before, button:active::before, input[type="submit"]:active::before, input[type="button"]:active::before {
    width: 200%; /* Expand to cover button */
    padding-bottom: 200%; /* Maintain aspect ratio for circle */
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s; /* Instant effect on active */
}

.btn-primary, button[type="submit"], input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-primary:focus,
button[type="submit"]:hover, button[type="submit"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
    background-color: var(--primary-darker-color);
    border-color: var(--primary-darker-color);
    color: var(--white-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px) scale(1.02);
}

.btn-hero {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
    padding: 120px 0; /* Natural height based on content + padding */
}
.hero-section::before { /* Overlay using pseudo-element */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay); /* From variables */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    color: var(--white-color) !important; /* Explicitly white */
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--white-color) !important; /* Explicitly white */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* --- Cards (General Styles) --- */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-lg); /* Softer, larger radius */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-std);
    display: flex;
    flex-direction: column;
    /* align-items: center; Applied if all content should be centered */
    text-align: left; /* Default for card content */
    margin-bottom: 30px;
}
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    overflow: hidden;
    display: flex; /* For centering the img if it's smaller */
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray-color); /* Placeholder if image fails */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, crops if necessary */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth zoom */
}
.card:hover .card-image img {
    transform: scale(1.08);
}
/* For cards where the image itself is the primary focus and needs strict centering */
.card.image-focused .card-image {
    align-items: center;
}
.card.image-focused .card-image img {
    margin: 0 auto; /* This works if object-fit is not 'cover' and image is smaller */
}


.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    margin-bottom: 10px;
    color: var(--heading-color);
}
.card-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-light-color);
    flex-grow: 1; /* Allows paragraph to take up space */
}
.card-content .btn {
    margin-top: auto; /* Pushes button to bottom */
    align-self: flex-start; /* Align button to left within card */
}

/* Specific card content centering if needed */
.card .centered-content {
    text-align: center;
    align-items: center; /* For flex items in this sub-container */
}
.card .centered-content .btn {
    align-self: center;
}

/* --- Grid Layouts --- */
.grid-container { /* General purpose grid */
    display: grid;
    gap: 30px;
}
.grid-2-col { /* Used for research, external resources */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grid-3-col { /* Used for services, innovation, team, case studies */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* --- Services, Case Studies, Innovation Cards --- */
/* Uses general .card styles */

/* --- Workshops (Timeline) --- */
.timeline {
    position: relative;
    margin: 50px auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--light-gray-color);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right; /* Content flows towards the line */
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left; /* Content flows towards the line */
}
.timeline-icon {
    position: absolute;
    top: 0; /* Align with top of content usually */
    transform: translateY(5px); /* Slight adjustment */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--white-color), var(--shadow-sm);
    z-index: 2;
}
.timeline-icon svg {
    width: 20px;
    height: 20px;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px; /* Half of icon width */
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -20px; /* Half of icon width */
}
.timeline-content {
    background: var(--white-color);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    position: relative; /* For arrows */
}
.timeline-content h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* --- Team Section (Profile Cards) --- */
.team-member-card {
    text-align: center; /* Center content within this specific card type */
}
.team-member-card .card-image { /* Override general card-image for circular profile */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 20px auto 0 auto; /* Centering trick */
    border: 5px solid var(--white-color);
    box-shadow: var(--shadow-sm);
}
.team-member-card .card-image img {
    border-radius: 50%; /* Ensure image itself is circular */
}
.team-member-name {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.5rem;
}
.team-member-role {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* --- Research Section --- */
/* Uses .card and .grid-2-col */
.link-arrow { /* "Читать далее" link style */
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    transition: var(--transition-std);
}
.link-arrow::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s ease-out;
    display: inline-block;
}
.link-arrow:hover {
    color: var(--secondary-darker-color);
}
.link-arrow:hover::after {
    transform: translateX(4px);
}

/* --- Clientele Section (Logo Gallery) --- */
.logo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Increased gap */
    margin-top: 30px;
}
.logo-gallery img {
    max-height: 50px; /* Smaller, more refined logos */
    width: auto;
    opacity: 0.65;
    transition: var(--transition-std);
    filter: grayscale(50%); /* Subtle desaturation */
}
.logo-gallery img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* --- External Resources --- */
/* Uses .resource-card (alias for .card) and .grid-2-col */
.resource-card h4 a {
    color: var(--primary-color);
    transition: var(--transition-std);
}
.resource-card h4 a:hover {
    color: var(--primary-darker-color);
}
.resource-card p {
    font-size: 0.9rem;
}


/* --- Contact Form --- */
.contact-form-container {
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding: 35px;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--light-gray-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition-std);
    background-color: #fdfdff; /* Slightly off-white for fields */
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #999;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--r_primary, 74), var(--g_primary, 144), var(--b_primary, 226), 0.25); /* Define --r_primary etc. if needed, or use fixed values */
    outline: none;
    background-color: var(--white-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 130px;
}
.contact-details {
    margin-top: 50px;
    text-align: center;
}
.contact-details p {
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.contact-details strong {
    color: var(--heading-color);
}
.info-block.card { /* For contact info blocks if used */
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    background-color: #28313b; /* Darker, sophisticated footer */
    color: #adb5bd; /* Lighter text for contrast */
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 1px;
}
.footer-nav ul, .footer-social ul {
    list-style: none;
}
.footer-nav li, .footer-social li {
    margin-bottom: 12px;
}
.footer-nav a, .footer-social a {
    color: #ced4da; /* Slightly brighter link color */
    transition: var(--transition-std);
    display: inline-block; /* For transform */
}
.footer-nav a:hover, .footer-social a:hover {
    color: var(--white-color);
    transform: translateX(5px);
}
.footer-contact p {
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid #343f4b; /* Subtle separator */
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
}
.footer-bottom p {
    color: #868e96; /* Dimmed copyright text */
    font-size: 0.9rem;
    margin: 0;
}

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

/* Privacy & Terms Pages - Ensure content clears fixed header */
.page-content.section-padding {
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px;
}
.page-content .page-title { /* Title for static pages */
    margin-bottom: 30px;
}
.page-content .content-block {
    background-color: var(--card-background-color);
    padding: 30px 40px; /* More padding for readability */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}
.page-content .content-block h2.sub-page-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-gray-color);
    padding-bottom: 8px;
}
.page-content .content-block ul {
    list-style-position: outside;
    margin-left: 20px;
    margin-bottom: 1.5em;
}
.page-content .content-block li {
    margin-bottom: 0.75em;
    padding-left: 10px;
}

/* Success Page */
#success-message.container.text-center {
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-height); /* Account for fixed header */
}
.success-icon svg {
    width: 80px;
    height: 80px;
    color: var(--secondary-color); /* Greenish success color */
    margin-bottom: 20px;
}
#success-message .page-title {
    color: var(--secondary-darker-color);
}
.link-highlight {
    font-weight: 700;
    color: var(--primary-color);
}
.link-highlight:hover {
    text-decoration: underline;
}

/* --- Page Transition Element --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 10000;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
body.fade-out .page-transition {
    transform: scaleY(1);
    transform-origin: top;
}
body.fade-in .page-transition {
    transform: scaleY(0);
    transform-origin: bottom;
}

/* --- Cookie Consent Popup --- */
/* Styles are inline in HTML as per prompt, but if moved here: */
/*
#cookieConsentPopup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    color: var(--white-color);
    padding: 20px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-family: var(--font-body);
}
#cookieConsentPopup p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #f1f1f1;
}
#cookieConsentPopup a {
    color: var(--accent-color);
    text-decoration: underline;
}
#acceptCookieConsent {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
}
#acceptCookieConsent:hover {
    background-color: var(--primary-darker-color);
}
*/

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Tablet */
    :root { --header-height: 60px; }
    h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 2.1rem; }
    .hero-section { padding: 100px 0; }

    .timeline::before { left: 30px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 80px; /* Space for icon on the left */
        padding-right: 15px;
        text-align: left !important;
    }
    .timeline-item .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 10px; /* Position icon from the actual left of the item */
        transform: translateX(0);
    }
}

@media (max-width: 768px) { /* Mobile Large */
    .section-title { font-size: 1.9rem; margin-bottom: 30px;}
    .section-intro { margin-bottom: 40px; font-size: 1rem; }
    .hero-title { font-size: clamp(2rem, 6vw, 2.5rem); }
    .hero-subtitle { font-size: clamp(0.9rem, 3vw, 1.1rem); }

    /* Mobile Navigation */
    .nav-toggle { display: block; }
    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow-md);
        padding: 10px 0;
        border-top: 1px solid var(--light-gray-color);
    }
    .main-nav.nav-open .nav-list { display: flex; }
    .main-nav .nav-list li {
        margin-left: 0;
        width: 100%;
    }
    .main-nav .nav-link {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid var(--light-gray-color);
    }
    .main-nav .nav-link::before { display: none; } /* Remove underline for mobile */
    .main-nav .nav-list li:last-child .nav-link { border-bottom: none; }
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background-color: var(--primary-color);
        color: var(--white-color);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-nav a:hover, .footer-social a:hover {
        transform: translateX(0); /* Disable hover transform on mobile */
    }
    .card-image { height: 200px; }
}

@media (max-width: 480px) { /* Mobile Small */
    .section-padding, .section-padding-gradient { padding: 60px 0; }
    h1 { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .btn, button, input[type="submit"] { padding: 10px 20px; font-size: 0.9rem; }
    .btn-hero { padding: 12px 25px; font-size: 1rem; }

    .contact-form-container { padding: 25px; }
    .page-content .content-block { padding: 20px; }

    .timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }
    .timeline-item .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0px;
        width: 35px; height: 35px;
    }
    .timeline-icon svg { width: 16px; height: 16px; }
}

/* Glassmorphism example (can be applied to cards or specific elements) */
/*
.glassmorphic-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(209, 213, 219, 0.3);
    box-shadow: var(--shadow-sm);
}
*/

/* Fallback for r,g,b variables in box-shadow (if not set up for JS manipulation) */
/* Replace with actual RGB values of --primary-color if not dynamically changing */
:root {
    --r_primary: 74;
    --g_primary: 144;
    --b_primary: 226;
}