/* CSS Variables */
:root {
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    /* Monochromatic Palette (Cool Grey/Blue Focus) */
    --bg-color: #E0E5EC; /* Light Grey - Neumorphic Base */
    --bg-color-light-shade: #F0F3F8; /* Slightly Lighter for section alternation */
    --primary-text-color: #3D4A5D; /* Dark Slate Blue/Grey */
    --secondary-text-color: #6B7A90; /* Medium Slate Blue/Grey */
    --section-title-color: #1A202C; /* Very Dark Grey/Blue for H2 */
    --hero-text-color: #FFFFFF;
    --link-color: #5C708B; /* Accent/Link Slate Blue/Grey */
    --link-hover-color: #3D4A5D; /* Darker Accent for Hover */

    /* Neumorphic Shadows (Adjusted for --bg-color) */
    --neumorphic-shadow-light: rgba(255, 255, 255, 0.8);
    --neumorphic-shadow-dark: rgba(174, 174, 192, 0.4);
    --neumorphic-shadow-inset-light: rgba(255, 255, 255, 1);
    --neumorphic-shadow-inset-dark: rgba(174, 174, 192, 0.5); /* Slightly darker inset */

    /* Buttons */
    --button-bg-color: var(--bg-color);
    --button-text-color: var(--primary-text-color);
    --button-primary-bg-color: #5C708B; /* Primary button background */
    --button-primary-text-color: #FFFFFF;
    --button-secondary-bg-color: transparent;
    --button-secondary-text-color: var(--primary-text-color);
    --button-secondary-border-color: var(--primary-text-color);


    /* Borders */
    --border-color: #B8C2D0;
    --input-border-color: #CED4DA;


    /* Other */
    --standard-border-radius: 15px;
    --neumorphic-border-radius: 20px;
    --card-padding: 1.5rem;
    --section-padding-vertical: 4rem;
    --dark-overlay-color: rgba(0, 0, 0, 0.5);
    --header-height: 80px; /* Adjust as needed */
}

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

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

body {
    font-family: var(--font-family-body);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--section-title-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.1);}
h2 { font-size: 2.2rem; margin-bottom: 1.2rem; } /* Section Titles */
h3 { font-size: 1.8rem; color: var(--primary-text-color); }
h4 { font-size: 1.4rem; color: var(--primary-text-color); }

p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

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

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

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

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

.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem;
}
.columns:not(:last-child) {
    margin-bottom: calc(1.5rem - 0.75rem);
}
.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}
.column.is-one-third { flex: none; width: 33.3333%; }
.column.is-half { flex: none; width: 50%; }
.column.is-two-thirds { flex: none; width: 66.6666%; }
.column.is-full { flex: none; width: 100%; }

@media screen and (max-width: 768px) {
    .column.is-one-third,
    .column.is-half,
    .column.is-two-thirds {
        width: 100%;
    }
}

.text-center { text-align: center; }
.section-padding { padding: var(--section-padding-vertical) 0; }
.bg-light-shade { background-color: var(--bg-color-light-shade); }

/* Neumorphic Base Styles */
.neumorphic-card,
.neumorphic-button,
.neumorphic-input,
.neumorphic-textarea,
.neumorphic-header,
.neumorphic-footer,
.neumorphic-image-container,
.stat-widget,
.external-link-card,
.carousel-item, /* Assuming carousel items might be neumorphic */
.contact-form {
    background-color: var(--bg-color);
    border-radius: var(--neumorphic-border-radius);
    box-shadow: 6px 6px 12px var(--neumorphic-shadow-dark),
                -6px -6px 12px var(--neumorphic-shadow-light);
    transition: box-shadow 0.3s ease-in-out;
}

.neumorphic-input,
.neumorphic-textarea {
    box-shadow: inset 4px 4px 8px var(--neumorphic-shadow-inset-dark),
                inset -4px -4px 8px var(--neumorphic-shadow-inset-light);
    border: 1px solid transparent; /* fallback or base */
    background-color: var(--bg-color);
    color: var(--primary-text-color);
}
.neumorphic-input:focus,
.neumorphic-textarea:focus {
    outline: none;
    box-shadow: inset 6px 6px 10px var(--neumorphic-shadow-inset-dark),
                inset -6px -6px 10px var(--neumorphic-shadow-inset-light),
                0 0 0 2px var(--link-color); /* Focus ring */
}

.neumorphic-button:hover {
    box-shadow: 4px 4px 8px var(--neumorphic-shadow-dark),
                -4px -4px 8px var(--neumorphic-shadow-light);
}
.neumorphic-button:active,
.neumorphic-button.is-active {
    box-shadow: inset 4px 4px 8px var(--neumorphic-shadow-inset-dark),
                inset -4px -4px 8px var(--neumorphic-shadow-inset-light);
}


/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--neumorphic-border-radius); /* Match neumorphic style */
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-text-color);
    border-color: var(--button-primary-bg-color);
}
.btn-primary:hover {
    background-color: var(--link-hover-color); /* Darken primary color */
    border-color: var(--link-hover-color);
    color: var(--button-primary-text-color);
}

.btn-secondary {
    background-color: var(--button-secondary-bg-color);
    color: var(--button-secondary-text-color);
    border: 2px solid var(--button-secondary-border-color);
}
.btn-secondary:hover {
    background-color: var(--button-secondary-border-color);
    color: var(--bg-color); /* Text color changes to background color for contrast */
}


/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: var(--bg-color); /* Neumorphic header */
    /* box-shadow defined by .neumorphic-header */
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}
.main-navigation .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-navigation .nav-links li {
    margin-left: 1.5rem;
}
.main-navigation .nav-links a {
    font-family: var(--font-family-headings);
    color: var(--primary-text-color);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}
.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active {
    color: var(--link-hover-color);
}
.main-navigation .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--link-hover-color);
    transition: width 0.3s ease;
}
.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a.active::after {
    width: 100%;
}

.burger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1001; /* Above nav links on mobile */
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Main Content Padding for Fixed Header */
.page-content {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero-section {
    position: relative;
    color: var(--hero-text-color);
    padding: 6rem 0; /* Adjust padding */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - var(--header-height)); /* Example height */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)); /* Darker overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Limit width of hero text */
}
.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    color: var(--hero-text-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--hero-text-color); /* Ensure white color for subtitle too */
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}
.hero-section .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* General Section Styles */
.section-title {
    color: var(--section-title-color);
    margin-bottom: 1rem; /* Reduced margin */
    font-weight: 700;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem; /* Spacing after subtitle */
}
.subsection-title {
    font-size: 1.6rem; /* For h3 within sections */
    color: var(--section-title-color);
    margin-bottom: 1.5rem;
}

/* Card Styles (Generic for Portfolio, Accolades, etc.) */
.card { /* This is a general card, could be .neumorphic-card or a specific one */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text */
    padding: var(--card-padding);
    height: 100%; /* Make cards in a row same height */
    background-color: var(--card-bg-color, var(--bg-color)); /* Use specific or default */
    border-radius: var(--neumorphic-border-radius);
    /* Neumorphic shadow applied if .neumorphic-card is also used */
}
.card.neumorphic-card { /* Ensure it gets neumorphic styles */
    box-shadow: 6px 6px 12px var(--neumorphic-shadow-dark),
                -6px -6px 12px var(--neumorphic-shadow-light);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for image container */
    overflow: hidden;
    border-radius: calc(var(--neumorphic-border-radius) - 10px) calc(var(--neumorphic-border-radius) - 10px) 0 0; /* Rounded top corners if card is neumorphic */
    margin-bottom: var(--card-padding);
    display: flex; /* For centering if image is smaller */
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for aspect ratio */
    transition: transform 0.3s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    width: 100%;
    flex-grow: 1; /* Allows content to fill space if cards are different heights */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}
.card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text-color);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}
.card .btn {
    margin-top: auto; /* Pushes button to bottom of card content */
}


/* Specific Section Styles */

/* About Us Section */
.about-us-section .image-container { /* If .neumorphic-image-container is used, it gets styles from there */
    border-radius: var(--neumorphic-border-radius);
    overflow: hidden;
}
.about-us-section .content-columns p {
    text-align: justify; /* Or left, depending on preference */
}

/* Innovation Section */
.statistical-widgets-container {
    margin-bottom: 3rem;
}
.stat-widget {
    padding: 2rem 1.5rem;
    text-align: center;
}
.stat-value {
    font-size: 3rem;
    color: var(--link-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.1rem;
    font-family: var(--font-family-headings);
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
}
.stat-description {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* Carousel Styles (Basic Structure - JS for functionality) */
.carousel {
    display: flex;
    overflow-x: auto; /* Basic horizontal scroll if JS fails or for simple carousels */
    gap: 1.5rem; /* Space between items */
    padding-bottom: 1rem; /* For scrollbar visibility */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.carousel::-webkit-scrollbar { /* Chrome, Safari, Opera */
    display: none;
}
.carousel-item {
    flex: 0 0 auto; /* Prevent shrinking/growing */
    width: 300px; /* Example width, adjust as needed */
    /* Neumorphic styles if .neumorphic-card is used */
}
/* Portfolio, Accolades, Press sections will use .card and .carousel styling */
.portfolio-card, .accolade-item {
    /* Inherits from .card, can add specific overrides here */
}

.press-carousel .carousel-item {
    min-height: 150px; /* Ensure some height */
}
.press-carousel .card-content {
    text-align: left;
}
.press-date {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    margin-top: 1rem;
}
.read-more-link {
    font-weight: 700;
    color: var(--link-color);
    display: inline-block;
    margin-top: 0.5rem;
}
.read-more-link:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}


/* External Resources Section */
.external-links-grid .column {
    display: flex; /* To make cards in column take full height */
}
.external-link-card {
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.external-link-card h4 {
    margin-bottom: 0.5rem;
}
.external-link-card h4 a {
    font-size: 1.15rem;
    font-family: var(--font-family-headings);
}
.external-link-card p {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Contact Section */
.contact-form {
    padding: 2rem;
}
.form-field {
    margin-bottom: 1.5rem;
}
.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-text-color);
}
.neumorphic-input,
.neumorphic-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-family-body);
    font-size: 1rem;
    border-radius: var(--neumorphic-border-radius); /* Consistent with neumorphic */
    /* Neumorphic shadows applied by class */
    border: 1px solid var(--input-border-color); /* fallback */
}
.neumorphic-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info-column h3 {
    margin-bottom: 1rem;
}
.contact-info-column p {
    margin-bottom: 0.75rem;
}
.contact-info-column strong {
    color: var(--primary-text-color);
}
.text-link {
    font-weight: bold;
    text-decoration: underline;
}


/* Footer */
.site-footer {
    padding: 3rem 0 1.5rem;
    background-color: var(--bg-color); /* Neumorphic footer */
    /* box-shadow defined by .neumorphic-footer */
    color: var(--secondary-text-color);
    margin-top: var(--section-padding-vertical); /* Space before footer */
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-column {
    flex: 1;
    min-width: 200px; /* Ensure columns don't get too narrow */
}
.footer-column h4 {
    font-size: 1.2rem;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column ul li a {
    color: var(--secondary-text-color);
}
.footer-column ul li a:hover {
    color: var(--link-color);
    text-decoration: underline;
}
.social-links li a { /* Text links as required */
    font-weight: 500; /* Make them slightly bolder */
}
.copyright {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}
#current-year { font-weight: bold; }


/* Particle Animation Container */
#page-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    /* JS will populate this */
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Page Styles */
/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column; /* Ensure header/footer compatibility if added */
    min-height: 100vh;
}
.success-page .page-content { /* Make main content area fill space */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0; /* Override default if header isn't on success page */
}
.success-message-container { /* Assuming a container for the message */
    padding: 2rem;
}
.success-message-container h1 {
    color: var(--link-color);
    font-size: 2.5rem;
}
.success-message-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page .page-content,
.terms-page .page-content {
    padding-top: calc(var(--header-height) + 2rem); /* Ensure content below fixed header */
    padding-bottom: var(--section-padding-vertical);
}
.privacy-page .container h1,
.terms-page .container h1 {
    margin-bottom: 2rem;
}
.privacy-page .container h2,
.terms-page .container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Cookie Popup (Basic styling, mainly from HTML) */
#cookie-popup a {
    /* color is set inline, can override if needed */
}
#accept-cookie {
    /* styles are inline, can override */
}

/* Responsive Design - Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .page-content {
        padding-top: var(--header-height);
    }

    h1 { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    h2 { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

    .columns {
        margin-left: 0;
        margin-right: 0;
    }
    .column {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .column.is-one-third, .column.is-half, .column.is-two-thirds {
        width: 100%; /* Stack columns */
    }

    .main-navigation .nav-links {
        display: none; /* Hidden for burger menu */
        flex-direction: column;
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow for dropdown */
        border-top: 1px solid var(--border-color);
    }
    .main-navigation .nav-links.is-active {
        display: flex; /* Show when active */
    }
    .main-navigation .nav-links li {
        margin-left: 0;
        text-align: center;
    }
    .main-navigation .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }
    .main-navigation .nav-links a::after { display: none; } /* Remove underline effect on mobile */

    .burger-menu {
        display: block; /* Show burger icon */
    }
    .burger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        padding: 4rem 0;
        min-height: calc(60vh - var(--header-height));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column {
        min-width: auto;
        margin-bottom: 1rem;
    }

    .contact-form-column, .contact-info-column {
        width: 100%;
    }
    .contact-info-column {
        margin-top: 2rem;
    }

    .carousel-item {
        width: 280px; /* Slightly smaller for mobile */
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-vertical: 3rem;
    }
    .container { width: 95%; }
    h1 { font-size: 1.8rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    h2 { font-size: 1.6rem; }

    .btn, button, input[type="submit"], input[type="button"] {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
     .hero-section .btn-primary {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}
*{
    opacity: 1 !important;
}