@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+Pro:wght@600;700;900&display=swap');

:root {
    --primary-orange: #E85D22;
    --secondary-blue: #0D3B85;
    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f1f5f9;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0 80px 0;
}

/* --------------------------------------------------
   1. HERO BANNER
-------------------------------------------------- */
.about-hero {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('https://bengalelectricalindustries.in/image/cta_bg.png') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.about-hero-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --------------------------------------------------
   2. SECTION TITLE
-------------------------------------------------- */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================================================
   BRANDS WE DEAL IN - STYLISH ZIG-ZAG FLOATING CLOUD SECTION
   ========================================================================== */

/* 2. Section Outer Container */
.brands-section {
    padding: 70px 20px;
    background-color: #f8fafc;
    overflow: hidden;
}

.brands-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Title Styling */
.section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
}

/* 4. Main Cloud Box (With Tech-Mesh Geometric Background) */
.brands-cloud-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #ffffff;
    
    /* Tech Network Mesh Background Pattern */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(226, 232, 240, 0.6) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(226, 232, 240, 0.6) 0%, transparent 20%),
        linear-gradient(135deg, rgba(241, 245, 249, 0.5) 25%, transparent 25%),
        linear-gradient(225deg, rgba(241, 245, 249, 0.5) 25%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* 5. Base Bubble Circle Styling */
.brand-bubble {
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    will-change: transform;
    flex-shrink: 0;
}

/* 6. Natural Zig-Zag Offsets (Staggered Layout) */
.brand-bubble:nth-child(odd) {
    margin-top: -22px;
}

.brand-bubble:nth-child(even) {
    margin-top: 22px;
}

.brand-bubble:nth-child(3n) {
    margin-top: -38px;
}

.brand-bubble:nth-child(4n) {
    margin-top: 32px;
}

.brand-bubble:nth-child(5n) {
    margin-top: -15px;
}

/* 7. Exact Colors */
.bubble-orange {
    background-color: #F15A24; /* Vibrant Orange */
}

.bubble-blue {
    background-color: #123066; /* Deep Navy Blue */
}

/* 8. Size Variants */
.size-sm {
    width: 65px;
    height: 65px;
}

.size-md {
    width: 85px;
    height: 85px;
}

.size-lg {
    width: 105px;
    height: 105px;
}

.size-xl {
    width: 130px;
    height: 130px;
}

/* 9. Logo Image Setup (Full Background Fit) */
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* 10. Interactive Mouse-Over / Zooming Effect */
.brand-bubble:hover {
    transform: scale(1.3) translateY(-10px) !important;
    z-index: 20;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.brand-bubble:hover .brand-logo {
    transform: scale(1.1);
}

/* 11. Continuous Idle Floating Animation */
.float-anim-1 {
    animation: floatUp 4s ease-in-out infinite alternate;
}

.float-anim-2 {
    animation: floatDown 4.8s ease-in-out infinite alternate;
}

.float-anim-3 {
    animation: floatUp 3.5s ease-in-out infinite alternate-reverse;
}

@keyframes floatUp {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-12px);
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(12px);
    }
}

/* 12. Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .brands-cloud-container {
        gap: 15px 10px;
        padding: 30px 15px;
    }

    /* Reset zig-zag offsets for small screens */
    .brand-bubble:nth-child(odd),
    .brand-bubble:nth-child(even),
    .brand-bubble:nth-child(3n),
    .brand-bubble:nth-child(4n),
    .brand-bubble:nth-child(5n) {
        margin-top: 0;
    }

    .size-sm {
        width: 55px;
        height: 55px;
    }

    .size-md {
        width: 70px;
        height: 70px;
    }

    .size-lg {
        width: 85px;
        height: 85px;
    }

    .size-xl {
        width: 98px;
        height: 98px;
    }
}