/* Root */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 60px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 80px 0 150px;
    overflow: visible;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(51, 65, 85, 0.85) 100%), url('../image/background.png') center/cover no-repeat;
    color: white;
    margin-bottom: 0;
    z-index: 1;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.8em;
    color: #93c5fd;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2em;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-button {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    color: white;
}

/* Section Styling */
.section-label {
    font-size: 0.9em;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

/* Services Section */
.services {
    background: white;
    padding: 80px 0 60px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Ensure service cards don't stretch full width and center remaining items on the last row */
.services-grid {
    justify-items: center;
    justify-content: center;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

/* limit card width so grid can center fewer items on a row */
.service-card {
    max-width: 360px;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.service-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #c7d2fe;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Gallery Carousel */
.gallery-section {
    overflow: hidden;
    padding: 80px 0;
    background: var(--light-bg);
}

.gallery-carousel {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    min-width: 400px;
    height: 300px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 1.3em;
}

/* Partners Section */
.partners-section {
    background: white;
    padding: 80px 0;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.partner-item {
    padding: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 80px;
}

.partner-item img {
    max-width: 90px;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    object-fit: contain;
}

.partner-item:hover {
    transform: scale(1.05);
    opacity: 1;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 4em;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-block;
}

.stat-plus,
.stat-decimal {
    font-size: 2em;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.1em;
    color: #cbd5e1;
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.2em;
    color: #dbeafe;
    margin-bottom: 30px;
}

/* Contact Section */
.contact {
    background: var(--light-bg);
    padding: 80px 0;
}

.contact-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-info-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.contact-info-item h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1em;
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

.contact-form .form-control {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}

/* Button Styling */
.btn-outline {
    padding: 14px 35px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-description {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }

    .gallery-item {
        min-width: 280px;
        height: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 1.8em;
    }

    .partners-grid {
        gap: 15px;
    }

    .partner-item img {
        max-width: 70px;
    }

    .contact {
        padding: 40px 0;
    }

    .contact-title {
        font-size: 1.8em;
    }
}
