@import url('https://fonts.googleapis.com/css2?family=poppins:wght@300;400;500;600;700;800;900&display=swap');

/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}

:root{
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color:#fff;
    --main-color:#0ef;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

span {
    color: var(--main-color);
}

/* --- Base Section Styling --- */
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    /* Initial state for all sections before the entrance animation */
    opacity: 0;
    transform: translateY(50px);
    animation: sectionFadeIn 1s ease 0.1s forwards; /* Added 0.1s delay */
}

/* --- Header & Navigation --- */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.header.sticky{
    border-bottom: .1rem solid rgba(0,0,0,.2);
}

.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}
/* Animation for the custom logo spans */
.logo span {
    color: var(--main-color);
    display: inline-block;
    animation: logoWiggle 1s ease-in-out infinite alternate;
}
.logo span:nth-child(2) { animation-delay: 0.1s; }
.logo span:nth-child(4) { animation-delay: 0.2s; }
.logo span:nth-child(6) { animation-delay: 0.3s; }
.logo span:nth-child(8) { animation-delay: 0.4s; }


.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin: 4rem;
    transition: .3s;
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* --- Reusable Heading --- */
.heading{
    text-align: center;
    font-size: 4.5rem;
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}
.footer-text p{
    font-size: 1.6rem;
}
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}


/* =======================================
   AWARDS PAGE STYLES - MODERN REDESIGN
   ======================================= */

.awards-page {
    background: var(--bg-color);
    padding-top: 12rem;
    padding-bottom: 7rem;
    min-height: 100vh;
    position: relative;
}

.awards-page h2 {
    margin-bottom: 6rem;
}

.awards-container {
    max-width: 110rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    padding-left: 4rem;
}

/* Timeline vertical line */
.awards-container::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--main-color), transparent);
    border-radius: 3px;
}

.award-row {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.8));
    padding: 0;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

/* Timeline dot */
.award-row::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--main-color);
    z-index: 2;
}

/* Accent gradient top border */
.award-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #6366f1, var(--main-color));
    opacity: 0.8;
}

.award-row:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 238, 255, 0.1);
    border-color: rgba(0, 238, 255, 0.2);
}

/* Alternating layout */
.award-row:nth-child(even) {
    flex-direction: row-reverse;
}

.award-image {
    flex: 0 0 35%;
    position: relative;
    overflow: hidden;
}

.award-image img {
    width: 100%;
    height: 100%;
    min-height: 28rem;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.award-row:hover .award-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Image overlay gradient */
.award-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 60%,
        rgba(0, 238, 255, 0.1) 100%
    );
    pointer-events: none;
}

.award-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.award-content h3 {
    font-size: 2.6rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

/* Underline accent for title */
.award-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-color);
    border-radius: 3px;
}

.award-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.award-content .btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 4rem;
    font-size: 1.4rem;
    color: var(--main-color);
    letter-spacing: .05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
    width: fit-content;
}

.award-content .btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
}

/* =======================================
   KEYFRAMES (for Header & Page Load)
   ======================================= */

/* 1. Global Section Fade-In */
@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Logo Wiggle */
@keyframes logoWiggle {
    0% { color: var(--text-color); transform: translateY(0px); }
    100% { color: var(--main-color); transform: translateY(-2px); }
}


/* =======================================
   MEDIA QUERIES (for Header, Footer & Awards)
   ======================================= */

@media(max-width:1200px){
    html{
        font-size: 55%;
    }
}
@media(max-width:991px){
    .header {
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .footer{
        padding: 2rem 3%;
    }

    /* --- AWARDS PAGE --- */
    .awards-page {
        padding-left: 3%;
        padding-right: 3%;
    }
}

@media(max-width:768px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
        display: none;
    }
    .navbar.active{
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    /* --- AWARDS PAGE MOBILE --- */
    .awards-page {
        padding-top: 10rem;
    }

    .awards-container {
        padding-left: 0;
    }

    /* Hide timeline on mobile */
    .awards-container::before {
        display: none;
    }

    .award-row::before {
        display: none;
    }

    /* Stack the row on mobile */
    .award-row,
    .award-row:nth-child(even) {
        flex-direction: column;
        gap: 0;
    }

    .award-row:hover {
        transform: translateY(-5px);
    }

    .award-image {
        flex: none;
        width: 100%;
    }

    .award-image img {
        min-height: 22rem;
        max-height: 25rem;
    }

    .award-content {
        padding: 2.5rem;
    }

    .award-content h3 {
        font-size: 2.2rem;
        text-align: center;
    }

    .award-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .award-content p {
        text-align: center;
    }

    .award-content .btn {
        margin: 2rem auto 0;
    }
}

/* Extra small devices (phones, 480px and down) */
@media(max-width:480px){
    html {
        font-size: 50%;
    }

    .awards-page {
        padding-top: 8rem;
        padding-left: 2%;
        padding-right: 2%;
    }

    .heading {
        font-size: 3rem;
        margin-bottom: 4rem;
    }

    .awards-container {
        gap: 3rem;
    }

    .award-image img {
        min-height: 18rem;
        max-height: 22rem;
    }

    .award-content {
        padding: 2rem;
    }

    .award-content h3 {
        font-size: 1.8rem;
    }

    .award-content p {
        font-size: 1.3rem;
    }

    .award-content .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1.2rem;
    }

    .footer-text p {
        font-size: 1.3rem;
    }
}