/* --- Reset & Variables --- */
:root {
    --bg-dark: #0f172a;      /* Navy */
    --bg-darker: #020617;    /* Darker Navy */
    --primary: #14b8a6;      /* Teal/Cyan */
    --text-main: #334155;    /* Slate Gray */
    --text-light: #f8fafc;   /* Off White */
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f1f5f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography & Buttons --- */
h1, h2, h3, h4 { color: var(--bg-dark); font-weight: 700; line-height: 1.2; }
p { margin-bottom: 1rem; }

.btn-primary {
    background: var(--primary);
    color: var(--bg-darker);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4); }

.btn-secondary {
    border: 2px solid var(--text-main);
    padding: 10px 30px;
    margin-left: 10px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- Navigation --- */
.navbar {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--bg-dark); }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero { padding: 80px 0; background: #fff; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 { font-size: 3.5rem; margin-bottom: 20px; letter-spacing: -1px; }
.hero-text p { font-size: 1.15rem; color: #64748b; margin-bottom: 30px; max-width: 90%; }

.abstract-shape {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--bg-dark), var(--primary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* --- Stats Bar --- */
.stats-bar { background: var(--bg-dark); color: #fff; padding: 40px 0; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat h3 { color: var(--primary); font-size: 2.5rem; margin-bottom: 5px; }
.stat p { font-size: 0.9rem; opacity: 0.8; letter-spacing: 1px; text-transform: uppercase; }

/* --- Services --- */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 70px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 2rem; color: var(--bg-dark); margin-bottom: 20px; }

/* --- Process --- */
.bg-light { background: #fff; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step { position: relative; padding: 20px; }
.step-num { font-size: 4rem; color: #f1f5f9; font-weight: 700; position: absolute; top: 0; left: 0; z-index: 0; }
.step h4 { position: relative; z-index: 1; margin-top: 30px; font-size: 1.2rem; }
.step p { position: relative; z-index: 1; font-size: 0.9rem; color: #64748b; }

/*------------ case study ------------ */
/* Case Studies Styling */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-img {
    height: 200px;
    background-color: #ddd; /* Fallback color */
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Specific backgrounds (You can replace URLs with real images later) */
.hotel-bg { background-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=600&q=80'); }
.pharmacy-bg { background-image: url('https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=600&q=80'); }
.skin-bg { background-image: url('https://www.bing.com/th/id/OIP.yH9Tvy05moYOAYYEdWvA6wHaE7?w=251&h=211&c=8&rs=1&qlt=90&o=6&cb=ucfimg1&pid=3.1&rm=2&ucfimg=1'); }

.logistics-bg { background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=600&q=80'); }

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.case-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack li {
    background: #f1f5f9;
    color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}


/* --- Contact Section --- */
.dark-section { background: var(--bg-dark); color: #fff; }
.dark-section h2 { color: #fff; }
.dark-section p { color: #cbd5e1; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-details { margin-top: 40px; }
.detail-row { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }

.detail-row i { color: var(--primary); }

/* Glassmorphism Form */
.glass-form {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #94a3b8; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
option { background: var(--bg-dark); } /* Fix for select dropdown readability */

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--bg-darker);
    padding: 15px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: #0d9488; }

/* --- Mobile --- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; align-items: center; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* --- Mobile Fix for Stats Bar --- */
@media (max-width: 768px) {
    .stats-grid {
        /* Switch from horizontal row to vertical column */
        flex-direction: column; 
        gap: 30px; /* Add breathing room between stats */
    }

    .stat {
        /* Add a subtle divider line between items for a premium look */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        width: 100%; /* Ensure they take full width */
    }

    /* Remove the border from the very last item so it looks clean */
    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat h3 {
        font-size: 2rem; /* Slightly smaller font for mobile balance */
    }
}