/* Основні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --olive: #8B8C2C;
    --dark-olive: #6B6B20;
    --light-olive: #A5A642;
    --beige: #F5E6D3;
    --light-beige: #FAF0E6;
    --white: #FFFFFF;
    --dark-text: #2C2C2C;
    --light-text: #666;
}

body {
    font-family: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

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

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-family: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.logo-image {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--olive);
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.8;
    color: var(--dark-olive);
    text-transform: uppercase;
}

/* Навігація */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--olive);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--olive);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.contact-icons {
    display: flex;
    gap: 1rem;
}

.contact-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--olive);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    max-width: 35px;
    width: 100%;
    max-height: 35px;
    height: 100%;
}

.contact-icons a:hover {
    color: var(--dark-olive);
    transform: translateY(-2px);
    background: rgba(139, 140, 44, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--olive);
    cursor: pointer;
    padding: 0.5rem;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
}

.hero.video-failed {
    background-image: url('../img/photographer-portrait.webp');
    background-size: cover;
    background-position: center;
}

.hero.video-failed .hero-video {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.8) 0%, rgba(250, 240, 230, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--olive);
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    background: var(--olive);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: var(--dark-olive);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 140, 44, 0.3);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--olive);
    font-weight: 300;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--olive);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--light-beige);
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: var(--beige);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--beige);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Services Section */
.services {
    background: var(--light-beige);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--olive), var(--light-olive));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card i {
    color: var(--olive);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
    color: var(--dark-olive);
}

.service-card h3 {
    color: var(--olive);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-olive);
    margin: 1rem 0;
}

.service-order-btn {
    display: inline-block;
    background: var(--olive);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.service-order-btn:hover {
    background: var(--dark-olive);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 140, 44, 0.3);
}

/* Footer */
.footer {
    background: var(--olive);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--beige);
    font-weight: 400;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.footer-contact a:hover {
    color: var(--beige);
    transform: translateX(5px);
    background: rgba(255,255,255,0.1);
}

.footer-bottom {
    border-top: 1px solid var(--dark-olive);
    padding-top: 1rem;
    color: var(--beige);
    font-size: 0.9rem;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid var(--beige);
    border-top: 4px solid var(--olive);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 1080px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .contact-icons {
        display: none;
    }

    .logo-text {
        display: flex;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .camera-outline {
        width: 28px;
        height: 18px;
        border-width: 1.5px;
    }

    .lens {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }

    .lens-center {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }

    .viewfinder {
        width: 6px;
        height: 3px;
        border-width: 1px;
        top: -6px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-image img {
        height: 300px;
        object-position: center;
        display: block;
    }

    .portfolio-item img {
        height: 250px;
        object-position: center;
        display: block;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.cta-button:focus,
.nav-menu a:focus,
.contact-icons a:focus,
.mobile-menu-btn:focus {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --olive: #000000;
        --dark-olive: #000000;
        --light-text: #000000;
        --dark-text: #000000;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-btn,
    .cta-button,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 0.5rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--olive);
}

.modal h2 {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    color: var(--dark-text);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal h2 span {
    color: var(--olive);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input,
#orderMessage {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-row input:focus,
#orderMessage:focus {
    outline: none;
    border-color: var(--olive);
    background: white;
    box-shadow: 0 0 0 2px rgba(139, 140, 44, 0.1);
}

#orderMessage {
    margin-bottom: 1.5rem;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--olive) 0%, var(--dark-olive) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 140, 44, 0.3);
}

.submit-btn i {
    font-size: 0.9rem;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 92%;
        max-height: 90vh;
    }
    
    .modal h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .close {
        right: 1rem;
        top: 0.5rem;
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .form-row input,
    #orderMessage {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 8% auto;
        padding: 1.2rem;
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .modal h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

/* Loading placeholder */
.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
    font-style: italic;
}