/* ----------------------------
   RESET & BASE STYLES
-----------------------------*/
:root {
    --primary: #1a73e8;
    --secondary: #0f9d58;
    --accent: #fbbc04;
    --dark: #202124;
    --light: #f8f9fa;
    --gray: #5f6368;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ----------------------------
   HERO SECTION
-----------------------------*/
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(19, 34, 55, 0.9), rgba(4, 55, 30, 0.85)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 2.5rem 2rem;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485') center/cover;
    z-index: -1;
    transform: perspective(1000px) rotateX(5deg) scale(1.05);
    animation: floatBg 12s ease-in-out infinite;
}

@keyframes floatBg {

    0%,
    100% {
        transform: perspective(1000px) rotateX(5deg) scale(1.05) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateX(7deg) scale(1.07) translateY(-20px);
    }
}

.hero-text {
    flex: 1;
    padding: 2rem;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-btn {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn {
    background: var(--accent);
    color: var(--dark);
}

.primary-btn:hover {
    background: #e6ac00;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.hero-img {
    flex: 1;
    text-align: center;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.hero-img img {
    padding-top: 15px;
    width: 100%;
    max-width: 500px;
    min-height: 420px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transform-style: preserve-3d;
    animation: floatDevice 6s ease-in-out infinite;
    border-radius: 30%;
}

@keyframes floatDevice {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        min-height: 60vh;
    }

    .hero-text {
        text-align: center;
        padding: 1rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img img {
        max-width: 70%;
        margin: 0 auto;
    }
}

/* ----------------------------
   SERVICES SECTION
-----------------------------*/
.services {
    padding: 5rem 2rem;
    background-color: #fff;
    position: relative;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transition: height 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.service-icon img {
    width: 50px;
    filter: invert(1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
    margin-top: 1.5rem;
}

.service-features span {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray);
}

.service-features i {
    color: var(--secondary);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* ----------------------------
   WHY CHOOSE US SECTION
-----------------------------*/
.home_service {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
    position: relative;
    overflow: hidden;
}

.about_main_container {
    max-width: 1200px;
    margin: 0 auto;
}

.about_service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.discription {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.discription:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.icon-box i {
    font-size: 1.8rem;
    color: white;
}

.discription h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.discription h4 {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.6;
}

/* ----------------------------
   TESTIMONIALS
-----------------------------*/
.testimonials {
    padding: 5rem 2rem;
    background: #fff;
    position: relative;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(26, 115, 232, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.rating {
    color: #fbbc04;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.customer-info h5 {
    font-size: 1.1rem;
    color: var(--dark);
}

.customer-info span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ----------------------------
CALL TO ACTION (Enhanced Style)
-----------------------------*/
.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    text-align: center;
    min-height: 220px;
    height: 40vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.cta::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 60%);
    z-index: 0;
}

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

.cta .btn-primary,
.cta .btn-secondary {
    display: inline-block;
    margin: 0.75rem;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 2rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: linear-gradient(to right, #34d399, #10b981);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: linear-gradient(to right, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}


/* ----------------------------
   MEDIA QUERIES
-----------------------------*/
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

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

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .about_service {
        grid-template-columns: 1fr;
    }

    .testimonial-container {
        grid-template-columns: 1fr;
    }
}