/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--dark);
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

nav.scrolled .logo,
nav.scrolled .nav-links a {
    color: var(--dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--primary) !important;
}
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

nav.scrolled .menu-toggle {
    color: var(--dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)), url('./assets/slider.png') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

/* About Section */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    border: 1px solid #e2e8f0;
}

.stat-box h3 {
    color: var(--primary);
    font-size: 2rem;
}

/* Services Section */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.image-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.card-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-overlay p {
    color: #cbd5e1;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.image-card:hover .card-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.info-box {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: #94a3b8;
    transition: var(--transition);
    line-height: 2;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #64748b;
}

/* Animations */
.fade-up {
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 992px) {

    .about-layout,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        color: var(--dark) !important;
        padding: 15px 30px;
        display: block;
        border-bottom: 1px solid #f1f5f9;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    z-index: 2000;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown link styling */
.dropdown-menu a {
    color: var(--dark) !important;
    padding: 12px 25px !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: none !important;
    display: block;
}

/* Hide the animated underline for dropdown items */
.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary) !important;
    padding-left: 30px !important;
    /* Soft slide effect on hover */
}

/* Mobile Dropdown Fixes */
@media (max-width: 768px) {
    .dropdown-menu {
        position: relative;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8fafc;
        padding: 0;
        border-radius: 0;
        display: none;
        /* Hidden by default on mobile */
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

}

/* Inner Page Banner & Breadcrumbs */
.page-header {
    height: 65vh;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.breadcrumb li a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb li a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Adds the slash between breadcrumb items */
.breadcrumb li+li::before {
    content: "/";
    margin-right: 10px;
    color: #94a3b8;
}

/* ================= MOBILE RESPONSIVENESS IMPROVEMENTS ================= */

/* Tablets */
@media (max-width: 1024px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-content h1 {
        font-size: 3.2rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .about-layout {
        gap: 40px;
    }

    .stats-container {
        flex-direction: column;
    }

    .contact-wrap {
        padding: 25px;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {

    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 50px 0;
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 120px 20px 80px;
        background-attachment: scroll;
        /* Fix mobile lag */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    /* Buttons */
    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    /* Navbar */
    nav {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-image img {
        border-radius: 12px;
    }

    .stat-box {
        padding: 15px;
    }

    /* Services */
    .image-card {
        height: 250px;
    }

    .card-overlay h3 {
        font-size: 1.2rem;
    }

    .card-overlay p {
        font-size: 0.8rem;
    }

    /* Contact */
    .contact-wrap {
        grid-template-columns: 1fr;
        padding: 20px;
    }

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

    .info-box i {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 50px 0 20px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col p,
    .footer-col a {
        font-size: 0.9rem;
    }

    /* Page Header */
    .page-header {
        height: auto;
        padding: 100px 20px 60px;
        background-attachment: scroll;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}