/* ===== CSS Variables ===== */
:root {
    --primary-color: #0077b6;
    --primary-dark: #005f8d;
    --primary-light: #00b4d8;
    --secondary-color: #023e8a;
    --accent-color: #ff6b35;
    --background-light: #f8fafc;
    --background-dark: #0a1628;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --gradient-ocean: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #48cae4 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-ocean);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 62, 138, 0.85) 0%, rgba(0, 119, 182, 0.7) 50%, rgba(0, 180, 216, 0.6) 100%);
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gradient-sunset);
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.hero-stats {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 60px;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    color: var(--primary-color);
}

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

/* ===== AI Search Section ===== */
.ai-search-section {
    padding: 100px 0;
    background: var(--background-light);
}

.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chat-messages {
    padding: 30px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: var(--gradient-ocean);
    color: white;
}

.user-message .message-avatar {
    background: var(--gradient-sunset);
    color: white;
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: calc(100% - 60px);
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.user-message {
    flex-direction: row-reverse;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-button {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    background: var(--gradient-ocean);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.send-button:hover {
    transform: scale(1.1);
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.prompt-btn {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.prompt-btn i {
    font-size: 0.9rem;
}

/* ===== Featured Cruises Section ===== */
.featured-cruises {
    padding: 100px 0;
    background: white;
}

.cruises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.cruise-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cruise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.cruise-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.cruise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cruise-card:hover .cruise-image img {
    transform: scale(1.1);
}

.cruise-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.cruise-badge.luxury {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.cruise-badge.adventure {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.cruise-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.cruise-details {
    padding: 25px;
}

.cruise-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cruise-route {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cruise-route i {
    color: var(--primary-color);
    margin-top: 3px;
}

.cruise-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cruise-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cruise-info i {
    color: var(--primary-color);
}

.cruise-rating {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.cruise-rating i {
    color: #fbbf24;
}

.cruise-rating span {
    color: var(--text-light);
    margin-left: 8px;
}

.view-cruise-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-ocean);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.view-cruise-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== Destinations Section ===== */
.destinations-section {
    padding: 100px 0;
    background: var(--background-light);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.destination-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.destination-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.destination-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.destination-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== Why Us Section ===== */
.why-us-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-ocean);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 80px 0;
    background: var(--gradient-ocean);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    max-width: 350px;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-form button:hover {
    background: #e55a2b;
}

/* ===== Footer ===== */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column p {
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-column ul a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}

.contact-info i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Loading Animation ===== */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

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

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

@keyframes typing {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Cruise Results in Chat ===== */
.cruise-result {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 10px;
}

.cruise-result h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.cruise-result p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.cruise-result .price {
    font-weight: 700;
    color: var(--accent-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destination-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cruises-grid {
        grid-template-columns: 1fr;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .destination-card,
    .destination-card.large {
        height: 200px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .quick-prompts {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 600px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .chat-input {
        padding: 12px 15px;
    }

    .prompt-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}
