/* style.css for #photosbarcelona - Modern, clean, responsive */

:root {
    --primary: #222;
    --secondary: #fff;
    --accent: #1a4c10;
    --neutral: #f5f5f5;
    --shadow: rgba(0,0,0,0.08);
    --font-main: 'Montserrat', Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--neutral);
    color: var(--primary);
    scroll-behavior: smooth;
}

header {
    background: var(--secondary);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: black;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links li a:hover, .social-link:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 800px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        width: 200px;
        box-shadow: 0 2px 8px var(--shadow);
        transform: translateX(100%);
        transition: transform 0.3s;
        gap: 1.5rem;
        padding: 1.5rem 0;
        z-index: 99;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .menu-toggle {
        display: flex;
    }
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gallery-section h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    cursor: pointer;
    background: var(--secondary);
    transition: transform 0.2s;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px var(--shadow);
}
.personal-branding-title, .product-brand-item, .event-item, .couple-item {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary);
}
.gallery-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.gallery-item .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(34,34,34,0.05) 60%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .overlay {
    opacity: 0.18;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.lightbox.active {
    pointer-events: auto;
}
.lightbox.show {
    opacity: 1;
    transform: scale(1);
}
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 32px var(--shadow);
    outline: none;
    transition: box-shadow 0.2s;
}
.lightbox img:focus {
    box-shadow: 0 0 0 3px var(--accent), 0 4px 32px var(--shadow);
}
.lightbox .close {
    color: var(--secondary);
    font-size: 2.5rem;
    position: absolute;
    top: 30px;
    right: 40px;
    cursor: pointer;
    font-weight: bold;
    z-index: 201;
    transition: color 0.2s;
    user-select: none;
}
.lightbox .close:hover, .lightbox .close:focus {
    color: var(--accent);
}

.about-section, .contact-section {
    background: var(--secondary);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    margin: 3rem 0;
    padding: 2rem 2.5rem;
}
.about-section h2, .contact-section h2 {
    color: var(--accent);
    margin-top: 0;
}
.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}
.contact-form label {
    font-weight: 500;
    color: var(--primary);
}
.contact-form input, .contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--neutral);
    resize: none;
}
.contact-form button {
    background: var(--accent);
    color: var(--secondary);
    border: none;
    padding: 0.9rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #e14a24;
}

footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 1.2rem 0;
    text-align: center;
    margin-top: 3rem;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
.footer-nav {
    display: flex;
    gap: 1.5rem;
}
.footer-nav a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    main {
        padding: 0 0.3rem;
    }
    .about-section, .contact-section {
        padding: 1.2rem 0.7rem;
    }
    .gallery-item img {
        height: 140px;
    }
}

 .carousel-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            max-width: 700px;
            margin: 0 auto;
        }
        .carousel-track {
            
            display:flex;
            transition: transform 0.5s ease-in-out;
        }
        .carousel-item {
            justify-content: center;
            min-width: 100%;
            box-sizing: border-box;
        }
        .carousel-item img {
            width: 500px;
            height: 100%;
            display: block;
            object-fit: cover;
            border-radius: 10px;
        }
        @media (max-width: 600px) {
            .carousel-container {
                max-width: 100%;
            }
        }
    
.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.personal-item {
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    overflow: hidden;
    background: var(--secondary);
    transition: transform 0.2s;
}
.personal-item img {
    width: 100%;
    height: 300 px;
    object-fit: fill;
    display: block;
    transition: opacity 0.2s;
}
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}
#prev-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 161, 45, 0.5);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}
#next-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 161, 45, 0.5);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}
#pause-btn {
    position: absolute;
    bottom: 10px;
    right: 40%;
    align-content: center;
    background: rgba(16, 161, 45, 0.5);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}
#close {
    text-align: center;
    margin: 3rem 0 1rem 0;
}
.contact-button {
    background: var(--accent);
    color: var(--secondary);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}