/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ===== HEADER FIXED ===== */
header {
    background: #003b5f;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo + Hamburger wrapper */
header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    height: 100px;
    width: 100px;
}

/* Navbar */
header nav {
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.4s ease;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}

header nav a:hover {
    color: #ffcc00;
    transform: scale(1.08);
}

/* Hamburger Button */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    display: none;
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 59, 95, 0.65), rgba(0, 59, 95, 0.65)),
        url("pic12.jpg") no-repeat center/cover;
    color: #fff;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    animation: slideDown 1s ease-out;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease;
}

.btn {
    background: #ffcc00;
    color: #00264d;
    padding: 12px 26px;
    margin: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    background: #e6b800;
    transform: translateY(-3px);
}

/* ===== COMPANY HIGHLIGHT ===== */
.company-highlight {
    background: #f0f4f8;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.highlight-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
}

.highlight-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.highlight-logo:hover {
    transform: scale(1.05);
}

.highlight-text {
    max-width: 600px;
    text-align: left;
}

.highlight-text h2 {
    font-size: 28px;
    color: #003b5f;
    margin-bottom: 15px;
}

.highlight-text p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Responsive */
@media(max-width: 768px) {
    .highlight-container {
        flex-direction: column;
        text-align: center;
    }

    .highlight-text {
        text-align: center;
    }
}

/* ===== GENERIC SECTIONS ===== */
section {
    padding: 80px 20px;
    text-align: center;
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #00264d;
    position: relative;
    animation: fadeUp 1s ease;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ffcc00;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===== COUNTERS ===== */
.counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.counter-card {
    background: #003b5f;
    color: hsl(0, 0%, 100%);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.counter-card:hover {
    transform: translateY(-8px);
}

.counter {
    font-size: 36px;
    font-weight: bold;
    display: block;
    color: #ffcc00;
    margin-bottom: 10px;
}


/* ===== CARDS (Companies, Events, etc.) ===== */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeUp 1s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT: VIDEO INTRO ===== */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.about-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(0.85);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .6));
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 16px;
}

.about-hero-content h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 8px;
    color: #ffcc00;
    letter-spacing: .5px;
}

.about-hero-content p {
    font-size: clamp(14px, 2.2vw, 18px);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== ABOUT: TIMELINE ===== */
.about-timeline {
    padding: 80px 8%;
    text-align: center;
}

.about-timeline h2 {
    color: #00264d;
    margin-bottom: 30px;
    position: relative;
}

.timeline {
    position: relative;
    margin: 30px auto 0;
    max-width: 1000px;
    padding-left: 20px;
    padding-right: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ffcc00, #003b5f);
    transform: translateX(-50%);
    opacity: .5;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 18px 24px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.tl-icon {
    position: absolute;
    top: 16px;
    left: calc(50% - 18px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #003b5f;
    color: #ffcc00;
    display: grid;
    place-items: center;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.tl-content {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    padding: 18px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, .05);
}

.timeline-item:nth-child(odd) .tl-content {
    margin-right: 36px;
}

.timeline-item:nth-child(even) .tl-content {
    margin-left: 36px;
}

.tl-content h3 {
    margin: 0 0 6px;
    color: #00264d;
    font-size: 18px;
}

.tl-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== ABOUT: TEAM ===== */
.about-team {
    padding: 80px 8%;
    background: linear-gradient(135deg, #003366, #004c99);
    color: #fff;
    text-align: center;
}

.about-team h2 {
    color: #ffcc00;
    margin-bottom: 8px;
}

.team-sub {
    opacity: .9;
    max-width: 760px;
    margin: 0 auto 32px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.team-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, .6);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.team-photo {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}

.team-card h3 {
    margin: 6px 0 2px;
    font-size: 18px;
}

.team-card p {
    margin: 0 0 10px;
    opacity: .9;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    transition: transform .25s ease, background .25s ease, color .25s ease;
    text-decoration: none;
}

.team-social a:hover {
    transform: translateY(-3px);
    background: #ffcc00;
    color: #003366;
}

/* Companies Grid */
.companies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Card Style */
.companies .card {
    position: relative;
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.companies .card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.companies .card i,
.companies .card h3,
.companies .card p,
.companies .card a {
    position: relative;
    z-index: 2;
}

/* Hover Animation */
.companies .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.companies .card:hover i {
    color: #ffcc00;
    transform: scale(1.2) rotate(360deg);
    transition: 0.5s;
}

.companies .card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #ffcc00;
    color: #00264d;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.companies .card a:hover {
    background: #ffaa00;
}

/* Background Images */
.card.manpower {
    background: url('Manpower\ logo.png') center/cover no-repeat;
}

.card.travel {
    background: url('Manpower\ logo.png') center/cover no-repeat;
}

.card.export {
    background: url('import\ export\ logo.jpg') center/cover no-repeat;
}

.card.media {
    background: url('Media\ logo.jpg') center/cover no-repeat;
}

.card.organic {
    background: url('reem\ and\ organic\ logo.jpg') center/cover no-repeat;
}

.card.enterprises {
    background: url('Rohtas\ enterprices\ logo.jpg') center/cover no-repeat;
}

.card.visa {
    background: url('study\ visa\ logo.jpg') center/cover no-repeat;
}
.card.buraq {
    background: url('Buraq.logo.jpg') center/cover no-repeat;
}
.companies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    z-index: 1;
}

.card h3,
.card p,
.card i,
.card a {
    position: relative;
    z-index: 2;
}

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.07);
    filter: brightness(1.1);
}

/* ===== FOOTER ===== */
footer {
    background: #00264d;
    color: #fff;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

footer h3,
footer h4 {
    margin-bottom: 10px;
}



/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 52px;
    }

    .tl-icon {
        left: 2px;
    }

    .timeline-item .tl-content,
    .timeline-item:nth-child(odd) .tl-content,
    .timeline-item:nth-child(even) .tl-content {
        margin: 0 0 20px 0;
    }

    .about-hero {
        height: 48vh;
        min-height: 360px;
    }

    .team-photo {
        height: 200px;
    }
}

@media (max-width: 520px) {
    .team-grid {
        gap: 16px;
    }

    .about-team {
        padding: 64px 5%;
    }

    .about-timeline {
        padding: 64px 5%;
    }
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    header nav {
        position: absolute;
        top: 70px;
        right: 20px;
        background: #002b45;
        flex-direction: column;
        width: 200px;
        border-radius: 10px;
        padding: 15px;
        display: none;
    }

    header nav.active {
        display: flex;
        animation: fadeDown 0.4s ease;
    }
}

/* Animation for dropdown nav */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 30px;
}

.hero p {
    font-size: 16px;
}

@media (max-width: 768px) {
    .companies {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}


@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* small fade-in if AOS not loaded */
.timeline-item {
    opacity: .0;
    transform: translateY(16px);
    transition: .5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}