/* Company Website Specific Styles */

/* Custom animations for company website */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero section enhancements */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Feature card hover effects */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Team member card styles */
.team-card {
    transition: all 0.3s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-photo {
    transition: all 0.3s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

/* Contact form enhancements */
.contact-form input:focus,
.contact-form textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Mobile spacing optimizations */
    .hero-gradient {
        padding-top: 6rem !important; /* pt-24 instead of pt-32 */
        padding-bottom: 4rem !important; /* pb-16 instead of pb-20 */
    }
    
    /* Mobile text adjustments */
    h1 {
        font-size: 2rem !important; /* text-3xl instead of text-4xl */
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 2rem !important; /* text-3xl instead of text-4xl */
        line-height: 1.2 !important;
    }
    
    /* Mobile padding adjustments */
    .max-w-7xl {
        padding-left: 1rem !important; /* px-4 */
        padding-right: 1rem !important;
    }
    
    /* Mobile grid adjustments */
    .grid-cols-1 {
        gap: 2rem !important; /* gap-8 instead of gap-12 */
    }
    
    /* Mobile button adjustments */
    .btn-pill-large {
        padding: 0.75rem 1.5rem !important; /* py-3 px-6 instead of py-3 px-6 */
        font-size: 1rem !important; /* text-base instead of text-lg */
    }
    
    /* Mobile card padding */
    .bg-gray-800 {
        padding: 1.5rem !important; /* p-6 instead of p-8 */
    }
    
    /* Mobile testimonials */
    .testimonial-slide {
        padding-left: 1rem !important; /* px-4 */
        padding-right: 1rem !important;
    }
    
    /* Mobile country flags */
    .grid-cols-3 {
        gap: 1rem !important; /* gap-4 instead of gap-4 */
    }
    
    /* Mobile image carousel */
    .carousel-image {
        height: 16rem !important; /* h-64 instead of h-96 */
    }
    
    /* Mobile header fixes */
    .main-header {
        height: 5rem !important; /* h-20 */
    }
    
    .main-header .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Ensure mobile menu button is visible and properly sized */
    #mobile-menu-button {
        display: flex !important;
        width: 2.5rem !important; /* w-10 */
        height: 2.5rem !important; /* h-10 */
        flex-shrink: 0 !important;
    }
    
    /* Hide desktop elements on mobile */
    .nav-pill {
        display: none !important;
    }
    
    /* Hide desktop contact button on mobile */
    .main-header .hidden.md\\:flex {
        display: none !important;
    }
    
    /* Specifically hide the contact button container */
    .main-header div.hidden.md\\:flex.items-center.space-x-4 {
        display: none !important;
    }
    
    /* Ensure logo doesn't get cut off */
    .logo-link img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile menu panel positioning */
    #mobile-menu {
        top: 5rem !important; /* top-20 */
        z-index: 60 !important; /* Higher than header z-50 */
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(17, 24, 39, 0.95) !important; /* bg-gray-900/95 */
        backdrop-filter: blur(8px) !important;
        border-top: 1px solid rgba(55, 65, 81, 1) !important; /* border-gray-700 */
        transform: translateY(-100%) !important; /* Start hidden */
        transition: transform 0.3s ease-in-out !important;
    }
    
    /* Mobile menu when open */
    #mobile-menu.translate-y-0 {
        transform: translateY(0) !important;
    }
    
    /* Force hide contact button on mobile with maximum specificity */
    .main-header .hidden.md\\:flex.items-center.space-x-4 a.btn-pill {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide the entire contact button container */
    .main-header > div > div.hidden.md\\:flex {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced pill-shaped buttons */
.btn-pill {
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-pill:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Large pill button for hero section */
.btn-pill-large {
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-pill-large:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Force full opacity on support section images */
.bg-gray-800 img {
    opacity: 1 !important;
    filter: none !important;
}

/* Ensure no opacity interference on feature graphics */
.feature-card img,
.card-hover img {
    opacity: 1 !important;
    filter: none !important;
}

/* Country flag hover effects - override any interference */
.country-flag {
    transition: opacity 0.3s ease !important;
}

.country-flag:hover {
    opacity: 0.3 !important;
}

/* Ensure country flag images can change opacity on hover */
.group:hover .country-flag {
    opacity: 0.3 !important;
}

/* Ensure Products & Services image displays at full opacity */
.products-section img {
    opacity: 1 !important;
    filter: none !important;
}

/* Force carousel images to be larger */
.carousel-image {
    height: 24rem !important; /* 384px equivalent to h-96 */
    width: 100% !important;
    object-fit: contain !important;
}

/* Header layout fixes */
.main-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

/* Force hide contact button on ALL screen sizes initially */
.main-header .hidden.md\\:flex {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show contact button only on medium screens and up */
@media (min-width: 768px) {
    .main-header .hidden.md\\:flex {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Ensure logo is always visible and properly sized */
.logo-link img {
    display: block !important;
    max-width: 200px !important;
    height: auto !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .logo-link img {
        height: 3rem !important; /* h-12 */
        max-width: 150px !important;
    }
}

@media (min-width: 768px) {
    .logo-link img {
        height: 4rem !important; /* h-16 */
        max-width: 200px !important;
    }
}

.main-header .flex {
    min-height: 5rem; /* h-20 */
}

/* Mobile menu general styles */
#mobile-menu {
    position: fixed;
    top: 5rem; /* top-20 */
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(55, 65, 81, 1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 60;
}

#mobile-menu.translate-y-0 {
    transform: translateY(0);
}

#mobile-menu a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: #93c5fd; /* text-blue-300 */
}

/* Ensure proper mobile header layout */
@media (max-width: 767px) {
    .main-header .flex {
        justify-content: space-between !important;
    }
    
    .main-header .flex > div:first-child {
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }
    
    .main-header .flex > button:last-child {
        flex-shrink: 0;
        margin-left: 1rem;
    }
    
    /* Force hide any element with hidden md:flex on mobile */
    .hidden.md\\:flex {
        display: none !important;
    }
    
    /* Additional specificity for contact button */
    .main-header .hidden.md\\:flex.items-center.space-x-4 {
        display: none !important;
    }
}
