/*
Theme Name: Studio Zigzag
Theme URI: https://studiozigzag.com
Description: Professional lighting design portfolio theme for Studio Zigzag based in Málaga, Spain. Features bilingual support (English/Spanish), individual project sliders, and modern responsive design.
Author: Studio Zigzag
Author URI: https://studiozigzag.com
Version: 1.1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studiozigzag
Tags: portfolio, lighting, design, bilingual, responsive, project-sliders
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    line-height: 1.4;
    color: #000;
    background: #d5d5d5;
    overflow-x: hidden;
}

.lang-es {
    display: none;
}

html {
    scroll-behavior: smooth;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-logo {
    width: 60px;
    height: 81px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 81"><rect width="60" height="81" fill="none" stroke="%23000" stroke-width="1" stroke-dasharray="3,3"/><text x="30" y="40" text-anchor="middle" font-size="8" fill="%23000">LOGO</text></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-buttons {
    display: flex;
    gap: 10px;
}

.lang-button {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.lang-button:hover {
    opacity: 0.7;
}

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

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    font-family: 'Helvetica Neue Black', 'Helvetica Black', 'Helvetica', Arial, sans-serif;
    color: #fff;
    line-height: 0.9;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: clamp(18px, 3vw, 28px);
    color: #fff;
    font-weight: 300;
    margin-bottom: 50px;
}

/* Main Content */
.main-content {
    margin-top: 0;
}

.section {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 80px; /* Default for other sections */
}

/* Override section-header margin specifically for projects */
.section#projects .section-header {
    max-width: 1400px;
    margin: 0 auto 0 auto; /* No margin */
    padding: 0 40px;
}

.section-title {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    font-family: 'Helvetica Neue Black', 'Helvetica Black', 'Helvetica', Arial, sans-serif;
    line-height: 0.9;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 30px; /* Default margin */
}

/* Override section title margin specifically for projects */
.section#projects .section-title {
    margin-bottom: 5px; /* CHANGED: Reduce gap to 5px */
}

.section-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    max-width: 600px;
}

/* Profile Section */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.profile-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.profile-text p {
    margin-bottom: 30px;
}

.profile-gallery {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.profile-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.profile-slide {
    min-width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
}

/* Projects Section - UPDATED */
.section#projects {
    padding: 120px 0 0 0; /* Only top padding for section title */
    max-width: none; /* Remove max-width constraint */
    margin: 0;
}

/* Override section-header margin specifically for projects */
.section#projects .section-header {
    max-width: 1400px;
    margin: 0 auto 0 auto; /* No margin */
    padding: 0 40px;
}

/* Override section title margin specifically for projects */
.section#projects .section-title {
    margin-bottom: 5px; /* CHANGED: Reduce gap to 5px */
}

/* NEW: Projects Section with Individual Project Sliders - UPDATED */
.projects-sliders-section {
    padding: 0;
    margin: 0;
    width: 100%;
}

.single-project-slider {
    margin-bottom: 0; /* CHANGED: Zero gap between all project sliders */
    position: relative;
}

.single-project-slider:last-child {
    margin-bottom: 0;
}

.project-slider-container {
    position: relative;
    height: 70vh;
    overflow: hidden;
    border-radius: 0;
    background: #f5f5f5;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-slide.active {
    opacity: 1;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Project overlay with information */
.project-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    padding: 80px 60px 60px;
    color: #fff;
    z-index: 10;
}

.project-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    font-family: 'Helvetica Neue Black', 'Helvetica Black', 'Helvetica', Arial, sans-serif;
    line-height: 0.9;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.project-location {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 15px;
}

.project-type {
    font-size: 16px;
    font-weight: 300;
	opacity: 0.8;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.project-client {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.8;
}

.project-client-label {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation dots for each project slider */
.project-dots {
    position: absolute;
    bottom: 30px;
    right: 60px;
    display: flex;
    gap: 8px;
    z-index: 15;
}

.project-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-dot.active,
.project-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Modus Operandi */
.modus-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.modus-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.modus-text p {
    margin-bottom: 30px;
}

.modus-gallery {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.modus-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.modus-slide {
    min-width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
}

/* Footer - UPDATED */
.footer {
    background: #555555;
    color: #fff;
    padding: 80px 40px 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.footer-logo {
    width: 80px;
    height: 109px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    font-size: 18px;
    font-weight: 500;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links a {
    font-size: 18px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Project Image Lightbox Modal */
.project-lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    z-index: 3001;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

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

/* Lightbox Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    z-index: 3001;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 20px 15px;
    border-radius: 50%;
    user-select: none;
}

.lightbox-nav:hover {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Hide navigation if only one image */
.lightbox-single-image .lightbox-nav {
    display: none;
}

/* Make project slides clickable */
.project-slide {
    cursor: pointer;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        font-size: 40px;
        padding: 15px 10px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 60px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-logo {
    width: 60px;
    height: 82px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 82"><rect width="60" height="82" fill="none" stroke="%23000" stroke-width="1" stroke-dasharray="3,3"/><text x="30" y="41" text-anchor="middle" font-size="8" fill="%23000">LOGO</text></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 40px auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: #000;
    font-weight: 300;
}

.close:hover {
    opacity: 0.6;
}

.modal h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
}

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

.submit-btn {
    background: #2a2a2a;
    color: #fff;
    padding: 20px 40px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    opacity: 0.8;
}

/* Privacy Policy Page Styling */
.privacy-policy-page {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.privacy-policy-page .section-header {
    margin-bottom: 80px;
}

.privacy-policy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.privacy-policy-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.privacy-policy-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #000;
}

.privacy-policy-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #000;
}

.privacy-policy-text p {
    margin-bottom: 20px;
}

.privacy-policy-text ul {
    margin: 20px 0;
    padding-left: 30px;
}

.privacy-policy-text li {
    margin-bottom: 10px;
}

.privacy-policy-image {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* Responsive Privacy Policy */
@media (max-width: 1024px) {
    .privacy-policy-page {
        padding: 80px 20px;
    }
    
    .privacy-policy-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .privacy-policy-image {
        height: 400px;
    }
}
@media (max-width: 1024px) {
    .header-container {
        padding: 15px 20px;
    }

    .section {
        padding: 80px 20px;
    }

    .profile-content,
    .modus-content,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        display: none;
    }

    .footer {
        padding: 60px 20px 20px;
    }

    .section#projects {
        padding: 80px 0 0 0;
    }

    .section#projects .section-header {
        padding: 0 20px;
        margin-bottom: 30px; /* UPDATED: Reduced for mobile */
    }

    /* Project sliders responsive - UPDATED */
    .projects-sliders-section {
        padding: 0;
        margin: 0;
    }

    .single-project-slider {
        margin-bottom: 5px; /* UPDATED: Even smaller gap on mobile */
    }

    .project-info-overlay {
        padding: 60px 40px 40px;
    }

    .project-dots {
        right: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .project-info-overlay {
        padding: 40px 30px 30px;
    }

    .project-dots {
        right: 30px;
        bottom: 20px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-location {
        font-size: 16px;
    }
}