
:root {
    --navy: #09194D;
    --orange: #FC8A00;
    --green: #31CC31;
    --white: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--navy);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}


.page-hero {
    background-size: cover;
    background-position: center 20%;
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 4rem;
    position: relative;
    height: 15rem;
}


.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9,25,77,0.5);
}


.page-hero h1, .page-hero p {
    position: relative;
    z-index: 1;
}


#work {
    padding: 5rem 2rem 2rem;
    min-height: 100vh;
    background: var(--white);

}


#work h1 {
    text-align: center;
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}


.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
    width: 80%;
}

.grid a {
    text-decoration: none;
}

.card {
    background: var(--white);
    border: 1px solid var(--green);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--orange), var(--green));
}


.card img {
    width: 100%;
    height: 25vh;
    object-fit:cover ;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
}

.projects-highlight {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--orange);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.projects-highlight h3 {
    color: var(--white);
}

.projects-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(49,204,49,0.1) 0%, transparent 70%);
    animation: ripple 6s infinite;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.project-card {
    /* background: rgba(255,255,255,0.9); */
    /* border: 2px solid var(--green); */
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.project-icon {
    margin-bottom: 0.5rem;
}

.project-card:hover {
    transform: scale(1.05);
    /* background: var(--white); */
}

/* Animations */
@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1s ease-in forwards;
    opacity: 0; /* Start hidden */
}
.card:hover, img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


.cta-button {
    background-color: var(--orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: var(--green);
}



/* sub-pages and breadcrumbs */

#sub-work {
    padding: 3.5rem 2rem 2rem;
    min-height: 100vh;
    background: var(--white);

}

.digital-media-hero {
    background-size: cover;
    background-position: center 20%;
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 4rem;
    position: relative;
    display: flex;
    justify-content: center;
    height: 15rem;
}

.breadcrumb {
    position: absolute;
    bottom: -10px;
    right: 50px;
    background: white;
    padding: 8px 15px;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    color: #FC8A00;
    height: 2rem;
}

.breadcrumb span {
    color: lightblue;
}

.breadcrumb a {
    color: #FC8A00;
    font-weight: bold;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #FC8A00;
    font-weight: bold;
    text-decoration: underline;
}

.detailed-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}
.section {
    display: flex;
    align-items: center;
    margin: 30px 0;
    gap: 30px;
}
.section.reverse {
    flex-direction: row-reverse;
}
.section img {
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.text-block {
    width: 50%;
}


/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}
.timeline-item {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: calc(0.3s * var(--order));
}
.timeline-item:before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 10px;
    height: 10px;
    background: #FC8A00;
    border-radius: 50%;
}


/* Achievements Cards */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.achievement-card {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}



@media (max-width: 768px) {
    #work h1 {
        font-size: 2rem;
    }

    #work {
        padding: 2.8rem 0;
    }

    .page-hero {
        height: 10rem;
    }

    #sub-work {
        padding: 2.5rem 0.5rem 2rem;
    }

    .digital-media-hero {
        height: 280px;
        margin: auto;
    }

    .detailed-content {
        padding: 15px;
    }

    .breadcrumb {
        bottom: -10px;
        right: 1rem;
        left: 1rem;
        padding: 5px 10px;
        font-size: 15px;
    }

    .section,
    .section.reverse {
        flex-direction: column !important;
        gap: 20px;
        list-style: none;
        flex-direction: column-reverse !important;

    }

    .section img,
    .text-block {
        width: 100% !important;
    }

    .section img {
        height: auto;
        max-height: 280px;
        object-fit: cover;
    }

    .timeline {
        max-width: 100%;
    }

    .timeline-item {
        padding: 10px;
        font-size: 0.95rem;
    }

    .timeline-item:before {
        left: -15px;
        width: 8px;
        height: 8px;
    }

    .detailed-content #initiatives,
    .detailed-content #overview {
        margin: 5px 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid p {
        font-size: 0.9rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .projects-highlight h3 {
        text-align: center;
    }

    .projects-highlight p {
        font-size: 0.9rem;
    }
}