* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('https://bilsan-trading.ps/images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Mobile background positioning */
@media (max-width: 768px) {
    body {
        background-position: right center;
        background-attachment: scroll;
    }
}

.container {
    text-align: center;
    padding: 20px;
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.main-logo {
    margin-bottom: 50px;
}

.main-logo img {
    width: clamp(250px, 45vw, 450px);
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.brands-section {
    margin: 60px 0;
}

.brands-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 50px;
    direction: ltr; /* Force LTR for brands to match original design */
}

.brand-logo {
    background: none;
    border: none;
    border-radius: 0;
  /*   padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 25px);*/
    height: clamp(80px, 14vw, 120px);
    min-width: clamp(120px, 20vw, 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* Add separator as border instead of ::after */
.brand-logo:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.6);
  /*  margin-right: clamp(15px, 3vw, 25px);
     Make border shorter by adding top and bottom margins to the border area */
    background-clip: content-box;
    border-image: linear-gradient(
        to bottom,
        transparent 25%,
        rgba(255, 255, 255, 0.6) 25%,
        rgba(255, 255, 255, 0.6) 75%,
        transparent 75%
    ) 1;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.coming-soon {
    margin: 50px 0;
    position: relative;
}

.coming-soon img {
    width: clamp(300px, 55vw, 550px);
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.footer {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    gap: clamp(12px, 2.5vw, 18px);
    margin-left: 20px;
}

.social-icon {
    width: clamp(45px, 8vw, 55px);
    height: clamp(45px, 8vw, 55px);
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.15),
        inset 0 2px 0 rgba(255,255,255,0.3);
    padding: clamp(10px, 2vw, 14px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.2),
        inset 0 2px 0 rgba(255,255,255,0.4);
}

/* Mobile optimization for social icons */
@media (max-width: 768px) {
    .social-icon {
        background: rgba(255, 255, 255, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: none;
    }
    
    .social-icon:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.company-name img {
    width: clamp(220px, 40vw, 380px);
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        background-position: right center;
        background-attachment: scroll;
    }
    
    .container {
        padding: 15px;
    }
    
    .brands-container {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .brand-logo {
        min-width: 80px;
        height: 60px;
        padding: 8px;
        border-right: none !important;
        margin-right: 0 !important;
    }
    
    .footer {
        flex-direction: column;
        gap: 25px;
    }
    
    .social-icons {
        margin-left: 0;
    }
    
    .social-icon {
        background: rgba(255, 255, 255, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: none;
    }
    
    .social-icon:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .brands-container {
        justify-content: center;
        gap: 5px;
    }
    
    .brand-logo {
        min-width: 100px;
        height: 100px;
        padding: 2px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Stagger the animation for brands */
.brand-logo:nth-child(1) img { animation-delay: 0.2s; }
.brand-logo:nth-child(2) img { animation-delay: 0.4s; }
.brand-logo:nth-child(3) img { animation-delay: 0.6s; }
.brand-logo:nth-child(4) img { animation-delay: 0.8s; }
.brand-logo:nth-child(5) img { animation-delay: 1.0s; }