/* ===================================
   ENHANCED STYLES - Dynamic Hero & Global Presence
   Cinematic • 3D Effects • Smooth Animations
   =================================== */

/* ===================================
   Dark Mode Support
   =================================== */
body.dark-mode {
    --white: #1e293b;
    --off-white: #0f172a;
    --light-gray: #334155;
    --gray: #64748b;
    --mid-gray: #94a3b8;
    --dark-gray: #cbd5e1;
    --darker-gray: #e2e8f0;
    --black: #ffffff;
}

.theme-toggle {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

.theme-toggle-new {
    background: linear-gradient(135deg, var(--metallic-gold), var(--accent-gold-dark));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 155, 71, 0.3);
}

.theme-toggle-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 155, 71, 0.5);
    background: linear-gradient(135deg, var(--accent-gold-light), var(--metallic-gold));
}

.theme-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle-new .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle-new .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle-new .moon-icon {
    display: block;
}

body.dark-mode .theme-toggle-new {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    border-color: rgba(14, 165, 233, 0.5);
}

body.dark-mode .theme-toggle-new:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

body.dark-mode .page-title {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .page-subtitle {
    color: #bae6fd;
}

/* Dark Mode Paragraph Text */
body.dark-mode p {
    color: var(--primary-blue) !important;
}

body.dark-mode .presence-info h2 {
    color: var(--white);
}

body.dark-mode .presence-stats-list li {
    background: var(--secondary-navy);
    color: var(--white);
}

/* Dark Mode Footer */
body.dark-mode .footer {
    background: #0c1729;
    border-top: 2px solid var(--primary-blue);
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 {
    color: var(--primary-blue);
}

body.dark-mode .footer-section p,
body.dark-mode .footer-section ul li a {
    color: #94a3b8 !important;
}

body.dark-mode .footer-bottom p {
    color: #64748b !important;
}

body.dark-mode .footer-bottom {
    border-top-color: rgba(14, 165, 233, 0.2);
    color: #64748b;
}

/* ===================================
   Import Process Section Background
   =================================== */
.import-process-section {
    position: relative;
    background-color: var(--off-white);
    overflow: hidden;
}

.import-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.85)),
        url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?w=800&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

.import-process-section .container {
    position: relative;
    z-index: 1;
}

body.dark-mode .import-process-section::before {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?w=800&q=80');
}

/* ===================================
   Enhanced Hero Section
   =================================== */
.hero-enhanced {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.layer-1 {
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.layer-2 {
    background: radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.layer-3 {
    background: radial-gradient(circle at 50% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.floating-container,
.floating-globe {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-globe {
    top: 30%;
    right: 10%;
    font-size: 4rem;
    animation: floatRotate 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Hero Content */
.hero-content-enhanced {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}


.typewriter-text {
    opacity: 0;
    display: inline-block;
    border-right: 3px solid var(--secondary-blue);
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-logo-badge {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.logo-icon-large {
    font-size: 3.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-enhanced {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    text-shadow: 3px 5px 10px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.5);
    letter-spacing: 1px;
    color: #ffffff;
    position: relative;
}

.hero-title-enhanced .title-line {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(14, 165, 233, 0.4));
}

.title-line {
    display: inline-block;
    animation: slideInUp 1s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Text Rotation */
.hero-subtitle-animated {
    height: 60px;
    margin-bottom: 1rem;
    position: relative;
}

.animated-word {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: var(--font-weight-light);
    color: var(--gold);
    opacity: 0;
    transition: opacity 1s ease;
}

.animated-word.active {
    opacity: 1;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: var(--font-weight-normal);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Stats */
.hero-stats-enhanced {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 4rem 0 3rem;
    flex-wrap: wrap;
}

.stat-item-enhanced {
    text-align: center;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
}

.stat-item-enhanced:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.stat-item-enhanced .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-item-enhanced .stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item-enhanced .stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* Slideshow Indicators */
.slideshow-indicators {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

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

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--gold);
    width: 40px;
    border-radius: 10px;
}

/* Enhanced Scroll Indicator */
.scroll-indicator-enhanced {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    margin: 0 auto 1rem;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

.scroll-indicator-enhanced p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--font-weight-medium);
}

/* ===================================
   Enhanced Business Focus Cards
   =================================== */
.focus-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.focus-icon {
    position: relative;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.focus-card:hover .icon-glow {
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.focus-card:hover .card-shine {
    transform: translateX(100%);
}

/* ===================================
   Enhanced Global Presence Section
   =================================== */
.global-presence-enhanced {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.presence-background-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.presence-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.presence-bg.active {
    opacity: 1;
}

.presence-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
}

.global-presence-enhanced .container {
    position: relative;
    z-index: 10;
}

/* Interactive World Map */
.world-map-interactive {
    margin: 4rem 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Animated Markers */
.pulse-marker {
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulseGlow 2s ease-in-out infinite;
}

.pulse-marker:hover {
    r: 12;
    fill: #f4e4b8;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 10px #d4af37);
    }
}

.marker-ring {
    animation: ringExpand 2s ease-out infinite;
}

@keyframes ringExpand {
    0% {
        r: 15;
        opacity: 0.5;
    }
    100% {
        r: 25;
        opacity: 0;
    }
}

/* Animated Trade Routes */
.route-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 4s ease-in-out infinite;
    opacity: 0.6;
}

.route-1 { animation-delay: 0s; }
.route-2 { animation-delay: 0.8s; }
.route-3 { animation-delay: 1.6s; }
.route-4 { animation-delay: 2.4s; }
.route-5 { animation-delay: 3.2s; }

@keyframes drawPath {
    0%, 100% {
        stroke-dashoffset: 1000;
    }
    50% {
        stroke-dashoffset: 0;
    }
}

/* Moving Ships */
.ship-icon {
    animation: shipMove 10s linear infinite;
    opacity: 0.8;
}

.ship-1 {
    animation-duration: 12s;
}

.ship-2 {
    animation-duration: 15s;
    animation-delay: 2s;
}

.ship-3 {
    animation-duration: 18s;
    animation-delay: 4s;
}

@keyframes shipMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Location Tooltip */
.location-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -120%);
    transition: opacity 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid var(--gold);
}

.location-tooltip.active {
    opacity: 1;
}

/* Regional Stats Grid */
.regional-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.regional-stat {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.regional-stat:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.region-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.regional-stat h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gold);
    font-weight: var(--font-weight-semibold);
}

.regional-stat p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    animation: fillBar 2s ease-out forwards;
    transform-origin: left;
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ===================================
   Enhanced Project Cards
   =================================== */
.project-card-enhanced {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.project-card-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card-enhanced:hover::before {
    opacity: 1;
}

.project-card-enhanced:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.project-card-enhanced .project-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.project-card-enhanced .project-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gold-light);
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   Responsive Design - Enhanced
   =================================== */
@media (max-width: 968px) {
    .hero-title-enhanced {
        font-size: 3rem;
    }

    .animated-word {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-stats-enhanced {
        gap: 2rem;
    }

    .stat-item-enhanced {
        padding: 1.5rem 2rem;
        min-width: 150px;
    }

    .stat-divider {
        display: none;
    }

    .floating-container,
    .floating-globe {
        font-size: 2rem;
    }

    .theme-toggle {
        top: 80px;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .global-presence-enhanced, .presence-info, .presence-stats-list li, .presence-info h2 {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
    .stat-item-enhanced {
        padding: 0.75rem !important;
        min-width: 100% !important;
    }
    .hero-title-enhanced {
        font-size: 1.5rem !important;
        word-break: break-word !important;
        padding: 0 10px !important;
    }
    .hero-tagline {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }
}
