/* ============================================
   ALL COR - COMPANY WEBSITE STYLES
   Modern gradient background, no logos
   Mobile-first, responsive design
   Complete version with responsive flags
============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    color: #E5E5E5;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Modern Gradient Background - No logos or videos */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #0a0a2a, #050510, #000000);
    z-index: -2;
}

/* Animated particle effect for modern look */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(212,175,55,0.3) 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 85% 45%, rgba(212,175,55,0.2) 1px, transparent 1px),
        radial-gradient(1px 1px at 40% 80%, rgba(212,175,55,0.25) 1px, transparent 1px),
        radial-gradient(2px 2px at 70% 15%, rgba(212,175,55,0.15) 1px, transparent 1px),
        radial-gradient(1px 1px at 95% 70%, rgba(212,175,55,0.2) 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 5% 60%, rgba(212,175,55,0.2) 1px, transparent 1px),
        radial-gradient(1px 1px at 55% 95%, rgba(212,175,55,0.3) 1px, transparent 1px),
        radial-gradient(2px 2px at 30% 10%, rgba(212,175,55,0.15) 1px, transparent 1px);
    background-size: 300px 300px, 200px 200px, 250px 250px, 180px 180px, 220px 220px, 280px 280px, 200px 200px, 150px 150px;
    background-repeat: repeat;
    opacity: 0.6;
    z-index: -1;
    animation: floatParticles 60s linear infinite;
}

@keyframes floatParticles {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 300px 300px, -200px 200px, 250px -250px, -180px -180px, 220px -220px, -280px 280px, 200px -200px, -150px 150px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 40px auto;
    padding: 30px 20px;
    text-align: center;
    background: rgba(10,10,20,0.55);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    border: 1px solid rgba(212,175,55,0.25);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Logo */
.logo-wrapper {
    margin-bottom: 24px;
}

.logo {
    max-width: 280px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

/* Tagline with Gold */
.tagline {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #F5F5F5;
}

.gold {
    display: inline-block;
}

.gold-text {
    color: #D4AF37;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(212,175,55,0.4);
    position: relative;
    display: inline-block;
}

/* Short Description */
.description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #CCCCCC;
    padding: 0 12px;
}

/* Section Titles */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #D4AF37;
    border-radius: 2px;
}

/* ============================================
   ABOUT US SECTIONS
============================================ */

/* About Section */
.about-section {
    margin: 40px auto;
    max-width: 800px;
}

.about-text {
    text-align: left;
    color: #CCCCCC;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 20px;
}

/* What We Do - Service Grid */
.what-we-do {
    margin: 50px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.5);
    background: rgba(255,255,255,0.06);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #BBBBBB;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Leadership Detailed */
.leadership-detailed {
    margin: 50px 0;
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.leader-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    width: 280px;
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.5);
}

/* Leader Photos - Circular Profile Pictures */
.leader-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 3px solid #D4AF37;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.leader-card:hover .leader-photo {
    transform: scale(1.05);
    border-color: #E5C158;
    box-shadow: 0 12px 28px rgba(212,175,55,0.3);
}

/* Hide the old avatar initials */
.leader-avatar {
    display: none;
}

.leader-card h3 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.leader-title {
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.leader-bio {
    color: #AAAAAA;
    font-size: 0.85rem;
    line-height: 1.5;
}

.leadership-note {
    background: rgba(212,175,55,0.08);
    border-left: 3px solid #D4AF37;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: left;
    margin-top: 20px;
}

.leadership-note p {
    color: #CCCCCC;
    font-size: 0.9rem;
    margin: 0;
}

.leadership-note strong {
    color: #D4AF37;
}

/* Global Presence - Responsive Flags */
.global-presence-detailed {
    margin: 50px 0;
}

.footprint-intro {
    max-width: 700px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.footprint-intro p {
    color: #BBBBBB;
    font-size: 0.95rem;
    line-height: 1.6;
}

.countries-detailed {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.country-item {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    min-width: 130px;
    transition: all 0.3s ease;
}

.country-item:hover {
    background: rgba(212,175,55,0.1);
    transform: translateY(-3px);
}

/* Flag Styles - Responsive: PNG on desktop, Emoji on mobile */
.country-flag-img {
    display: none;
}

.country-flag {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Desktop/Laptop: Show PNG images, hide emojis */
@media (min-width: 769px) {
    .country-flag-img {
        display: block;
        width: 48px;
        height: 36px;
        object-fit: cover;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .country-flag {
        display: none;
    }
}

/* Tablet portrait - keep emoji or adjust PNG size */
@media (min-width: 769px) and (max-width: 1024px) {
    .country-flag-img {
        width: 42px;
        height: 32px;
    }
}

.country-name {
    font-size: 1rem;
    font-weight: 600;
    color: #D4AF37;
    display: block;
    letter-spacing: 0.5px;
}

/* Philosophy Section */
.philosophy {
    margin: 50px 0 40px;
}

.philosophy-quote {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #EAEAEA;
    margin-bottom: 24px;
    padding: 0 20px;
}

.philosophy-text {
    color: #BBBBBB;
    line-height: 1.7;
    padding: 0 10px;
}

/* Contact */
.contact {
    margin: 35px 0 25px;
}

.contact-link {
    color: #D4AF37;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px dashed rgba(212,175,55,0.5);
    transition: all 0.2s;
}

.contact-link:hover {
    border-bottom-color: #D4AF37;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    margin-top: 50px;
    font-size: 0.75rem;
    color: #777;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px 16px;
        margin: 20px auto;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .leaders-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .leader-card {
        width: 100%;
        max-width: 320px;
    }
    
    .leader-photo {
        width: 80px;
        height: 80px;
    }
    
    .countries-detailed {
        gap: 12px;
    }
    
    .country-item {
        padding: 14px 18px;
        min-width: 100px;
    }
    
    .country-flag {
        font-size: 2rem;
    }
    
    .country-name {
        font-size: 0.85rem;
    }
    
    .philosophy-quote {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 20px 16px;
    }
    
    .footprint-intro p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 85%;
    }
    
    .countries-detailed {
        gap: 10px;
    }
    
    .country-item {
        padding: 10px 14px;
        min-width: 80px;
    }
    
    .country-flag {
        font-size: 1.8rem;
    }
    
    .country-name {
        font-size: 0.75rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .leader-photo {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .leader-card {
        padding: 20px 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(5,5,15,0.65);
    }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.container > *:nth-child(1) { animation-delay: 0.05s; }
.container > *:nth-child(2) { animation-delay: 0.1s; }
.container > *:nth-child(3) { animation-delay: 0.15s; }
.container > *:nth-child(4) { animation-delay: 0.2s; }
.container > *:nth-child(5) { animation-delay: 0.25s; }
.container > *:nth-child(6) { animation-delay: 0.3s; }
.container > *:nth-child(7) { animation-delay: 0.35s; }
.container > *:nth-child(8) { animation-delay: 0.4s; }
.container > *:nth-child(9) { animation-delay: 0.45s; }
.container > *:nth-child(10) { animation-delay: 0.5s; }
.container > *:nth-child(11) { animation-delay: 0.55s; }