/* ============================================
   GateTrips - Custom Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-color: #003580;        /* Royal Caribbean blue */
    --secondary-color: #0077b6;
    --accent-gold: #c9a96e;
    --accent-coral: #ff6b6b;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(135deg, #001F5B, #003580) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 45px;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: white;
    background: var(--accent-gold);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1548574505-5e239809ee19?w=1920&h=1080&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 53, 128, 0.7), rgba(0, 119, 182, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* --- Buttons --- */
.btn-gold {
    background: var(--accent-gold);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #b8944f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 110, 0.4);
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

/* --- Cruise Cards --- */
.cruise-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cruise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cruise-card img {
    height: 250px;
    object-fit: cover;
}

/* --- Destination Preview --- */
.destination-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.destination-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.destination-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-preview:hover img {
    transform: scale(1.1);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.destination-info h4 {
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.bg-darker {
    background: var(--darker-bg) !important;
}

footer a:hover {
    color: var(--accent-gold) !important;
}

/* --- Destinations Page --- */
.destinations-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.destination-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.destination-card img {
    height: 220px;
    object-fit: cover;
}

.destination-card .card-body {
    padding: 1.5rem;
}

.cruise-line-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-royal {
    background: #e3f2fd;
    color: var(--primary-color);
}

.badge-celebrity {
    background: #fce4ec;
    color: #c62828;
}

/* --- Individual Destination Page --- */
.destination-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

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

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

/* --- Image Slider --- */
.slider-section {
    padding: 4rem 0;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
}

/* --- Info Cards --- */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --- Enquiry Button --- */
.enquiry-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.4);
    animation: pulse 2s infinite;
}

.enquiry-btn:hover {
    background: #b8944f;
    color: white;
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(201, 169, 110, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(201, 169, 110, 0.6); }
}

/* --- Enquiry Form --- */
.enquiry-form-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8rem 0 4rem;
    color: white;
}

.enquiry-form {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    color: var(--text-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.enquiry-form .form-control,
.enquiry-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
}

.enquiry-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* --- About Page --- */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.team-card {
    text-align: center;
    padding: 2rem;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-gold);
}

/* --- Contact Page --- */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-item img {
        height: 300px;
    }

    .enquiry-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .social-icons {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .destination-preview img {
        height: 250px;
    }
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

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

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