:root {
    --bg-color: #0a0a0a;
    --accent-color: #9d50ff;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --grid-gap: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, #36145f 0%, #2e1136 40%, #0a0a0a 100%);
    z-index: -1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

body.is-scrolled::before {
    opacity: 0;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin: 0;
}

.header-socials {
    display: flex;
    gap: 25px;
}

.header-socials a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.header-socials a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Adjust Main for Fixed Header */
main {
    padding-top: 120px;
}

/* Showreel Section */
#showreel {
    max-width: 1200px;
    margin: 0 auto 200px;
    /* Added large bottom margin */
    padding: 100px 5% 0;
    /* Added 100px top padding */
    min-height: calc(100vh - 120px);
    /* Fill remaining viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.showreel-info {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.status-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    padding: 6px 16px;
    background: rgba(80, 255, 109, 0.1);
    color: rgba(6, 244, 105, 0.819);
    border: 1px solid rgba(6, 244, 105, 0.819);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    animation: badge-glow 3s infinite ease-in-out;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(6, 244, 105, 0.819);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 140, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(6, 244, 89, 0.551);
    }
}

.sleek-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    /* Lighter weight for modern feel */
    letter-spacing: -1px;
    margin: 0;
    color: var(--text-primary);
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Popup - Centered Bottom */
.scroll-popup {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-popup span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.chevron {
    width: 14px;
    height: 14px;
    border-right: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    transform: rotate(45deg);
    animation: chevron-bounce 2s infinite;
}

@keyframes chevron-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(6px) rotate(45deg);
    }

    60% {
        transform: translateY(3px) rotate(45deg);
    }
}

@media (max-width: 600px) {
    .scroll-popup {
        bottom: 20px;
        padding: 10px 20px;
    }
}

/* Work Grid - Impactful first glance */
main {
    padding: 0 var(--grid-gap);
    margin-bottom: 100px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    max-width: 1600px;
    margin: 0 auto;
}

.work-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
    cursor: default;
    /* Default to normal cursor */
}

.work-item.has-img,
.work-item.is-clickable {
    cursor: pointer;
    /* Change to pointer if it has an image or a link */
}

.coming-soon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Hidden by default */
    filter: grayscale(0.2) brightness(0.8);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 2;
}

.work-item.has-img .project-img {
    display: block;
}

.work-item.has-img .coming-soon {
    display: none;
}

.coming-soon span {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px 40px 20px 40px;
    /* Reduced bottom padding from 40px to 20px */
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
    /* Ensure this is above the image */
}

.work-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1px;
}

.work-info p {
    color: var(--accent-color);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Hover Effects */
.work-item:hover .project-img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.work-item:hover .coming-soon {
    background: rgba(157, 80, 255, 0.05);
    border-color: rgba(157, 80, 255, 0.2);
}

.work-item:hover .coming-soon span {
    color: var(--accent-color);
    opacity: 1;
    letter-spacing: 6px;
}

.work-item:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
#contact {
    padding: 80px 5%;
    background: #0d0d0d;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-link .label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-link .value {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-link:hover {
    transform: translateY(-5px);
}

.contact-link:hover .value {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.socials a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-info {
        opacity: 1;
        transform: translateY(0);
        padding: 20px;
    }
}