/* ===== Variables ===== */
:root {
    --color-blue: #4AACF0;
    --color-blue-dark: #3890D0;
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #e9ecef;
    --color-gray-600: #6c757d;
    --color-gray-800: #343a40;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1100px;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    line-height: 1.6;
    background: var(--color-white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-800);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

.hero-content {
    max-width: 700px;
}

.hero-logo {
    width: 340px;
    margin: 0 auto 32px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-blue);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(74, 172, 240, 0.3);
}

.btn-primary:hover {
    background: var(--color-blue-dark);
    box-shadow: 0 4px 16px rgba(74, 172, 240, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ===== Sections ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-blue);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== About ===== */
.about {
    background: var(--color-white);
}

.about-image {
    max-width: 550px;
    margin: 0 auto 40px;
    border-radius: 8px;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--color-gray-800);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ===== Services ===== */
.services {
    background: var(--color-gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-gray-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: var(--color-blue);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-black);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
    background: var(--color-white);
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-black);
    color: var(--color-gray-600);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        border-bottom: 1px solid var(--color-gray-100);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hero-logo {
        width: 260px;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 32px 24px;
    }
}
