:root {
    --primary: #004aad;
    --primary-dark: #00337a;
    --secondary: #2e9ac1;
    --accent: #ffb703;
    --dark: #0a192f;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 74, 173, 0.1);
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
}

.text-white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 74, 173, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-text {
    padding: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Header & Nav */
/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
}

.logo img {
    transition: var(--transition);
}

.logo-dark {
    display: none;
}

#main-header.scrolled .logo-light {
    display: none;
}

#main-header.scrolled .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#main-header.scrolled .nav-links a {
    color: var(--dark);
    text-shadow: none;
}

#main-header.scrolled .nav-links a.btn-primary,
#main-header.scrolled .nav-links a.btn-secondary {
    color: var(--white);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--secondary);
}

#main-header.scrolled .nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('hero-bg.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Booking Bar */
.booking-bar {
    background: var(--white);
    padding: 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.booking-field {
    flex: 1;
    text-align: left;
    padding: 0 1.5rem;
    border-right: 1px solid #eee;
}

.booking-field:last-of-type {
    border-right: none;
}

.booking-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.booking-field select,
.booking-field input {
    width: 100%;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    background: transparent;
}

/* Section Common */
.section-header,
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2,
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.badge {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.text-block {
    margin-bottom: 4rem;
    /* Ensure space below text block on all layouts */
    display: block;
}

/* Grid & Cards */
.section-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.fleet-grid,
.destination-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 74, 173, 0.15);
}

.card img,
.destination-card img,
.fleet-card img {
    width: 45%;
    /* Horizontal split */
    height: 100%;
    /* Full height of card */
    min-height: 160px;
    object-fit: cover;
    display: block;
}

.destination-card,
.fleet-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    /* Horizontal layout on desktop */
    align-items: stretch;
    height: 180px;
    /* Fixed height for consistent ultra-compact look */
}

.destination-info,
.fleet-info {
    padding: 0.8rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    flex: 1;
    /* Take remaining space */
}

/* Ensure no child pushes the others */
.destination-info>*,
.fleet-info>* {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.destination-info h3,
.fleet-info h3 {
    margin-bottom: 0.1rem;
    font-size: 1.2rem;
}

.destination-info p,
.fleet-info p {
    font-size: 0.9rem;
    line-height: 1.2;
}

.destination-info .btn,
.fleet-info .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.destination-card:hover,
.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 74, 173, 0.15);
}

.card-img {
    height: 250px;
    background: #e9ecef;
}

#about-img {
    background: url('hero-bg.jpg') center/cover;
    border-radius: 20px;
    min-height: 400px;
}

#pontine-img {
    background: url('pontine-orig.jpg') center/cover;
}

#eolie-img {
    background: url('eolie-orig.jpg') center/cover;
}

#seychelles-img {
    background: url('seychelles-orig.jpg') center/cover;
}

#lotus-img {
    background: url('lotus-orig.png') center/cover;
}

#free-img {
    background: url('free-orig.png') center/cover;
}

#dorotea-img {
    background: url('dorotea-orig.jpg') center/cover;
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    margin-bottom: 1rem;
}

.card-body p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: var(--light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Highlights Box */
.highlights-box {
    background: var(--light);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 5px solid var(--accent);
}

.highlights-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.highlights-box ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.highlights-box li {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Gallery Grid */
.image-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-main {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gallery-thumbs img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Improved Hero Buttons */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Animations */
.anim-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.card:nth-child(2),
.destination-card:nth-child(2),
.fleet-card:nth-child(2) {
    transition-delay: 0.1s;
}

.card:nth-child(3),
.destination-card:nth-child(3),
.fleet-card:nth-child(3) {
    transition-delay: 0.2s;
}

.card:nth-child(4),
.destination-card:nth-child(4),
.fleet-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* Mobile Responsive */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

#main-header.scrolled .mobile-menu-btn span,
#main-header.menu-open .mobile-menu-btn span {
    background-color: var(--dark);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--dark);
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .fleet-grid,
    .destination-grid,
    .cards-grid,
    .section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-thumbs {
        grid-template-columns: 1fr;
    }

    .destination-card,
    .fleet-card {
        flex-direction: column;
    }

    .destination-card img,
    .fleet-card img {
        width: 100%;
        height: 250px;
    }

    /* Fix for button touching image */
    .text-block {
        margin-bottom: 5rem !important;
        padding-bottom: 2rem;
    }
}

/* Booking Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-title {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
    border-left: 5px solid var(--secondary);
}

.notification-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast.success {
    border-left-color: #2ecc71;
}

.notification-toast.error {
    border-left-color: #e74c3c;
}