body {
    margin: 0;
    padding: 0;
    background: #0F0F1A;
    color: white;
    font-family: "Oswald", sans-serif;
    text-align: center;
    overflow-x: hidden;
}

header, .hero {
    animation: fadeInUp 0.8s ease-out both;
}

.hero {
    position: relative;
    height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    font-size: 50px;
    font-weight: bold;
    font-family: "Boldonse", system-ui;
    text-shadow: 0 2px 10px rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.big {
    font-family: "Boldonse", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 70px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSmooth {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    padding: 28px 0;
}

.logo {
    max-width: 100px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    margin-top: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInSmooth 1s ease forwards;
    animation-delay: 0.3s;
}

nav a:hover {
    color: #00bfff;
}

.cta {
    font-family: "Oswald", sans-serif;
    font-size: 40px;
    font-weight: bold;
}

.cta button {
    margin-top: 60px;
    background: transparent;
    color: white;
    font-size: 18px;
    font-family: "Oswald", sans-serif;
    border: 2px solid white;
    padding: 15px 40px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta button:hover {
    background: white;
    color: #0F0F1A;
}

.cta button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.cta button:hover::after {
    transform: translateX(100%);
}

section {
    padding: 60px 20px;
    margin: auto;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section#about {
    position: relative;
    width: 100%;
    min-height: 70vh;
    color: #0F0F1A;
    background-color: white;
    margin: auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    overflow: hidden;
}

#about-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#about h2,
.about-content {
    position: relative;
    z-index: 2;
}

#about img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: cover;
    height: auto;
    margin-bottom: 20px;
}

#about h2 {
    font-size: 60px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: left;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    grid-template-rows: auto auto; 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#about img {
    grid-column: 1;
    grid-row: 1 / span 2; 
    max-width: 100%; 
    height: auto; 
    object-fit: cover;
}

.about-text {
    grid-column: 2;
    grid-row: 1; 
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.about-text p {
    flex: 1;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #333;
}

.about-text p:nth-child(2) {
    grid-column: 2;
    grid-row: 2; 
    margin-top: 20px; 
}

.about-text p:nth-child(3) {
  grid-column: 2;
  grid-row: 3; 
  margin-top: 20px; 
}

.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-text:nth-child(1) { transition-delay: 0.2s; }
.fade-in-text:nth-child(2) { transition-delay: 0.4s; }
.fade-in-text:nth-child(3) { transition-delay: 0.6s; }

@media (max-width: 768px) {
    section#about {
        min-height: auto;
        padding: 40px 20px;
    }

    .about-content {
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
        gap: 20px;
    }

    #about img {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
    }

    .about-text {
        grid-column: 1;
        grid-row: 2;
    }

    .about-text p {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .about-text p:nth-child(2) {
        margin-top: 0;
    }
}

h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

p {
    font-size: 20px;
}

/* Updated Project Card and Modal Styles */
.project-card {
    min-width: 500px;
    height: 450px;
    background: linear-gradient(145deg, #151528, #0d0d1a);
    border-radius: 12px;
    padding: 0;
    scroll-snap-align: center;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.6);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    transform: translateY(120px);
    transition: all 0.4s ease;
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

.project-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-card .meta {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
}

.project-card p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Enhanced Letterboxd-style Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: #1a1a2e;
    max-width: 1100px;
    width: 95%;
    height: 90%;
    border-radius: 20px;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: scroll;
    overflow-x: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, #1a1a2e);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-poster {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 230px;
    height: 345px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 2;
    object-fit: cover;
}

.modal-info {
    position: absolute;
    bottom: 40px;
    left: 300px;
    right: 40px;
    color: white;
    z-index: 2;
}

.modal-info h3 {
    font-size: 42px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.8;
}

.modal-text {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.modal-description {
    font-size: 18px;
    line-height: 1.6;
}

.modal-details {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 40px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item h4 {
    font-size: 16px;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0 0 5px;
}

.detail-item p {
    margin: 0;
    font-size: 16px;
}

/* Updated Project Section Styles */
.projects-container {
    position: relative;
    width: 100%;
    display: flex;
    gap: 40px;
    padding: 50px 60px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    margin: 0 auto; 
    max-width: 1400px; 
    align-items: center;
    justify-content: center;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-arrow.left {
    left: 10px;
}

.scroll-arrow.right {
    right: 10px;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    fill: white;
}

#projects {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

@media (max-width: 768px) {
    .hero-content {
        font-size: 36px;
        padding: 0 15px;
    }

    .project-card {
        min-width: calc(100vw - 40px);
        height: 400px;
        margin: 0 auto;
    }

    .projects-container {
        padding: 30px 20px;
        gap: 20px;
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
    }

    .scroll-arrow.left {
        left: 5px;
    }

    .scroll-arrow.right {
        right: 5px;
    }
}

@media (max-width: 600px) {
    .hero { font-size: 28px; padding: 0 15px; }
    nav a { display: block; margin: 10px 0; }
    .cta button { width: 80%; }
}