:root {
    --dark-bg: #0a0a0a;
    --dark-lighter: #1a1a1a;
    --accent-white: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #ffffff;
    --snap-duration: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--accent-white);
    overflow-x: hidden;
    position: relative;
}

/* Section styling */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.5);
    z-index: 2;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.header-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.header-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Video Section */
.video-section {
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.gallery-row:has(.parallax-container) {
    grid-template-columns: 1fr 1fr;
}

.gallery-row.motion-row {
    grid-template-columns: repeat(3, 1fr);
}

/* Thumbnail Container */
.thumbnail-container {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid var(--border-color);
    border-radius: 2px;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.thumbnail-container:hover .gallery-thumbnail {
    transform: scale(1.05);
}

.video-thumb {
    object-fit: cover;
}

/* Section Titles */
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

/* Description Section */
.section-description {
    background-color: var(--dark-lighter);
    padding: 80px 40px;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
    color: var(--accent-white);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 3D Section */
.section-3d {
    background-color: var(--dark-lighter);
}

/* 2D Section */
.section-2d {
    background-color: var(--dark-lighter);
}

/* Motion Graphics Section */
.section-motion {
    background-color: var(--dark-lighter);
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid var(--border-color);
    border-radius: 2px;
}

.youtube-thumbnail img,
.youtube-thumbnail-2d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.youtube-thumbnail:hover img,
.youtube-thumbnail-2d:hover img {
    transform: scale(1.05);
}

.youtube-thumbnail-2d {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid var(--border-color);
    border-radius: 2px;
}

/* Mixed Techniques Section */
.section-mixed {
    background-color: var(--dark-lighter);
}

/* Contact Section */
.section-contact {
    background-color: var(--dark-lighter);
}

.contact-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.contact-content > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-email {
    font-size: 2rem;
    color: var(--accent-white);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-white);
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--text-secondary);
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-white);
    transition: all 0.3s ease;
    border: 2px solid var(--accent-white);
    border-radius: 50%;
    padding: 8px;
}

.social-icon:hover {
    background-color: var(--accent-white);
    color: var(--dark-bg);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: var(--accent-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-secondary);
}

.modal-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

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

.modal-footer {
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

/* Parallax Modal */
.parallax-modal .modal-content {
    max-width: 80%;
    gap: 20px;
}

.parallax-canvas {
    position: relative;
    width: 550px;
    height: 550px;
    overflow: hidden;
    background-color: var(--dark-lighter);
    border: 3px solid var(--border-color);
    border-radius: 2px;
}

.parallax-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    object-fit: cover;
    left: -10%;
    top: -10%;
}

/* YouTube Embed Modal */
.youtube-embed {
    width: 63vw;
    height: 67.5vh;
    position: relative;
    border-radius: 2px;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .gallery-row:has(.parallax-container) {
        grid-template-columns: 1fr;
    }

    .gallery-row:nth-child(3) {
        grid-template-columns: 1fr;
    }

    .section-container {
        padding: 40px 20px;
    }

    .contact-email {
        font-size: 1.5rem;
    }

    .parallax-canvas {
        width: 100%;
        max-width: 450px;
        height: 450px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
