/* GLOBAL STYLES */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #f97316;
    --secondary-hover: #ea580c;
    --dark: #0b132b;
    --light: #f8fafc;
    --gray: #64748b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

section[id] { scroll-margin-top: 70px; }

body {
    font-family: 'Poppins', sans-serif;
    color: #334155;
    background-color: #fff;
    line-height: 1.6;
}

p, h1, h2, h3, h4, td, li { overflow-wrap: break-word; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVBAR */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 0.8rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-toggle:hover { background: #dbeafe; }

.logo { min-width: 0; }

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 1.3rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
}

.logo p {
    font-size: 0.75rem;
    color: var(--gray);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

nav ul li a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    padding: 5rem 0 8rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    background: #dbeafe;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: clamp(1.9rem, 4.6vw, 2.8rem);
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-text h2 span {
    color: var(--primary);
    background: linear-gradient(120deg, #1e40af, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* HERO OVERLAPPED IMAGES */
.hero-images {
    position: relative;
    height: 420px;
    width: 100%;
}

.img-box {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.img-box:hover img { transform: scale(1.05); }

.img-main {
    width: 72%;
    height: 310px;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-overlap {
    width: 62%;
    height: 260px;
    bottom: 20px;
    right: 0;
    z-index: 2;
    border: 6px solid #ffffff;
}

.floating-card {
    position: absolute;
    bottom: 0px;
    left: -10px;
    background: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    z-index: 3;
    border: 1px solid #f1f5f9;
}

.floating-card i {
    font-size: 1.8rem;
    color: #ef4444;
}

.floating-card h4 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}

.floating-card p {
    font-size: 0.8rem;
    color: #64748b;
}

.float-bg { animation: floatSlow 6s ease-in-out infinite; }
.float-fg { animation: floatReverse 5s ease-in-out infinite; }
.float-card { animation: floatCard 4s ease-in-out infinite; }

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(14px); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

/* COUNTER SECTION */
.stats-section {
    position: relative;
    margin-top: -4.5rem;
    z-index: 20;
    padding: 0;
}

.counter-card-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2.5rem 1rem;
    align-items: center;
}

.counter-item {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.counter-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e5e7eb;
}

.counter-icon-bg {
    width: 52px;
    height: 32px;
    background-color: #ffedd5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.counter-icon-bg i {
    color: #f97316;
    font-size: 1.1rem;
}

.counter-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.counter-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* GENERAL SECTIONS */
.section { padding: 5rem 0; }
.bg-light { background: var(--light); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3.6vw, 2.2rem);
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-header p { color: var(--gray); }

/* ABOUT US OVERLAPPED IMAGES SECTION */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 480px;
    width: 100%;
}

.about-img-box {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-back {
    width: 75%;
    height: 350px;
    top: 0;
    left: 0;
    z-index: 1;
}

.about-img-front {
    width: 65%;
    height: 280px;
    bottom: 20px;
    right: 0;
    z-index: 2;
    border: 6px solid #ffffff;
}

.about-img-box:hover {
    transform: scale(1.03);
    z-index: 3;
}

.about-experience-badge {
    position: absolute;
    top: 30px;
    right: 20px;
    background: var(--secondary);
    color: #ffffff;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
    z-index: 4;
}

.about-experience-badge h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.about-experience-badge p {
    font-size: 0.75rem;
    font-weight: 600;
}

.mb-4 { margin-bottom: 1.5rem; }

/* GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* CARDS & GRIDS */
.glass-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #0f172a;
}

/* TIMELINE */
.timeline {
    max-width: 800px;
    margin: auto;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #cbd5e1;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* TABLE */
.table-container {
    overflow-x: auto;
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.styled-table th, .styled-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.styled-table th {
    background: var(--primary);
    color: #fff;
}

.styled-table tr:hover { background: #f8fafc; }

.badge-role {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CONTACT SECTION */
.contact-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.contact-badge {
    background-color: #ffedd5;
    color: #ea580c;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.contact-info-left h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.sub-text {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: #ffedd5;
    color: #ea580c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.info-item p {
    color: #64748b;
    font-size: 0.9rem;
}

.contact-form-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

input, textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: #f97316;
    background-color: #fff;
}

.submit-btn {
    width: 100%;
    background-color: #f97316;
    color: #ffffff;
    border: none;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover { background-color: #ea580c; }

footer {
    background: #020617;
    color: #64748b;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #1e293b;
}

/* ACCESSIBILITY */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.55);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Touch devices have no hover: always show gallery captions */
@media (hover: none) {
    .gallery-overlay { opacity: 1; }
}

/* =========================================================
   RESPONSIVE DESIGN
   Desktop  : >= 1280px      (full navbar)
   Laptop   : 901px - 1279px (hamburger menu, 2-column hero)
   Tablet   : 601px - 900px
   Mobile   : <= 600px
   Small    : <= 400px
   ========================================================= */

/* ---------- Small desktops: tighter navbar so it never overflows ---------- */
@media (min-width: 1280px) and (max-width: 1439px) {
    nav ul { gap: 1rem; }
    nav ul li a { font-size: 0.9rem; }
}

/* ---------- Laptop / large tablet: hamburger menu ---------- */
@media (max-width: 1279px) {
    .menu-toggle { display: inline-flex; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, visibility 0.35s;
    }

    nav.open {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0.5rem 0 1.2rem;
    }

    nav ul li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0.9rem 0.4rem;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }

    nav ul li a i {
        width: 22px;
        text-align: center;
        color: var(--primary);
    }

    nav ul li a.btn-nav {
        justify-content: center;
        margin-top: 1rem;
        padding: 0.85rem 1.2rem;
        border-bottom: none;
    }

    nav ul li a.btn-nav i { color: #fff; }
}

/* ---------- Tablet & below: stacked layouts ---------- */
@media (max-width: 900px) {
    .hero { padding: 3.5rem 0 6rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-btns { justify-content: center; flex-wrap: wrap; }
    .hero-images {
        height: 380px;
        max-width: 560px;
        margin: 1rem auto 0;
    }
    .img-main { width: 72%; height: 270px; }
    .img-overlap { width: 58%; height: 220px; bottom: 25px; }
    .floating-card { left: 0; bottom: 0; }

    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-images {
        height: 420px;
        max-width: 560px;
        margin: 0 auto;
    }
    .about-img-back { width: 75%; height: 310px; }
    .about-img-front { width: 62%; height: 250px; }

    .stats-section { margin-top: -3.5rem; }
    .counter-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
        padding: 2rem 1rem;
    }
    .counter-item:nth-child(2)::after { display: none; }
    .counter-item:nth-child(1)::after,
    .counter-item:nth-child(3)::after { height: 80%; }

    .contact-section { padding: 3.5rem 0; }
    .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .logo { gap: 8px; }
    .logo-icon { font-size: 1.7rem; }
    .logo h1 { font-size: 1rem; }
    .logo p { font-size: 0.7rem; }

    .hero { padding: 2.5rem 0 5.5rem; }
    .hero-text p { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btns .btn { justify-content: center; }

    .hero-images { height: 290px; margin-top: 0.5rem; }
    .img-main { width: 78%; height: 190px; border-radius: 16px; }
    .img-overlap { width: 60%; height: 150px; bottom: 30px; border-width: 4px; border-radius: 16px; }
    .floating-card {
        max-width: 90%;
        padding: 0.6rem 0.9rem;
        gap: 10px;
        border-radius: 12px;
    }
    .floating-card i { font-size: 1.4rem; }
    .floating-card h4 { font-size: 0.85rem; }
    .floating-card p { font-size: 0.7rem; line-height: 1.3; }

    .stats-section { margin-top: -3rem; }
    .counter-card-wrapper { padding: 1.5rem 0.5rem; gap: 1.5rem 0; border-radius: 18px; }
    .counter-item { padding: 0 0.5rem; }
    .counter-number { font-size: 1.7rem; }
    .counter-label { font-size: 0.8rem; }

    .section { padding: 3rem 0; }

    .about-images { height: 340px; }
    .about-img-box { border-radius: 16px; }
    .about-img-back { width: 80%; height: 240px; }
    .about-img-front { width: 66%; height: 190px; bottom: 10px; border-width: 4px; }
    .about-experience-badge { top: 10px; right: 0; padding: 0.7rem 1rem; border-radius: 12px; }
    .about-experience-badge h3 { font-size: 1.5rem; }
    .about-experience-badge p { font-size: 0.7rem; }

    .glass-card, .feature-card { padding: 1.4rem; }

    .timeline-content { padding: 1.1rem; }
    .timeline-content h3 { font-size: 1rem; }

    .styled-table th, .styled-table td { padding: 0.8rem 0.9rem; font-size: 0.9rem; }
    .badge-role { font-size: 0.78rem; padding: 3px 9px; }

    .gallery-grid { gap: 1rem; }
    .gallery-item { height: 200px; }

    .contact-section { padding: 3rem 0; }
    .contact-form-card { padding: 1.4rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .form-row input { margin-bottom: 1rem; }
    input, textarea { font-size: 16px; } /* prevents iOS auto-zoom */
    .info-item { gap: 0.8rem; margin-bottom: 1.2rem; }
    .info-item p { word-break: break-word; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 400px) {
    .hero-images { height: 260px; }
    .img-main { height: 165px; }
    .img-overlap { height: 130px; bottom: 32px; }
    .floating-card p { display: none; }

    .about-images { height: 300px; }
    .about-img-back { height: 210px; }
    .about-img-front { height: 165px; }

    .counter-number { font-size: 1.5rem; }
    .counter-label { font-size: 0.75rem; }
}

@media (max-width: 340px) {
    .counter-card-wrapper { grid-template-columns: 1fr; }
    .counter-item::after { display: none !important; }
}
