/* style.css - Optimized & Enhanced */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #1A3D5D; /* Professional Blue #005A9C*/
    --secondary-color: #333333; /* Darker Blue #003B67*/
    --accent-color: #C62032; /* Gold/Yellow #F0A800*/
    --accent-color-darker: #A31928; /* Slightly darker gold for hover  #d19400*/
    --light-gray: #f8f9fa;
    --medium-gray: #dee2e6;
    --dark-gray: #343a40;
    --text-color: #212529;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
    --container-width: 1140px;
    --padding-standard: 80px 0;
    --padding-small: 50px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    background-color: #fff;
    /* overflow-x: hidden; Already on html */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

p { margin-bottom: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease; /* Add base transition */
 }
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease; /* For potential image hovers */
}

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

h1 { font-size: 2.5rem; }
h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 4px;
    background-color: var(--accent-color); border-radius: 2px;
}
h3 { font-size: 1.6rem; color: var(--primary-color); }

/* Section Intro Text */
.section-intro {
    text-align: center; max-width: 750px; margin: 0 auto 3.5rem auto;
    font-size: 1.15rem; color: #555;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: 2px solid var(--accent-color);
}
.btn-primary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* --- Header --- */
.site-header {
    background-color: #fff; padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; top: 0; z-index: 1000;
    padding: 10px 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 20px; /* spacing from nav */
}

.logo img {
    height: auto;
    max-height: 80px;    /* Tweak this to match nav bar height */
    width: auto;
    max-width: 100%;     /* Ensures it won't overflow */
    display: block;
}
.logo a {
    font-family: var(--heading-font); font-size: 1.5rem; font-weight: 700;
    color: var(--secondary-color); text-decoration: none;
}
.main-nav .nav-links { display: none; list-style: none; }
.main-nav.active .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background-color: #fff;
    padding: 1rem 0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Ensure dropdown is above content */
}
.main-nav .nav-links li { margin: 0.5rem 0; text-align: center; }
.main-nav .nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}
.menu-toggle {
    display: block; background: none; border: none; font-size: 1.5rem;
    color: var(--secondary-color); cursor: pointer;
    z-index: 1001; /* Ensure toggle is above dropdown */
    position: relative; /* Needed if z-index is used */
}

/* --- Hero Section --- */
.hero-section {
    color: #fff;
    padding: 140px 0 200px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Apply image directly */
    background-image: url('../images/hero-background.jpg'); /* Use WebP */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 1; /* Base element fully opaque */
}

/* Overlay for color/gradient and optional animation */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Static gradient or solid color with desired transparency */
     background: linear-gradient(135deg,
        rgba(0, 90, 156, 0.65), /* Adjust alpha for visibility */
        rgba(0, 30, 54, 0.80)  /* Adjust alpha for visibility */
    );
    /* OR a solid color overlay: */
    /* background-color: rgba(0, 30, 54, 0.7); */
    z-index: 1; /* Sit on top of the background image */
    /* Optional animation */
    /* animation: pulseOpacity 8s ease-in-out infinite; */
}

/* Optional: Keyframes for opacity pulse animation */
/* @keyframes pulseOpacity {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
} */

/* Hero Typography & Button */
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
    padding-left: 1rem;
    padding-right: 1rem;
    /* Text overflow/line clamp might not be needed if font size adjusts */
    /* overflow: hidden; */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
}

.hero-subtitle {
    font-size: 1.6rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s ease-out 0.2s;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.hero-btn {
    font-size: 1.2rem;
    padding: 18px 40px;
    animation: fadeInUp 1.4s ease-out 0.4s;
}

/* Base fadeInUp animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Responsive Adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.8rem; /* Smaller title on mobile */
        /* Remove fixed padding, rely on container padding */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
         margin-top: 0.5rem; /* Added margin as padding was removed */
    }
    .hero-section {
        padding: 100px 0 160px 0; /* Adjust overall padding on smaller screens */
    }
     .hero-subtitle {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
     .hero-btn {
        padding: 16px 30px;
    }
}

/* --- Shape Divider --- */
.custom-shape-divider-bottom-1701116846 {
    position: absolute; bottom: -1px; left: 0; width: 100%;
    overflow: hidden; line-height: 0; z-index: 10; /* Ensure it's above background */
}
.custom-shape-divider-bottom-1701116846 svg {
    position: relative; display: block; width: calc(100% + 1.3px); height: 80px;
}
.custom-shape-divider-bottom-1701116846 .shape-fill { fill: var(--light-gray); }

/* --- Services Section --- */
.services-section {
    background-color: var(--light-gray);
    padding: var(--padding-standard);
    position: relative;
    overflow: hidden;
}
/* Standard Grid Layout (Not Swiper based on last file state) */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.service-item {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border-top: 6px solid transparent;
    position: relative; /* For pseudo-elements if added later */
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-color);
}
.service-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.service-item:hover i {
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}
.service-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.service-item p {
    font-size: 1.1rem;
    color: #555;
}

/* --- About Section --- */
.about-section {
    padding: var(--padding-standard);
    background-color: #fff;
    overflow: hidden;
}
.about-section .grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    /* align-items: center; */ /* Removed for potential flexible height */
}
.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}
.about-image::before { /* Subtle overlay/shadow */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 25px rgba(0, 30, 54, 0.3);
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.about-image:hover::before { opacity: 1; }
.about-image img { /* Includes WebP <picture> fallback */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}
.about-image:hover img { transform: scale(1.03); }

.about-content h2 { text-align: left; }
.about-content h2::after { left: 0; transform: translateX(0); }
.about-content h3 { margin-top: 2rem; margin-bottom: 1.5rem; }
.about-content ul { padding-left: 0; margin-top: 2rem; }

/* Optimized Grid Layout for List Items */
.about-content ul li {
    display: grid;
    grid-template-columns: auto 1fr; /* Icon | Text Block */
    align-items: start;
    column-gap: 15px;
    margin-bottom: 1.8rem;
    /* Base transition properties for staggering */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.about-content ul li i {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-top: 0.15em;
    justify-self: center;
}
.about-content ul li strong {
    grid-column: 2;
    font-weight: 700;
    display: block;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}
.about-content ul li span {
    grid-column: 2;
    display: block;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
}
.about-content ul li span em { font-style: italic; }

/* Stagger list item animation */
.about-content.visible ul li { /* Trigger when parent .about-content is visible */
    opacity: 1;
    transform: translateY(0);
}
.about-content.visible ul li:nth-child(1) { transition-delay: 0.1s; }
.about-content.visible ul li:nth-child(2) { transition-delay: 0.2s; }
.about-content.visible ul li:nth-child(3) { transition-delay: 0.3s; }
.about-content.visible ul li:nth-child(4) { transition-delay: 0.4s; }
.about-content.visible ul li:nth-child(5) { transition-delay: 0.5s; }


/* --- Technology Section --- */
.tech-section {
    background: linear-gradient(135deg, rgba(0, 42, 74, 0.85), rgba(0, 20, 35, 0.90)), url('../images/tech-background.jpg'); /* Use WebP */
    background-size: cover; background-position: center center; background-attachment: fixed;
    color: #fff; padding: var(--padding-standard); text-align: center; position: relative;
}
.tech-section h2 { color: #fff; }
.tech-section h2::after { background-color: var(--accent-color); }
.tech-section .section-intro { color: var(--light-gray); opacity: 0.9; }
.tech-icons {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2.5rem 3rem; margin-bottom: 2.5rem; font-size: 4rem;
}
.tech-icons i {
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
}
.tech-icons i:hover {
    transform: scale(1.15) rotate(8deg); /* Enhanced hover */
    color: #fff;
}
.tech-section p {
    max-width: 800px; margin-left: auto; margin-right: auto;
    color: var(--light-gray); opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Contact Section --- */
.contact-section { padding: var(--padding-standard); background-color: var(--light-gray); }
.contact-section h2::after { background-color: var(--accent-color); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 1rem; display: flex; align-items: flex-start; }
.contact-info i {
    color: var(--primary-color); margin-right: 15px; margin-top: 5px;
    width: 20px; text-align: center; font-size: 1.1em;
}
.contact-info a { font-weight: 600; }
.contact-info a:hover { color: var(--accent-color); }
.contact-form-container {
    background-color: #fff; padding: 2.5rem; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}
.contact-form-container h3 {
    margin-bottom: 2.5rem; text-align: center; color: var(--secondary-color);
}
.contact-form-container h3::after {
    content: ''; display: block; width: 50px; height: 3px;
    background-color: var(--accent-color); margin: 10px auto 0 auto;
}

/* --- Contact Form Enhancements --- */
.form-group.floating {
    position: relative;
    margin-bottom: 2rem;
}
.form-control { /* Base input/textarea */
    width: 100%;
    padding: 18px 15px 8px 55px; /* T R B L - Space for icon */
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--body-font);
    line-height: 1.5;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}
textarea.form-control {
    padding-top: 22px; /* Specific top padding for textarea */
    resize: vertical;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}
.form-label { /* Floating label */
    position: absolute;
    top: 15px; left: 55px; /* Adjusted left to match padding */
    font-size: 1rem; color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease-out;
    background-color: #fff; padding: 0 5px;
    white-space: nowrap;
}
textarea.form-control + .form-label { top: 20px; } /* Initial position for textarea label */

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -10px; left: 10px; font-size: 0.8rem;
    color: var(--primary-color); font-weight: 600;
}

.required-star { color: #dc3545; font-weight: bold; margin-left: 3px; }

.form-icon { /* Icons inside inputs */
    position: absolute;
    left: 18px;
    color: var(--medium-gray);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}
input.form-control + .form-label + .form-icon { /* Vertical center for inputs */
    top: 50%; transform: translateY(-50%);
}
textarea.form-control + .form-label + .form-icon { /* Top align for textarea */
    top: 18px; transform: none;
}
.form-control:focus + .form-label + .form-icon { /* Color change on focus */
    color: var(--primary-color);
}

.char-counter-container {
    text-align: right; font-size: 0.85rem; color: #6c757d;
    margin-top: 5px; height: 1em;
}
#char-count.limit-reached { color: #dc3545; font-weight: bold; }

/* Form Validation States (Optional) */
.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25); }
.form-control.is-invalid + .form-label,
.form-control.is-invalid + .form-label + .form-icon { color: #dc3545; }
.form-control.is-valid { border-color: #28a745; }
.form-control.is-valid:focus { box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25); }
.form-control.is-valid + .form-label,
.form-control.is-valid + .form-label + .form-icon { color: #28a745; }

/* Form Status Messages */
.form-status {
    margin-top: 1.5rem; padding: 12px 20px; border-radius: 5px;
    font-weight: bold; text-align: center;
    opacity: 0; max-height: 0; overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}
.form-status.visible { opacity: 1; max-height: 100px; padding: 12px 20px; }
.form-status.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-status.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Contact Map --- */
.map-container {
    margin-top: 2rem; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.map-container iframe { display: block; width: 100%; height: 300px; border: none; }
.map-container.fade-in { transform: translateY(30px); } /* Re-apply transform if needed */


/* --- Footer --- */
.site-footer {
    background-color: var(--dark-gray); color: var(--light-gray);
    padding: 30px 0; font-size: 0.9rem;
}
.footer-content {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 15px;
}
.footer-info { text-align: center; }
.footer-links { list-style: none; padding: 0; margin: 10px 0 0 0; display: flex; justify-content: center; gap: 15px; }
.footer-links li { display: inline; }
.footer-links a { color: var(--medium-gray); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-social { text-align: center; }
.footer-social a {
    color: var(--light-gray); font-size: 1.4rem; margin-left: 15px;
    transition: color 0.2s ease, transform 0.2s ease; display: inline-block;
}
.footer-social a:first-child { margin-left: 0; }
.footer-social a:hover { color: var(--accent-color); transform: scale(1.1); }

@media (min-width: 768px) { /* Responsive Footer Layout */
    .footer-info { text-align: left; }
    .footer-links { justify-content: flex-start; margin: 5px 0 0 0; }
    .footer-social { text-align: right; }
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed; bottom: 25px; right: 25px;
    background-color: var(--accent-color); color: var(--secondary-color);
    border: none; border-radius: 50%; width: 50px; height: 50px;
    font-size: 1.2rem; line-height: 50px; text-align: center;
    cursor: pointer; opacity: 0; visibility: hidden; z-index: 999;
    transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.back-to-top-btn.visible { opacity: 1; visibility: visible; }
.back-to-top-btn:hover { background-color: var(--accent-color-darker); transform: scale(1.1); }

/* --- Animations --- */
/* Enhanced Fade-in Base */
.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in.visible { opacity: 1; transform: translate(0, 0) scale(1); }

/* Default Initial Transforms */
#hero .container, #services > .container > h2, #services > .container > .section-intro,
.about-content, /* Applied to content block */
#tech > .container > h2, #tech > .container > .section-intro,
#tech > .container > .tech-icons, #tech > .container > p, #contact > .container > h2,
#contact > .container > .section-intro, #contact .contact-grid, .service-item.fade-in {
    transform: translateY(30px) scale(0.98);
}
/* Specific slide-in for About image */
.about-image.fade-in { /* Assume class added back if using slide-in */
    transform: translateX(30px) scale(0.98);
}

/* Slide-in Left/Right */
.fade-in-left { opacity: 0; transform: translateX(-50px) scale(0.98); transition: opacity 0.7s ease-out, transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-left.visible { opacity: 1; transform: translateX(0) scale(1); }
.fade-in-right { opacity: 0; transform: translateX(50px) scale(0.98); transition: opacity 0.7s ease-out, transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-right.visible { opacity: 1; transform: translateX(0) scale(1); }


/* Service Item Stagger */
.service-item.fade-in { transition-delay: 0s !important; }
@media (min-width: 768px) {
    .service-item.fade-in:nth-child(odd) { transition-delay: 0.0s; }
    .service-item.fade-in:nth-child(even) { transition-delay: 0.1s; }
}
@media (min-width: 992px) {
    .service-item.fade-in:nth-child(3n+1) { transition-delay: 0.0s; }
    .service-item.fade-in:nth-child(3n+2) { transition-delay: 0.1s; }
    .service-item.fade-in:nth-child(3n+3) { transition-delay: 0.2s; }
}

/* --- Accessibility --- */
/* Skip Link */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--secondary-color); color: white;
    padding: 8px 15px; z-index: 10000;
    transition: top 0.3s ease; text-decoration: none; font-weight: bold;
}
.skip-link:focus { top: 0; }

/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible
{
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(0, 90, 156, 0.2);
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:not([tabindex="-1"]):focus:not(:focus-visible) {
    outline: none; box-shadow: none;
}
.btn-primary:focus-visible {
    outline-color: var(--secondary-color);
    box-shadow: 0 0 0 5px rgba(0, 59, 103, 0.25);
}
.form-control:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2); /* Keep existing focus glow */
}
.swiper-button-next:focus-visible, /* Add styles if using Swiper */
.swiper-button-prev:focus-visible {
     outline: 3px solid var(--primary-color);
     outline-offset: 3px;
}


/* --- Responsive Design (Main Breakpoints) --- */
@media (min-width: 768px) {
    body { font-size: 17px; } h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; } h3 { font-size: 1.75rem; }
    .container { padding: 0 30px; }
    .menu-toggle { display: none; }
    .main-nav .nav-links { display: flex; flex-direction: row; position: static; background: none; box-shadow: none; padding: 0; }
    .main-nav .nav-links li { margin: 0 0 0 1.5rem; text-align: left; }
    .main-nav .nav-links a { padding: 5px 0; display: inline; }
    .main-nav .nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -3px; left: 0; background-color: var(--accent-color); transition: width 0.3s ease; }
    .main-nav .nav-links a:hover::after { width: 100%; }
    .main-nav .nav-links a:hover { color: var(--secondary-color); text-decoration: none; background: none; }
    .hero-section { padding: 150px 0 200px 0; } .hero-section .hero-title { font-size: 4rem; } .hero-section .subtitle { font-size: 1.5rem; }

    .service-grid { grid-template-columns: repeat(2, 1fr); }

    .about-section .grid-layout { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
    /* Removed conflicting about-image/content transforms from here - handle with fade-in classes */
    .about-image { order: -1; }

    .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
    .tech-icons { font-size: 4.5rem; gap: 3rem 4rem; }
}

@media (min-width: 992px) {
    body { font-size: 18px; } h1 { font-size: 4.2rem; } h2 { font-size: 2.8rem; } h3 { font-size: 1.8rem; }

    .service-grid { grid-template-columns: repeat(3, 1fr); }

    .hero-section { padding: 180px 0 220px 0; }
    .tech-icons { font-size: 5rem; }
    .about-section .grid-layout { gap: 4rem; }
}

@media (min-width: 1200px) {
   .container { max-width: 1200px; }
   .hero-section { padding: 200px 0 250px 0; } .hero-title { font-size: 4.5rem; }
   .about-section .grid-layout { gap: 5rem; }
}

/* Optional: Refine hovers for touch vs mouse */
@media (hover: hover) and (pointer: fine) {
    /* Put hover styles that should ONLY apply to mouse users here if needed */
}

/* --- Legal Page Enhancements (Privacy Policy / TOS) --- */
.policy-content { padding: 60px 0; background-color: #fff; }
.policy-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.policy-content h1 { text-align: center; margin-bottom: 1rem; color: var(--secondary-color); font-size: 2.5rem; }
.policy-content h1 + p { text-align: center; margin-bottom: 3rem; color: #6c757d; font-size: 0.95rem; }
.toc-container { background-color: var(--light-gray); border: 1px solid var(--medium-gray); border-radius: 8px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; }
.toc-container h3 { margin-top: 0; margin-bottom: 1rem; font-size: 1.3rem; color: var(--primary-color); text-align: center; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.6rem; }
.toc-list a { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: color 0.2s ease; display: block; }
.toc-list a:hover { color: var(--accent-color); text-decoration: underline; }
.toc-separator { border: none; border-top: 1px solid var(--medium-gray); margin-bottom: 3rem; }
.policy-content h2 { font-size: 1.8rem; color: var(--secondary-color); margin-top: 3rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--medium-gray); text-align: left; }
.policy-content h2::after { content: none; }
.policy-content h3 { font-size: 1.4rem; color: var(--primary-color); margin-top: 2rem; margin-bottom: 1rem; }
.policy-content p, .policy-content li { line-height: 1.9; margin-bottom: 1.2rem; color: #333; }
.policy-content ul { list-style: disc; padding-left: 30px; margin-bottom: 1.5rem; }
.policy-content ul ul { list-style: circle; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.policy-content strong { color: var(--secondary-color); font-weight: 700; }
.policy-content h2#contact-us + ul, .policy-content h2#contact-tos + ul { background-color: #e7f1fa; padding: 1rem 1.5rem; border-left: 4px solid var(--primary-color); border-radius: 4px; }
.policy-content a { color: var(--primary-color); font-weight: 600; }
.policy-content a:hover { color: var(--accent-color); }

/* --- Cookie Consent --- */
.cookie-consent-banner {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.8); 
color: var(--light-gray);
padding: 15px 20px;
text-align: center;
z-index: 10001; 
opacity: 0;
transform: translateY(100%);
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.cookie-consent-banner.active {
opacity: 1;
transform: translateY(0);
}
.cookie-consent-message {
margin-bottom: 10px;
font-size: 0.9rem;
line-height: 1.5;
}
.cookie-consent-buttons {
display: flex;
justify-content: center;
gap: 10px;
}
.cookie-consent-button {
background-color: var(--accent-color);
color: var(--secondary-color);
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 0.85rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
.cookie-consent-button:hover {
background-color: var(--accent-color-darker);
}
.cookie-consent-button.decline {
background-color: transparent;
color: var(--light-gray);
border: 1px solid var(--medium-gray);
}
.cookie-consent-button.decline:hover {
background-color: rgba(255, 255, 255, 0.1);
color: #fff;
border-color: #fff;
}
.cookie-consent-link {
color: var(--accent-color);
text-decoration: underline;
}
.cookie-consent-link:hover {
color: var(--accent-color-darker);
}
@media (min-width: 768px) {
.cookie-consent-banner {
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
}
.cookie-consent-message {
    margin-bottom: 0;
    margin-right: 20px;
    flex-grow: 1;
    text-align: left;
}

.cookie-consent-buttons {
    justify-content: flex-end;
}

/* --- Honeypot Field Styling --- */
.commission-field {
    opacity: 0;           /* Make it invisible */
    position: absolute;   /* Take it out of document flow */
    top: 0;
    left: 0;
    height: 0;            /* No height */
    width: 0;             /* No width */
    z-index: -1;          /* Send it behind other content */
    /* The label and input inside are effectively hidden */
  }

  .form-status {
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.2em; /* Prevent layout shift */
    transition: color 0.3s ease;
    /* Maybe add visibility control if not done elsewhere */
    /* visibility: hidden; */
    /* opacity: 0; */
    /* transition: opacity 0.3s ease, color 0.3s ease; */
}
.form-status.success {
    color: #28a745; /* Bootstrap success green */
}
.form-status.error {
    color: #dc3545; /* Bootstrap danger red */
}
.form-status.sending {
    color: #6c757d; /* Bootstrap secondary grey */
}