/* Font optimization */
@font-face {
    font-family: 'Lovedone Regular';
    src: url('../fonts/lovedone-regular.woff2') format('woff2'),
        url('../fonts/lovedone-regular.woff') format('woff'),
        url('../fonts/lovedone-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Printed Moments';
    src: url('../fonts/printedmoments.woff2') format('woff2'),
        url('../fonts/printedmoments.woff') format('woff'),
        url('../fonts/printedmoments.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Colors */
    --primary-color: #fcfcfc;
    --secondary-color: #1c1c1c;
    --accent-color: #d4af37;
    --subtle-color: #f0eee9;
    --text-color: #1c1c1c;
    --light-text: #fcfcfc;
    --error-color: #d32f2f;

    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --short-transition: all 0.3s ease;

    /* Fonts */
    --main-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --display-font: 'Italiana', serif;
    --script-font: 'Printed Moments', 'Monsieur La Doulaise', cursive;
    --clamp-font: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1rem, 5vw, 2rem);

    /* z-index layers */
    --z-navbar: 1000;
    --z-modal: 1001;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: -webkit-fill-available;
}

body {
    font-family: var(--main-font);
    font-weight: 300;
    line-height: 2;
    color: var(--text-color);
    background-color: var(--primary-color);
    letter-spacing: 0.02em;
    overflow-x: hidden;
    overscroll-behavior: none;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
}

/* iOS optimizations */
* {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
}

body,
input,
button,
textarea {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Link styling */
a {
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Accessibility focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Media handling */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Screen reader classes */
.hidden,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Form validation */
.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    height: 1rem;
    opacity: 0;
    transition: var(--short-transition);
}

.error-message.visible {
    opacity: 1;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    height: 1.5rem;
    transition: var(--short-transition);
}

.form-status.success {
    color: #4caf50;
}

.form-status.error {
    color: var(--error-color);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--display-font);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Typography utility classes */
.about-me-title {
    font-size: clamp(2.5rem, 2vw, 7rem) !important;
}

.accent {
    color: var(--accent-color);
}

.script {
    font-family: var(--script-font);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.script-centered {
    font-family: var(--script-font);
    font-size: 45px;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.line-quote::before,
.line-quote::after {
    content: "";
    width: 150px;
    height: 2px;
    background-color: black;
    margin: 0 30px;
    vertical-align: middle;
}

.script-header {
    font-size: 55px !important;
}

.script-quote {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.7;
    color: var(--secondary-color);
    font-weight: 400;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 200;
}

/* Layout */
.mobile-only {
    display: none;
}

.desktop-only {
    display: inline;
}

.line-break {
    display: block;
}

.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

section {
  padding-top: calc(8.5rem + 70px);
  padding-bottom: calc(8.5rem + 70px);
  padding-left: 0;
  padding-right: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 3rem;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 300;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover {
    border-color: var(--accent-color);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn.light {
    border-color: var(--light-text);
    color: var(--light-text);
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-navbar);
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-backdrop-filter: blur(0px);
}

header .logo,
header .nav-links a {
    color: var(--light-text);
}

header .hamburger span {
    background: var(--light-text);
}

header.scrolled {
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    color: var(--text-color);
}

header.scrolled .logo,
header.scrolled .nav-links a {
    color: var(--text-color);
}

header.scrolled .hamburger span {
    background: var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--display-font);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        min-height: 100vh;
        /* Minimum height */
        width: min(300px, 80vw);
        background-color: var(--secondary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s ease;
        z-index: calc(var(--z-navbar) - 1);
        padding: 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.nav-links a {
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    font-weight: 300;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fcfcfc;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.scrolled .hamburger-line {
    background-color: var(--secondary-color);
}

body.light-page .hamburger-line {
    background-color: var(--light-text);
}

body.dark-page .hamburger-line {
    background-color: var(--primary-text);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Video Background Container for Services */
.video-background-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Add this to your style.css file */
.service-item:hover .video-background-container {
    /* Override any transform that might be causing the issue */
    transform: none !important;
}

.service-item:hover .background-video {
    /* Keep the video properly positioned and sized */
    transform: translateX(-50%) translateY(-50%) !important;
    transition: none !important;
}

/* Make sure the media container maintains its dimensions */
.service-item .media-container {
    overflow: hidden;
}

/* Ensure the video background container maintains its position */
.video-background-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent any hover effects from parent elements affecting this */
    transform: none !important;
}

.hero-content {
    color: var(--light-text);
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.8s;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.1s;
    border-color: var(--light-text);
    color: var(--light-text);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-tagline {
    font-size: 20px;
    text-align: center;
}

/* About Section */
.about {
    background-color: var(--subtle-color);
    padding: 7rem 0 2rem 0;
    /*4rem*/
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about_me_title {
    font-size: clamp(2.5rem, 4vw, 2.5rem);
}

.shifted-us {
    position: relative;
    display: inline-block;
    top: 10px;
    left: -37px;
    transform: rotate(5deg);
}

/* Work With Us Section */
.work-with-us {
    padding: 8rem 0;
    background-color: var(--primary-color);
}

.work-with-us-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Align items at the top */
    gap: 1.2rem;
}

.work-with-us-text {
    flex: 1.5;
}

.work-with-us-text h2 {
    margin-top: 0; /* Remove top margin to align with image */
    margin-bottom: 2rem;
}

.work-with-us-image {
    flex: 1;
    overflow: hidden;
}

.work-with-us-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(20%);
}
/* Marquee */
.marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: rgba(28, 28, 28, 0.8);
    padding: 1.5rem 0;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    white-space: nowrap;
    padding: 0 2rem;
    font-size: 1.2rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 200;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Vision Section */
.vision {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--light-text);
}

.vision .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.vision .video-background .overlay {
    background: rgba(0, 0, 0, 0.4);
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.vision-text {
    font-family: var(--main-font);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
    word-wrap: normal;
    overflow-wrap: normal;
    white-space: nowrap;
}

.vision h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: var(--display-font);
    margin: 1.9rem 0;
    letter-spacing: 0.2em;
}

/* Services Section */
.services {
    background-color: var(--primary-color);
    padding: 8rem 0;
}

.services-title,
.work-with-us-title {
    text-align: center;
    margin-bottom: 6rem;
}

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

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.media-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
    margin-bottom: 1.5rem;
}

.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(20%);
}

.service-item:hover .media-container img,
.service-item:hover .media-container video:not(.background-video) {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.service-item:hover .background-video {
    /* Keep it centered and sized properly */
    transform: translateX(-50%) translateY(-50%);
    filter: grayscale(0%);
}

.service-item:hover .service-title {
    color: var(--accent-color);
}

.service-item:hover .service-title:after {
    width: 60px;
}

.service-title {
    font-family: var(--clamp-font);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-align: center;
    margin-top: 0.5rem;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    position: relative;
    padding-bottom: 1rem;
    transition: var(--transition);
}

.service-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Quote Section */
.quote {
    width: 100%;
    text-align: center;
    margin-bottom: 9rem;
    padding: 1rem 0;
}

.contact .script-quote.script-centered {
    font-family: var(--script-font);
    margin: 0 auto;
    max-width: 90%;
    line-height: 1.3;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.font-preloader {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
    font-family: 'Printed Moments', 'Brush Script MT', cursive;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
}

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

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 2.5rem;
}

.contact-form form {
    display: grid;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(28, 28, 28, 0.3);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--main-font);
    font-weight: 300;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    pointer-events: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    font-size: 0.7rem;
    color: var(--accent-color);
}

.contact-form .btn {
    justify-self: start;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 5rem 0 2rem;
    text-align: center;
}

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

.footer-logo {
    font-family: var(--display-font);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.links-container {
    display: flex;
    gap: 3rem;
}

.social-links,
.terms-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.social-link,
.terms-link {
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 200;
    text-decoration: none;
}

.social-link::after,
.terms-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.social-link:hover::after,
.terms-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 200;
    letter-spacing: 0.05em;
}

/* Utility classes */
.no-scroll {
    overflow: hidden;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {

    .services-grid,
    .contact-content,
    .about-content,
    .work-with-us-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .work-with-us-text {
        padding-right: 0;
    }

      .work-with-us-content {
        flex-direction: column;
    }
    
    .work-with-us-image {
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 768px) {

    /* Hardware acceleration for iOS */
    .hero,
    .vision,
    .gallery-track {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    .hamburger {
        display: block;
    }

    .hamburger-line {
        background-color: #fcfcfc !important;
    }

    header.scrolled .hamburger-line {
        background-color: #1c1c1c !important;
    }

    .hamburger.active .hamburger-line {
        background-color: #fcfcfc !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        height: -webkit-fill-available;
        width: min(300px, 80vw);
        background-color: var(--secondary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s ease;
        z-index: calc(var(--z-navbar) - 1);
        padding: 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a,
    header.scrolled .nav-links a {
        color: var(--light-text) !important;
    }

    .nav-links a {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .line-quote::before,
    .line-quote::after {
        display: none;
    }

    .work-with-us {
    padding: 0rem 0 !important; 
    }

    .about_me_title {
        font-size: clamp(1.6rem, 2vw, 0.8rem)
    }

    .marquee {
        padding: 0.8rem 0;
    }

    .marquee-item {
        font-size: 0.9rem;
    }

    .footer-content {
        display: grid;
        place-items: center;
        text-align: center;
        gap: 15px;
    }

    .links-container {
        display: grid;
        gap: 10px;
    }

    .social-links {
        display: grid;
        gap: 8px;
    }

    .script-header {
        font-size: 22px !important;
    }

    .shifted-us {
        left: -22px;
    }

    .script-centered {
        font-size: 23px;
        line-height: 2;
        letter-spacing: 0;
    }

    .script-quote {
        font-size: 23x;
        line-height: 2;
        letter-spacing: 0;
        text-align: center;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .tagline {
        font-size: 23.5px;
        text-align: center !important;
    }

    .wrap-vision-text {
        font-size: 43px;
    }

    .quote {
        margin-top: -1rem;
        margin-bottom: 6rem;
    }

    .contact .script-quote.script-centered {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .contact .container {
        width: 85%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form .btn {
        width: auto;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
        text-align: center;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: 0;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .contact {
        overflow-x: hidden;
        width: 100%;
    }

    .contact-content {
        display: block;
        width: 100%;
    }

    .contact-info {
        width: 100%;
        margin-bottom: 2rem;
    }

    .form-status {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        min-height: 2rem;
        text-align: center;
    }

    .contact .script-quote.script-centered {
        margin-bottom: 0rem;
        margin-top: 1.5rem;
    }

    .about-me-title {
        font-size: clamp(2.5rem, 2vw, 4rem) !important;
    }
    h2 
    {
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
}
}

@media (max-width: 480px) {
  section {
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
    padding-left: 0;
    padding-right: 0;
  }

    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(3rem, 6vw, 2.5rem);
    }

    .contact-form .btn {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.85rem;
    }

    .contact .container {
        width: 90%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-control {
        padding: 1.2rem 0;
        font-size: 16px;
        /* Prevent iOS zoom on input */
    }

    .nav-links {
        height: 100dvh;
        /* Dynamic viewport height for iOS */
    }

    .quote {
        margin-top: -1rem;
        margin-bottom: 3rem;
    }
    .section-title {
        font-size: clamp(2.8rem, 6vw, 2.6rem);
    }
}

@media (max-width: 350px) {
    .script-quote {
        font-size: 22px;
    }

    h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .contact {
        padding-top: 4rem;
        padding-bottom: 6rem !important;
    }

    .contact-form .btn {
        margin-bottom: 3rem;
    }
}

/* Safe area insets for newer iOS devices */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .nav-links {
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* iOS-specific enhancements */
@supports (-webkit-touch-callout: none) {
    * {
        -webkit-text-size-adjust: 100%;
    }

    body {
        position: relative;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    video {
        object-position: center;
    }

    input,
    textarea,
    button {
        -webkit-appearance: none;
        border-radius: 0;
    }

    input,
    textarea {
        font-size: 16px !important;
        /* Prevent zoom on focus */
    }

    a,
    button {
        touch-action: manipulation;
    }

    @media (hover: none) {

        .btn:hover,
        .nav-links a:hover::after,
        .gallery-item:hover img,
        .service-item:hover .media-container img,
        .service-item:hover .service-title,
        .about-image:hover img,
        .work-with-us-image:hover img {
            transition: none;
            transform: none;
            filter: none;
        }
    }

    @media (max-width: 768px) {
        .contact .container {
            width: 92%;
            padding-left: max(15px, env(safe-area-inset-left));
            padding-right: max(15px, env(safe-area-inset-right));
        }
    }
}

/* Landscape mode for notched iPhones */
@media screen and (orientation: landscape) and (max-height: 500px) {

    .hero,
    .vision {
        height: 100vh;
        height: -webkit-fill-available;
    }

    .hamburger {
        top: env(safe-area-inset-top);
        right: env(safe-area-inset-right);
    }

    .nav-links {
        padding-top: max(2rem, env(safe-area-inset-top));
    }
}

/* Print styles */
@media print {

    header,
    footer,
    .hero,
    .video-background,
    .gallery,
    .contact-form {
        display: none;
    }

    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p,
    blockquote {
        orphans: 3;
        widows: 3;
    }
}

@media (min-width: 769px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        height: 60px;
    }

    .logo {
        display: flex;
        align-items: center;
        height: 100%;
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .nav-links {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
        min-width: fit-content;
    }

    .nav-links li {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 0 0.25rem;
        white-space: nowrap;
    }

    .nav-links a {
        padding: 0;
        height: 100%;
        display: flex;
        align-items: center;
        font-size: clamp(0.7rem, 1.5vw, 0.9rem);
        letter-spacing: 0.05em;
    }

    /* Hide mobile elements on desktop */
    .mobile-nav-overlay,
    .hamburger {
        display: none !important;
    }
}

/* Medium screen adjustment */
@media (min-width: 769px) and (max-width: 991px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links li {
        padding: 0 0.15rem;
    }
}

/* Mobile menu reset */
@media (max-width: 768px) {
    header {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .hamburger {
        display: block !important;
        z-index: 9999;
        margin-top: 10px !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1c1c1c;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9998;
        padding: 50px 0;
    }

    .logo {
        margin-top: 10px !important;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        color: white !important;
        font-size: 18px;
        padding: 10px;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: white !important;
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: white !important;
    }

    .btn {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        padding: 0.8rem 2rem;
        white-space: nowrap;
    }

    .work-with-us-text .btn {
        width: 100%;
        text-align: center;
    }

    .vision h2 {
        font-size: clamp(2.8rem, 6vw, 2.5rem);
        white-space: nowrap;
        letter-spacing: 0.1em;
    }

    .vision-text {
        font-size: clamp(1rem, 3vw, 1.2rem);
        white-space: normal;
    }
}