/* =======================
   GENERAL RESET & TYPOGRAPHY
======================= */

/* =======================
   BUTTON STYLES
======================= */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    margin: 8px 4px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1d4ed8; /* Blue */
    color: #fff;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #e5e7eb; /* Light gray */
    color: #111827;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* =======================
   HERO SECTION
======================= */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff;
}

.hero-text {
    flex: 1 1 500px;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* =======================
   STATS SECTION
======================= */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 60px 10%;
    text-align: center;
    background-color: #fff;
}

.stat h3 {
    font-size: 2.2rem;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.stat p {
    font-size: 1rem;
    color: #555;
}

/* =======================
   SERVICES OVERVIEW
======================= */
.services-overview {
    padding: 80px 10%;
    background-color: #f3f4f6;
    text-align: center;
}

.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #111827;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.service-card h3 {
    color: #1d4ed8;
    margin-bottom: 12px;
}

.service-card p {
    color: #555;
}

/* =======================
   INDUSTRIES SECTION
======================= */
.industries-section {
    padding: 80px 10%;
    text-align: center;
}

.industries-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #111827;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}

.industries-grid span {
    background-color: #e5e7eb;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.industries-grid span:hover {
    background-color: #3b82f6;
    color: #fff;
}

/* =======================
   WHY DATRAIL SECTION
======================= */
.why-datrail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 80px 10%;
    background-color: #fff;
}

.why-image {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
}

.why-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}



.why-content {
    flex: 1 1 450px;
}

.why-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #111827;
}

.why-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.why-content ul li {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: #555;
    display: flex;
    align-items: center;
}

.why-content ul li::before {
    content: "✔";
    color: #1d4ed8;
    margin-right: 10px;
    font-weight: bold;
}

/* Buttons inside Why Datrail */
.why-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =======================
   RESPONSIVE MEDIA QUERIES
======================= */
/* =======================
   HOME PAGE RESPONSIVE
======================= */

/* Large screens / smaller desktops */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        padding: 60px 5%;
        text-align: center;
    }

    .hero-text, .hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .why-datrail {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .why-content h2 {
        font-size: 2rem;
    }

    .why-content ul li {
        font-size: 1rem;
    }
}

/* Tablets / medium screens */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 5%;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .stats-section {
        padding: 40px 5%;
        gap: 20px;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    .services-overview {
        padding: 60px 5%;
    }

    .services-overview h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 25px;
    }

    .industries-section {
        padding: 60px 5%;
    }

    .industries-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .industries-grid span {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .why-datrail {
        padding: 60px 5%;
    }

    .why-content h2 {
        font-size: 2rem;
    }

    .why-content ul li {
        font-size: 1rem;
    }

    .why-image img {
        max-width: 90%;
    }
}

/* Small phones / very small screens */
@media (max-width: 480px) {
    .hero-section {
        padding: 40px 3%;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .stats-section {
        padding: 30px 3%;
        gap: 15px;
    }

    .stat h3 {
        font-size: 1.6rem;
    }

    .stat p {
        font-size: 0.85rem;
    }

    .services-overview {
        padding: 40px 3%;
    }

    .services-overview h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .service-card {
        padding: 20px;
    }

    .industries-section {
        padding: 40px 3%;
    }

    .industries-section h2 {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }

    .industries-grid span {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .why-datrail {
        padding: 40px 3%;
    }

    .why-content h2 {
        font-size: 1.75rem;
    }

    .why-content ul li {
        font-size: 0.95rem;
    }

    .why-image img {
        max-width: 100%;
    }
}
