/* ==========================================
   Anton Kolpakchi Photography - Portfolio
   ========================================== */

/* CSS Variables */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #333;
    --color-accent: #c41e3a;
    --color-light: #f5f5f5;
    --color-white: #fff;
    --color-gray: #888;
    --color-gray-light: #e8e8e8;
    --color-text: #555;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background-color: var(--color-accent);
}

.section-label.light {
    color: var(--color-white);
}

.section-label.light::before,
.section-label.light::after {
    background-color: var(--color-white);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-primary);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* ==========================================
   Header / Navigation
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    letter-spacing: 1px;
}

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

.nav-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    padding: 4px 6px;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
}

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

.social-link {
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.social-link:hover {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-fast);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: scale(1.3);
    transform-origin: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 8px;
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: 100px 5%;
    background-color: var(--color-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 15px;
}

/* ==========================================
   Service Sections
   ========================================== */
.service-section {
    padding: 120px 5%;
    background-color: var(--color-white);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.service-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.service-text {
    text-align: center;
}

.service-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.1;
}

.service-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background-color: var(--color-white);
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background-color: var(--color-gray-light);
}

.section-divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    margin: 0 20px;
}

/* Alternate layout */
.service-section.alt-layout .service-content {
    direction: rtl;
}

.service-section.alt-layout .service-content > * {
    direction: ltr;
}

/* ==========================================
   Parallax Banner
   ========================================== */
.parallax-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.parallax-overlay.dark {
    background: rgba(0, 0, 0, 0.5);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.parallax-content .section-label {
    margin-bottom: 25px;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-section {
    padding: 100px 5%;
    background-color: var(--color-white);
}

.gallery-intro {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

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

.gallery-zoom {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
}

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

.contact-hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info a {
    color: var(--color-white);
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.contact-info a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    padding: 60px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-group {
    position: relative;
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--color-gray-light);
    border-radius: 0;
    background-color: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.form-group select {
    appearance: none;
    cursor: pointer;
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    pointer-events: none;
}

.input-icon.textarea-icon {
    top: 20px;
    transform: none;
}

.btn-submit {
    grid-column: 1 / -1;
    width: 200px;
    margin: 20px auto 0;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 30px 5%;
    background-color: var(--color-primary);
    text-align: center;
}

.footer p {
    color: var(--color-white);
    font-size: 12px;
    opacity: 0.7;
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    z-index: 10001;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 14px;
    opacity: 0.7;
}

/* ==========================================
   Scroll to Top
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 10px;
    }
}

@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: rgba(26, 26, 26, 0.98);
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .about-content,
    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-section.alt-layout .service-content {
        direction: ltr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-title {
        letter-spacing: 4px;
    }
    
    .about-section,
    .service-section,
    .gallery-section {
        padding: 60px 5%;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 40px 5%;
    }
    
    .parallax-banner {
        height: 300px;
    }
    
    .contact-hero {
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-right {
        display: flex;
    }
    
    .header-right .social-icons {
        display: none;
    }
    
    .language-selector {
        gap: 4px;
    }
    
    .lang-btn {
        font-size: 9px;
        padding: 3px 5px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

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

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

/* Smooth transitions for sections on scroll */
.service-section,
.gallery-section,
.about-section {
    opacity: 1;
}

