/* ===========================
   PREMIUM PHOTOGRAPHY PORTFOLIO
   Dark theme, elegant, minimal
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #fafaf9;
    --dark-secondary: #ffffff;
    --accent: #1a1a1a;
    --text-light: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #f3f4f6;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 250, 249, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition);
    position: fixed;
    top: -215px;
    left: 2rem;
    z-index: 50;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 600px;
    width: auto;
    display: block;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin-left: auto;
    padding-right: 3rem;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--transition);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 0.4rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: all var(--transition);
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ===== HERO SECTION ===== */

.hero {
    margin-top: 4rem;
    position: relative;
    height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.2) 100%);
}

.hero-text {
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1s ease;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-text h1 {
    margin-bottom: 0.5rem;
    font-size: 3.6rem;
    line-height: 1.02;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.hero-text h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-family: var(--font-serif);
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-text p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    margin: 0.5rem auto 0;
    max-width: 760px;
    line-height: 1.6;
}


/* ===== MAIN CONTENT ===== */

main {
    padding-top: 4rem;
}

/* ===== PORTFOLIO SECTION (Alternating Services Layout) ===== */

.portfolio {
    padding: 4rem 0;
    background-color: var(--dark-bg);
}

.portfolio .section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.portfolio .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Service item wrapper for alternating layout */
.service-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    margin: 0 0 2rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-item--image-left {
    grid-template-columns: 1fr 2fr;
}

.service-item--image-left .service-image-wrapper {
    order: 1;
}

.service-item--image-left .service-content-wrapper {
    order: 2;
}

.service-item--image-right {
    grid-template-columns: 2fr 1fr;
}

.service-item--image-right .service-image-wrapper {
    order: 2;
}

.service-item--image-right .service-content-wrapper {
    order: 1;
}

/* Image wrapper - no padding */
.service-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.service-item {
    min-height: 480px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s var(--transition);
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.02);
}

/* Content wrapper */
.service-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.service-content {
    width: 100%;
    max-width: 70%;
}

.service-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-item p:last-child {
    margin-bottom: 0;
}

/* ===== ABOUT SECTION ===== */

.about {
    padding: 6rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: block;
    width: 100%;
    padding: 0;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Text-focused About layout: wider, centered content */
.about-text {
    max-width: 980px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: #f8f7f5;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SERVICES SECTION ===== */

.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--dark-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 42rem;
    height:28rem;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin: 1.5rem 1.5rem 0.75rem;
    padding: 0;
    color: var(--text-light);
}

.feature-bullets {
    list-style: none;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.feature-bullets li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.feature-bullets li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.service-card.featured-service:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== CONTACT SECTION ===== */

.contact {
    padding: 6rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    /* background image layer with 25% opacity */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('graphics/IMG_4011.webp');
    background-size: cover;
    background-position: center center;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
    transition: all var(--transition);
    font-size: 1rem;
    border-radius: 2px;
}

.contact-link:hover {
    background-color: #2a2a2a;
    border-color: #2a2a2a;
}

.contact-link.primary {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-links a {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: all var(--transition);
    border-radius: 2px;
}

.social-links a:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* ===== FOOTER ===== */

.footer {
    padding: 3rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #ffffff;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
        align-items: flex-end; /* keep items to the right when vertical */
    }

    .nav-menu li {
        padding: 1rem 2rem;
        width: 100%;
        text-align: right; /* align menu text to the right on mobile */
    }


    /* duplicate padding removed */

    .nav-toggle {
        display: flex;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }


    h2 {
        font-size: 1.8rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        margin: 0 0 1.5rem 0;
    }

    .service-item--image-left,
    .service-item--image-right {
        grid-template-columns: 1fr;
    }

    .service-item--image-left .service-image-wrapper,
    .service-item--image-left .service-content-wrapper,
    .service-item--image-right .service-image-wrapper,
    .service-item--image-right .service-content-wrapper {
        order: unset;
    }

    .service-image-wrapper {
        min-height: 350px;
    }

    .service-content-wrapper {
        padding: 1.5rem;
    }

    .service-item h3 {
        font-size: 2.3rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-item--image-left .service-image-wrapper,
    .service-item--image-left .service-content,
    .service-item--image-right .service-image-wrapper,
    .service-item--image-right .service-content {
        order: unset;
    }

    .service-image-wrapper {
        padding: 5.5rem;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .service-item p {
        font-size: 0.95rem;
    }

    .contact-methods {
        flex-direction: column;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .portfolio,
    .about,
    .services,
    .contact {
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero {
        margin-top: 3rem;
    }

    main {
        padding-top: 2rem;
    }

    .portfolio,
    .about,
    .services,
    .contact {
        padding: 2rem 0;
    }

    .stat {
        padding: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-item {
        margin: 0 0 1rem 0;
    }

    .service-image-wrapper {
        min-height: 220px;
    }

    .service-content-wrapper {
        padding: 1.25rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    .nav-menu li {
        padding: 0.8rem 1.5rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading + native image optimization */
img[loading="lazy"] {
    background: linear-gradient(90deg, #e8e7e5 25%, #f0f0f0 50%, #e8e7e5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
