/* 
  AMW Resources FZC - Component Styles
  Navbar Pill, Buttons, Cards, Modals, Map, Animations
*/

/* ================================
   NAVBAR COMPONENTS
================================ */
/* Floating Pill Container - Enhanced Glass */
.header-pill {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    border-radius: 100px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.header-pill.active {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

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

.nav-links li a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-green);
}

.icon-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-trigger {
    display: none;
}

/* Mobile nav overlay - hidden by default on desktop */
.mobile-nav-overlay {
    display: none;
}

.mobile-nav-close {
    display: none;
}

/* ================================
   HERO COMPONENTS
================================ */
/* Hero Slideshow */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Overlay */
.hero-overlay-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* Slide Dots */
.slide-dots {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    transform: scale(1.1);
}

/* Clean up old styles */
.slider-controls,
.slide-count {
    display: none;
}

/* ================================
   ENTRANCE ANIMATIONS
================================ */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.hero-animate-1 {
    animation: heroFadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-animate-2 {
    animation: heroFadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-animate-3 {
    animation: heroFadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

/* ================================
   CARD COMPONENTS
================================ */
/* Premium Card Interactions */
.service-card,
.testimonial-card,
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover,
.product-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* 3D Tilt Utility */
.tilt-element {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Service Cards */
.service-card {
    min-width: 320px;
    max-width: 320px;
    height: 350px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid #9cff6f;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 15px;
    color: #6b6b6b;
    margin-top: 12px;
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--card-shadow);
}

.product-image {
    height: 180px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border: 1px solid #B8D344;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: transform 0.3s ease;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: #4D4D4D;
    margin-bottom: 40px;
}

.testimonial-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.testimonial-logo {
    font-size: 32px;
    font-weight: 800;
    color: #4D4D4D;
    letter-spacing: -0.02em;
}

.testimonial-author {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.author-label {
    font-weight: 700;
    font-size: 18px;
    color: #4D4D4D;
}

.author-company {
    font-size: 14px;
    color: var(--text-gray);
}

/* Clientele Components */
.clientele-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0;
}

.clientele-box {
    margin-top: 32px;
    padding: 32px 40px;
    border-radius: 24px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.9),
            rgba(245, 248, 250, 0.9));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Clientele Section (Home Page) */
.clientele-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    overflow: hidden;
}

.clientele-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.clientele-section-title {
    font-size: 72px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.clientele-section-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Marquee Container */
.clientele-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Fade edges for premium look */
.clientele-marquee::before,
.clientele-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clientele-marquee::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.clientele-marquee::after {
    right: 0;
    background: linear-gradient(to left, #e2e8f0 0%, transparent 100%);
}

/* Marquee Track - Horizontal Row */
.clientele-marquee-track {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: max-content;
    animation: clientele-scroll 35s linear infinite;
}

/* Pause on hover */
.clientele-marquee:hover .clientele-marquee-track {
    animation-play-state: paused;
}

/* Infinite scroll keyframes */
@keyframes clientele-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Clientele Item - Horizontal Marquee Style */
.clientele-item {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    padding: 24px 40px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Hover effect - subtle lift */
.clientele-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    cursor: default;
}

/* Cursor Tooltip for Clientele */
.clientele-cursor-tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(30, 30, 30, 0.92);
    color: #f5f5f5;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 9999;
    white-space: nowrap;
}

.clientele-cursor-tooltip.visible {
    opacity: 1;
}

/* Services Title */
.services-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Why AMW Title */
.why-amw-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    color: #2f2f2f;
    margin-bottom: 24px;
}

/* Global Operations Title */
.global-ops-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.global-ops-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* ================================
   BUTTON COMPONENTS
================================ */
.btn-read-more {
    width: 100%;
    height: 64px;
    background-color: #80FF72;
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    text-align: center;
}

.btn-read-more:hover {
    background-color: #70e663;
}

.btn-send {
    width: 100%;
    background-color: #B8D344;
    color: #000;
    font-size: 24px;
    font-weight: 800;
    padding: 16px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-send:hover {
    opacity: 0.9;
}

.reset-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.close-view-btn {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.close-view-btn:hover {
    background: #eee;
}

/* ================================
   MAP COMPONENTS
================================ */
.map-container {
    margin-top: 60px;
    position: relative;
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 24px;
    border: 2px solid #e0e7ff;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.legend-dot {
    width: 10px;
    height: 10px;
    background: #7CFF4E;
    border-radius: 50%;
}

.world-map {
    width: 100%;
    height: auto;
    max-height: 450px;
}

.country {
    fill: #e2e6ef;
    stroke: #cbd3e1;
    stroke-width: 0.5;
    transition: fill 0.3s ease, transform 0.4s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.country.active,
#IN,
#AE,
#EG {
    fill: #8BFF5A;
    cursor: pointer;
    transition: fill 0.3s ease, transform 0.4s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.country.active:hover,
#IN:hover,
#AE:hover,
#EG:hover {
    fill: #66e63f;
}

.country.zoomed,
#IN.zoomed,
#AE.zoomed,
#EG.zoomed {
    transform: scale(1.25);
    fill: #4CAF50;
}

/* Info Panel */
.info-panel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(40px);
    width: 320px;
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 10;
}

.info-panel.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.info-pin {
    font-size: 24px;
    color: #4CAF50;
}

.info-content p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.info-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.map-hint {
    text-align: center;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
}

.map-hint span {
    display: inline-block;
    background: #f8f9fa;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

/* ================================
   FOOTER COMPONENTS
================================ */

/* Footer Column Titles - Bold and Clear */
.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #fff;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    cursor: default;
    position: relative;
}

/* Backward compatibility with old h4 styling */
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #fff;
}

/* Footer Links List */
.footer-col-links,
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links li,
.footer-col li {
    margin-bottom: 12px;
}

/* Footer Link Styles */
.footer-col-links a,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-col-links a:hover,
.footer-col a:hover {
    color: #B8D344;
    padding-left: 4px;
}

/* Social Icons */
.social-icons a {
    color: #fff;
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
}

.social-icons a:hover {
    color: #B8D344;
    transform: translateY(-2px);
}

/* Contact Form Label */
.contact-form-footer label {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

/* Contact Form Inputs */
.contact-form-footer input,
.contact-form-footer textarea {
    background-color: #D9D9D9;
    border: none;
    border-radius: 20px;
    padding: 15px 24px;
    font-size: 16px;
    color: #000;
    width: 100%;
}

.contact-form-footer textarea {
    height: 160px;
    resize: none;
}

/* Mobile Accordion Indicator (hidden on desktop) */
.footer-col-title::after {
    content: '';
    display: none;
}

/* ================================
   DESKTOP NAVBAR MATCH (FIGMA)
================================ */
@media (min-width: 1024px) {
    .header-pill {
        background: #FFFFFF !important;
        backdrop-filter: none !important;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05) !important;
        border: none !important;
        border-radius: 100px !important;
        padding: 14px 40px !important;
        margin-left: auto;
        width: auto;
        min-width: 880px;
        /* Significantly wider than height */
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        flex: 1;
        display: flex !important;
        justify-content: center;
    }

    .nav-links {
        display: flex !important;
        gap: 48px !important;
        /* Evenly spaced inside the pill */
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-links li a {
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
    }

    .header-icons {
        display: flex !important;
        align-items: center;
        gap: 24px !important;
        margin-left: 40px;
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Ensure search icon is visible and consistent */
    .icon-btn svg {
        width: 20px;
        height: 20px;
        stroke: var(--text-dark);
    }
}