﻿/* ===================================
   ADAM - Architecture & Construction
   Complete Stylesheet with Contact Form
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    background: #000;
    width: 100vw;
    height: 100vh;
    position: fixed;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

/* Logo & Navigation */
.logo {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: #fff;
    mix-blend-mode: difference;
    text-align: center;
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.logo-text {
    font-size: 48px;
    font-weight: 100;
    letter-spacing: 10px;
    display: block;
    transition: font-size 0.6s ease, letter-spacing 0.6s ease;
}

.logo-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    margin-top: 15px;
    font-weight: 300;
    opacity: 0.8;
    transition: all 0.6s ease;
}

/* Navbar States */
.logo.navbar-active {
    top: 0;
    width: 100%;
    padding: 25px 0;
    mix-blend-mode: normal;
    pointer-events: auto;
}

.logo.navbar-active .logo-text {
    font-size: 40px;
    letter-spacing: 8px;
}

.logo.navbar-active .logo-subtitle {
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-top: 8px;
    opacity: 1;
}

/* Navbar Backgrounds */
.logo.navbar-black {
    background: #000;
    color: #fff;
}

.logo.navbar-white {
    background: #fff;
    color: #000;
}

.logo.color-transition {
    transition: background 0.3s ease, color 0.3s ease;
}

/* Logo subtitle visibility */
body.section-open .logo:not(.navbar-active) .logo-subtitle {
    opacity: 0;
    transform: translateY(-10px);
}

/* Split Screen */
.split-screen {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.side {
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.side.studio {
    background: #000;
    color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
}

.side.building {
    background: #fff;
    color: #000;
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
}

.side-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    text-align: center;
}

.side-subtitle {
    font-size: 14px;
    margin-top: 20px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Side Animations */
.side.slide-left {
    transform: translateX(-200%);
}

.side.slide-right {
    transform: translateX(200%);
}

/* Content Sections */
.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow-y: auto;
    padding: 120px 50px 50px;
    -webkit-overflow-scrolling: touch;
}

.content.active {
    display: block;
}

.content.studio {
    background: #000;
    color: #fff;
}

.content.building {
    background: #fff;
    color: #000;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 35px;
    right: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 101;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.back-btn::before {
    content: "←";
    font-size: 16px;
    line-height: 1;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.back-btn.show {
    opacity: 1;
    transform: translateX(0);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(30px);
}

.section.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Typography */
h2 {
    font-size: 42px;
    font-weight: 200;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

h3 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}

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

.project-card {
    padding: 30px;
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.studio .project-card {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.project-card:hover {
    transform: translateY(-5px);
}

.studio .project-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Contact Info */
.contact-info {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    border-top: 1px solid;
}

.studio .contact-info {
    border-color: rgba(255, 255, 255, 0.2);
}

.building .contact-info {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Contact Form Styles */
.quick-contact-form {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.building .quick-contact-form {
    border-color: rgba(0, 0, 0, 0.1);
}

.quick-contact-form h3 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.telegram-input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.building .telegram-input {
    border-color: rgba(0, 0, 0, 0.2);
    color: #000;
}

.telegram-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.building .telegram-input:focus {
    border-color: rgba(0, 0, 0, 0.5);
}

.telegram-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.building .telegram-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.submit-btn {
    padding: 15px 30px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 120px;
    position: relative;
}

.building .submit-btn {
    background: #000;
    color: #fff;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.building .submit-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.form-hint {
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    animation: slideInUp 0.3s ease;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Building Section Styles */
.minimal-header {
    text-align: center;
    margin-bottom: 60px;
}

.header-line {
    width: 60px;
    height: 1px;
    background: transparent;
    margin: 0 auto 30px;
}

.studio .header-line {
    background: transparent;
}

.minimal-header h2 {
    font-size: 36px;
    font-weight: 100;
    letter-spacing: 12px;
    margin-bottom: 10px;
}

.location {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.5;
    text-transform: uppercase;
}

/* Hero Image */
.hero-image-section {
    margin-bottom: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    cursor: pointer;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4) 50%, transparent);
    padding: 60px;
}

.hero-specs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    color: #fff;
}

.hero-spec {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: center;
}

.hero-spec-value {
    font-size: 48px;
    font-weight: 100;
    letter-spacing: 2px;
}

.hero-spec-label {
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.hero-spec-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    align-self: center;
}

/* Description */
.minimal-description {
    padding: 60px 0 30px;
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.description-left h3 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.6;
}

.description-left p {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
}

.price-minimal {
    font-size: 24px;
    font-weight: 200;
    letter-spacing: 3px;
    margin-bottom: 0;
}

.feature-list {
    padding-top: 20px;
}

.feature-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.feature-item:last-child {
    border-bottom: none;
}

/* Gallery */
.minimal-gallery {
    padding: 30px 0 60px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-header h3 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    opacity: 0.6;
}

.gallery-nav {
    display: flex;
    gap: 30px;
}

.gallery-nav-item {
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    text-transform: lowercase;
}

.gallery-nav-item:hover,
.gallery-nav-item.active {
    opacity: 1;
}

.minimal-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.minimal-photo-grid .photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.minimal-photo-grid .photo-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.minimal-photo-grid .photo-item.wide {
    grid-column: span 2;
}

.minimal-photo-grid .photo-item.tall {
    grid-row: span 2;
}

.minimal-photo-grid .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.minimal-photo-grid .photo-item:hover img {
    transform: scale(1.05);
}

/* Contact Minimal */
.contact-minimal {
    text-align: center;
    padding: 80px 0 60px;
}

.contact-line {
    display: none;
}

.contact-minimal p {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 10px;
}

.contact-minimal p:first-of-type {
    font-weight: 300;
    opacity: 1;
}

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

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

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.2s ease;
    user-select: none;
}

/* Lightbox Navigation */
.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 1001;
    opacity: 0.7;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 300;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Gallery Scroll Indicators */
.scroll-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 6px;
    padding: 0 20px;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    width: 20px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.6);
}

.scroll-hint {
    display: none;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 32px;
        top: 30px;
        letter-spacing: 6px;
    }
    
    .logo-text {
        font-size: 32px;
        letter-spacing: 6px;
    }
    
    .logo-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
        white-space: nowrap;
    }
    
    .logo.navbar-active {
        padding: 18px 0;
    }
    
    .logo.navbar-active .logo-text {
        font-size: 32px;
        letter-spacing: 6px;
    }
    
    .logo.navbar-active .logo-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        margin-top: 5px;
    }
    
    .back-btn {
        top: 25px;
        right: 20px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .back-btn::before {
        font-size: 18px;
    }
    
    .side-title {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .side-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
        margin-top: 10px;
    }
    
    .content {
        padding: 100px 20px 30px;
    }
    
    /* Contact Form Mobile */
    .quick-contact-form {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .hero-image {
        height: 50vh;
    }
    
    .hero-overlay {
        padding: 30px 20px;
    }
    
    .hero-specs {
        gap: 30px;
        justify-content: space-around;
        flex-wrap: nowrap;
    }
    
    .hero-spec {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .hero-spec-value {
        font-size: 32px;
    }
    
    .hero-spec-label {
        font-size: 12px;
    }
    
    .hero-spec-divider {
        height: 30px;
        flex: 0 0 1px;
    }
    
    .description-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .minimal-description {
        padding: 40px 0 20px;
    }
    
    /* Mobile Gallery with Horizontal Scroll */
    .minimal-gallery {
        padding: 20px 0 40px;
        overflow: hidden;
    }
    
    .gallery-header {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .minimal-photo-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 20px;
        gap: 10px;
        grid-template-columns: unset;
        grid-auto-rows: unset;
    }
    
    .minimal-photo-grid .photo-item {
        flex: 0 0 auto;
        width: 280px;
        height: 350px;
        scroll-snap-align: center;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        grid-column: unset !important;
        grid-row: unset !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .minimal-photo-grid .photo-item.large,
    .minimal-photo-grid .photo-item.wide,
    .minimal-photo-grid .photo-item.tall {
        width: 280px;
        height: 350px;
    }
    
    .minimal-photo-grid .photo-item:first-child {
        width: 300px;
        height: 370px;
    }
    
    /* Scrollbar styling */
    .minimal-photo-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .minimal-photo-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }
    
    .minimal-photo-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    .scroll-hint {
        display: block;
    }
    
    .scroll-hint::before {
        content: "← ";
        margin-right: 5px;
    }
    
    .scroll-hint::after {
        content: " →";
        margin-left: 5px;
    }
    
    /* Lightbox mobile adjustments */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        top: 20px;
    }
    
    .logo-text {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
    
    .logo.navbar-active .logo-text {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .logo.navbar-active .logo-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    
    .back-btn {
        top: 18px;
        right: 15px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .back-btn::before {
        font-size: 16px;
    }
    
    .content {
        padding: 90px 15px 20px;
    }
    
    .hero-image {
        height: 40vh;
    }
    
    .hero-overlay {
        padding: 20px 15px;
    }
    
    .hero-specs {
        gap: 20px;
        justify-content: space-evenly;
    }
    
    .hero-spec {
        flex: 0 0 auto;
    }
    
    .hero-spec-value {
        font-size: 26px;
        letter-spacing: 1px;
    }
    
    .hero-spec-label {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .hero-spec-divider {
        height: 25px;
        display: block;
    }
    
    .minimal-description {
        padding: 30px 0 15px;
    }
    
    .minimal-gallery {
        padding: 15px 0 30px;
    }
    
    /* Smaller cards for mobile */
    .minimal-photo-grid .photo-item {
        width: 240px;
        height: 300px;
    }
    
    .minimal-photo-grid .photo-item:first-child {
        width: 260px;
        height: 320px;
    }
    
    .minimal-photo-grid {
        gap: 8px;
        padding: 0 8px 15px;
    }
    
    /* Touch-friendly lightbox navigation */
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        width: 40px;
        height: 40px;
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .description-left p {
        font-size: 16px;
    }
    
    .price-minimal {
        font-size: 20px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 20px;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .minimal-photo-grid {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}
