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

:root {
    --white: #FFFFFF;
    --black: #000000;
    --blue: #004777;
    --beige: #E9E6DD;
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --text-color: #333;
    --light-bg: #f5f6fa;
}

body {
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    color: var(--blue);
    background-color: var(--beige);
    font-size: 16px;
}

h1, h2, h3 {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--beige);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 48px;
    width: auto;
}

.header-left h1 {
    font-size: 1.8rem;
    color: var(--blue);
    font-family: 'EB Garamond', serif;
}

.header-left h1 span {
    color: var(--black);
}

.header-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 500;
    padding: 0.5rem 0.4rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--blue);
    color: var(--white);
}

.language-switcher {
    margin-left: 0.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.language-switcher img {
    width: auto;
    height: 32px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.language-switcher img.hover-img {
    position: absolute;
    opacity: 0;
}

.language-switcher:hover img.default-img {
    opacity: 0;
}

.language-switcher:hover img.hover-img {
    opacity: 1;
}

/* Override the nav-links hover effect for the language switcher */
.nav-links a.language-switcher:hover {
    background: transparent;
    color: var(--blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--blue);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: var(--beige);
        padding: 1rem 0;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .header-left h1 {
        font-size: 1.5rem;
        margin-right: 3rem;
    }

    .language-switcher {
        margin: 1rem 0;
    }
    
    .language-switcher img {
        height: 36px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: rgba(233, 230, 221, 0.8);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-left {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    animation: fadeIn 1s ease-out;
}

.hero-right {
    flex: 0 0 60%;
    animation: fadeIn 1s ease-out;
    text-align: left;
}

.hero-right h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.hero-right p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--blue);
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-button {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.portfolio-btn {
    background: var(--blue);
    color: var(--white);
}

.portfolio-btn:hover {
    background: #003d5f;
}

.consultation-btn {
    background: var(--black);
    color: var(--white);
}

.consultation-btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-left, .hero-right {
        flex: 0 0 100%;
    }

    .hero-logo {
        max-width: 50vw;
        height: auto;
        max-height: 50vh;
    }

    .hero-right h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-right p {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 1rem;
    background: rgba(233, 230, 221, 0.8);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background: rgba(233, 230, 221, 0.8);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-left {
    flex: 0 0 40%;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-end;
    -ms-flex-align: flex-end;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.about-arms {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.about-right {
    flex: 0 0 60%;
}

.about-right p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-link {
    color: var(--black);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.about-link:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-right p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-container {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 2rem;
    }

    .about-left, .about-right {
        -webkit-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    }

    .about-left {
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .about-right p {
        font-size: 1rem;
        text-align: center;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: transparent;
}

.contact .subtitle {
    text-align: center;
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container,
.contact-info-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    color: var(--black);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact Form Styles */
.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--blue);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: 'EB Garamond', serif;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003d5f;
    box-shadow: 0 0 0 2px rgba(0, 61, 95, 0.1);
}

.submit-btn {
    background: var(--blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.submit-btn i {
    font-size: 24px;
    margin-right: 0.5rem;
}

.submit-btn:hover {
    background: #003d5f;
    transform: translateY(-2px);
}

/* Contact Information Styles */
.contact-info-container h3 {
    color: var(--black);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--blue);
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--blue);
}

.contact-item a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #003d5f;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.social-link {
    color: var(--blue);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #003d5f;
    transform: translateY(-2px);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form-container,
    .contact-info-container {
        width: 100%;
    }

    .contact-item {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: var(--blue);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-top: 1rem;
}

/* Section Styles */
section {
    padding: 5rem 1rem;
    background: rgba(233, 230, 221, 0.8);
    position: relative;
    z-index: 1;
}

section h2 {
    text-align: center;
    font-size: 1.875rem; /* text-3xl */
    margin-bottom: 0.5rem; /* mb-2 */
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--blue);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.section-content {
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    section h2 {
        font-size: 2.25rem; /* text-4xl */
    }
}

/* Services Section */
.services {
    position: relative;
    z-index: 2;
}

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

.service-item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-item:hover {
    transform: translateY(-5px);
    z-index: 1000;
}

.service-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-item:hover .service-image img {
    opacity: 1;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

.service-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-price {
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 1rem;
}

.service-details {
    position: relative;
}

.details-trigger {
    color: var(--blue);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
}

.details-trigger:hover {
    color: var(--black);
}

.details-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.service-details:hover .details-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.details-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.details-content li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-item {
        max-width: 500px;
        margin: 0 auto;
    }

    .service-image {
        display: none;
    }

    .details-content {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        z-index: 1000;
    }

    .service-details:hover .details-content {
        transform: translateX(-50%) translateY(0);
    }
}

/* Process Section */
.process {
    position: relative;
    z-index: 1;
}

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

.process-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    margin-top: 25px;
}

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

.process-number {
    position: absolute;
    top: -25px;
    left: 15px;
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: var(--blue);
    font-weight: 600;
    opacity: 0.8;
    z-index: 2;
}

.process-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.process-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--blue);
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-item {
        background: transparent;
        box-shadow: none;
        padding: 1rem;
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        cursor: pointer;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .process-number {
        position: static;
        font-size: 1.5rem;
        min-width: 2rem;
    }

    .process-item h3 {
        margin-bottom: 0;
        font-size: 1.2rem;
        flex: 1;
    }

    .process-item p {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 10;
        margin-top: 0.5rem;
    }

    .process-item.active p {
        display: block;
    }

    .timeline {
        display: none;
    }
}

/* Showcase Section */
.showcase {
    position: relative;
    z-index: 2;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--beige);
}

.carousel-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.slide-content p {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.details-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 1.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.details-btn:hover {
    background: #003d5f;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--blue);
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .carousel-wrapper {
        width: 100%;
    }

    .carousel-slide {
        width: 100%;
        min-width: 100%;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    .slide-content {
        padding: 0.75rem 1rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

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

    .details-btn {
        bottom: 0.75rem;
        right: 1rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .thumbnail {
        width: 80px;
        height: 56px;
    }
}

/* Fullscreen Image View */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2001;
}

/* Background Logo */
.background-logo {
    position: fixed;
    top: 90px; /* Height of the header + 10px */
    left: 0;
    width: 100%;
    height: calc(100vh - 90px); /* Adjusted to match new top position */
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.background-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.1;
    max-width: 100vw;
    max-height: calc(100vh - 90px); /* Adjusted to match new container height */
}

@media (max-width: 768px) {
    .background-logo {
        top: 130px; /* Mobile header height + 10px */
        height: calc(100vh - 130px);
    }
    
    .background-logo img {
        max-height: calc(100vh - 130px);
    }
}

/* Ensure main content has proper z-index */
main {
    position: relative;
    z-index: 1;
}

/* Timeline Styles */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--blue);
    opacity: 0.3;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-item h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .timeline {
        display: none;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    opacity: 1;
    transform: scale(1.02);
}

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

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

/* Gallery Fullscreen Overlay */
.gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.gallery-overlay.active {
    display: flex;
}

.gallery-fullscreen-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-close-btn {
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.gallery-close-btn:hover {
    background: #003d5f;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    .gallery-item {
        aspect-ratio: 1;
        width: 100%;
        max-width: 100%;
    }

    .gallery-item:nth-child(n+13) {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-slide {
    display: none;
    width: 50%;
    padding: 0 1rem;
    float: left;
}

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

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flag-icon {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.testimonial-info {
    flex: 1;
}

.testimonial-author {
    color: var(--black);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.testimonial-title {
    color: var(--blue);
    font-size: 1rem;
    font-style: italic;
}

.testimonial-content {
    position: relative;
    padding-left: 2rem;
}

.quote-icon {
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 24px;
    height: auto;
    opacity: 0.8;
}

.testimonial-text {
    color: var(--blue);
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.testimonial-dot.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: 100%;
        float: none;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .testimonial-author {
        font-size: 1.2rem;
    }
    
    .testimonial-title {
        font-size: 0.9rem;
    }
}

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

.hero-content,
.portfolio h2,
.about h2,
.contact h2 {
    animation: fadeIn 1s ease-out;
}

/* Portfolio Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--beige);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: var(--beige);
}

.details-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.details-btn:hover {
    background: #003d5f;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

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

.dot.active {
    background: var(--secondary-color);
}

/* Fullscreen Image View */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2001;
}

/* Background Logo */
.background-logo {
    position: fixed;
    top: 90px; /* Height of the header + 10px */
    left: 0;
    width: 100%;
    height: calc(100vh - 90px); /* Adjusted to match new top position */
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.background-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.1;
    max-width: 100vw;
    max-height: calc(100vh - 90px); /* Adjusted to match new container height */
}

@media (max-width: 768px) {
    .background-logo {
        top: 130px; /* Mobile header height + 10px */
        height: calc(100vh - 130px);
    }
    
    .background-logo img {
        max-height: calc(100vh - 130px);
    }
}

/* Ensure main content has proper z-index */
main {
    position: relative;
    z-index: 1;
}

/* Timeline Styles */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--blue);
    opacity: 0.3;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-item h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .timeline {
        display: none;
    }
} 