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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: white;
}

.logo img {
    height: 50px;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a.active {
    color: #333;
    border-bottom: 2px solid #333;
}

/* Hero Section */
.hero {
    background-image: url('../assets/bg-index.webp');
    background-size: cover;
    background-position: center;
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.highlight {
    color: #4DCAB8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4DCAB8;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #3db9a7;
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem;
    background: white;
}

.service-item {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    height: 60px;
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Latest Project Section */
.latest-project {
    padding: 4rem;
    background: #f9f9f9;
}

.latest-project h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.view-project {
    color: #4DCAB8;
    text-decoration: none;
    font-weight: 500;
}

.project-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Portfolio Section */
.portfolio {
    padding: 4rem;
}

.portfolio h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    background: white;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4DCAB8;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        padding: 0 2rem;
        height: 70vh;
    }

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

    .services {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Our Story Page */
.our-story {
    padding: 4rem;
    width: 100%;
    min-height: 80vh;
    background-image: url('../assets/bg-ourstory.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Content container for max-width constraint */
.story-header, .story-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.our-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

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

.subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.story-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.3;
    color: #333;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content p strong {
    color: #333;
}

/* Testimonials Section */
.testimonials {
    background: #f9f9f9;
    padding: 4rem;
    margin-top: 4rem;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #333;
}

.testimonial-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slides {
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    padding: 2rem;
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-slide cite {
    font-style: normal;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4DCAB8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.carousel-controls button:hover {
    color: #3db9a7;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background: #4DCAB8;
}

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

/* Responsive styles for Our Story page */
@media (max-width: 768px) {
    .our-story {
        padding: 2rem;
    }

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

    .story-content p {
        font-size: 1rem;
    }

    .testimonials {
        padding: 2rem;
    }

    .testimonial-slide blockquote {
        font-size: 1rem;
    }
}

/* Portfolio Page Styles */
.portfolio-page {
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-page h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    color: #4DCAB8;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1;
    padding: 0.5rem;
    line-height: 1;
}

.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.modal-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    height: auto;
}

.modal-info {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.modal-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-category {
    font-size: 0.8rem;
    color: #4DCAB8;
    text-transform: uppercase;
}

.modal-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-details {
    display: grid;
    gap: 1rem;
}

.detail-item h4 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive styles for portfolio */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-page {
        padding: 2rem;
    }

    .portfolio-filters {
        flex-wrap: wrap;
    }

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

    .modal {
        padding: 1rem;
    }

    .modal-info {
        padding: 1rem;
    }
}

/* Project Detail Page Styles */
.project-detail {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #4DCAB8;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.project-info {
    padding: 1rem;
}

.project-info h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.project-categories {
    margin-bottom: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.project-details {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #666;
}

@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
    }
}

/* Project Gallery Styles */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-item:hover {
    opacity: 0.8;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Update project content grid for better gallery display */
.project-content {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .gallery-item img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .gallery-item img {
        height: 80px;
    }
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Optional: Hide caption by default and show on hover */
.gallery-main:hover .image-caption {
    transform: translateY(0);
}