body {
    margin: 0px;
    padding: 0px;
    background-color: white;
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-family: 'Geist Mono', monospace;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.hero-video {
    position: fixed;  /* Changed from relative to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;  /* Lower z-index so content scrolls over it */
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-overlay p {
    font-size: 1.5rem;
}

.presentation-text,
.video-container {
    position: relative;
    z-index: 2;  /* Higher z-index to scroll over the video */
    background-color: white;  /* Increased opacity from 0.8 to 0.95 */
}

.presentation-text {
    width: calc(100% - 120px);  /* Account for both side margins */
    padding: 60px 60px;  /* Add padding instead of margin to maintain grid alignment */
    font-family: 'Dirtyline', 'Roboto', sans-serif;
    font-size: 54px;
    font-weight: normal;
    line-height: 1.3;
    color: black;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ...existing code... */

.video-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    padding: 0 60px 60px 60px;  /* Removed huge top padding since text is in normal flow now */
    box-sizing: border-box;
    grid-template-areas: 
        "row1"
        "row2"
        "row3"
        "row4"
        "row5"
        "row6"
        "row7";
    gap: 10px;
    grid-template-rows: 2fr 2fr 2fr 1fr;
    position: relative;
    z-index: 2;  /* Higher z-index to scroll over the video */
    background-color:white;  /* Increased opacity from 0.8 to 0.95 */
    overflow-x: hidden;
    max-width: 100vw;
}

.row1 {
    grid-area: row1;
    height: 100%;
}

.row5 {
    grid-area: row5;
    height: 100%;
}

.row2 {
    grid-area: row2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.row6 {
    grid-area: row6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.row3 {
    grid-area: row3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.row4 {
    grid-area: row4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    height: auto;
}

.row4 .video-wrapper {
    aspect-ratio: 1/1;
    height: 0;
    padding-bottom: 100%;
    position: relative;
}

.row4 .video-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.row4 .video-wrapper video,
.row4 .video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.row7 {
    grid-area: row7;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    height: auto;
}

.row7 .video-wrapper {
    position: relative;
}

.row7 .video-wrapper::before {
    content: "";
    display: block;
    padding-top: 100%; /* Forces 1:1 aspect ratio */
}

.row7 .video-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.row7 .video-wrapper video,
.row7 .video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row7 video {
    aspect-ratio: auto;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5; /* Loading background color */
}

.overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px; /* Add this to prevent right overflow */
    max-width: calc(100% - 40px); /* Update this to ensure it stays within bounds */
    width: auto;
    background: white;
    padding: 15px;
    color: black;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    box-sizing: border-box;
    transform: translateY(20px); /* Add smooth entry animation */
    transition: all 0.3s ease;
}

/* Add specific styles for row1 overlay */
.row1 .overlay {
    max-width: 400px; /* Fixed maximum width for larger video */
    width: calc(100% - 40px);
    bottom: 40px;
    left: 40px;
}

.video-wrapper:hover .overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-row {
    display: grid;
    margin: 70px 30px 30px 30px; 
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    color: black;

}
.header-title, .header-description, .header-info {
    padding: 1rem;
}

.tag {
    display: inline-block;
    background: rgb(0,0,0,0);
    border: 1px solid black;
    padding: 1px; 
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'Geist Mono', monospace;
}

.tag2 {
    display: inline-block;
    background: rgb(0,0,0,0);
    border: 1px solid white;
    padding: 1px ; 
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'Geist Mono', monospace;
}

.overlay, h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.overlay, p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    font-family: 'Geist Mono', monospace;
}

.overlay p span {
    display: inline-block;
    padding: 0 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.overlay p span:hover {
    font-family: 'Press Start 2P', cursive;
    transform: scale(1.2);
    color: #ff0000;
    z-index: 10;
}

.overlay p .hover-word {
    display: inline-block;
    padding: 0 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.overlay p .hover-word:hover {
    font-family: 'Press Start 2P', cursive;
    transform: scale(1.2);
    color: #ff0000;
    background: white;
}

/* Replace the hover effects */
.video-container .video-wrapper:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.video-container .video-wrapper:hover video,
.video-container .video-wrapper:hover img {
    filter: blur(5px);
}

video, img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.row2 video {
    aspect-ratio: 4/5;
}

.row7 video {
    aspect-ratio: auto;
}
.row6 video {
    aspect-ratio: 4/5;
}

.row3 video {
    aspect-ratio: 5/4;
}

/* Project page styles */
.project-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: black;
    padding-top: 80px; /* Add space for fixed menu */
}

.project-header {
    margin-bottom: 60px;
}

.project-title {
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    font-weight: 300;
    margin-bottom: 20px;
}

.project-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin-top: 2rem;
}

.project-content {
    display: grid;
    gap: 40px;
}

.project-media {
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

.project-media video,
.project-media img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.back-button {
    position: fixed;
    top: 40px;
    left: 40px;
    color: black;
    text-decoration: none;
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    z-index: 100;
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.project-left .subtitle {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.project-center .description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.info-details .info-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.info-details .info-item span {
    font-weight: bold;
}

.project-gallery {
    display: grid;
    gap: 40px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video-container .video-wrapper:hover video,
.video-container .video-wrapper:hover img {
    transform: none !important;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-footer {
    width: 100%;
    padding: 0 0px;
    margin: 0px 0;
    box-sizing: border-box;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-navigation .nav-link {
    font-family: 'Geist Mono', monospace;
    text-decoration: none;
    color: black;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.project-navigation .nav-link:hover {
    opacity: 0.7;
}

.contact-section {
    background-color: black;
    width: 100%;
    z-index: 3;
    position: relative;
    padding: 40px 0;
    margin: 0;
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 0;
    padding: 0px 60px;
}

.contact-info h2,
.contact-social h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    margin-bottom: 15px;
    color: white;
}

.contact-info p a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info p a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.contact-info,
.contact-social,
.contact-about {
    color: white;
    padding-right: 0px;
}

.contact-about {
    text-align: center;
    justify-self: center;
}

.contact-about p {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: white;
    max-width: 80%; /* Limit width for better readability */
    margin: 0 auto; /* Center the text block */
}

.contact-social {
    text-align: right;
    justify-self: end;
}

.social-links a {
    font-family: 'Geist Mono', monospace;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: opacity 0.3s ease;
}

social-links a:hover {
    opacity: 0.7;
}

.footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    margin-top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper:hover {
    cursor: pointer;
}

.description span {
    display: inline-block;
    transition: all 0.2s ease;
}

.description span:hover {
    font-family: 'Pixel', monospace;
    transform: scale(1.2);
}

.hover-effect {
    display: inline-block;
    padding: 0 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-effect:hover {
    font-family: 'Press Start 2P', cursive;
    transform: scale(1);
    font-size: 28px;
    color: #ff0000;
    background: black;
    z-index: 10;
    position: relative;
}

/* ...existing code... */

/* Disable overlays on project page */
.project-page .overlay {
    display: none;
}

.project-page .video-wrapper:hover video,
.project-page .video-wrapper:hover img {
    filter: none;
    transform: none;
}

/* ...existing code... */

.marquee {
    position: relative;
    width: 100%;
    background: white;
    color: black;
    overflow: hidden;
    z-index: 2;
    padding: 15px 0;
    border-bottom: 1px solid black;
    margin-top: 100vh;
}

.marquee-content {
    display: flex;
    animation: scroll 5s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: 'Geist Mono', monospace;
    font-size: 18px;
    padding: 30px 5px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}



/* ...existing code... */

.video-wrapper video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-wrapper video.loaded {
    opacity: 1;
}

.video-wrapper video.playing {
    opacity: 1;
}

.video-wrapper {
    background: #f5f5f5; /* Loading state background */
}

/* ...existing code... */

/* ...existing code... */

.project-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
}

.grid-row {
    display: grid;
    gap: 15px;
    width: 100%;
}

.grid-row.full-width {
    grid-template-columns: 1fr;
}

.grid-row.two-columns {
    grid-template-columns: 1fr 1fr;
}

.grid-row.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-item {
    position: relative;
    width: 100%;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .project-content {
        padding: 0 15px;
    }
    
    .grid-row.two-columns,
    .grid-row.three-columns {
        grid-template-columns: 1fr;
    }
    
    .grid-row {
        gap: 15px;
    }
}

/* ...existing code... */


