@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #03070b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-blur: blur(15px);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(112, 0, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
}

/* Glassmorphism Utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 7, 11, 0.4), var(--bg-color));
}

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

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* AI Planner Section */
.planner-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 4rem;
}

.planner-card {
    padding: 2.5rem;
}

.planner-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

select option {
    background-color: #1a1a1a;
    color: #fff;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-generate {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

/* AI Output Area */
.ai-output {
    min-height: 400px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.ai-output-placeholder {
    margin: auto;
    text-align: center;
    color: var(--text-secondary);
}

.itinerary-day {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.itinerary-day h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* Chat Floating */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 420px;
    height: 650px;
    max-height: 85vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateY(120%);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.chat-widget.active {
    transform: translateY(0);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    margin-bottom: 1rem;
    max-width: 85%;
    padding: 1rem;
    border-radius: 15px;
}

.message.ai {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--accent-secondary);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 0.5rem;
}

.chat-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 101;
}

/* Attractions Grid */
.attractions {
    margin-top: 6rem;
}

.attractions h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .planner-grid { grid-template-columns: 1fr; }
    .chat-widget { 
        width: 100%; 
        height: 100%; 
        bottom: 0; 
        right: 0; 
        border-radius: 0;
        max-height: 100vh;
    }
    .chat-toggle { bottom: 1rem; right: 1rem; }
}
