﻿/* 🌌 Page Section */
.work-page {
    padding: 50px 0;
    background: radial-gradient(circle at top left, #0b111b 0%, #101820 60%, #0a0f18 100%);
    position: relative;
    overflow: hidden;
    border-radius: 16px; /* ✅ Smooth edge feel */
}

    /* 🔆 Ambient Light Effects */
    .work-page::before,
    .work-page::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        filter: blur(90px);
        opacity: 0.25;
        z-index: 0;
    }

    .work-page::before {
        top: -100px;
        left: -120px;
        background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%);
    }

    .work-page::after {
        bottom: -100px;
        right: -120px;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    }

/* ✨ Page Title */
h1.page-title {
    text-align: center;
    color: #ffc107;
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: 1px;
    margin-bottom: 56px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,193,7,0.35);
    position: relative;
    z-index: 2;
    animation: fadeInDown 1.2s ease forwards;
}

    h1.page-title::after {
        content: "";
        display: block;
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, transparent, #ffc107, transparent);
        margin: 20px auto 0;
        border-radius: 50%;
        animation: glowline 2.5s infinite ease-in-out;
    }

@keyframes glowline {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* 💼 Experience Card */
.exp-card {
    background: linear-gradient(145deg, #121c29, #0f1620);
    color: #e6eef8;
    margin: 5px 5px; /* ✅ Added left & right margins */
    border-radius: 14px;
    padding: 28px;
    transition: transform .35s ease, box-shadow .35s ease, border-left-color .35s ease;
    box-shadow: 0 6px 20px rgba(2,6,23,0.45);
    border-left: 5px solid transparent;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp .9s ease forwards;
}

    .exp-card:nth-child(odd) {
        animation-delay: .2s;
    }

    .exp-card:nth-child(even) {
        animation-delay: .4s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Magic */
.exp-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255,193,7,0.25);
    border-left-color: #ffc107;
}

/* 🪄 Logo Styling */
.exp-logo {
    height: 90px;
    width: 90px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
    transition: transform .4s ease, box-shadow .4s ease;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.exp-card:hover .exp-logo {
    transform: rotate(-4deg) scale(1.15);
    box-shadow: 0 0 30px rgba(255,193,7,0.35);
}

/* 👔 Role & Company */
.exp-role {
    color: #cfe8ff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 3px;
    padding-left: 10px; /* ✅ replaces inline style */
}

.exp-company {
    color: #9fb1c8;
    font-size: .96rem;
    margin-top: 2px;
    padding-left: 10px;
}

/* ⏳ Duration */
.exp-duration {
    color: #ffc107;
    font-weight: 600;
    margin: 20px 0 12px;
    font-size: .97rem;
    letter-spacing: 0.5px;
}

/* 📋 Responsibilities */
ul.resp-list {
    padding-left: 18px;
    margin-top: 8px;
}

    ul.resp-list li {
        margin-bottom: 10px;
        color: #dbeeff;
        line-height: 1.6;
        position: relative;
        padding-left: 10px;
    }

        ul.resp-list li::before {
            content: "▹";
            position: absolute;
            left: -10px;
            color: #ffc107;
            font-size: 1.1rem;
        }

/* 🔥 Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 📱 Responsive */
@media (max-width: 991px) {
    .work-page {
        margin: 40px 30px; /* ✅ Less side margin on medium screens */
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .work-page {
        padding: 40px 0;
        margin: 30px 20px; /* ✅ Compact but neat on mobile */
    }

    h1.page-title {
        font-size: 2rem;
    }

    .exp-logo {
        height: 70px;
        width: 70px;
    }

    .exp-card {
        margin-bottom: 28px;
    }
}
