/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Navigation */
header {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 400;
        font-family: 'Special Elite', cursive;
    text-decoration: none;
    color: #000;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #333;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

/* Home page styles - now uses same full-width layout as category pages */
/* Portfolio page styles */
.portfolio-grid-container {
    padding: 0;
    margin: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.portfolio-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

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

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

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid #eee;
    color: #666;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-section {
        flex: 1;
        min-width: 200px;
    }
    
    .footer-section:first-child {
        text-align: left;
    }
    
    .footer-section:last-child {
        text-align: right;
    }
    
    .social-links {
        display: flex;
        gap: 1.5rem;
        justify-content: flex-end;
    }
    
    .social-link {
        text-decoration: none;
        color: #666;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
    }
    
    .social-link:hover {
        color: #333;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }
    
    .social-link:hover .social-icon {
        transform: scale(1.1);
}

/* Project page styles */
.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

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

.project-images {
    margin-bottom: 3rem;
}

.project-main-image {
    margin-bottom: 2rem;
    text-align: center;
}

.project-main-image img {
    max-width: 100%;
    height: auto;
}

.project-gallery {
    display: flex;
    flex-direction: column;
        gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    width: 100%;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Clickable images */
.clickable-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-image:hover {
    opacity: 0.8;
}

/* Image container and overlay */
.image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
    pointer-events: none;
    /* This prevents the overlay from blocking clicks */
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.zoom-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* For gallery items, show smaller overlay */
.gallery-item .image-overlay {
    padding: 10px;
}

.gallery-item .zoom-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.gallery-item .zoom-text {
    display: none;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Allow clicks to pass through to modal background */
    }
    
    .modal-content>* {
        pointer-events: auto;
        /* Re-enable pointer events for content inside */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

#modalImage {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    color: #f1f1f1;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    max-width: 80%;
}

.project-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-navigation {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

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

.back-link:hover {
    color: #333;
}

/* Contact page styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.contact-content {
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Left side: Photo */
.contact-photo-section {
    position: relative;
    overflow: hidden;
}

.contact-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    max-height: 500px;
        max-width: 500px;
}

.contact-image-placeholder {
    width: 100%;
    height: 100vh;
    max-height: 600px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    text-align: center;
    padding: 2rem;
}

.contact-image-placeholder p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Right side: Form and contact info */
.contact-form-section {
    padding: 0rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: top;
    max-width: 500px;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.representation {
    margin-bottom: 1rem;
}

.rep-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.rep-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rep-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rep-contact strong {
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rep-contact a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rep-contact a:hover {
    color: #666;
}

.rep-contact span {
    color: #666;
}

.contact-divider {
    border: none;
    height: 1px;
    background: #e1e5e9;
    margin: 2rem 0;
}

.contact-form-container {
    background: transparent;
    padding: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

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

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Name fields */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background: #333;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}
/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

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

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .home-container,
    .project-container {
        padding: 2rem 1rem;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-gallery {
        gap: 1.5rem;
    }
.close-modal {
    top: 10px;
    right: 20px;
    font-size: 30px;
}

.modal-content {
    width: 95%;
    height: 95%;
    padding: 10px;
}

.modal-caption {
    font-size: 1rem;
    max-width: 90%;
}

/* Mobile overlay adjustments */
.image-overlay {
    padding: 15px;
}

.zoom-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.zoom-text {
    font-size: 0.8rem;
}

.gallery-item .zoom-icon {
    font-size: 1.2rem;
}

        /* Mobile footer adjustments */
        .footer-content {
            flex-direction: column;
            text-align: center;
            gap: 1.5rem;
        }
    
        .footer-section {
            text-align: center !important;
            min-width: auto;
        }
    
        .social-links {
            justify-content: center;
        }

                                /* Mobile contact page adjustments */
                                .contact-content {
                                    grid-template-columns: 1fr;
                                    gap: 0;
                                }

                                .contact-photo-section {
                                    height: 40vh;
                                    max-height: 400px;
                                }

                                .contact-image {
                                    height: 40vh;
                                    max-height: 400px;
                                }

                                .contact-image-placeholder {
                                    height: 40vh;
                                    max-height: 400px;
                                }

                                .contact-form-section {
                                    padding: 2rem 1.5rem;
                                }

                                .name-fields {
                                    grid-template-columns: 1fr;
                                }
                                }