:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --primary-glow: rgba(187, 134, 252, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.parallax-container {
    position: relative;
    width: 100%;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(13, 13, 13, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #ec850e;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #bb86fc;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 100;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.6;
}

.particles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.element {
    position: absolute;
    pointer-events: auto;
    transition: transform 0.3s ease-out, filter 0.5s ease;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.element:hover {
    filter: drop-shadow(0 0 30px var(--primary-glow)) brightness(1.1) blur(0) !important;
}

/* Depth of Field Blur based on Layer speeds */
.layer-1 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(1px);
}

.layer-2 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(1px);
}

.layer-3 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(0px);
}

.layer-4 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(1px);
}

.layer-5 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(1px);
}

.layer-6 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(1px);
}

.layer-7 .element {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) blur(1px);
}

/* Positioning based on Concept Art */

.title-img {
    width: 40vw;
    max-width: 600px;
    z-index: 10;
}

.torus-large {
    width: 25vw;
    max-width: 350px;
    top: 15%;
    right: 15%;
}

.torus-small {
    width: 12vw;
    max-width: 150px;
    top: 35%;
    left: 15%;
}

.monkey {
    width: 28vw;
    max-width: 380px;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.cube-1 {
    width: 15vw;
    max-width: 220px;
    bottom: 15%;
    left: 18%;
}

.cube-2 {
    width: 8vw;
    max-width: 100px;
    top: 18%;
    left: 42%;
}

.cube-3 {
    width: 10vw;
    max-width: 120px;
    bottom: 25%;
    right: 18%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 30;
    opacity: 0.8;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background: #ec850e;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    margin: -4px;
    animation: arrow-down 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

.content-section {
    padding: 120px 20px;
    background: #0d0d0d;
    position: relative;
    z-index: 20;
}

.bg-alt {
    background: #111;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(45deg, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: #ec850e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-video-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.project-slideshow {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshowFade 10s infinite;
}

.project-slideshow img:nth-child(2) {
    animation-delay: 5s;
}

@keyframes slideshowFade {

    0%,
    100% {
        opacity: 0;
    }

    5%,
    45% {
        opacity: 1;
    }

    50%,
    95% {
        opacity: 0;
    }
}

/* Map Slideshow (6 images) */
.map-slideshow img {
    animation: multiSlideshowFade 30s infinite;
}

.map-slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.map-slideshow img:nth-child(2) {
    animation-delay: 5s;
}

.map-slideshow img:nth-child(3) {
    animation-delay: 10s;
}

.map-slideshow img:nth-child(4) {
    animation-delay: 15s;
}

.map-slideshow img:nth-child(5) {
    animation-delay: 20s;
}

.map-slideshow img:nth-child(6) {
    animation-delay: 25s;
}

@keyframes multiSlideshowFade {

    0%,
    16.66%,
    100% {
        opacity: 0;
    }

    2%,
    14.66% {
        opacity: 1;
    }
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-card p {
    font-size: 1rem;
    color: #888;
}

/* Modern About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.about-text-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-text-card p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.about-text-card p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(236, 133, 14, 0.05);
    border-color: rgba(236, 133, 14, 0.3);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 133, 14, 0.1);
    border-radius: 12px;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ec850e;
    background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
    background: #ec850e;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.works-grid.panoramas {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.work-item {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a1a, #080808);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.panoramas .work-item {
    aspect-ratio: 21/9;
}

.work-item:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 133, 14, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(236, 133, 14, 0.4), transparent);
}

.work-overlay span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* More Tile Specifics */
.more-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(236, 133, 14, 0.3);
}

.more-tile:hover {
    background: rgba(236, 133, 14, 0.05);
    border-style: solid;
}

.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ec850e;
    font-weight: 600;
}

.more-content .plus {
    font-size: 2.5rem;
    line-height: 1;
}

.btn-submit:hover {
    background: #ff9800;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(236, 133, 14, 0.3);
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Footer */
.footer {
    padding: 60px 20px;
    text-align: center;
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.9rem;
    position: relative;
    z-index: 20;
}

h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.2rem;
    color: #888;
}

@media (max-width: 768px) {
    .title-img {
        width: 80vw;
    }

    h2 {
        font-size: 2rem;
    }
}