/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== Header (default) ========== */
.site-header {
    background: #2d3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.site-header p {
    margin-top: 8px;
    opacity: 0.9;
}

/* Gradient header for sub-pages */
.site-header.gradient {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    padding: 40px 20px;
}

.site-header.gradient h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== Navigation ========== */
.navbar {
    display: flex;
    justify-content: center;
    background: #34495e;
    padding: 10px 0;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.navbar a:hover {
    background: #2980b9;
}

/* ========== Hero Section ========== */
.hero {
    background: url('https://img1.baidu.com/it/u=4048954943,4196095186&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500') no-repeat center center/cover;
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero h2, .hero p {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 15px;
}

/* ========== Sections ========== */
section {
    padding: 60px 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

/* ========== Service Cards ========== */
.services-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 30px;
    width: 30%;
    min-width: 280px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    color: #2980b9;
    margin-bottom: 10px;
}

.service-card p {
    color: #7f8c8d;
}

/* ========== Footer ========== */
.site-footer {
    background: #2d3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.site-footer p {
    margin: 0;
}

/* ========== Floating Service Links ========== */
.service-links {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.service-link {
    display: block;
    margin: 12px 0;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: #3498db;
    transform: translateX(5px);
    text-decoration: none;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background: transparent;
    color: #3498db;
    text-decoration: none;
}

.btn-success {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.btn-success:hover {
    background: transparent;
    color: #27ae60;
    text-decoration: none;
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

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

    .site-header.gradient h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

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

    .hero {
        padding: 60px 20px;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
    }

    .service-links {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
    }

    .service-link {
        font-size: 14px;
        margin: 10px 0;
    }

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .navbar a {
        padding: 8px 12px;
        font-size: 14px;
    }
}
