/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Newsreader", serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1510;
    letter-spacing: 0.2px;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Header with Page Title */
header {
    background: linear-gradient(135deg, rgba(26, 21, 16, 0.85) 0%, rgba(62, 42, 26, 0.75) 50%, rgba(101, 67, 33, 0.7) 100%),
                url('../images/woodslab.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 105, 30, 0.15), transparent);
    animation: shine 10s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Navigation in Header */
header nav {
    background: transparent;
    padding: 2rem;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(3px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10000;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #e8d4b8;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

header nav ul,
.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

header nav a {
    color: #e8d4b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: 2px solid transparent;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

header nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D2691E;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

header nav a:hover::before,
header nav a.active::before {
    width: 80%;
}

header nav a:hover,
header nav a.active {
    color: #D2691E;
    text-shadow: 0 0 20px rgba(210, 105, 30, 0.5);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 6px 6px 16px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    animation: fadeInUp 0.8s ease-out;
}

.page-header .tagline {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Portfolio Intro */
.portfolio-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(62, 42, 26, 0.4) 0%, rgba(26, 21, 16, 0.6) 100%);
    border-radius: 0;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.4), 0 0 30px rgba(210, 105, 30, 0.1);
    border: 2px solid #8B4513;
}

.portfolio-intro h2 {
    color: #e8d4b8;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.portfolio-intro p {
    font-size: 1.05rem;
    color: #c4b5a0;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* Filter Section */
.filter-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    border: 2px solid #8B4513;
}

.filter-section h3 {
    color: #654321;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid #8B4513;
    background-color: white;
    color: #654321;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(139, 69, 19, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    border: 2px solid #8B4513;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(139, 69, 19, 0.3);
}

.portfolio-image {
    height: 300px;
    overflow: hidden;
    background: #1a1510;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-details {
    padding: 1.25rem;
}

.portfolio-details h3 {
    color: #2a1f15;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 500;
}

.portfolio-details p {
    color: #3e2a1a;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
}

.project-tag {
    display: inline-block;
    background-color: #f8f4f0;
    color: #654321;
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid #8B4513;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 0;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    border: 2px solid #8B4513;
    margin-bottom: 2rem;
}

.testimonials h2 {
    color: #654321;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: linear-gradient(135deg, #f8f4f0 0%, #fff5eb 100%);
    padding: 1.5rem;
    border-radius: 0;
    border-left: 5px solid #D2691E;
    border-top: 2px solid #8B4513;
    position: relative;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.testimonial p:first-child {
    color: #555;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial p:first-child::before {
    content: '"';
    font-size: 3rem;
    color: #D2691E;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    opacity: 0.3;
}

.client-name {
    color: #8B4513;
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
}

/* Instagram Section */
.instagram-section {
    background: linear-gradient(135deg, rgba(62, 42, 26, 0.6) 0%, rgba(26, 21, 16, 0.8) 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 0;
    border: 2px solid #8B4513;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.4);
}

.instagram-section h2 {
    color: #e8d4b8;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.instagram-embed {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(62, 42, 26, 0.6) 0%, rgba(26, 21, 16, 0.8) 100%);
    color: #e8d4b8;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 0;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.4);
    border: 2px solid #8B4513;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 105, 30, 0.1), transparent);
    animation: shine 10s infinite;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e8d4b8;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #c4b5a0;
}

.cta-button {
    display: inline-block;
    background-color: #D2691E;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    border: 2px solid #3e2a1a;
}

.cta-button:hover {
    background-color: #CD853F;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: #3e2a1a;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-content p a {
    color: #c4b5a0;
    text-decoration: none;
}

.footer-content p a:hover {
    color: #e8d4b8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #D2691E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #CD853F;
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(210, 105, 30, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #e8d4b8;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #D2691E;
}

.lightbox-caption {
    color: #e8d4b8;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    font-family: "Newsreader", serif;
}

.portfolio-image img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(210, 105, 30, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        padding: 1rem;
        backdrop-filter: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(26, 21, 16, 0.98);
        width: 70%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease-in-out;
        padding-top: 4rem;
        gap: 0;
        backdrop-filter: blur(10px);
        z-index: 9999;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
        margin: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid rgba(210, 105, 30, 0.2);
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    header {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .page-header {
        padding: 4rem 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    main {
        padding: 1rem;
    }

    .portfolio-intro h2,
    .instagram-section h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-item {
        padding: 1rem;
    }

    .instagram-section {
        padding: 2rem 1rem;
    }

    .instagram-embed {
        padding: 0 0.5rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
}

@media (max-width: 480px) {
    header nav ul {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .portfolio-intro h2,
    .instagram-section h2,
    .cta-section h2 {
        font-size: 1.75rem;
    }

    .portfolio-details h3 {
        font-size: 1.3rem;
    }
}
