/* ============================= */
/* GLOBAL STYLES */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

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

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar nav a {
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    background: linear-gradient(135deg, #50e3c2, #4a90e2);
    color: #fff;
}

.hero-text {
    flex: 1 1 500px;
    padding-right: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-img {
    flex: 1 1 400px;
    text-align: center;
}

.hero-img img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================= */
/* SECTIONS (ABOUT, SERVICES, CONTACT) */
/* ============================= */

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #222;
}

/* ============================= */
/* SERVICES GRID (2 ROWS OF 3) */
/* ============================= */

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px); /* 3 per row */
    max-width: calc(33.333% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.service-card p {
    color: #555;
    font-size: 1rem;
}

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

/* ============================= */
/* CONTACT FORM */
/* ============================= */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74,144,226,0.5);
    outline: none;
}

.contact-form button {
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Success Message */
.form-success {
    font-size: 1.1rem;
    text-align: center;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    background: #222;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

/* ============================= */
/* ANIMATIONS (fade-up, fade-in, zoom) */
/* ============================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.active {
    opacity: 1;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 992px) {
    .service-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav a {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}
