/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: #000000;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header styles */
header {
    padding: 2rem;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1505236858219-8359eb29e329?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.7;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Main content styles */
main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 100vh;
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Project styles */
.project {
    position: relative;
    background: none; /* Remove background image since we're using media elements */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    padding-bottom: 41.84%;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: background 0.3s ease;
}

.project h2 {
    padding: 2rem;
    margin: 0;
    text-align: center;
    position: absolute;
    z-index: 2;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    opacity: 0;
}

.project:hover h2 {
    transform: translateY(-5px);
    opacity: 1;
}

/* Add a darker overlay on hover to make text more readable */
.project:hover::before {
    background: rgba(0, 0, 0, 0.8);
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    position: relative;
    z-index: 2;
}

.project.active .project-content {
    max-height: 1000px;
}

.project-meta {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    margin: 0 1rem 1rem;
    border-radius: 4px;
}

.view-details {
    display: block;
    margin: 1rem auto;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.view-details:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.expand-icon {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.project:hover .expand-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Update background images for all sections */
.project:nth-of-type(3n+1) {
    background-image: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?auto=format&fit=crop&w=1920');
}

.project:nth-of-type(3n+2) {
    background-image: url('https://images.unsplash.com/photo-1478737270239-2f02b77fc618?auto=format&fit=crop&w=1920');
}

.project:nth-of-type(3n) {
    background-image: url('https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?auto=format&fit=crop&w=1920');
}

.project-details {
    margin-top: 2rem;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.project-details p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-details ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.project-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer styles */
footer {
    padding: 2rem;
    text-align: center;
    color: #999;
    position: relative;
    z-index: 2;
    background: #000000;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #000000;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 2rem;
    color: #FFFFFF;
    animation: modalFadeIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.modal-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .project {
        min-height: auto;
    }

    .project h2 {
        padding: 1.5rem;
        font-size: 1.8rem;
    }

    .project-meta {
        padding: 1.5rem;
        margin: 0 0.5rem 0.5rem;
    }

    .expand-icon {
        right: 1rem;
        top: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .close {
        right: 1rem;
        top: 1rem;
    }

    .project-details h3 {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project, .about-content {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section media styles */
.section-image, .section-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none; /* This prevents the video from capturing clicks */
}

/* Shadowbox styles */
.shadowbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.shadowbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-shadowbox {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-shadowbox:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* YouTube container styles */
.youtube-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* This prevents the iframe from capturing clicks */
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Contact box styles */
.contact-box {
    z-index: 1001;
}

.contact-content {
    background: #000000;
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Responsive contact box */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        padding: 2rem;
    }

    .contact-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Blackbox styles */
.blackbox-content {
    background: #000000;
    padding: 3rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blackbox-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Work box styles */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.work-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.work-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* About box styles */
.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-details {
    margin-top: 2rem;
}

.about-details h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.about-details p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
} 