/* Basic Reset & Root Variables */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --heading-color: #111111;
    --accent-color: #007bff; /* Example Blue */
    --accent-hover-color: #0056b3;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-shadow-color: rgba(0, 0, 0, 0.15);
    --standard-padding: 60px 20px;
    --container-width: 1100px;
    --base-font-size: 16px;
    --heading-font-weight: 700;
    --body-font-weight: 400;
    --border-radius: 8px; /* Slightly larger radius */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px); /* Subtle blur effect */
    box-shadow: 0 2px 5px var(--shadow-color); /* Subtle shadow on header */
}

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

header .logo {
    font-size: 1.5em;
    font-weight: var(--heading-font-weight);
    color: var(--heading-color);
}

/* Sections */
.content-section {
    padding: var(--standard-padding);
    text-align: center;
    position: relative; /* Needed for potential absolute positioned elements */
}

.content-section.alt-bg {
    background-color: var(--secondary-color);
}

h1, h2 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: var(--heading-font-weight);
}

h1 {
    font-size: 2.8em;
    line-height: 1.2;
}

h2 {
    font-size: 2.2em; /* Slightly larger H2 */
    margin-bottom: 35px; /* More space below H2 */
}

h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

p {
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #555; /* Slightly lighter text for paragraphs */
}

p.subtitle {
    font-size: 1.15em; /* Slightly larger subtitle */
    color: #eee; /* Light color for hero subtitle */
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Shadow for readability */
}

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

a:hover {
    /* text-decoration: underline; */ /* Remove underline for cleaner look */
    color: var(--accent-hover-color);
}

/* Hero Section */
.hero-section {
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center center;
    padding: 120px 20px; /* More padding */
    text-align: center;
    position: relative;
    color: var(--primary-color); /* Text color on hero */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

.hero-section h1 {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6); /* Text shadow for H1 */
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color) !important; /* Ensure white text */
    padding: 14px 30px; /* Larger button padding */
    font-size: 1.05em; /* Slightly larger font */
    font-weight: bold;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none !important; /* Remove underline */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3); /* Subtle button shadow */
}

.cta-button:hover {
    background-color: var(--accent-hover-color);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Feature Grid (Approach Section) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider minmax */
    gap: 35px; /* More gap */
    margin-top: 50px;
    text-align: center; /* Center content within items */
}

.feature-item {
    background-color: var(--primary-color);
    padding: 30px; /* More padding */
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px var(--shadow-color); /* More prominent shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2.5em; /* Larger icons */
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-item h3 {
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.95em;
    max-width: none; /* Allow text to fill item width */
}

/* Solutions Section */
#solutions p.solutions-intro {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.solutions-scroll-wrapper {
    overflow-x: auto; /* Enable horizontal scroll */
    padding-bottom: 20px; /* Space for scrollbar */
    margin-left: -20px; /* Allow cards to touch edges visually */
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox scrollbar */
    scrollbar-color: var(--accent-color) var(--secondary-color); /* Firefox scrollbar */
    scroll-snap-type: x mandatory; /* Snap scrolling */
}

/* Scrollbar styling for Webkit browsers */
.solutions-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.solutions-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}
.solutions-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
    border: 2px solid var(--secondary-color);
}

.solutions-grid {
    display: flex; /* Use flexbox for horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 25px; /* Space between cards */
    padding-top: 10px; /* Space for shadow */
    padding-bottom: 10px; /* Space for shadow and hover effect */
}

.solution-card {
    flex: 0 0 auto; /* Don't grow, don't shrink, auto basis */
    width: 300px; /* Fixed width for each card */
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--card-shadow-color);
    overflow: hidden; /* Clip image corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start; /* Snap align */
}

.solution-card:hover {
    transform: translateY(-8px); /* Lift card on hover */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-image {
    width: 100%;
    height: 180px; /* Fixed height for image */
    object-fit: cover; /* Cover the area, might crop */
    display: block;
}

.card-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1; /* Allows content to push links down */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.card-content p {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: #555;
    max-width: none;
    flex-grow: 1; /* Pushes links to bottom */
}

.card-links {
    margin-top: auto; /* Pushes links to the bottom */
    padding-top: 10px;
    /* border-top: 1px solid var(--border-color); */ /* Optional separator */
    text-align: right; /* Align icons to the right */
}

.card-links a {
    color: var(--text-color);
    font-size: 1.3em; /* Icon size */
    margin-left: 15px; /* Space between icons */
    transition: color 0.2s ease;
}

.card-links a:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    padding-bottom: 80px;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px; /* Increased gap */
    margin-top: 40px;
    text-align: center;
}

.contact-method {
    max-width: 300px;
}

.contact-method h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: normal;
    color: var(--heading-color);
}

.contact-method h3 i { /* Style icons in contact */
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 1.2em;
}

.contact-method p {
    font-size: 1em;
}

/* Footer */
footer {
    background-color: var(--heading-color);
    color: #cccccc;
    text-align: center;
    padding: 30px 20px; /* Slightly more padding */
    margin-top: 40px;
}

footer p {
    margin-bottom: 5px;
    font-size: 0.9em;
    max-width: none;
    color: #a0a0a0; /* Lighter footer text */
}

footer a {
    color: #ffffff;
}
footer a:hover {
    color: #dddddd;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero-section {
        padding: 100px 20px;
    }
    .content-section {
        padding: 50px 20px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .solution-card {
        width: 260px; /* Slightly smaller cards on tablet */
    }
    .contact-methods {
       flex-direction: column;
       align-items: center;
       gap: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    p.subtitle {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    header .logo {
        font-size: 1.2em;
    }
    .solution-card {
        width: 85vw; /* Make cards take most of viewport width on small mobile */
        max-width: 280px; /* But don't let them get huge */
    }
    .solutions-scroll-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .solutions-grid {
        gap: 20px;
    }
}