/* Global Variables */
:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --text-color: #ffffff;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom cursor */
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-outline.hovering {
    width: 60px;
    height: 60px;
    border-color: white;
    background-color: rgba(255,255,255,0.05);
}

/* Reconstructed Logo */
.studio-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.logo-top {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4rem; /* Will be scaled */
    letter-spacing: -2px; /* Very tight spacing as requested */
    line-height: 1;
}

.logo-bottom {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 12px; /* Wide spacing */
    margin-top: 5px;
    text-transform: uppercase;
}

/* Entrance Animation Overlay */
.entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.entrance-overlay.hidden {
    transform: translateY(-100%);
}

.animate-logo {
    opacity: 0;
    transform: scale(0.9);
    animation: entranceLogo 2.2s ease forwards;
}

@keyframes entranceLogo {
    0% { opacity: 0; transform: scale(0.95); filter: blur(10px); }
    20% { opacity: 1; transform: scale(1); filter: blur(0); }
    80% { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(1.05); filter: blur(5px); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    transition: var(--transition-smooth);
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

.nav-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: white;
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--text-muted);
}

/* Hero Section & Slideshow */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: grayscale(100%) brightness(30%); /* B&W and very dark as requested */
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo .logo-top { font-size: 5vw; }
.hero-logo .logo-bottom { font-size: 1.5vw; letter-spacing: 1.5vw; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
}

.scroll-indicator p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

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

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Animations on Scroll */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Section */
.projects-section {
    padding: 10vw 5vw;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: 4px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Quote Section */
.quote-section {
    padding: 10vw;
    background-color: var(--surface-color);
}

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

.quote-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.form-group {
    margin-bottom: 3rem;
}

.form-group label {
    display: block;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Button Groups for Quote */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.option-btn:hover {
    border-color: rgba(255,255,255,0.5);
}

.option-btn.selected {
    background-color: white;
    color: black;
    border-color: white;
}

.minimal-select {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: white;
    padding: 1rem 0;
    font-size: 1.1rem;
    outline: none;
}

.minimal-select option {
    background-color: var(--surface-color);
    color: white;
}

.highlight-val {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    outline: none;
    margin-top: 1rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

.btn-primary {
    width: 100%;
    padding: 1.5rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    margin-top: 2rem;
}

.btn-primary:hover {
    background-color: #ccc;
    transform: translateY(-2px);
}

.quote-result {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.quote-result.hidden {
    display: none;
}

.result-amount {
    font-size: 5rem;
    font-family: var(--font-heading);
    margin: 1rem 0;
}

.result-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    padding: 10vw;
}

.about-header {
    max-width: 900px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.about-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-person {
    text-align: center;
}

.small-portrait {
    width: 100%;
    max-width: 350px;
    height: 450px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border-radius: 4px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s ease, transform 0.8s ease;
}

.hover-color {
    filter: grayscale(100%);
}

.about-person:hover .hover-color {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-text-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.about-text-content .subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.about-text-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: justify;
}

/* Contact Section */
.contact-section {
    padding: 10vw;
    background-color: var(--surface-color);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: white;
}

/* Footer */
footer {
    padding: 3rem 5vw;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left {
    display: flex;
    justify-content: flex-start;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-icons {
    display: flex;
    gap: 1.5rem;
}

.footer-logo .logo-top { font-size: 1.5rem; letter-spacing: -1px; }
.footer-logo .logo-bottom { font-size: 0.6rem; letter-spacing: 5px; }

.footer-center p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Project Modal (Glassmorphism Pop-up) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px); /* Glass blur effect */
    opacity: 0;
    animation: fadeIn 0.4s forwards;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background-color: rgba(15, 15, 15, 0.75); /* Semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 12px; /* Slightly rounded borders */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: popUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 1001;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes popUp { to { opacity: 1; transform: translateY(0) scale(1); } }

.close-modal {
    position: fixed; /* Stick to the modal viewport */
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    z-index: 1002;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.modal-header {
    padding: 4rem;
}

.modal-meta {
    display: flex;
    gap: 4rem;
    margin: 2rem 0 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 4rem;
    max-width: 900px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-flow: dense;
    gap: 1.5rem;
}

.modal-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Force irregular layout for specific items */
.modal-gallery img:nth-child(5n) {
    grid-column: span 2;
    grid-row: span 2;
    height: calc(600px + 1.5rem);
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.modal-gallery video {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 4px;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .modal-gallery { display: flex; flex-direction: column; }
    .modal-gallery img, .modal-gallery img:nth-child(5n) {
        height: auto;
        grid-column: auto;
        grid-row: auto;
    }
}

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

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

.lightbox img {
    max-width: 80vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    padding: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide custom cursor on touch/mobile devices */
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto !important; }

    .navbar { padding: 1.5rem 2rem; }
    .nav-links { display: none; }
    .hero-logo .logo-top { font-size: 12vw; }
    .hero-logo .logo-bottom { font-size: 3vw; letter-spacing: 2vw; }
    
    /* Projects Mobile Fixes */
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
    .projects-section { padding: 5rem 2rem; }
    .project-overlay {
        opacity: 1; /* Always visible since there's no hover */
        transform: translateY(0);
        padding: 2rem 1.5rem;
    }

    .about-grid { grid-template-columns: 1fr; }
    .quote-container { padding: 1rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .modal-content { width: 95%; height: 90vh; }
    .modal-header { padding: 2rem; }
    .modal-meta { flex-direction: column; gap: 1rem; }
}
