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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

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

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

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 800px;
}

.hero-tagline {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: white;
    opacity: 0.9;
}

/* Recent Work Section */
.recent-work {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-content {
    padding: 1.5rem;
}

.work-address {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.work-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.work-link:hover {
    color: #0056b3;
}

/* Partnership Section */
.partnership {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.partnership-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #666;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #0056b3;
}

/* About Us Section */
.about-us {
    padding: 8rem 0 5rem;
    background: #f8f9fa;
    min-height: 60vh;
}

.about-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Contact Us Section */
.contact-us {
    padding: 8rem 0 5rem;
    background: #f8f9fa;
    min-height: 60vh;
}

.contact-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
}

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

.form-submit {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 2rem auto 0;
}

.form-submit:hover {
    background: #0056b3;
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Messages */
.form-messages {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Loading Animation */
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Honeypot field (hidden from users but accessible to bots) */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Form field focus states */
.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Project Detail Page Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Before/After Section */
.before-after-section {
    padding: 5rem 0;
    background: white;
}

.before-after-container {
    max-width: 800px;
    margin: 0 auto;
}

.before-after-widget {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    cursor: grab;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.before-after-widget:active {
    cursor: grabbing;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease-out;
}

.image-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: grab;
    z-index: 20;
    transform: translateX(-50%);
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-line {
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.slider-circle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-arrows {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

/* Project Gallery */
.project-gallery {
    padding: 5rem 0;
    background: #f8f9fa;
}

.gallery-section {
    margin-bottom: 4rem;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

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

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Project Contact Section */
.project-contact {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: #007bff;
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.cta-button.secondary:hover {
    background: #007bff;
    color: white;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

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

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-email {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 67vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
        margin: 1rem auto 0;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .partnership-text {
        font-size: 1.1rem;
    }
    
    .about-us {
        padding: 6rem 0 3rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .contact-us {
        padding: 6rem 0 3rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-messages {
        font-size: 13px;
        padding: 12px;
    }
    
    .char-counter {
        font-size: 0.8em;
    }
    
    /* Project Page Mobile Styles */
    .project-hero {
        padding: 3rem 0;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .before-after-widget {
        height: 300px;
    }
    
    .before-after-section,
    .project-gallery,
    .project-contact {
        padding: 3rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}