/* styles.css */

:root {
    --light: #F5F5F5;
    --dark: #14141F;
    --white: #fff;
    --background: #0f0f15;
    --background-secondary: #1a1a24;
    --gray: #D3D3D3;
    --text: #b8b8c0;
    --text-light: #d4d4d8;
    --header: #f1f1f3;
    --subheader: #c4c4c7;
    --orange: #ff8c42;
    --orange-hover: #ff7629;
    --accent: #6366f1;
    --accent-light: rgba(99, 102, 241, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
    min-height: 100vh;
    padding-top: 80px;
    color: var(--text);
    line-height: 1.6;
}

.orange {
    color: var(--orange) !important;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding-top: 8vh;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--header);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero .fs-4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
    font-weight: 400;
    color: var(--subheader);
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 40vh;
    min-height: 300px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--header);
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--accent));
    border-radius: 2px;
}

p {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Wave Effect */
.wave {
    width: 100%;
    height: 150px;
    background-image: url(/assets/img/icons/wave-orange.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 4rem;
    opacity: 0.7;
    animation: wave-animation 3s ease-in-out infinite;
}

@keyframes wave-animation {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.05); }
}

/* Content Sections */
.content-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 20px 40px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px var(--shadow);
}

/* Banner and Images */
.banner {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    height: 40vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.banner:hover {
    transform: scale(1.02);
}

.yacht-image {
    width: 60%;
    max-width: 100%;
    border-radius: 24px;
    height: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yacht-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Navbar - COMPLETELY FIXED VERSION */
.navbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 72px;
    background: rgba(15, 15, 21, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    color: #f9f9f9;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    padding: 0 1rem;
    transition: background-color 0.3s ease;
}

.navbar-burger {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 0;
    font-family: inherit;
    background: transparent;
    color: inherit;
    cursor: pointer;
    z-index: 1002;
}

.navbar-burger:hover {
    background: var(--glass-bg);
}

/* Hide hamburger when menu is open */
body.open .navbar-burger {
    opacity: 0;
    visibility: hidden;
}

/* Logo and title container for mobile centering */
.navbar-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    height: 48px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.1);
}

.navbar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.navbar-overlay {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.open .navbar-overlay {
    visibility: visible;
    opacity: 1;
}

.navbar-menu {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 320px;
    height: 100vh;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
    /* SOLID background - completely opaque */
    background: #14141F;
    border-right: 1px solid var(--glass-border);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

body.open .navbar-menu {
    transform: translateX(0);
    visibility: visible;
}

/* Close button positioned all the way to the right */
.navbar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: end;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    border: 0;
    font-family: inherit;
    background: transparent;
    color: #d4d4d8;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1003;
}

.navbar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orange);
}

.logo_menu {
    margin-bottom: 1rem;
    margin-top: 1rem;
    height: 64px;
    width: 64px;
    cursor: pointer;
    align-self: flex-start;
}

.navbar-menu > button {
    color: #d4d4d8;
    background: transparent;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.navbar-menu > button:hover {
    color: var(--orange);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-menu > button.active {
    color: var(--orange);
    background: var(--accent-light);
    border-color: var(--orange);
}

.navbar-menu button.item {
    color: #d4d4d8;
    background: transparent;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.navbar-menu button.item:hover {
    color: var(--orange);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.navbar a:hover, .navbar a:focus {
    text-decoration: none;
    color: var(--orange);
}

/* Buttons */
.btn-primary {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--orange-hover), #ff6b1a);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.4);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--orange);
    background: transparent;
    border: 2px solid var(--orange);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

/* Cards */
.yacht-showcase .card {
    color: var(--text-light);
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.yacht-showcase .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--orange);
}

/* Contact Section */
.contact {
    margin-top: 5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px var(--shadow);
}

/* Error Image */
.error-image {
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Desktop styles */
@media only screen and (min-width: 600px) {
    body {
        padding-top: 72px;
    }

    .hero {
        padding-top: 12vh;
    }

    .wave {
        margin-top: 6rem;
        height: 200px;
    }

    .navbar {
        justify-content: space-between;
        padding: 0 2rem;
    }

    .navbar-burger, .navbar-overlay, .navbar-close {
        display: none;
    }

    .navbar-center {
        position: static;
        transform: none;
    }

    .navbar-title {
        font-size: 24px;
    }

    .logo_menu {
        display: none;
    }

    .navbar-menu {
        position: static;
        transform: translateX(0);
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        visibility: visible;
        padding: 0;
        border: none;
        box-shadow: none;
        align-items: center;
        justify-content: flex-end;
    }

    .navbar-menu > button {
        width: auto;
        padding: 0.5rem 1rem;
        background: transparent;
        color: var(--text-light);
    }

    .navbar-menu > button:hover {
        transform: none;
        background: var(--glass-bg);
        border-color: var(--glass-border);
    }

    .navbar-menu button.item {
        width: auto;
        padding: 0.5rem 1rem;
        background: transparent;
        color: var(--text-light);
    }

    .navbar-menu button.item:hover {
        transform: none;
        background: var(--glass-bg);
        border-color: var(--glass-border);
    }
}

/* Mobile specific styles */
@media only screen and (max-width: 600px) {
    .navbar {
        padding: 0 1rem;
    }

    .navbar-title {
        font-size: 18px;
    }

    .logo {
        height: 40px;
    }

    .mobile-hidden {
        display: none !important;
    }

    .content-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .contact {
        padding: 2rem 1.5rem;
    }

    /* Force solid background on mobile menu */
    .navbar-menu {
        background: #14141F !important;
        backdrop-filter: none !important;
    }

    .navbar-menu > button {
        color: #d4d4d8 !important;
    }
    
    .navbar-menu > button:hover {
        color: var(--orange) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .navbar-menu button.item {
        color: #d4d4d8 !important;
    }
    
    .navbar-menu button.item:hover {
        color: var(--orange) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

@media only screen and (min-width: 400px) and (max-width: 450px) {
    .logo {
        margin-right: 3rem;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .content-section {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }

    .content-section:nth-child(even) {
        animation-delay: 0.2s;
    }

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