/* style.css */

/* --- CSS Variables --- */
:root {
    /* Pastel Color Scheme */
    --color-background-main: #FEFCF5; /* Off-white, very light cream */
    --color-background-section-light: #F0F8FF; /* AliceBlue - Light pastel blue */
    --color-background-section-alt: #FAF0E6; /* Linen - Light pastel beige */
    --color-background-glass: rgba(240, 248, 255, 0.6); /* Translucent AliceBlue for glassmorphism */
    --color-background-glass-border: rgba(220, 230, 240, 0.3);

    --color-text-dark: #4A4A4A; /* Dark gray for body text */
    --color-text-headings: #2c3e50; /* Darker, slightly desaturated blue/gray for headings */
    --color-text-light: #FFFFFF; /* White for text on dark/image backgrounds */
    --color-text-muted: #7f8c8d; /* Muted gray for secondary text */

    /* Creative Accents (Pastel) */
    --color-primary-accent: #A7DBD8; /* Soft Teal/Mint */
    --color-primary-accent-darker: #82B8B4; /* Darker shade for hover */
    --color-secondary-accent: #FFDAB9; /* Peach Puff */
    --color-secondary-accent-darker: #F5C8A0; /* Darker Peach for hover */
    --color-tertiary-accent: #E0BBE4; /* Light Lavender/Orchid */
    --color-tertiary-accent-darker: #C59FC9; /* Darker Lavender for hover */

    --color-success: #A8D8B9; /* Pastel Green */
    --color-error: #F8BABA; /* Pastel Red */
    --color-link: var(--color-primary-accent);
    --color-link-hover: var(--color-primary-accent-darker);

    /* Fonts */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* UI Elements */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 12px 35px rgba(74, 74, 74, 0.12);
    --border-radius-main: 12px; /* Slightly larger for a softer, modern look */
    --border-radius-small: 6px;
    --transition-main: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth morph-like transition */
    --transition-fast: all 0.2s ease-in-out;

    /* Spacing */
    --space-xs: 0.5rem;  /* 8px */
    --space-s: 1rem;    /* 16px */
    --space-m: 1.5rem;  /* 24px */
    --space-l: 2.5rem;  /* 40px */
    --space-xl: 4rem;   /* 64px */
    --space-xxl: 6rem;  /* 96px */
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background-main);
    line-height: 1.7; /* Improved readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1200px; /* Standard max-width */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-s);
    padding-right: var(--space-s);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-headings);
    margin-top: 0;
    margin-bottom: var(--space-m);
    line-height: 1.3;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); } /* Responsive font size */
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

.section-title {
    text-align: center;
    margin-bottom: var(--space-l);
    color: var(--color-text-headings);
}

.page-title { /* For page headers with background images */
    color: var(--color-text-light);
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Ensure legibility */
}

p {
    margin-bottom: var(--space-s);
    font-size: 1rem; /* 16px */
}
@media (min-width: 768px) {
    p { font-size: 1.05rem; /* Slightly larger on bigger screens */ }
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover, a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
    outline: 2px solid transparent; /* For focus, if no other visual cue */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-small); /* Default small radius for images */
}

/* --- Layout: Header --- */
.site-header {
    background-color: var(--color-background-main);
    padding: var(--space-s) 0;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 50px;
    border-radius: 0; /* Logos typically don't need border-radius */
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-m);
}
.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
    padding: var(--space-xs) 0;
    position: relative;
    text-decoration: none;
}
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}
.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: relative;
    transition: var(--transition-main);
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-dark);
    transition: var(--transition-main);
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

.menu-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Buttons (Global) --- */
.button-primary, .cta-button, .button-secondary, input[type='submit'] {
    display: inline-block;
    padding: var(--space-s) var(--space-l);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-main);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-main);
    box-shadow: var(--shadow-soft);
    transform: perspective(1px) translateZ(0); /* Smooths animation */
}
.button-primary:hover, .cta-button:hover, .button-secondary:hover, input[type='submit']:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
}
.button-primary:active, .cta-button:active, .button-secondary:active, input[type='submit']:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: var(--shadow-soft);
}

.button-primary, .cta-button, input[type='submit'] {
    background-color: var(--color-primary-accent);
    color: var(--color-text-headings); /* Good contrast with pastel accent */
    border-color: var(--color-primary-accent);
}
.button-primary:hover, .cta-button:hover, input[type='submit']:hover {
    background-color: var(--color-primary-accent-darker);
    border-color: var(--color-primary-accent-darker);
}

.button-secondary {
    background-color: var(--color-secondary-accent);
    color: var(--color-text-headings);
    border-color: var(--color-secondary-accent);
}
.button-secondary:hover {
    background-color: var(--color-secondary-accent-darker);
    border-color: var(--color-secondary-accent-darker);
}

/* 'Read More' Link Styling */
.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-accent);
    text-decoration: none;
    display: inline-block;
    padding: var(--space-xs) 0;
    position: relative;
}
.read-more::after {
    content: ' →'; /* Arrow */
    transition: var(--transition-fast);
    opacity: 0.7;
}
.read-more:hover::after {
    transform: translateX(4px);
    opacity: 1;
}
.read-more:hover {
    color: var(--color-primary-accent-darker);
    text-decoration: underline;
}

/* --- General Section Styling --- */
.content-section, .content-section_alternate {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative; /* For potential pseudo-elements or absolute positioning */
}
.content-section_alternate {
    background-color: var(--color-background-section-alt);
}
/* Specific background for webinars section with overlay for text readability */
.webinars-section[style*="background-image"],
.hero-section[style*="background-image"],
.page-header-section[style*="background-image"] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-overlay, .webinar-overlay { /* Ensure text readability on image backgrounds */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}
.webinars-section .container,
.hero-section .container,
.page-header-section .container {
    position: relative;
    z-index: 2;
}
.section-paragraph {
    max-width: 720px; /* Optimal width for reading */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: var(--space-l);
    font-size: 1.1rem;
    color: var(--color-text-muted);
}
.content-section_alternate .section-paragraph {
    color: var(--color-text-dark); /* Slightly darker for alt background */
}

/* --- Hero Section --- */
.hero-section {
    color: var(--color-text-light);
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content {
    max-width: 800px;
}
.hero-title {
    color: var(--color-text-light); /* Explicitly white */
    margin-bottom: var(--space-s);
    font-weight: 800; /* Bolder for hero */
}
.hero-subtitle {
    color: var(--color-text-light); /* Explicitly white */
    opacity: 0.9;
    font-size: 1.3rem;
    margin-bottom: var(--space-l);
}

/* --- Page Header (for sub-pages like About, Contact, etc.) --- */
.page-header-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Card Component --- */
.card {
    background-color: var(--color-background-main);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: var(--transition-main);
    display: flex;
    flex-direction: column;
    height: 100%; /* For consistent card heights in a grid */
    text-align: center; /* Center inline/inline-block content by default */
}
.card:hover {
    transform: translateY(-8px) scale(1.01); /* Morphing effect */
    box-shadow: var(--shadow-strong);
}
.card-image { /* Container for the image */
    width: 100%;
    height: 220px; /* Fixed height for card images */
    overflow: hidden;
    display: flex; /* For centering the image itself if it's smaller than container */
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-s); /* Space between image and content */
    background-color: var(--color-background-section-light); /* Light bg for images */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    border-radius: 0; /* Image itself might not need radius if container handles it */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover .card-image img {
    transform: scale(1.05); /* Slight zoom on image hover */
}
.card-content {
    padding: var(--space-m);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}
.card-content h3 {
    font-size: 1.6rem; /* Consistent heading size for cards */
    margin-bottom: var(--space-xs);
    color: var(--color-text-headings);
}
.card-content p {
    font-size: 0.95rem;
    margin-bottom: var(--space-s);
    color: var(--color-text-dark);
    flex-grow: 1; /* Allows text to take available space */
}
.card-content .button-primary, 
.card-content .button-secondary {
    align-self: center; /* Center button in card */
    margin-top: var(--space-s);
}

/* Grid Layouts for Cards (e.g., Awards, Team, Projects) */
.awards-grid, .team-grid, .projects-grid, .news-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: var(--space-l);
}
.team-member .card-image {
    height: 280px; /* Square-ish for team members */
}
.pricing-plan .card-image img {
    width: 70px;
    height: 70px;
    object-fit: contain; /* For icons */
    margin-top: var(--space-s); /* Add margin to icon */
    margin-bottom: var(--space-s);
}
.pricing-plan ul {
    list-style: none; /* Remove default */
    padding-left: 0;
    margin-bottom: var(--space-m);
    text-align: left; /* Align list items left within centered card */
    display: inline-block; /* To allow text-align:left on parent */
}
.pricing-plan li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: var(--space-xs);
}
.pricing-plan li::before {
    content: '✓';
    color: var(--color-primary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.pricing-plan .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary-accent);
    margin-bottom: var(--space-s);
}

/* --- Specific Section Styling --- */
/* History Section */
.history-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-l);
    text-align: left; /* Justify can sometimes be hard to read */
}
.history-section .image-container img {
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-main);
}

/* Webinars Section */
.webinars-list .card {
    margin-bottom: var(--space-l); /* More space between webinar items */
}
.webinar-date {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

/* External Resources Section */
.resources-list .resource-item {
    background-color: var(--color-background-main);
    padding: var(--space-m);
    border-radius: var(--border-radius-small);
    margin-bottom: var(--space-s);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--color-tertiary-accent);
    transition: var(--transition-main);
}
.resources-list .resource-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}
.resources-list .resource-item h4 a {
    color: var(--color-text-headings);
    font-weight: 700;
}
.resources-list .resource-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Careers Section (Accordions) & Accordion Component */
.accordion-item {
    background-color: var(--color-background-main);
    margin-bottom: var(--space-s);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e7e7e7;
}
.accordion-title {
    display: flex; /* Use flex for alignment */
    justify-content: space-between; /* Pushes arrow to the right */
    align-items: center;
    width: 100%;
    padding: var(--space-s) var(--space-m);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    color: var(--color-text-headings);
    position: relative;
}
.accordion-title::after { /* Custom arrow indicator */
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary-accent);
    transition: transform 0.3s ease, color 0.3s ease;
}
details[open] > .accordion-title::after {
    content: '−'; /* Morph to minus */
    transform: rotate(180deg); /* Optional: if using an arrow char */
    color: var(--color-primary-accent-darker);
}
.accordion-content {
    padding: 0 var(--space-m) var(--space-m);
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}
.accordion-content p {
    margin-bottom: var(--space-xs);
}
.accordion-content a.button-secondary {
    margin-top: var(--space-s);
    font-size: 0.9rem;
    padding: var(--space-xs) var(--space-s);
}

/* --- Forms & Input Elements --- */
.contact-form {
    background-color: #fff; /* Slightly different for forms, or use main bg */
    padding: var(--space-l);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-medium);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.contact-page-container { /* For side-by-side layout on contact page */
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-l);
}
@media (min-width: 992px) {
    .contact-page-container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        align-items: start; /* Align items to the start of the grid cell */
    }
}
.form-group {
    margin-bottom: var(--space-m);
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text-headings);
    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: var(--space-s) var(--space-m);
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-background-section-light);
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}
.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(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(167, 219, 216, 0.4); /* Focus ring with primary accent */
    outline: none;
    background-color: #fff;
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Switch Component */
.form-switch-group {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}
.switch-label {
    margin-bottom: 0 !important;
    font-weight: normal;
    font-size: 1rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy transition */
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
input:checked + .slider {
  background-color: var(--color-primary-accent);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary-accent);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* --- Modals --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(44, 62, 80, 0.8); /* Darker overlay for modals */
    padding-top: 5vh; /* Space from top */
}
.modal-content {
    background: var(--color-background-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    margin: 0 auto var(--space-xl); /* Centered with bottom margin */
    padding: var(--space-l);
    border-radius: var(--border-radius-main);
    width: 90%;
    max-width: 700px;
    box-shadow: var(--shadow-strong);
    position: relative;
    color: var(--color-text-dark);
    border: 1px solid var(--color-background-glass-border);
    animation: modal-pop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content h2 {
    color: var(--color-text-headings);
    margin-bottom: var(--space-m);
}
.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    margin-bottom: var(--space-m);
}
.close-button {
    color: var(--color-text-muted);
    position: absolute;
    top: var(--space-s);
    right: var(--space-m);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}
.close-button:hover,
.close-button:focus {
    color: var(--color-text-headings);
    transform: rotate(90deg) scale(1.1); /* Morphing effect */
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-text-headings);
    color: #bdc3c7; /* Light gray for footer text */
    padding: var(--space-xl) 0 var(--space-s);
    margin-top: auto; /* Pushes footer to bottom */
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-l);
    margin-bottom: var(--space-l);
}
.footer-column h4 {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-m);
    font-weight: 700;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: var(--space-xs);
}
.footer-column a {
    color: #ecf0f1; /* Slightly brighter than text for links */
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-column a:hover {
    color: var(--color-primary-accent); /* Use primary accent for hover */
    text-decoration: none; /* No underline needed if color changes significantly */
    padding-left: 5px; /* Slight morph */
}
.footer-column .social-links li {
    display: inline-block; /* For horizontal layout if preferred */
    margin-right: var(--space-s);
}
.footer-column .social-links a { /* Text-based social links */
    font-weight: 600; /* Make them stand out a bit */
}
.footer-bottom {
    text-align: center;
    padding-top: var(--space-m);
    border-top: 1px solid #3e5771; /* Darker separator */
    font-size: 0.9rem;
    color: #95a5a6; /* Muted text for copyright */
}

/* --- Page Specific Styles --- */
/* Privacy & Terms Pages */
.page-type-legal .content-section { /* Class to add to main on privacy/terms */
    padding-top: 100px; /* Ensure content is below fixed header */
}
.page-type-legal .text-content h2 { margin-top: var(--space-l); }
.page-type-legal .text-content h3 { margin-top: var(--space-m); }
.page-type-legal .text-content ul { list-style-position: outside; padding-left: var(--space-m); }

/* Success Page */
.page-type-success main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - (/* header height */ 70px + /* footer height approx */ 150px)); /* Adjust heights */
    text-align: center;
}
.success-icon {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-m);
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
    opacity: 1;
    transition: opacity 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), 
                transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}
/* Initial states for animations */
.animate-on-scroll.fade-in { /* Only if no transform needed */ }
.animate-on-scroll.fade-in-up { transform: translateY(50px); }
.animate-on-scroll.fade-in-down { transform: translateY(-50px); }
.animate-on-scroll.fade-in-left { transform: translateX(-50px); }
.animate-on-scroll.fade-in-right { transform: translateX(50px); }
.animate-on-scroll.scale-in { transform: scale(0.9); }

/* Final states (added by JS) */
.is-visible.fade-in,
.is-visible.fade-in-up,
.is-visible.fade-in-down,
.is-visible.fade-in-left,
.is-visible.fade-in-right,
.is-visible.scale-in {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- Utility Classes --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-content { max-width: 750px; margin-left: auto; margin-right: auto; }
.text-content p, .text-content ul { margin-bottom: var(--space-m); }
.text-content ul { padding-left: var(--space-m); }
.margin-bottom-large { margin-bottom: var(--space-xl) !important; }

/* --- Responsive Design --- */
@media (max-width: 991px) { /* Tablet and below */
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-main);
        box-shadow: var(--shadow-medium);
        padding: var(--space-s) 0;
        border-top: 1px solid #e0e0e0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a {
        display: block;
        padding: var(--space-s);
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-menu li:last-child a { border-bottom: none; }
    .nav-menu a::after { display: none; }
    .menu-toggle { display: block; }

    .contact-page-container {
        grid-template-columns: 1fr;
    }
    .map-container { margin-top: var(--space-l); }
}

@media (max-width: 767px) { /* Mobile */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-title { font-size: 2rem; margin-bottom: var(--space-m); }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .page-title { font-size: 2.2rem; }

    .content-section, .content-section_alternate {
        padding-top: var(--space-l);
        padding-bottom: var(--space-l);
    }
    .hero-section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    .awards-grid, .team-grid, .projects-grid, .news-grid, .pricing-grid {
        grid-template-columns: 1fr; /* Stack cards */
        gap: var(--space-m);
    }
    .card-image { height: 200px; }
    .team-member .card-image { height: 250px; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: left; /* Adjust for better readability on mobile */
    }
    .footer-column { margin-bottom: var(--space-m); }
    .footer-column:last-child { margin-bottom: 0; }
    .footer-column h4 { margin-bottom: var(--space-s); }
    .footer-column ul { text-align: left; }
    .footer-column .social-links li { margin-right: var(--space-xs); }

    .modal-content {
        width: 95%;
        padding: var(--space-m);
        margin-top: 5vh;
    }
    .contact-form { padding: var(--space-m); }
}

/* Parallax Effect (Placeholder for JS or basic CSS) */
/* Example for a specific element if needed with CSS only */
/* .parallax-background-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
} */
/* Note: CSS-only parallax has limitations, especially on mobile. JS (like Motion One) is better. */

/* Cookie Consent Popup Basic Styles */
#cookieConsentPopup {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--color-primary-accent);
}
#cookieConsentPopup p a {
    font-weight: 600;
}
#acceptCookieConsent {
    /* Using global button styles, but can be customized */
    font-size: 0.9rem;
    padding: var(--space-xs) var(--space-m);
}