/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a365d;
    background-color: #ffffff;
}

/* CSS Variables for Nautical Color Scheme */
:root {
    --navy-primary: #1a365d;
    --navy-secondary: #2c5282;
    --light-blue: #63b3ed;
    --accent-blue: #3182ce;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --gold-accent: #d69e2e;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 179, 237, 0.2);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.sticky-header.visible {
    transform: translateY(0);
    opacity: 1;
}

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

.boat-info {
    flex: 1;
}

.boat-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.boat-specs {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--light-blue);
}

.price {
    font-weight: 600;
    color: var(--gold-accent);
    font-size: 1.1rem;
}

/* Touch-friendly buttons - minimum 44px touch target */
.contact-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px; /* Touch-friendly minimum */
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--navy-secondary), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.3);
}

.contact-btn.large {
    padding: 16px 32px;
    font-size: 1rem;
    min-height: 48px;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 1px;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Header Info */
.mobile-header-info {
    display: none;
    align-items: center;
}

.mobile-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-accent);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    z-index: 999;
    padding: 10px 0;
    transform: translateY(-160px);
    opacity: 0;
    transition: all 0.3s ease;
}

.navigation.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--navy-primary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--light-gray);
    color: var(--accent-blue);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--navy-primary);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-close span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-nav-close span:first-child {
    transform: rotate(45deg) translate(1px, 1px);
}

.mobile-nav-close span:last-child {
    transform: rotate(-45deg) translate(1px, -1px);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-menu a {
    display: block;
    padding: 18px 20px;
    color: var(--navy-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
    background: var(--light-gray);
    border-left-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateX(5px);
}

.mobile-nav-menu a.active {
    background: rgba(49, 130, 206, 0.1);
    border-left-color: var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    background: var(--light-gray);
}

.mobile-nav-footer .contact-btn {
    width: 100%;
    justify-content: center;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 50%, var(--accent-blue) 100%);
    background-blend-mode: overlay;
    will-change: transform;
    z-index: 1;
}

.hero-background picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile performance optimization */
@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll; /* Better mobile performance */
    }
}

/* WebP support removed - using PNG only */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.7) 0%,
        rgba(44, 82, 130, 0.6) 50%,
        rgba(49, 130, 206, 0.5) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 0 20px;
}

.hero-boat-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.spec-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spec-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.spec-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
}

.scroll-arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    margin: -2px 0;
    animation: scroll-bounce 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: rotate(45deg) translateY(5px);
        opacity: 1;
    }
    60% {
        transform: rotate(45deg) translateY(5px);
        opacity: 1;
    }
}

/* Image Placeholders */
.image-placeholder {
    background: var(--medium-gray);
    border: 2px dashed var(--accent-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-weight: 500;
    min-height: 200px;
    width: 100%;
}

/* Image Loading Animations */
.image-loading {
    position: relative;
    overflow: hidden;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.image-loaded {
    animation: fadeInImage 0.5s ease-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lazy Loading Skeleton */
.image-skeleton {
    background: var(--light-gray);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% {
        background-color: var(--light-gray);
    }
    50% {
        background-color: var(--medium-gray);
    }
}

.image-skeleton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--medium-gray);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Section Styles */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--medium-gray);
    /* Will be overridden by scroll animations */
    opacity: 1;
    transform: none;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.text-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-size: 1rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.image-grid {
    display: grid;
    gap: 20px;
}

.image-grid.two-images {
    grid-template-columns: 1fr 1fr;
}

.image-grid.large-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Owner's Note Special Styling */
.section.owners-special {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.section.owners-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 30px 30px;
    pointer-events: none;
}

.section.owners-special .section-header {
    position: relative;
    z-index: 2;
}

.section.owners-special .section-header h2 {
    color: var(--navy-primary);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--navy-secondary);
    margin-top: 10px;
    font-style: italic;
}

.owners-note-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.family-photo-placeholder {
    text-align: center;
    margin-bottom: 40px;
}

.photo-placeholder {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px dashed var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--navy-primary);
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
}

.note-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.15);
    margin-bottom: 40px;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.note-greeting {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 25px;
}

.note-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.owner-signature {
    margin-top: 35px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--navy-primary);
}

.owner-signature p {
    margin-bottom: 5px;
}

.note-ps {
    font-style: italic;
    color: var(--navy-secondary) !important;
    border-top: 2px solid var(--light-blue);
    padding-top: 20px;
    margin-top: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
}

.cta-btn.secondary:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
}

.cta-btn.accent {
    background: linear-gradient(135deg, #d69e2e, #f6ad55);
    color: white;
}

.cta-btn.accent:hover {
    background: linear-gradient(135deg, #c49102, #d69e2e);
}

.contact-section {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-secondary));
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
}

.contact-section h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-section p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: var(--navy-primary);
    color: var(--white);
    padding: 40px 0;
}

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

.footer-boat-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer-boat-info p {
    color: var(--light-blue);
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive Design for Owner's Note */
@media (max-width: 768px) {
    .photo-placeholder {
        width: 250px;
        height: 150px;
    }
    
    .note-text {
        padding: 30px 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .note-text {
        padding: 25px 20px;
    }
    
    .note-greeting {
        font-size: 1.2rem;
    }
    
    .note-text p {
        font-size: 1rem;
    }
    
    .photo-placeholder {
        width: 200px;
        height: 120px;
        font-size: 0.9rem;
    }
}

/* Comprehensive Mobile Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger menu, hide desktop nav on mobile */
    .hamburger-btn {
        display: flex;
    }
    
    .navigation {
        display: none;
    }
    
    /* Mobile header optimizations */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
    
    .boat-info {
        display: none;
    }
    
    .mobile-header-info {
        display: flex;
    }
    
    /* Disable parallax on mobile for better performance */
    .hero-background {
        background-attachment: scroll;
        height: 100%;
        will-change: auto;
    }
    
    /* Reduce animations on mobile for better performance */
    .spec-item:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    /* Mobile typography optimizations */
    .hero-boat-name {
        font-size: 2.2rem;
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .hero-specs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }

    .spec-item {
        padding: 15px 12px;
    }

    .spec-value {
        font-size: 1.1rem;
    }
    
    .spec-label {
        font-size: 0.8rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-grid.large-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Section headers optimized for mobile */
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Text content optimization */
    .text-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .text-content h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Touch-friendly gallery items */
    .gallery-item {
        /* Removed min-height to allow natural aspect ratios */
    }
    
    .gallery-item img,
    .gallery-item video {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    /* Ensure all interactive elements are touch-friendly */
    .gallery-item,
    .nav-menu a,
    .lightbox-nav,
    .lightbox-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile navigation overlay on smaller screens */
    .mobile-nav-container {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Extra small mobile optimizations */
    .hero-boat-name {
        font-size: 1.8rem;
        margin-bottom: 25px;
        line-height: 1.1;
    }

    .hero-specs-grid {
        gap: 12px;
        max-width: 350px;
    }

    .spec-item {
        padding: 12px 8px;
    }

    .spec-value {
        font-size: 1rem;
    }

    .spec-label {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .text-content h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Mobile navigation becomes full width on small screens */
    .mobile-nav-container {
        width: 100%;
        max-width: 320px;
    }
    
    /* Gallery optimizations for small screens */
    .image-grid.large-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .gallery-item {
        /* Removed min-height to allow natural aspect ratios */
    }
    
    .gallery-item img,
    .gallery-item video {
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }
    
    /* Button optimizations */
    .contact-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .mobile-price {
        font-size: 1.1rem;
    }
    
    /* Section spacing */
    .section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Feature list optimization */
    .feature-list li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Gallery System Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: start;
}

/* Gallery empty and error states */
.gallery-empty,
.gallery-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border: 2px dashed var(--medium-gray);
    border-radius: 12px;
    color: var(--dark-gray);
    font-style: italic;
}

.gallery-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Responsive grid adjustments */
@media (min-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Gallery item styles */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--light-gray);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

/* Gallery overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.7) 0%,
        rgba(49, 130, 206, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

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

/* Video-specific styles */
.gallery-item.video-item .gallery-overlay {
    background: linear-gradient(
        135deg,
        rgba(213, 158, 46, 0.8) 0%,
        rgba(246, 173, 85, 0.7) 100%
    );
}

.gallery-item.video-item:hover video {
    animation: videoPreview 0.3s ease forwards;
}

/* Video thumbnail styles */
.gallery-item.video-item video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Video poster image fallback */
.gallery-item.video-item video[poster] {
    background-image: attr(poster);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video loading state */
.gallery-item.video-item.loading video {
    opacity: 0.7;
    filter: blur(1px);
}

/* Video error state */
.gallery-item.video-item.error {
    background: #fef2f2;
    border: 2px dashed #fecaca;
}

.gallery-item.video-item.error .gallery-overlay {
    background: rgba(220, 38, 38, 0.8);
}

.gallery-item.video-item.error .gallery-icon {
    content: "⚠️";
}

@keyframes videoPreview {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 600px;
}

.lightbox-counter {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light-blue);
}

.lightbox-caption {
    font-size: 1.2rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Lightbox navigation */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-media {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-info {
        margin-top: 15px;
        padding: 0 20px;
    }
    
    .lightbox-caption {
        font-size: 1rem;
    }
    
    .lightbox-counter {
        font-size: 1rem;
    }
}

/* Touch swipe indicators */
.lightbox-swipe-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    animation: swipeHintFade 3s ease-in-out infinite;
}

@keyframes swipeHintFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Loading states */
.gallery-item.loading {
    background: var(--medium-gray);
    animation: galleryPulse 1.5s ease-in-out infinite;
}

@keyframes galleryPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.lightbox-media.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: lightboxSpin 1s linear infinite;
}

@keyframes lightboxSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility improvements */
.gallery-item:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

.lightbox-nav:focus,
.lightbox-close:focus {
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
}

/* Reduced motion support for gallery */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img,
    .gallery-item video,
    .gallery-overlay,
    .gallery-icon,
    .lightbox-overlay,
    .lightbox-nav,
    .lightbox-close {
        transition: none;
        animation: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img,
    .gallery-item:hover video {
        transform: none;
    }
}

/* Enhanced Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); /* ease-out */
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Section animations - fade in and slide up */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hide sections initially if JavaScript is enabled */
.js-enabled .section {
    opacity: 0;
    transform: translateY(20px);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Section title scale effect */
.section-header h2 {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section-header.animate-in h2 {
    transform: scale(1);
    opacity: 1;
}

/* Alternating image animations */
.image-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image-slide-left.animate-in,
.image-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered bullet point animations */
.feature-list li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.feature-list li.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Owner's note gentle fade-in */
.owners-special .note-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.owners-special .note-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.owners-special .family-photo-placeholder {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.owners-special .family-photo-placeholder.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* CTA buttons staggered animation */
.cta-btn {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cta-btn.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .section,
    .section-header h2,
    .image-slide-left,
    .image-slide-right,
    .feature-list li,
    .owners-special .note-text,
    .owners-special .family-photo-placeholder,
    .cta-btn {
        transition: opacity 0.3s ease;
        transform: none;
    }
}

/* Focus States for Accessibility */
.contact-btn:focus,
.nav-menu a:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
    /* Hide interactive and unnecessary elements */
    .sticky-header,
    .navigation,
    .contact-btn,
    .hamburger-btn,
    .mobile-nav-overlay,
    .gallery-overlay,
    .scroll-indicator,
    .cta-buttons,
    .footer,
    .lightbox-overlay,
    .scroll-progress,
    .mobile-header-info,
    .header-actions {
        display: none !important;
    }
    
    /* Page layout optimizations */
    .hero-section {
        margin-top: 0;
        page-break-after: always;
        height: auto;
        min-height: 50vh;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
        border-bottom: 1px solid #ccc;
    }
    
    /* Typography optimizations */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .section-header h2 {
        font-size: 18pt;
        margin-bottom: 10px;
        color: #000;
    }
    
    .text-content p,
    .feature-list li {
        font-size: 11pt;
        line-height: 1.4;
    }
    
    .boat-name,
    .hero-boat-name {
        font-size: 24pt;
        color: #000;
    }
    
    /* Gallery optimizations */
    .gallery-item {
        page-break-inside: avoid;
        margin-bottom: 10px;
    }
    
    .gallery-container {
        display: block;
    }
    
    .gallery-item img {
        max-width: 100%;
        height: auto;
    }
    
    /* Specifications and pricing */
    .spec-item {
        border: 1px solid #ccc;
        margin: 5px;
        padding: 10px;
        background: #f9f9f9;
    }
    
    .price {
        font-size: 16pt;
        font-weight: bold;
        color: #000;
    }
    
    /* Owner's note styling */
    .note-text {
        border: 2px solid #ccc;
        padding: 20px;
        margin: 20px 0;
        background: #f9f9f9;
    }
    
    /* Hide decorative elements */
    .hero-background,
    .hero-overlay {
        display: none;
    }
    
    /* Ensure important content is visible */
    .hero-content {
        position: static;
        color: #000;
        background: #fff;
        padding: 20px;
    }
    
    /* Contact information emphasis */
    .owner-signature {
        font-weight: bold;
        border-top: 2px solid #000;
        padding-top: 10px;
        margin-top: 20px;
    }
    
    /* Feature lists */
    .feature-list {
        margin: 10px 0;
    }
    
    .feature-list li::before {
        content: "• ";
        color: #000;
    }
    
    /* URL printing */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    
    /* Avoid breaking inside important elements */
    .boat-specs,
    .hero-specs-grid {
        page-break-inside: avoid;
    }
}
