/* --- Reset & Variables --- */
:root {
    --primary: #FF6B6B; /* Vibrant Coral */
    --primary-hover: #ff5252;
    --secondary: #4ECDC4; /* Fresh Teal */
    --bg-color: #F8FAFC;
    --text-main: #2D3436;
    --text-light: #636E72;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Pretendard', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
}

/* --- Typography & Global --- */
h1, h2, h3, h4 {
    font-weight: 700;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hidden {
    display: none !important;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('assets/expobridge_night_1781953050323.png') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 20px;
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease-out;
}

.hero-content h1 span {
    color: var(--primary);
    background: #fff;
    padding: 0 15px;
    border-radius: 12px;
    display: inline-block;
    transform: rotate(-3deg);
}

.hero-content p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Glassmorphism Form */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.form-group {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group label i {
    color: var(--primary);
    margin-right: 5px;
}

.form-group select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-main);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.btn-primary {
    padding: 15px 30px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- Recommendations & Destinations --- */
section {
    padding: 100px 0;
}

#recommendation-section {
    background-color: #fff;
    position: relative;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.destination-item {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.destination-list .destination-item {
    flex-direction: row;
    align-items: center;
    height: 350px;
}

.destination-list .destination-item:nth-child(even) {
    flex-direction: row-reverse;
}

.destination-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.destination-list .img-wrapper {
    width: 50%;
    height: 100%;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-item:hover .img-wrapper img {
    transform: scale(1.08);
}

.item-content {
    padding: 30px;
    flex: 1;
}

.destination-list .item-content {
    width: 50%;
    padding: 40px 60px;
}

.item-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(78, 205, 196, 0.15);
    color: #14a098;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.item-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Scroll Down Indicator */
.scroll-down-wrapper {
    text-align: center;
    margin-top: 40px;
    animation: pulse 2s infinite;
}

.scroll-down-wrapper p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.scroll-down:hover {
    background: var(--primary);
    color: #fff;
}

@keyframes pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

/* --- Chatbot UI --- */
.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.chatbot-window.hidden {
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.chatbot-header {
    background: var(--primary);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

.status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4cd137;
    border-radius: 50%;
}

.close-chatbot {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.close-chatbot:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.msg-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.bot .msg-content {
    background: #fff;
    color: var(--text-main);
    border: 1px solid #eef2f5;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.message.user .msg-content {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(255,107,107,0.2);
}

.chatbot-suggestions {
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #f1f2f6;
}

.chatbot-suggestions::-webkit-scrollbar {
    height: 4px;
}
.chatbot-suggestions::-webkit-scrollbar-thumb {
    background: #dcdde1;
    border-radius: 4px;
}

.suggestion-btn {
    white-space: nowrap;
    padding: 8px 12px;
    background: rgba(78, 205, 196, 0.1);
    color: #14a098;
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.suggestion-btn:hover {
    background: rgba(78, 205, 196, 0.2);
}

.chatbot-input {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #f1f2f6;
}

.chatbot-input input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    background: #f1f2f6;
    border-radius: 20px;
    font-size: 0.95rem;
    outline: none;
}

.chatbot-input input:focus {
    box-shadow: inset 0 0 0 2px rgba(200, 200, 200, 0.2);
}

#chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

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

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

/* Footer */
footer {
    background: #2f3542;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .destination-list .destination-item, 
    .destination-list .destination-item:nth-child(even) {
        flex-direction: column;
        height: auto;
    }
    
    .destination-list .img-wrapper, 
    .destination-list .item-content {
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
    .hero-content {
        padding: 10px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
