/* ===========================================================
   AWARDS & PARTNERSHIPS SECTION
   - CurvedLoop Marquee Heading
   - Static Thin Dotted Grid with Moving Shine Glow
=========================================================== */

.awards-section {
    background: #fff;
    padding: 80px 0 100px;
    overflow: hidden;
}

/* ===========================================================
   CURVED LOOP MARQUEE HEADING
=========================================================== */

.awards-curve-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.curved-loop-container {
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.curved-loop-container:active {
    cursor: grabbing;
}

.curved-loop-svg {
    width: 100%;
    height: auto;
    min-height: 150px;
    overflow: visible;
    display: block;
}

.curved-text {
    font-size: 4.5rem;
    font-weight: 800;
    fill: url(#text-gradient);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ===========================================================
   AWARDS GRID
=========================================================== */

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
}

/* Award Cell */
.award-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    z-index: 1;
}

.award-cell img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.award-cell:hover img {
    transform: scale(1.08);
}

/* ===========================================================
   STATIC THIN DOTTED LINES WITH MOVING SHINE
=========================================================== */

/* Vertical Lines */
.awards-grid .v-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.awards-grid .v-line:nth-child(1) { left: 20%; }
.awards-grid .v-line:nth-child(2) { left: 40%; }
.awards-grid .v-line:nth-child(3) { left: 60%; }
.awards-grid .v-line:nth-child(4) { left: 80%; }

/* Static Thin Dots - Vertical */
.awards-grid .v-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(100, 116, 139, 0.25) 3px,
        rgba(100, 116, 139, 0.25) 5px,
        transparent 5px,
        transparent 8px
    );
}

/* Moving Shine Glow - Vertical */
.awards-grid .v-line::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -6px;
    width: 14px;
    height: 80px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(59, 130, 246, 0.6) 20%,
        rgba(6, 182, 212, 1) 50%,
        rgba(59, 130, 246, 0.6) 80%,
        transparent 100%
    );
    filter: blur(4px);
    animation: shineV 4s ease-in-out infinite;
    border-radius: 50%;
}

/* Stagger vertical line animations */
.awards-grid .v-line:nth-child(1)::after { animation-delay: 0s; }
.awards-grid .v-line:nth-child(2)::after { animation-delay: 0.7s; }
.awards-grid .v-line:nth-child(3)::after { animation-delay: 1.4s; }
.awards-grid .v-line:nth-child(4)::after { animation-delay: 2.1s; }

/* Horizontal Line */
.awards-grid .h-line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    z-index: 2;
    transform: translateY(-50%);
    pointer-events: none;
    overflow: hidden;
}

/* Static Thin Dots - Horizontal */
.awards-grid .h-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        transparent 0px,
        transparent 3px,
        rgba(100, 116, 139, 0.25) 3px,
        rgba(100, 116, 139, 0.25) 5px,
        transparent 5px,
        transparent 8px
    );
}

/* Moving Shine Glow - Horizontal */
.awards-grid .h-line::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -80px;
    width: 80px;
    height: 14px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(59, 130, 246, 0.6) 20%,
        rgba(6, 182, 212, 1) 50%,
        rgba(59, 130, 246, 0.6) 80%,
        transparent 100%
    );
    filter: blur(4px);
    animation: shineH 5s ease-in-out infinite;
    border-radius: 50%;
}

/* Shine Animations */
@keyframes shineV {
    0% { 
        top: -80px; 
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% { 
        top: 100%; 
        opacity: 0;
    }
}

@keyframes shineH {
    0% { 
        left: -80px; 
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% { 
        left: 100%; 
        opacity: 0;
    }
}

/* ===========================================================
   RESPONSIVE - Tablet
=========================================================== */

@media (max-width: 1024px) {
    .awards-section {
        padding: 60px 0 80px;
    }
    
    .curved-text {
        font-size: 3.5rem;
    }
    
    .award-cell {
        padding: 20px;
    }
}

/* ===========================================================
   RESPONSIVE - Mobile (2 Columns)
=========================================================== */

@media (max-width: 768px) {
    .awards-section {
        padding: 50px 0 60px;
    }
    
    .awards-curve-wrap {
        margin-bottom: 40px;
    }
    
    .curved-text {
        font-size: 2.5rem;
    }
    
    .curved-loop-svg {
        min-height: 100px;
    }
    
    .awards-container {
        padding: 0 16px;
    }
    
    /* 2 Columns on Mobile */
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Single vertical line in center */
    .awards-grid .v-line:nth-child(1) { left: 50%; }
    .awards-grid .v-line:nth-child(2),
    .awards-grid .v-line:nth-child(3),
    .awards-grid .v-line:nth-child(4) { display: none; }
    
    .award-cell {
        padding: 15px;
    }
}

/* ===========================================================
   RESPONSIVE - Small Mobile (Still 2 Columns)
=========================================================== */

@media (max-width: 480px) {
    .curved-text {
        font-size: 1.8rem;
    }
    
    .award-cell {
        padding: 12px;
    }
}

/* ===========================================================
   REDUCED MOTION
=========================================================== */

@media (prefers-reduced-motion: reduce) {
    .awards-grid .v-line::after,
    .awards-grid .h-line::after {
        animation: none !important;
        opacity: 0 !important;
    }
}