/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    /* Color Scheme (Complementary Example: Blue/Orange) */
    --primary-color: #0d6efd; /* Vibrant Blue */
    --primary-darker: #0a58ca;
    --secondary-color: #fd7e14; /* Vibrant Orange */
    --accent-color: #6f42c1; /* Purple for futuristic touch */
    --accent-darker: #5a35a0;

    /* Text Colors */
    --text-color-dark: #212529; /* Dark Gray/Black */
    --text-color-medium: #495057; /* Medium Gray */
    --text-color-light: #f8f9fa; /* Light Gray/White */
    --text-color-headings: #1a1a2e; /* Very Dark Blue/Purple */

    /* Background Colors */
    --background-light: #f8f9fa; /* Default Light */
    --background-dark: #1a1a2e; /* Dark Blue/Purple */
    --background-gradient-futuristic: linear-gradient(135deg, #1a237e, #3949ab); /* From HTML */
    --card-bg: #ffffff;

    /* Shadows & Borders */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-volumetric: rgba(0, 0, 0, 0.15);
    --shadow-inner-volumetric: rgba(0, 0, 0, 0.08);
    --border-radius-base: 8px;
    --border-radius-volumetric: 15px;
    --border-radius-pill: 50px;

    /* Fonts */
    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-base: 'DM Sans', sans-serif;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-easing: ease-in-out;
}

/*--------------------------------------------------------------
# Base Styles & Typography
--------------------------------------------------------------*/
body {
    font-family: var(--font-family-base);
    color: var(--text-color-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem;}
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}


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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent bottom space */
}

/*--------------------------------------------------------------
# Layout & Spacing
--------------------------------------------------------------*/
section {
    padding: 4rem 0;
    overflow: hidden; /* Contain AOS animations */
}

.container {
    max-width: 1140px; /* Consistent container width */
}

/* Add top padding to static pages to avoid overlap with fixed header */
.static-page-content {
    padding-top: 100px; /* Adjust based on actual header height */
    padding-bottom: 4rem; /* Add some bottom padding */
}

/* Ensure section titles have enough space */
section h2.text-center {
    margin-bottom: 3rem;
    color: var(--text-color-headings); /* Ensure dark heading color */
}

/* Proper spacing for elements within columns */
.row > div {
    margin-bottom: 1.5rem; /* Default spacing for columns */
}
.row > div:last-child {
    margin-bottom: 0; /* Remove bottom margin for last column in a row */
}
.row > div > *:last-child {
    margin-bottom: 0; /* Remove bottom margin for last element within a column */
}

/*--------------------------------------------------------------
# Header (Navbar)
--------------------------------------------------------------*/
.navbar.fixed-top {
    background-color: var(--background-dark) !important; /* Use variable */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: padding var(--transition-speed) var(--transition-easing);
}

.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-color-light) !important;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: var(--font-family-base);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition-speed) var(--transition-easing);
    margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-color-light);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    position: relative;
    color: var(--text-color-light);
    padding: 100px 0; /* Adjust padding as needed */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ensure height is sufficient but not excessive */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)); /* Dark overlay */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1,
#hero p {
    color: var(--text-color-light) !important; /* Force white color */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

#hero h1 {
    font-size: 3.5rem; /* Larger font size for hero */
}

#hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    #hero { padding: 80px 0; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }
}

/*--------------------------------------------------------------
# Buttons (Global)
--------------------------------------------------------------*/
.btn {
    font-family: var(--font-family-headings);
    font-weight: 500;
    padding: 10px 25px;
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-speed) var(--transition-easing);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary,
.btn-primary.futuristic-button {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-darker));
    color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Use primary color alpha */
}

.btn-primary:hover,
.btn-primary.futuristic-button:hover {
    background: linear-gradient(45deg, var(--primary-darker), var(--primary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    color: var(--text-color-light);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #d6660f); /* Example secondary */
    color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(253, 126, 20, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #d6660f, var(--secondary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(253, 126, 20, 0.4);
    color: var(--text-color-light);
}

/* Ensure button styles apply correctly */
button, input[type="submit"], input[type="button"] {
    font-family: inherit; /* Inherit from body or override */
}

/* Specific button styles if needed */
.futuristic-button { /* Already covered by .btn-primary, can add specifics */
    letter-spacing: 0.5px;
}

/* Microinteraction placeholder */
.hover-effect:hover {
    /* Add more pronounced hover effect */
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Cards & Volumetric UI
--------------------------------------------------------------*/
.card {
    border: none;
    border-radius: var(--border-radius-volumetric);
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
    overflow: hidden; /* Ensure content respects border radius */
    height: 100%; /* Make cards in a row equal height */
    display: flex; /* Enable flex properties */
    flex-direction: column; /* Stack image and content vertically */
    text-align: center; /* Center text content */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    display: flex;       /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center;    /* Center vertically */
    margin-bottom: 0; /* Remove default bottom margin */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale image nicely */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.card-content,
.card-body { /* Use either, ensure consistency */
    padding: 1.5rem;
    flex-grow: 1; /* Allow content to fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if needed */
}

.card-title {
    font-family: var(--font-family-headings);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color-headings);
}

.card-text {
    color: var(--text-color-medium);
    font-size: 0.95rem;
}

/* Volumetric Style */
.volumetric-element,
.volumetric-card {
    box-shadow: 0 6px 18px var(--shadow-color-volumetric),
                inset 0 -3px 6px var(--shadow-inner-volumetric);
    border-radius: var(--border-radius-volumetric);
    transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

.volumetric-element:hover,
.volumetric-card:hover {
    transform: translateY(-5px) scale(1.02); /* Slight lift and scale */
    box-shadow: 0 10px 25px var(--shadow-color-volumetric),
                inset 0 -4px 8px var(--shadow-inner-volumetric);
}

/* Specific Card Types */
.award-logo {
    max-height: 100px; /* Adjust size as needed */
    width: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center the logo */
}

/*--------------------------------------------------------------
# Section Specific Styles
--------------------------------------------------------------*/

/* Innovation Section */
#innovation .animated-icon {
    /* Placeholder - Replace with actual icon styles or library classes */
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* Add animation styles here if not using a library */
    animation: bounce 2s infinite ease-in-out; /* Example animation */
}
#innovation h3 {
    color: var(--primary-darker);
}

/* Our Process Section */
#process .process-step {
    margin-bottom: 3rem;
}
#process .process-step:last-child {
    margin-bottom: 0;
}
#process .image-container img {
    border-radius: var(--border-radius-volumetric); /* Match volumetric style */
}
#process h3 {
    color: var(--accent-color);
}

/* Accolades Section (Testimonials) */
#accolades .blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-color-medium);
}
#accolades .blockquote-footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color-dark);
    font-style: normal;
}
#accolades cite {
    font-weight: bold;
    color: var(--primary-color);
}

/* Awards Section */
#awards .card-content {
    padding-top: 1rem;
}
#awards .card-image {
    height: 150px; /* Adjust if needed */
}

/* Resources Section */
#resources .card-title a {
    color: var(--accent-color);
    text-decoration: none;
}
#resources .card-title a:hover {
    color: var(--accent-darker);
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact {
    background: var(--background-gradient-futuristic);
    color: var(--text-color-light); /* Light text on dark gradient */
}

#contact h2, #contact h3 {
    color: var(--text-color-light); /* Override default dark headings */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

#contact p, #contact address {
    color: rgba(255, 255, 255, 0.85);
}

#contact address a {
    color: var(--text-color-light); /* White link in address */
    text-decoration: underline;
}
#contact address a:hover {
    color: var(--secondary-color); /* Accent color on hover */
}

.map-placeholder {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-volumetric);
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--text-color-light); /* Light labels on dark background */
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: var(--border-radius-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    transition: border-color var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent */
    color: var(--text-color-light); /* Light text input */
    font-family: var(--font-family-base);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    border-color: var(--secondary-color); /* Use accent color for focus */
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.3), inset 0 1px 3px rgba(0,0,0,0.1); /* Use secondary color alpha */
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-color-light);
}

textarea.form-control {
    min-height: 120px;
}

/* Switch Styles */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,0.7)'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.3);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,0.7)'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-label {
    color: var(--text-color-light);
    padding-left: 0.5em;
}

#contact .btn-primary { /* Style button specifically for contact section if needed */
    background: linear-gradient(45deg, var(--secondary-color), #d6660f); /* Use secondary gradient */
    box-shadow: 0 4px 10px rgba(253, 126, 20, 0.3);
}

#contact .btn-primary:hover {
    background: linear-gradient(45deg, #d6660f, var(--secondary-color));
    box-shadow: 0 6px 15px rgba(253, 126, 20, 0.4);
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    font-size: 0.9rem;
}

footer h5 {
    font-family: var(--font-family-headings);
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-easing);
}

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

/* Footer Social Links (Text) */
footer .col-md-4:last-child div {
    margin-top: 0.5rem;
}

footer .col-md-4:last-child a {
    color: var(--text-color-light); /* Make social links slightly brighter */
    margin-right: 1rem;
    font-weight: 500;
    display: inline-block; /* Ensure proper spacing */
}

footer .col-md-4:last-child a:hover {
    color: var(--primary-color); /* Highlight color on hover */
    text-decoration: none; /* Remove underline if preferred */
}

footer .col-md-4:last-child a:last-child {
    margin-right: 0;
}

/*--------------------------------------------------------------
# Success Page Styles
--------------------------------------------------------------*/
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light); /* Or a gradient */
}

.success-content {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius-volumetric);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
}

.success-content h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--text-color-medium);
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Animations & Effects (Examples)
--------------------------------------------------------------*/
/* 3D Effect on Hover Example */
.card-3d-hover {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-3d-hover:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Keyframe animation example */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.bg-gradient-futuristic {
    background: var(--background-gradient-futuristic);
}

.text-high-contrast {
     color: var(--text-color-light); /* White text for dark backgrounds */
     text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Shadow for readability */
}
.bg-dark .text-high-contrast,
.bg-primary .text-high-contrast,
.bg-gradient-futuristic .text-high-contrast,
[style*='background-image'] .text-high-contrast {
    color: var(--text-color-light);
}
.bg-light .text-high-contrast {
    color: var(--text-color-dark); /* Dark text for light backgrounds */
    text-shadow: none;
}

/*--------------------------------------------------------------
# Responsiveness
--------------------------------------------------------------*/
@media (max-width: 991px) {
    section {
        padding: 3rem 0;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* Center process steps on smaller screens */
    #process .process-step .row > div {
        text-align: center;
    }
    #process .process-step img {
        margin: 0 auto 1.5rem auto;
    }

    #contact .row > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .btn { padding: 8px 20px; font-size: 0.9rem; }

    .navbar-nav {
        text-align: center;
        background-color: rgba(0,0,0,0.2); /* Semi-transparent background for mobile menu */
        margin-top: 0.5rem;
        border-radius: var(--border-radius-base);
    }
     .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
     }
}

/*--------------------------------------------------------------
# Cookie Consent (Minimal style check)
--------------------------------------------------------------*/
#cookie-popup {
    /* Styles are mostly inline in HTML, ensure they don't conflict */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-popup p a {
    font-weight: 500;
}
#cookie-popup button {
    font-family: var(--font-family-base);
}