/* ============================================
   MARIIA NATALCHENKO - Landing Page Styles
   ============================================ */

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #800020;
    --white: #ffffff;
    --black: #0a0a0a;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --text-gray: #666;
    --text-light: #999;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 80px; }
}

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

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    animation: fadeIn 1s ease 0.5s both;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.lang-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--burgundy);
    transition: width 0.3s ease;
}

.lang-btn:hover::after,
.lang-btn.active::after {
    width: 100%;
}

.lang-btn.active {
    color: var(--burgundy);
}

/* ============================================
   NAVIGATION - Desktop (centered)
   ============================================ */
nav:not(.mobile-nav) {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 40px;
    animation: fadeIn 1s ease 0.5s both;
}

nav:not(.mobile-nav) a {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav:not(.mobile-nav) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}

nav:not(.mobile-nav) a:hover {
    color: var(--burgundy);
}

nav:not(.mobile-nav) a:hover::after {
    width: 100%;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
}

.mobile-nav.active {
    display: flex;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    z-index: 9998 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    overflow: hidden !important;
}

.mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
}

.mobile-nav a:hover {
    color: var(--burgundy);
}

/* ============================================
   SECTIONS BASE
   ============================================ */
section {
    padding: 120px 40px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.section-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--burgundy);
    margin: 30px auto 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease both;
}

.hero-line {
    width: 80px;
    height: 1px;
    background-color: var(--burgundy);
    margin: 0 auto 30px;
    animation: lineExpand 1s ease 0.6s both;
}

.hero .tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--burgundy);
    animation: fadeInUp 1.2s ease 0.3s both;
}

.hero .experience {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--text-gray);
    margin-top: 40px;
    animation: fadeIn 1s ease 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--burgundy);
    margin: 0 auto;
    animation: scrollLine 2.5s ease-in-out infinite;
}

.scroll-indicator p {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 12px;
    color: var(--text-light);
    transition: color 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator:hover p {
    color: var(--burgundy);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: linear-gradient(180deg, transparent 0%, var(--off-white) 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.about-text p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 25px;
    color: var(--text-gray);
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--burgundy);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background-color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(128, 0, 32, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 5px;
}

.portfolio-overlay span {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   PORTFOLIO MODAL / LIGHTBOX
   ============================================ */
.portfolio-modal {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-modal[aria-hidden="true"] {
    pointer-events: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.modal-counter {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.7;
}

.modal-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 80px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 48px;
    cursor: pointer;
    padding: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.modal-nav:hover {
    opacity: 1;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-media {
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-media video {
    max-width: 100%;
    max-height: 70vh;
    outline: none;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 25px 40px 40px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--burgundy) transparent;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 2px;
}

.modal-thumb {
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.modal-thumb img,
.modal-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #333;
}

.modal-thumb:hover,
.modal-thumb.active {
    opacity: 1;
}

.modal-thumb.active {
    border-color: var(--burgundy);
}

.modal-thumb-video {
    position: relative;
}

.modal-thumb-video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--burgundy);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: block;
    color: var(--burgundy);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-section {
    background-color: var(--white);
}

.experience-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.exp-item {
    text-align: center;
    padding: 25px 40px;
    border: 1px solid var(--light-gray);
    transition: all 0.4s ease;
}

.exp-item:hover {
    border-color: var(--burgundy);
    background: var(--off-white);
}

.exp-item h3 {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.exp-item span {
    font-size: 12px;
    color: var(--burgundy);
    letter-spacing: 2px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-info .instagram {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--burgundy);
    text-decoration: none;
    transition: letter-spacing 0.3s ease;
}

.contact-info .instagram:hover {
    letter-spacing: 2px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
}

.form-group textarea {
    resize: none;
    min-height: 150px;
}

.submit-btn {
    align-self: flex-start;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--burgundy);
    border: 1px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.4s ease;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--burgundy);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form success/error states */
.form-message {
    padding: 15px 20px;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
}

.form-message.success {
    background: rgba(0, 128, 0, 0.1);
    color: #006400;
    border: 1px solid rgba(0, 128, 0, 0.2);
}

.form-message.error {
    background: rgba(128, 0, 32, 0.1);
    color: var(--burgundy);
    border: 1px solid rgba(128, 0, 32, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 50px 40px;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

footer p {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

footer span {
    color: var(--burgundy);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide desktop nav, show mobile menu */
    nav:not(.mobile-nav) {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Adjust modal for tablet */
    .modal-content {
        padding: 0 60px;
    }

    .modal-nav {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .experience-list {
        flex-direction: column;
        align-items: center;
    }

    .exp-item {
        width: 100%;
        max-width: 300px;
    }

    .lang-switcher {
        top: 20px;
        right: 20px;
    }

    .stats {
        justify-content: center;
    }

    /* Modal adjustments for mobile */
    .modal-header {
        padding: 20px;
    }

    .modal-content {
        padding: 0 20px;
    }

    .modal-nav {
        font-size: 28px;
        padding: 10px;
    }

    .modal-prev {
        left: 5px;
    }

    .modal-next {
        right: 5px;
    }

    .modal-thumbnails {
        padding: 20px;
        gap: 8px;
    }

    .modal-thumb {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.body-no-scroll {
    overflow: hidden;
}

/* Lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
