
/* Add smooth scroll behavior to the whole page */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #232941;
    --secondary-color: #ffffff;
    --accent-color: #808080;
}

.menu-toggle {
    display: none; /* Hidden by default for larger screens */
    flex-direction: column;
    justify-content: space-between; /* Ensure equal spacing between bars */
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 10px;
    z-index: 1002;
    position: relative;
    background: transparent;
    border: none;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Make menu toggle visible on smaller screens */
    }

    .hero {
        padding-top: 70px; 
    }

    .navbar-container {
        padding: 0 15px;
    }

    .logo img {
        height: 45px; 
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        transition: all 0.3s ease-in-out;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        z-index: 1001;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        top: 70px;
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-toggle span {
    display: block;
    width: 100%; /* Full width of the .menu-toggle container */
    height: 3px; /* Thickness of each bar */
    background-color: #ffffff; /* White color for bars */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    position: relative; /* Adjust to simplify positioning */
}

/* State for default appearance of bars */
.menu-toggle span:nth-child(1) {
    transform: none;
}

.menu-toggle span:nth-child(2) {
    opacity: 1; /* Ensure this bar is visible initially */
}

.menu-toggle span:nth-child(3) {
    transform: none;
}

/* Active state (showing an "X") */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0; /* Hide the middle bar to form an "X" */
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

    .nav-links.active {
        display: flex;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
        margin-right: 15px;
        padding: 10px;
    }

    .menu-toggle span {
        width: 25px;
        height: 2px;
        background-color: white;
        transition: 0.3s;
    }

    .navbar-container {
        padding: 0 15px;
    }

    .logo img {
        height: 45px;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-logo img {
        height: 100px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 1.8rem; 
        line-height: 1.2;
        margin-bottom: 20px;
        padding: 0 15px;
        word-break: break-word;
    }

    .hero p {
        font-size: 1rem !important; 
        margin: 15px 0 !important;
        padding: 0 15px;
    }
    
    .about-section {
        padding: 60px 0;
    }


    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 15px;
    }

    .portfolio-filters {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 15px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        gap: 15px;
        padding: 0 15px;
    }

    .portfolio-item img {
        height: 250px;
    }

    .services-grid {
        padding: 0 15px;
    }

    .service-card {
        min-width: 260px;
        padding: 15px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .contact-form form {
        padding: 20px !important;
    }

    .contact-form form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    input, textarea, select {
        padding: 10px;
        font-size: 16px !important; 
    }

    .contact-form .form-group {
        margin-top: 15px !important;
    }

    .contact-form button[type="submit"] {
        padding: 12px !important;
        min-height: 44px;
    }

    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 15px;
    }

    button {
        min-height: 44px; 
        padding: 12px 25px;
    }

    .filter-btn {
        padding: 8px 15px;
        margin: 5px;
    }

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

    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem; 
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .portfolio-item img {
        height: 200px;
    }
}

p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
}

.navbar {
    position: fixed;
    width: 100%;
    background: var(--primary-color);
    padding: 10px 0;
    z-index: 1000;
    transition: 0.3s;
}

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

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #a0a0a0;
}

    .hero {
        height: 100vh;
        background: linear-gradient(rgba(35, 41, 65, 0.7), rgba(35, 41, 65, 0.7)),
            url('../images/framing_background.jpeg') center/cover; 
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        padding-top: 80px;
        background-attachment: fixed;  /* Add this line */
    }


@media (max-width: 768px) {
    .hero-content {
        width: 100%;
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 15px 5px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        padding: 0 15px;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        padding: 0 10px;
    }
}

.hero h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 30px;
    font-size: 3.5rem; 
}

@media (max-width: 768px) {
    .hero p {
        padding: 0 15px;
        margin-bottom: 20px;
    }
}

.section {
    padding: 100px 20px;
}

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

    .portfolio-swiper {
        width: 100%;
        padding: 20px 0;
    }

    .swiper-slide {
        text-align: center;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }

    .swiper-slide img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: 8px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        color: var(--primary-color);
    }

    .swiper-pagination-bullet-active {
        background: var(--primary-color);
    }

    @media (max-width: 768px) {
        .swiper-slide img {
            height: 300px;
        }
    }


.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.3s;
    display: block;
}

.portfolio-item.hide {
    display: none;
    opacity: 0;
}

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

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

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

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

button {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #2f365c;
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

    .about-section {
        background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.80)),
                    url('../images/staircase.jpeg') center/cover;
        padding: 120px 0;
        color: var(--primary-color);  
        background-attachment: fixed;  
    }


.about-logo {
    text-align: center;
    margin-bottom: 30px;
}

.about-logo img {
    height: 240px;
    width: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.about-text {
    padding: 0;
    margin-bottom: 40px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
    color: var(--primary-color);
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

.testimonials-section {
    background: linear-gradient(rgba(35, 41, 65, 0.92), rgba(35, 41, 65, 0.88)),
                url('../images/framing_background.jpeg') center/cover fixed;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
    animation: slideBackground 20s linear infinite;
    opacity: 0.1;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 1001;
}

.scroll-indicator {
    display: none;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.expanded-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.expanded-image img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.expanded-image.active {
    opacity: 1;
}

.expanded-image.active img {
    transform: translateX(0);
}

.close-expanded {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    overflow-x: visible;
}

.service-card {
    min-width: auto;
    flex: none;
    width: 100%;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    margin-bottom: 8px;
    color: #444;
    padding-left: 20px;
    position: relative;
}

.service-card ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Center all section titles */
.section h2, .about-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Update portfolio section h2 centering */
#portfolio h2 {
    text-align: center;
    margin-bottom: 40px;
}

    /* Update services section h2 centering */
    #services h2 {
        text-align: center;
        margin-bottom: 40px;
    }
    
    #services {
        background-attachment: fixed !important;  /* Add this line */
    }


/* Update contact section h2 centering */
#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.hero-logo img {
    height: 150px; 
    width: auto;
}

@media (max-width: 768px) {
    .hero-logo img {
        height: 80px;  
    }
}

@media (max-width: 992px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        padding: 20px 0;
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }

    .service-card {
        min-width: 300px;
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
}
