:root {
    /* Main Color Palette */
    --white: #ffffff;
    --ocean-blue: #0ea5e9;
    --marine-turquoise: #06b6d4;
    --sandy-beige: #f8f5ef;
    --light-gray: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #64748b;
    
    /* Variables */
    --font-family: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-gray); }
.bg-sand { background-color: var(--sandy-beige); }

.text-center { text-align: center; }
.text-ocean { color: var(--ocean-blue); }

.section-header {
    margin-bottom: 50px;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--marine-turquoise);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--ocean-blue);
    border-color: var(--ocean-blue);
}

.btn-outline:hover {
    background-color: var(--ocean-blue);
    color: var(--white);
}

.w-100 { width: 100%; }

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ocean-blue);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.nav-cta {
    font-size: 1rem;
    padding: 10px 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 85vh;
    background-image: url('images/ocean-yacht-hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* Important: NO dark overlays! The image stays completely bright. */
}

.hero-container {
    width: 100%;
}

.hero-content {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 650px;
    box-shadow: var(--shadow-md);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Image Wrappers & Overlays */
.image-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
}

.gallery-grid .image-wrapper,
.why-us-image {
    border-radius: var(--border-radius);
}

.image-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.image-wrapper:hover::after {
    opacity: 1;
}

.image-wrapper:hover .image-overlay-btn {
    opacity: 1;
    visibility: visible;
}

/* Featured Boats */
.boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.boat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.boat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.boat-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.boat-info {
    padding: 25px;
}

.boat-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.boat-info ul {
    list-style-type: disc;
    padding-right: 20px;
    color: var(--text-secondary);
}

.boat-info li {
    margin-bottom: 8px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.image-wrapper:hover .gallery-img {
    transform: scale(1.02);
}

/* Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-box {
    background: var(--sandy-beige);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.service-box:hover {
    background: var(--light-gray);
}

.service-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-box p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Why Choose Us */
.flex-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-us-content {
    flex: 1;
}

.why-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--ocean-blue);
}

.why-us-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    padding-right: 25px;
}

.features-list li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: var(--marine-turquoise);
    font-weight: bold;
}

.why-us-image {
    flex: 1;
}

.rounded-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* About Us */
.about-section {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
}

.large-text {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.reviewer h4 {
    color: var(--ocean-blue);
    margin-bottom: 5px;
}

.reviewer span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--sandy-beige);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-sm);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.contact-form-container {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--ocean-blue);
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--ocean-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Pages Content (Terms & Privacy) */
.page-body {
    background-color: var(--sandy-beige);
}

.page-content {
    margin-top: 120px;
    margin-bottom: 60px;
}

.text-content-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.text-content-box h1 {
    color: var(--ocean-blue);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.text-content-box h3 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.text-content-box p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .flex-row, .contact-wrapper {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 25px;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }

    /* On mobile, make the button always slightly visible so users know it's a link */
    .image-overlay-btn {
        opacity: 0.9;
        visibility: visible;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}