/* CSS Reset - Critical for Safari */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base HTML fixes for Safari */
html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography fixes */
h1, h2, h3, h4, h5, h6 {
    font-family: "GFS Didot", serif;
    font-weight: 400;
    font-style: normal;
}

p, a, span, div, nav, button, footer {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

/* Image fixes for Safari */
img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Navigation fixes */
nav {
    position: fixed;
    width: 100%;
    background: black;
    padding: 1rem 2rem;
    z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-container {
    max-width: 1200px;
    height: 50px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 95px;
    width: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links .dropdown-toggle {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #bfbfbf;
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 25px;
}

.dropdown-toggle::after {
    content: '▾';
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Hero Section fixes for Safari */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.hero picture,
.hero img,
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-weight: 400;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 14px;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    text-align: center;
    max-width: 120ch;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #bfbfbf;
    color: white;
}

/* Hero sizing fixes */
.hero--index {
    min-height: 100vh;
}

.hero--medium {
    min-height: 60vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* Section with Image Layout - Replace Grid with Flexbox */
.section-with-image {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.section-content {
    flex: 1;
}

.section-image {
    flex: 0 0 400px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-image img {
    padding-top: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-title {
    font-size: 2.0rem;
    margin-bottom: 3rem;
    color: #333;
}

/* About Section fixes */
.about-section-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-left {
    flex: 1;
    text-align: left;
}

.about-left h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #333;
}

.about-left p:last-child {
    margin-bottom: 0;
}

.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-right img {
    width: 100%;
    max-width: 500px;
    height: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-right video {
    width: 80%;
    height: auto;
    object-fit: cover;
}

/* Services Section - Replace Grid with Flexbox */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

.service-item {
    text-align: center;
    background: transparent;
    flex: 1 1 300px;
    max-width: 380px;
    min-width: 300px;
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

.service-image {
    width: 100%;
    height: 230px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.service-title-link:hover {
    opacity: 0.7;
}

.package-item {
    background: #f9f9f9;
    padding: 2rem;
    text-align: center;
}

.package-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.3rem 0;
    color: #666;
}

.booking-container {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-b {
    background: #000000;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contact-form-b .form-group-b {
    margin-bottom: 1.2rem;
}

.contact-form-b label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-form-b input,
.contact-form-b textarea {
    width: 100%;
    height: 55px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.submit-btn-b {
    display: inline-block;
    padding: 1rem 2rem;
    background: #333333;
    border: 2px solid white;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn-b:hover {
    background: #bfbfbf;
    color: white;
}

/* Two-column grid layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Full-width fields */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Process Section - Replace Grid with Flexbox */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: space-between;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    flex: 1 1 200px;
    min-width: 200px;
}

.step-h2 {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    color: white;
    line-height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.process-step p {
    color: #666;
    font-size: 0.9rem;
}

/* Investment Section - Replace Grid with Flexbox */
.investment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.package-item {
    background: #f9f9f9;
    padding: 2rem;
    text-align: center;
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 300px;
}

.package-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.3rem 0;
    color: #666;
}

/* Portfolio Container fixes */
.portfolio-container {
    position: relative;
    height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-content {
    position: absolute;
    max-width: 450px;
    z-index: 10;
}

.portfolio-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-image {
    position: absolute;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-image.right {
    left: 55%;
    top: 50px;
    width: 550px;
    height: 375px;
    z-index: 1;
}

.portfolio-image.middle {
    left: 65%;
    top: 150px;
    transform: translateX(-50%);
    width: 350px;
    height: 250px;
    z-index: 2;
}

/* Reverse Section Layout - Add this to your existing CSS */
.reverse-section-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.reverse-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reverse-left img {
    width: 100%;
    max-width: 500px;
    height: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.reverse-right {
    flex: 1;
    text-align: left;
}

.reverse-right h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #333;
}

/* Mobile styles for reverse section */
@media (max-width: 768px) {
    .reverse-section-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .reverse-left {
        order: 1;
        max-width: 100%;
    }

    .reverse-left img {
        max-width: 300px;
        height: 400px;
        margin: 0 auto;
    }

    .reverse-right {
        order: 2;
        text-align: center;
    }

    .reverse-right h2 {
        font-size: 2rem;
    }
}

/* Reviews Section fixes for Safari */
.reviews-section {
    padding: 5rem 0;
    background: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-title {
    font-family: "GFS Didot", serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.reviews-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.reviews-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 2rem;
    animation: scroll 60s linear infinite;
    width: fit-content;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
    }
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4, #34A853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.reviewer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.stars {
    display: flex;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
}

.review-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.google-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Contact Section fixes */
.contact-section-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000;
    padding: 5rem 3rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.contact-left {
    flex: 1;
}

.contact-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-right img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

.form-group {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #222;
    color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    background: #333333;
    color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    background: #555;
}

/* Footer fixes */
footer {
    background: #000000;
    color: white;
    padding: 3rem 0;
    margin-top: 5px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-left {
    flex: 1;
}

.footer-left h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-left p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 0;
}

.footer-center h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-logo {
    max-width: 175px;
    height: auto;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    -webkit-transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    -webkit-transform: rotate(-45deg) translate(5px, -5px);
}

/* Black section styles */
.black-section {
    background-color: #000000;
    color: white;
}

.black-section .section-title {
    color: #ffffff;
}

/* =========================================== FAQ =========================================== */
.faq-section {
    padding: 4rem 2rem;
}

.faq-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
    /* turns + into × */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.faq-answer p {
    padding: 0.5rem 0 1rem;
    color: #555;
}

.faq-answer.open {
    max-height: 500px;
    /* big enough for content */
    opacity: 1;
}

/* =========================================== QUOTE ONLY =========================================== */
.add-to-quote {
    background: black;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-to-quote:hover {
    background: #444;
}

.quote-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.quote-banner.hidden {
    display: none;
}

.quote-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quote-item {
    background: #222;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff5555;
    font-size: 1.1rem;
    cursor: pointer;
}

.quote-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.book-now-btn {
    background: #ffffff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.book-now-btn:hover {
    background: #ddd;
}

#quote-summary {
    background: #222;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

#quote-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

#quote-summary ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

#quote-summary li {
    margin: 0.25rem 0;
    font-size: 1rem;
}

/* Glow animation for quote summary */
.quote-summary.glow {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
    animation: glowFade 3s ease-out forwards;
}

@keyframes glowFade {
    0% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
        transform: scale(1.02);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }

    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* General centered text section */
.pv-text {
    text-align: center;
    padding: 4rem 2rem;
}

.pv-text .container {
    max-width: 800px;
    /* keeps lines a nice readable width */
    margin: 0 auto;
}

.pv-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.pv-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Black section background */
.gallery-section {
    background: #000;
    padding: 4rem 2rem;
    color: #fff;
    max-width: 1450px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    /* take full column width */
    height: auto;
    /* keep natural proportions */
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav {
        padding: 0.5rem 1rem;
    }

    .nav-container {
        height: auto;
        min-height: 50px;
        position: relative;
    }

    .logo img {
        height: 60px;
        width: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        width: 200px;
        padding: 1rem;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        -webkit-transform: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }

    .nav-item:hover .dropdown-menu {
        transform: none;
        -webkit-transform: none;
    }

    .dropdown-menu a {
        padding-left: 2rem;
        font-size: 0.9rem;
    }

    /* Hero Mobile */
    .hero {
        height: 80vh;
        min-height: 500px;
        padding: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Section Mobile */
    .section {
        padding: 3rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Section with Image Mobile */
    .section-with-image {
        flex-direction: column;
        gap: 2rem;
    }

    .section-image {
        flex: none;
        order: -1;
        margin-bottom: 2rem;
        height: 250px;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .section-content {
        text-align: center;
    }

    /* About Section Mobile */
    .about-section-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-left {
        text-align: center;
        order: 2;
    }

    .about-left h2 {
        font-size: 2rem;
    }

    .about-right {
        order: 1;
        max-width: 100%;
    }

    .about-right img {
        max-width: 300px;
        height: 400px;
        margin: 0 auto;
    }

    /* Portfolio Mobile */
    .portfolio-container {
        height: auto;
        padding: 2rem 1rem;
        position: relative;
    }

    .portfolio-content {
        position: relative;
        max-width: 100%;
        text-align: center;
        margin-bottom: 3rem;
        z-index: 10;
    }

    .portfolio-content h2 {
        margin-bottom: 1.5rem;
        font-size: 2rem;
        text-align: center;
    }

    .portfolio-images {
        position: relative;
        height: 350px;
        max-width: 600px;
        margin: 0 auto;
    }

    .portfolio-image.right {
        left: 10%;
        top: 20px;
        width: 280px;
        height: 210px;
    }

    .portfolio-image.middle {
        left: 30%;
        top: 120px;
        width: 250px;
        height: 180px;
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }

    /* Services Mobile */
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .service-item {
        max-width: 350px;
        min-width: 280px;
    }

    .service-image {
        width: 100%;
        max-width: 350px;
        height: 200px;
        margin: 0 auto;
    }

    .service-item h3 {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    /* Process Mobile */
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .process-step {
        padding: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .step-h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Investment Mobile */
    .investment-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0;
    }

    .package-item {
        width: 100%;
        max-width: 350px;
        min-width: auto;
        margin: 0 auto;
    }

    /* Reviews Mobile */
    .reviews-section {
        padding: 3rem 0;
    }

    .reviews-container {
        padding: 0 1rem;
    }

    .reviews-title {
        font-size: 2rem;
    }

    .review-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.5rem;
    }

    .reviews-track {
        gap: 1rem;
    }

    /* Contact Mobile */
    .contact-section-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .contact-left {
        flex: none;
        order: 2;
    }

    .contact-right {
        flex: none;
        order: 1;
        max-height: 300px;
        overflow: hidden;
    }

    .contact-right img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .form-group {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem;
    }

    .contact-form {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
        align-items: center;
    }

    .footer-left {
        order: 1;
        text-align: center;
    }

    .footer-center {
        order: 3;
        align-self: center;
        margin-top: 1rem;
    }

    .footer-center h3 {
        font-size: 0.9rem;
    }

    .footer-center h5 {
        margin-top: 0.5rem;
        font-size: 0.75rem;
    }

    .footer-right {
        order: 2;
        text-align: center;
        justify-content: center;
    }

    .footer-logo {
        max-width: 120px;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
        margin: 0.5rem 0;
    }

    .social-links a img {
        width: 18px;
        height: 18px;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    /* Fix Safari button and input styling */
    button, input[type="submit"] {
        -webkit-appearance: none;
        appearance: none;
    }

    input[type="text"], 
    input[type="email"], 
    input[type="date"], 
    textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 0;
    }

    /* Fix Safari scroll momentum */
    .reviews-scroll-container {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix Safari transform issues */
    .portfolio-image,
    .hero img,
    .review-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Fix Safari sticky positioning if needed */
    .nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
}

/* iOS Safari specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .hero {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Fix viewport issues on iOS */
    .hero-content {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .logo img,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Prevent zoom on input focus (iOS Safari) */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="date"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Additional Safari animation fixes */
@-webkit-keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

/* Performance optimizations for Safari */
.hero,
.portfolio-image,
.service-image,
.review-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Remove will-change after load to save memory */
.loaded .hero,
.loaded .portfolio-image,
.loaded .service-image,
.loaded .review-card {
    will-change: auto;
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Touch targets on mobile */
@media (max-width: 768px) {
    a,
    button,
    input,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reviews-track {
        animation: none;
    }
}

/* Print styles */
@media print {
    .nav,
    .hamburger,
    .reviews-scroll-container {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .section {
        padding: 2rem 0;
    }
}