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

body {
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.menu {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 30px;
}

.menu:hover {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.menu .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menu .logo:hover {
    transform: translateX(-3px);
}

.menu .logo img {
    display: block;
    height: auto;
    max-height: 40px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    width: 30px;
    height: 30px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex: 1;
}

/* Ensure menu is visible on desktop */
@media screen and (min-width: 769px) {
    .menu ul {
        display: flex !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

.social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    height: 100%;
    width: auto;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.menu li {
    position: relative;
}

.menu li.has-submenu {
    position: relative;
}

.menu .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    list-style: none;
    min-width: 150px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu li.has-submenu:hover .submenu,
.menu li.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.menu .submenu li {
    width: 100%;
}

.menu .submenu a {
    padding: 12px 20px;
    text-align: center;
    display: block;
    font-size: 14px;
}

.menu .submenu a::after {
    left: 50%;
    transform: translateX(-50%);
    width: 0;
}

.menu .submenu a:hover::after {
    width: 80%;
}

.menu a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
}

.menu a:hover {
    font-weight: bold;
    transform: translateY(-2px);
}

.menu a:hover::after {
    width: 100%;
}

main {
    margin-top: 80px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 40px 0;
}

.home-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.home-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
}

.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section h1 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.services-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.services-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.services-content {
    line-height: 1.8;
}

.services-subtitle {
    font-size: 28px;
    margin: 50px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-subtitle .icon {
    font-size: 32px;
}

.service-item {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item:last-of-type {
    border-bottom: none;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-item p {
    font-size: 18px;
    line-height: 1.8;
}

.services-approach {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
    font-style: italic;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
}

.services-list li {
    font-size: 18px;
    line-height: 2;
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.services-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1.5;
}

.portfolio-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.portfolio-item {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    max-width: 300px;
    width: 100%;
}

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

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-section {
    padding: 40px 0;
}

.page-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-items: center;
}

.page-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    filter: brightness(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* First two images - side by side */
.page-gallery img:nth-child(5n+1),
.page-gallery img:nth-child(5n+2) {
    grid-column: span 1;
    max-width: 100%;
}

/* Third image - full width (size of two above) */
.page-gallery img:nth-child(5n+3) {
    grid-column: 1 / -1;
    max-width: 100%;
}

/* Fourth and fifth images - side by side (same size as the one above) */
.page-gallery img:nth-child(5n+4),
.page-gallery img:nth-child(5n+5) {
    grid-column: span 1;
    max-width: 100%;
}

.page-gallery img:hover {
    filter: brightness(1.2);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modal/Lightbox styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

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

@media screen and (max-width: 768px) {
    .menu {
        padding: 15px 15px;
        flex-wrap: wrap;
        position: relative;
    }
    
    .menu .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .menu .logo img {
        max-height: 30px;
    }
    
    .menu-toggle {
        display: block !important;
        order: 3;
        flex: 0 0 auto;
    }
    
    .social-icons {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .menu ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 15px;
        display: none !important;
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        padding: 20px 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .menu ul.active {
        display: flex !important;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 10px;
        box-shadow: none;
        transform: none;
    }
    
    .menu li.has-submenu.active .submenu {
        display: block;
    }
    
    .social-icons {
        gap: 10px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    main {
        margin-top: 60px;
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 16px;
    }
    
    .home-section {
        min-height: calc(100vh - 60px);
        padding: 20px 15px;
    }
    
    .home-logo {
        max-width: 100%;
    }
    
    .about-section {
        padding: 20px 15px;
    }
    
    .about-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .about-image {
        max-width: 100%;
        margin-top: 30px;
    }
    
    .services-section {
        padding: 20px 15px;
    }
    
    .services-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .services-subtitle {
        font-size: 22px;
        margin: 40px 0 20px 0;
    }
    
    .services-subtitle .icon {
        font-size: 26px;
    }
    
    .service-item {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }
    
    .service-item h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .service-item p {
        font-size: 16px;
    }
    
    .services-approach {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .services-list li {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .page-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .page-gallery img {
        max-width: 100%;
    }
    
    .page-gallery img:nth-child(5n+1),
    .page-gallery img:nth-child(5n+2),
    .page-gallery img:nth-child(5n+3),
    .page-gallery img:nth-child(5n+4),
    .page-gallery img:nth-child(5n+5) {
        grid-column: span 1;
        margin-top: 0;
    }
    
    .portfolio-gallery {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    
    .portfolio-item {
        max-width: 100%;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}
