/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #070D19;
    --color-bg-card: #0F1A30;
    --color-bg-card-alt: #17243D;
    
    --color-gold: #F1B24A;
    --color-gold-hover: #D89A32;
    --color-gold-light: rgba(241, 178, 74, 0.15);
    --color-gold-glow: rgba(241, 178, 74, 0.45);
    
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #20BA56;
    --color-wechat: #07C160;
    --color-email: #4A90E2;
    --color-facebook: #1877F2;
    --color-linkedin: #0A66C2;
    
    --color-text-primary: #F8FAFC;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    
    --color-border: rgba(241, 178, 74, 0.12);
    --color-border-glow: rgba(241, 178, 74, 0.3);
    
    /* Layout & Transitions */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(2, 6, 12, 0.7);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

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

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-card-alt);
    border-radius: 4px;
    border: 1px solid var(--color-border);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 14px var(--color-gold-light);
}
.btn-gold:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-gold-glow);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    background-color: transparent;
    box-shadow: 0 4px 14px rgba(241, 178, 74, 0.05);
}
.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-gold-glow);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
}

.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 16px auto 0 auto;
    border-radius: 2px;
}

.text-gold {
    color: var(--color-gold);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 13, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header-scrolled {
    padding: 8px 0;
    background-color: rgba(7, 13, 25, 0.95);
    box-shadow: var(--shadow-premium);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.header-scrolled .header-container {
    height: 70px;
}

/* Logo Design */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background-color: var(--color-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(241, 178, 74, 0.3);
}

.logo-v {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-bg-dark);
    line-height: 1;
}

.logo-globe {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-dark);
    background: #5A8DFE;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--color-text-primary);
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--color-gold);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    color: var(--color-text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    background-color: #070D19;
    display: flex;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-image {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('assets/cargo_ship_hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform: scale(1.08) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    transition: transform 0.2s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(7, 13, 25, 0.9) 0%,
        rgba(7, 13, 25, 0.75) 50%,
        rgba(7, 13, 25, 0.4) 100%
    );
    z-index: 1;
}

.hero-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    padding: 40px 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    border-left: 3px solid var(--color-gold);
    padding-left: 16px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.animate-glow {
    text-shadow: 0 0 15px rgba(241, 178, 74, 0.4);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-tagline {
    font-family: var(--font-heading);
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 8px;
    color: var(--color-text-primary);
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-section {
    background-color: var(--color-bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-gold);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: 0 20px 40px -15px rgba(241, 178, 74, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--color-gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-gold);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    transform: rotateY(360deg);
    transition: transform 0.6s ease;
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.feature-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card-list li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 20px;
}

.feature-card-list li::before {
    content: '•';
    color: var(--color-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1.2rem;
}

/* ==========================================================================
   PRODUCTS GALLERY MODAL & GRID
   ========================================================================== */
.modal-card-large {
    max-width: 900px;
    width: 95%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px 10px 10px 0;
}

/* Custom Scrollbar for Grid */
.products-grid::-webkit-scrollbar {
    width: 6px;
}
.products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.products-grid::-webkit-scrollbar-thumb {
    background: var(--color-border-glow);
    border-radius: 3px;
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 60vh;
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-height: 55vh;
    }
}

.modal-product-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(241, 178, 74, 0.15);
}

.modal-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.modal-product-card:hover .modal-product-img {
    transform: scale(1.08);
}

.modal-product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 13, 25, 0.95) 0%, rgba(7, 13, 25, 0.5) 50%, rgba(7, 13, 25, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 16px;
    text-align: left;
    transition: var(--transition-smooth);
}

.modal-product-card:hover .modal-product-overlay {
    background: linear-gradient(to top, rgba(7, 13, 25, 0.98) 0%, rgba(7, 13, 25, 0.6) 55%, rgba(7, 13, 25, 0.2) 100%);
}

.modal-product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-product-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.modal-product-card:hover .modal-product-desc {
    color: var(--color-text-primary);
    opacity: 1;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-section {
    background-color: #0A1222;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    padding-top: 20px;
}

.steps-progress-bar {
    position: absolute;
    top: 55px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--color-border) 0,
        var(--color-border) 8px,
        transparent 8px,
        transparent 16px
    );
    z-index: 1;
}

.step-card {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-badge {
    width: 72px;
    height: 72px;
    background-color: var(--color-bg-card-alt);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.step-badge i {
    width: 28px;
    height: 28px;
}

.step-card:hover .step-badge {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-gold);
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--color-gold-glow);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 220px;
}

/* ==========================================================================
   OUR PRESENCE SECTION
   ========================================================================== */
.presence-section {
    background-color: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* Premium Map Overlay Graphic via Grid */
.presence-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(241, 178, 74, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.presence-lead {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-top: 16px;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.office-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow-premium);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.office-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: 0 20px 40px -15px rgba(241, 178, 74, 0.15);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.flag-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hk-flag {
    background-color: #E60012; /* Fallback flat color */
    background-image: radial-gradient(circle, #fff 2px, transparent 3px),
                      linear-gradient(45deg, #E60012 50%, #E60012 50%);
    position: relative;
}
.hk-flag::after {
    content: '★';
    color: #FFF;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cn-flag {
    background-color: #DE2910;
    position: relative;
}
.cn-flag::after {
    content: '★';
    color: #FFDE00;
    font-size: 11px;
    position: absolute;
    top: 30%;
    left: 30%;
}

.office-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.office-address {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   CONNECT WITH US SECTION
   ========================================================================== */
.connect-section {
    background-color: #0A1222;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-premium);
    transform-style: preserve-3d;
    will-change: transform;
}

.hover-card {
    cursor: pointer;
}
.hover-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: 0 15px 30px -10px rgba(241, 178, 74, 0.15);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.3rem;
}

.contact-card-icon i,
.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.wechat-color {
    background-color: rgba(7, 193, 96, 0.15);
    color: var(--color-wechat);
}
.whatsapp-color {
    background-color: rgba(37, 211, 102, 0.15);
    color: var(--color-whatsapp);
}
.email-color {
    background-color: rgba(74, 144, 226, 0.15);
    color: var(--color-email);
}
.facebook-color {
    background-color: rgba(24, 119, 242, 0.15);
    color: var(--color-facebook);
}
.linkedin-color {
    background-color: rgba(10, 102, 194, 0.15);
    color: var(--color-linkedin);
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-card-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2px;
}

.card-arrow {
    position: absolute;
    right: 24px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    width: 20px;
    height: 20px;
}

.contact-card:hover .card-arrow {
    color: var(--color-gold);
    transform: translate(2px, -2px);
}

/* QR code column styling */
.qr-and-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    max-width: 340px;
    width: 100%;
}

.qr-box {
    background-color: #FFFFFF;
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.qr-image {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.qr-caption {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ==========================================================================
   HIGHLIGHTS BAR
   ========================================================================== */
.highlights-section {
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 60px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon-box {
    color: var(--color-gold);
    background-color: var(--color-gold-light);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon-box i {
    width: 24px;
    height: 24px;
}

.highlight-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.highlight-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   CTA BANNER SECTION
   ========================================================================== */
.cta-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background-image: url('assets/cargo_ship_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.cta-banner-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.cta-banner-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: 40px;
}

.cta-banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #040810;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(10, 25, 47, 0.04);
    border: 1px solid rgba(10, 25, 47, 0.08);
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}
.footer-social-icon:hover {
    color: var(--color-bg-card);
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(183, 110, 121, 0.25);
}
.footer-social-icon i,
.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   INTERACTIVE FORM MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-gold);
    background-color: var(--color-gold-light);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-header {
    margin-bottom: 28px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.modal-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-top: 6px;
}

/* Form Styling */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--color-bg-card-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 12px var(--color-gold-glow);
    background-color: rgba(23, 36, 61, 0.7);
}

.form-group select option {
    background-color: var(--color-bg-card-alt);
    color: #FFFFFF;
}

.form-group textarea {
    resize: vertical;
}

/* Success State Screen */
.form-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 0;
}

.success-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(7, 193, 96, 0.15);
    color: var(--color-wechat);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon-box i {
    width: 44px;
    height: 44px;
}

.form-success-state h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.form-success-state p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 400px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.25rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .steps-progress-bar {
        display: none; /* Hide progress bar connecting line on smaller devices */
    }
    
    .connect-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .qr-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Header toggle */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-dark);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .btn-header-cta {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Hero Content Adjustment */
    .hero-section {
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Grid Adjustments */
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner-title {
        font-size: 2.25rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .modal-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   ADMIN PORTAL LINKS
   ========================================================================== */
.nav-admin-link {
    border: 1px dashed var(--color-border-glow);
    border-radius: 6px;
    padding: 6px 12px !important;
    margin-left: 8px;
    background-color: var(--color-gold-light);
}

.nav-admin-link:hover {
    border-color: var(--color-gold);
    background-color: rgba(241, 178, 74, 0.2);
}

.footer-admin-link {
    color: var(--color-text-muted);
    margin-left: 6px;
    transition: var(--transition-smooth);
    text-decoration: underline;
}

.footer-admin-link:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   PRODUCT IMAGE SLIDER SECTION
   ========================================================================== */
.product-slider-section {
    background-color: #070D19; /* Matches dark background color */
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
}

.slider-wrapper {
    position: relative;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background-color: #0f172a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(241, 178, 74, 0.08);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f172a;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    background-color: var(--color-bg-card);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(15, 26, 48, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--color-gold);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--color-gold-glow);
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 300px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    .prev-arrow { left: 10px; }
    .next-arrow { right: 10px; }
}

/* ==========================================================================
   INTERACTIVE 3D GLOBE STYLES
   ========================================================================== */
.presence-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.presence-offices .offices-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
}

.presence-offices .office-card {
    margin: 0;
    width: 100%;
}

.presence-globe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
}

.globe-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(241, 178, 74, 0.05) 0%, rgba(15, 26, 48, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(241, 178, 74, 0.05);
}

#presence-3d-globe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    display: block;
    cursor: grab;
    touch-action: none;
}

#presence-3d-globe:active {
    cursor: grabbing;
}

.globe-drag-hint {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 26, 48, 0.6);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    pointer-events: none;
    user-select: none;
    animation: pulseHint 2s infinite ease-in-out;
}

.globe-drag-hint i {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    color: var(--color-gold);
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 992px) {
    .presence-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .presence-offices .offices-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .presence-globe-container {
        order: -1; /* Place the interactive globe on top on tablets/mobiles */
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .presence-offices .offices-grid {
        grid-template-columns: 1fr;
    }
    .globe-canvas-wrapper {
        max-width: 350px;
    }
}

/* ==========================================================================
   GLOBE LABELS OVERLAY (HTML/CSS Overlay with Collision Avoidance)
   ========================================================================== */
.globe-labels-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.globe-label {
    position: absolute;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease;
    opacity: 0;
    background: rgba(8, 14, 28, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(241, 178, 74, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
}

.globe-label.hub {
    font-size: 10px;
    color: #FFFFFF;
    border-color: rgba(241, 178, 74, 0.85);
    background: rgba(15, 26, 48, 0.95);
    box-shadow: 0 4px 16px rgba(241, 178, 74, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   LIVE PRODUCT SOURCING SEARCH BAR
   ========================================================================== */
.live-sourcing-container {
    margin-top: 35px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.live-sourcing-container:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.live-sourcing-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.live-sourcing-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-gold);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 4px var(--color-gold);
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 10px var(--color-gold);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 4px var(--color-gold);
    }
}

.live-sourcing-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-sourcing-search-box:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(241, 178, 74, 0.2);
    background: rgba(0, 0, 0, 0.35);
}

.live-sourcing-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.live-sourcing-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-submit-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    color: var(--color-gold);
    transform: scale(1.05);
}

.search-submit-btn svg {
    width: 20px;
    height: 20px;
}

.live-sourcing-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-sourcing {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    font-family: inherit;
    text-transform: uppercase;
}

/* Specific Pill Buttons Hover Styling */
.btn-sourcing.btn-alibaba:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: #ff6a00;
    color: #ff8e3c;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.25);
    transform: translateY(-2px);
}

.btn-sourcing.btn-1688:hover {
    background: rgba(255, 34, 34, 0.1);
    border-color: #ff2222;
    color: #ff5555;
    box-shadow: 0 0 15px rgba(255, 34, 34, 0.25);
    transform: translateY(-2px);
}

.btn-sourcing.btn-made-in-china:hover {
    background: rgba(24, 144, 255, 0.1);
    border-color: #1890ff;
    color: #40a9ff;
    box-shadow: 0 0 15px rgba(24, 144, 255, 0.25);
    transform: translateY(-2px);
}

.btn-sourcing:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 575px) {
    .live-sourcing-container {
        margin-top: 30px;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .live-sourcing-search-box {
        width: 100%;
    }
    .live-sourcing-title {
        justify-content: center;
    }
    .live-sourcing-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .btn-sourcing {
        width: 100%;
    }
}
