@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;
    opacity: 0;
    transform: translateY(50px);
    animation: sectionFadeIn 1s ease 0.1s forwards;
}

/* --- 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;
}
.logo span {
    color: var(--main-color);
    display: inline-block;
    animation: logoWiggle 1s ease-in-out infinite alternate;
}
.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;
}

/* --- Reusable Button Style --- */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    margin-top: 2rem; 
}
.btn:hover{
    box-shadow: none;
}

/* --- 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);
}


/* =======================================
   WORK EXPERIENCE PAGE - FEATURED SINGLE COMPANY
   ======================================= */

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

.work-page h2 {
    margin-bottom: 5rem;
}

/* Featured Container */
.work-featured {
    max-width: 90rem;
    margin: 0 auto;
}

/* Company Header Section */
.company-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.company-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.company-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.company-logo-wrapper {
    width: 10rem;
    height: 10rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.company-info {
    position: relative;
    z-index: 1;
}

.company-info h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.company-location {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.company-location i {
    font-size: 1.8rem;
    color: var(--text-color);
}

.company-type {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Role Card */
.role-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 2rem;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #6366f1, var(--main-color));
    border-radius: 2rem 2rem 0 0;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-title h4 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.role-type {
    display: inline-block;
    background: rgba(0, 238, 255, 0.15);
    color: var(--main-color);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.role-duration {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.5rem;
}

.role-duration i {
    color: var(--main-color);
    font-size: 2rem;
}

.duration-badge {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.role-description {
    margin-bottom: 3rem;
}

.role-description p {
    font-size: 1.6rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsibilities Section */
.responsibilities {
    margin-bottom: 3rem;
}

.responsibilities h5,
.tech-stack h5 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.responsibilities h5 i,
.tech-stack h5 i {
    color: var(--main-color);
    font-size: 2.2rem;
}

.responsibilities ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.responsibilities ul li {
    font-size: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 2.5rem;
    position: relative;
}

.responsibilities ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--main-color), #6366f1);
    border-radius: 50%;
}

/* Tech Stack */
.tech-stack {
    margin-bottom: 3rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tags span {
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    padding: 0.8rem 1.6rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* CTA Button */
.role-cta {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.role-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--main-color);
    border: none;
    border-radius: 4rem;
    font-size: 1.5rem;
    color: var(--bg-color);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 238, 255, 0.3);
}

.role-cta .btn i {
    font-size: 1.8rem;
    color: var(--bg-color);
}

.role-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.4);
}


/* =======================================
   KEYFRAMES
   ======================================= */

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/* =======================================
   MEDIA QUERIES
   ======================================= */

@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%;
    }
    .work-page {
        padding-left: 3%;
        padding-right: 3%;
    }

    .role-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .role-duration {
        flex-wrap: wrap;
    }
}

@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;
    }

    /* --- WORK PAGE MOBILE --- */
    .work-page {
        padding-top: 10rem;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }

    .company-logo-wrapper {
        width: 8rem;
        height: 8rem;
    }

    .company-info h3 {
        font-size: 2.6rem;
    }

    .company-location {
        justify-content: center;
    }

    .role-card {
        padding: 2.5rem;
    }

    .role-title h4 {
        font-size: 2.4rem;
    }

    .role-duration {
        justify-content: center;
    }

    .responsibilities h5,
    .tech-stack h5 {
        justify-content: center;
    }

    .responsibilities ul li {
        text-align: left;
    }

    .tech-tags {
        justify-content: center;
    }

    .role-cta {
        text-align: center;
    }

    .role-cta .btn {
        margin: 0 auto;
    }
}

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

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

    .heading {
        font-size: 3rem;
    }

    .company-header {
        padding: 2rem;
    }

    .company-logo-wrapper {
        width: 7rem;
        height: 7rem;
    }

    .company-info h3 {
        font-size: 2.2rem;
    }

    .company-location,
    .company-type {
        font-size: 1.3rem;
    }

    .role-card {
        padding: 2rem;
    }

    .role-title h4 {
        font-size: 2rem;
    }

    .role-type {
        font-size: 1rem;
    }

    .role-duration {
        font-size: 1.3rem;
    }

    .duration-badge {
        font-size: 1rem;
    }

    .role-description p {
        font-size: 1.4rem;
    }

    .responsibilities h5,
    .tech-stack h5 {
        font-size: 1.6rem;
    }

    .responsibilities ul li {
        font-size: 1.3rem;
    }

    .tech-tags span {
        padding: 0.6rem 1.2rem;
        font-size: 1.1rem;
    }

    .role-cta .btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
    }

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