.section-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .section-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.fade-exit {
    opacity: 1;
    transform: translateY(0);
}

.fade-exit-active {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slider-track {
    justify-content: space-between;
    transition: transform 0.5s ease-in-out;
}

.slider-card {
    flex: 1;
    padding: 0.5rem;
}

.slide-left {
    transform: translateX(-100%);
}

.slide-right {
    transform: translateX(100%);
}

#client-text {
    position: relative;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: auto;
    display: flex;
    flex-direction: column;
    /* Stack image and source text */
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    animation: zoom 0.6s;
    overflow: hidden;
    /* Prevent content overflow */
}

.modal-img {
    flex: 1;
    /* Takes up available vertical space */
    overflow-y: auto;
    /* Enable scrolling for tall images */
}

.modal-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #bbb;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* Container for glow effect */
.glow-container {
    --spread: 60;
}

/* Base styles for glow cards */
.glow-card {
    --active: 0.15;
    --start: 0;
}

.glow-card:is(:hover, :focus-visible) {
    z-index: 2;
}

/* Glow effect container */
.glows {
    pointer-events: none;
    position: absolute;
    inset: 0;
    filter: blur(calc(var(--blur) * 1px));
}

.glows::before,
.glows::after {
    --alpha: 0;
    content: "";
    position: absolute;
    inset: -4px;
    border: 4px solid transparent;
    border-radius: 12px;
    background: conic-gradient(from 180deg at 50% 70%,
            #4ade80 0deg,
            #8228ec 72deg,
            #4ade80 144deg,
            #d7aaff 216deg,
            #4ade80 288deg,
            #fafafa 360deg);
    background-attachment: fixed;
    mask: linear-gradient(#0000, #0000),
        conic-gradient(from calc((var(--start) - (var(--spread) * 0.5)) * 1deg),
            #000 0deg,
            #fff,
            #0000 calc(var(--spread) * 1deg));
    mask-composite: intersect;
    mask-clip: padding-box, border-box;
    opacity: var(--active);
    transition: opacity 1s;
}

/* Glow card border and background styles */
.glow-card::before {
    position: absolute;
    inset: 0;
    content: "";
    border: 1px solid transparent;
    border-radius: 12px;
    background: #84738c;
    background-attachment: fixed;
    mask: linear-gradient(#0000, #0000),
        conic-gradient(from calc((var(--start) + var(--spread) * 0.25 - var(--spread) * 1.5) * 1deg),
            #ffffff26 0deg,
            white,
            #ffffff26 calc(var(--spread) * 2.5deg));
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    opacity: var(--active);
    transition: opacity 1s;
}

/* Glow card highlight effect */
.glow-card::after {
    --bg-size: 100%;
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    pointer-events: none;
    background: conic-gradient(from 180deg at 50% 70%,
            #4ade80 0deg,
            #8228ec 72deg,
            #4ade80 144deg,
            #d7aaff 216deg,
            #4ade80 288deg,
            #fafafa 360deg);
    background-attachment: fixed;
    mask: linear-gradient(#0000, #0000),
        conic-gradient(from calc((var(--start) + var(--spread) * 0.25 - var(--spread) * 0.5) * 1deg),
            #0000 0deg,
            #fff,
            #0000 calc(var(--spread) * 0.5deg));
    filter: brightness(1.5);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    opacity: var(--active, 0);
    transition: opacity 1s;
}

#experience_year {
    -webkit-text-stroke: 0.1vw #1f2937;
}

#experience_year::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #1f2937;
    -webkit-text-stroke: 0vw #1f2937;
    overflow: hidden;
    animation: animate 6s linear infinite;
}

@keyframes animate {

    0%,
    10%,
    100% {
        height: 0;
    }

    70%,
    90% {
        height: 100%;
    }
}

.marquee-item {
    color: transparent;
    /* Makes the text invisible */
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.9);
    /* Outline color and thickness */
    text-stroke: 1px rgba(255, 255, 255, 0.7);
    /* Fallback for non-webkit browsers */
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 300ms;
    font-weight: 700;
    font-size: 4rem;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Small screens (mobile devices) */
@media (max-width: 768px) {
    .marquee-item {
        font-size: 2.5rem;
    }
}

/* Extra small screens (mobile phones) */
@media (max-width: 480px) {
    .marquee-item {
        font-size: 2rem;
    }
}

.marquee-item:hover {
    color: white;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee {
    display: flex;
    width: 900%;
    animation: scroll 100s linear infinite;
    transition: all 0.5s;
}

.marquee.reverse {
    animation: scroll-reverse 100s linear infinite;
    transition: all 0.5s;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Adjust as needed */
}

/* Keyframes for scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.play-overlay {
    z-index: 10;
    /* Ensure it's above the video */
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.5);
        opacity: 0;
    }
}

.animate-zoom-in {
    animation: zoomIn 0.5s ease forwards;
}

.animate-zoom-out {
    animation: zoomOut 0.5s ease forwards;
}

/* Sliding animations */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes slide-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.slide-in {
    animation: slide-up 1s ease-in-out;
}

.slide-out {
    animation: slide-out 1s ease-in-out;
}

/* Fixed frame styling */
.fixed-frame {
    position: relative;
    overflow: hidden;
}

.inner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.job-details-points.list-disc li::marker {
    color: #009c8a;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    margin: 0 auto 1rem;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 50%;
    animation: scrollindicator 1.5s infinite;
}

@keyframes scrollindicator {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}
