/* ===========================
   CSS Reset and Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pvss-green: #1e5631;
    --pvss-emerald: #059669;
    --pvss-blue: #1e3a5f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   Header Styles
   =========================== */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

header img {
    height: 4.5rem;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--pvss-green);
}

/* ===========================
   Button Styles
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--pvss-green);
    color: white;
}

.btn-primary:hover {
    background: #163f23;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background: white;
    color: var(--pvss-green) !important;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--pvss-green) 0%, #334155 50%, var(--pvss-blue) 100%);
    overflow: hidden;
}

.hero-sections {
    align-items: center;
    background: linear-gradient(135deg, #1e5631 0%, #334155 50%, #1e3a5f 100%);
    color: white;
    padding: 4rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-eco-infra.jpg') center / cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 5rem 0;
}

.bg-white {
    background: white;
}

.bg-slate-50 {
    background: #f8fafc;
}

.bg-gradient-cta {
    background: linear-gradient(90deg, var(--pvss-green), var(--pvss-emerald));
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 48rem;
    margin: 0 auto;
}

/* ===========================
   Grid Layouts
   =========================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===========================
   Feature Cards
   =========================== */
.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--pvss-green);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #64748b;
}

/* ===========================
   Service Cards
   =========================== */
.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

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

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--pvss-green);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.service-card:hover h3 {
    color: var(--pvss-green);
}

.service-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.service-card .read-more {
    color: var(--pvss-green);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===========================
   Footer
   =========================== */
footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

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

footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--pvss-emerald);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ===========================
   Icon Styles
   =========================== */
svg.icon {
    fill: currentColor;
}

/* ===========================
   Clients Scrolling Section
   =========================== */
.clients-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.clients-scroll-track {
    display: flex;
    gap: 3rem;
    animation: scroll-clients 50s linear infinite;
    width: max-content;
}

.clients-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(30, 86, 49, 0.15);
    border-color: var(--pvss-green);
}

.client-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.client-item:hover .client-logo {
    background: linear-gradient(135deg, var(--pvss-green) 0%, var(--pvss-emerald) 100%);
    transform: scale(1.1);
}

.client-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-item:hover .client-name {
    color: var(--pvss-green);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    nav {
        display: none;
    }

    .client-item {
        width: 140px;
        padding: 1rem;
    }

    .client-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .clients-scroll-track {
        gap: 2rem;
    }
}
