/* =========================
   Global Reset
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Body
========================= */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f6f8fc;
    line-height: 1.7;
    color: #333;
}

/* =========================
   Container
========================= */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* =========================
   Hero Section (Modern Layout)
========================= */

header {
    background: linear-gradient(135deg, #eef3ff 0%, #f7f9ff 100%);
    padding: 120px 20px;
    overflow: hidden;
}

/* layout split */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* left text */
.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.3rem;
    color: #4b5563;
    max-width: 500px;
    margin-bottom: 30px;
}

/* right image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* button stays same but slightly improved */
.btn-primary {
    display: inline-block;
    background-color: #5b6cff;
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 12px 24px rgba(91, 108, 255, 0.22);
}

.btn-primary:hover {
    background-color: #4457e6;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(68, 87, 230, 0.30);
}

/* =========================
   Mobile
========================= */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-image img {
        max-width: 320px;
    }
}

/* =========================
   Section Titles
========================= */
section h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #1f2937;
}

/* =========================
   About Section
========================= */
#about {
    background: #ffffff;
    padding: 90px 0;
}

#about h2 {
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    text-align: left;
    flex-wrap: wrap;
}

.about-image {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;

    object-fit: cover;
    object-position: center top;

    display: block;

    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);

    /* improves downscaled rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    image-rendering: auto;
}


.about-content div {
    max-width: 600px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

/* Mobile fix */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content div {
        text-align: center;
    }

    .about-image {
        width: 80%;
        max-width: 400px;
    }
}

/* =========================
   Services Section
========================= */
#services {
    background: #eef3ff;
    padding: 90px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
}

.service-item i {
    color: #4f7cff;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #222;
}

.service-item p {
    color: #666;
    font-size: 1rem;
}

/* =========================
   Reviews Section
========================= */
#reviews {
    background: #ffffff;
    padding: 90px 0;
    text-align: center;
}

#reviews .service-item {
    position: relative;
}

#reviews .service-item i {
    color: #ffc107;
    margin-bottom: 15px;
}

#reviews .service-item p {
    font-style: italic;
    margin-bottom: 20px;
}

#reviews .service-item h3 {
    font-size: 1.1rem;
    color: #4f7cff;
}

/* =========================
   Contact Section
========================= */
#contact {
    background: #eef3ff;
    color: #333;
    padding: 90px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

#contact h2 {
    color: #1f2937;
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
}

#contact i {
    color: #4f7cff;
    margin-right: 10px;
}

/* =========================
   Footer
========================= */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 25px 20px;
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 992px) {

    header h1 {
        font-size: 3rem;
    }

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

    .about-image {
        width: 80%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {

    .container {
        width: 92%;
    }

    header {
        padding: 120px 20px;
    }

    header h1 {
        font-size: 2.4rem;
    }

    header p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .service-item {
        padding: 30px 20px;
    }

    .about-content p,
    .service-item p,
    #contact p {
        font-size: 1rem;
    }
}

header {
    animation: gradientMove 12s ease infinite !important;
    background-size: 400% 400% !important;
    overflow: hidden !important;
}
