/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0f3b5f;       /* Deep Ocean Blue */
    --color-primary-dark: #071e33;  /* Deep Navy */
    --color-secondary: #48c6ef;     /* Sky Blue */
    --color-accent: #fbc2eb;        /* Sunset Pink */
    --color-amber: #ff9f1c;         /* Golden Sunset Amber */
    --color-light: #f8fafe;         /* Soft Cloud White */
    --color-dark: #121820;          /* Charcoal Black */
    --color-gray-100: #f1f5f9;
    --color-gray-300: #cbd5e1;
    --color-gray-600: #475569;
    --color-gray-800: #1e293b;
    
    /* Semantic Colors */
    --bg-body: var(--color-light);
    --text-main: var(--color-gray-800);
    --text-muted: var(--color-gray-600);
    --text-light: var(--color-light);
    
    /* Layout */
    --header-height: 80px;
    --container-max-width: 1200px;
    
    /* Effects & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(15, 59, 95, 0.08), 0 4px 6px -2px rgba(15, 59, 95, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 59, 95, 0.12), 0 10px 10px -5px rgba(15, 59, 95, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-sans: 'Noto Sans TC', sans-serif;
    --font-serif: 'Playfair Display', 'Noto Sans TC', serif;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.rounded {
    border-radius: 12px;
}

.shadow {
    box-shadow: var(--shadow-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.btn-primary {
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(15, 59, 95, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 59, 95, 0.35);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.title-divider {
    width: 60px;
    height: 4px;
    background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
    margin: 0.5rem auto 1.5rem;
}

.section-description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text-zh {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 1px;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.logo-text-en {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    margin-top: -3px;
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo-text-zh {
    color: var(--color-primary-dark);
}

.site-header.scrolled .logo-text-en {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

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

.site-header.scrolled .nav-link {
    color: var(--color-gray-800);
}

.site-header.scrolled .nav-link:hover, 
.site-header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.site-header.scrolled .nav-link::after {
    background-color: var(--color-primary);
}

.nav-btn {
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth) !important;
}

.nav-btn:hover {
    background-color: var(--text-light);
    color: var(--color-primary-dark) !important;
}

.nav-btn::after {
    display: none !important;
}

.site-header.scrolled .nav-btn {
    border-color: var(--color-primary);
    background-color: transparent;
}

.site-header.scrolled .nav-btn:hover {
    background-color: var(--color-primary);
    color: var(--text-light) !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    z-index: 9999;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
    background-color: var(--color-primary-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: flex-start;
    z-index: 10;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.7;
    text-transform: uppercase;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text-content .lead-text {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    font-weight: 500;
}

.about-features {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background-color: var(--color-gray-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon-wrapper {
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-light);
    transform: scale(1.1);
}

.feature-text h3 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
}

.image-stack {
    position: relative;
    padding-bottom: 75%; /* 4:3 Ratio */
}

.image-stack-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.image-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-stack-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    top: 25px;
    left: 25px;
    z-index: 1;
}

/* ==========================================================================
   HIGHLIGHTS SECTION
   ========================================================================== */
.highlights-section {
    padding: 8rem 0;
    background-color: var(--color-gray-100);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.highlight-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

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

.card-image-container {
    height: 280px;
    position: relative;
    overflow: hidden;
}

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

.highlight-card:hover .card-image-container img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(15, 59, 95, 0.15));
}

.card-gradient-bg {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.card-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    opacity: 0.85;
}

.card-content {
    padding: 2.5rem;
    position: relative;
    flex-grow: 1;
}

.card-number {
    position: absolute;
    top: -2.5rem;
    right: 2.5rem;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(15, 59, 95, 0.06);
    font-family: var(--font-serif);
    transition: var(--transition-smooth);
}

.highlight-card:hover .card-number {
    color: rgba(15, 59, 95, 0.12);
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   NEARBY ATTRACTIONS
   ========================================================================== */
.nearby-section {
    padding: 8rem 0;
    background-color: white;
}

.nearby-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nearby-card {
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
}

.nearby-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    z-index: 1;
}

.nearby-card:hover .nearby-img {
    transform: scale(1.08);
}

.nearby-info {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: var(--text-light);
}

.nearby-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.nearby-info p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.distance-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   TRAVEL GUIDE SECTION
   ========================================================================== */
.guide-section {
    padding: 8rem 0;
    background-color: var(--color-gray-100);
}

.guide-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
}

.transport-methods {
    display: grid;
    gap: 2rem;
}

.transport-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.transport-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.transport-icon-box {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-image: linear-gradient(135deg, rgba(15, 59, 95, 0.08), rgba(72, 198, 239, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.transport-details h3 {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.transport-details ul {
    display: grid;
    gap: 0.8rem;
}

.transport-details li {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
}

.transport-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.travel-tips {
    height: 100%;
}

.tips-container {
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-light);
    padding: 3rem;
    border-radius: 20px;
    height: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.tips-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    opacity: 0.08;
    bottom: -50px;
    right: -50px;
}

.tips-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-spark {
    color: var(--color-secondary);
}

.tip-list {
    display: grid;
    gap: 2rem;
}

.tip-line {
    display: flex;
    gap: 1.2rem;
}

.tip-bullet {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.tip-line p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.tip-line p strong {
    color: white;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background-color: white;
}

.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel {
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-light);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.contact-info-panel h2 {
    font-family: var(--font-sans);
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 800;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 1.5rem;
}

.contact-meta-info {
    margin-top: 4rem;
    display: grid;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.meta-item svg {
    color: var(--color-secondary);
}

.contact-form-panel {
    background-color: white;
    padding: 4rem;
    position: relative;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    background-color: var(--color-gray-100);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 59, 95, 0.08);
}

/* Custom Select Dropdown Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.65rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-gray-600);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
}

/* Error messages */
.error-msg {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group.has-error .error-msg {
    display: block;
}

/* Form success alert */
.form-success-alert {
    display: none; /* Controlled by JS */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 10;
    padding: 4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-success-alert.show {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.alert-icon-box {
    width: 72px;
    height: 72px;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.form-success-alert h3 {
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.form-success-alert p {
    color: var(--text-muted);
    max-width: 360px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-sans);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    line-height: 1.7;
}

.footer-links h4, .footer-hashtag h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    display: grid;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-cloud span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.hashtag-cloud span:hover {
    background-color: var(--color-primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.designer-credit {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 0; }
    30% { opacity: 1; }
    60% { transform: translate(-50%, 12px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Fade In Animation Classes (triggered by intersection observer in JS) */
.fade-in-el {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay modifiers for sequential animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (RWD)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Tablet Portrait */
    html {
        font-size: 15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .nearby-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #nearby-3 {
        grid-column: span 2;
        height: 320px;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        padding: 3rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Landscape & Portrait */
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    /* Navigation drawer overlay */
    .mobile-nav-toggle {
        display: block;
    }
    
    .primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-primary-dark);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }
    
    .primary-navigation.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .nav-link:hover, .nav-link.active {
        color: var(--color-secondary);
    }
    
    .nav-btn {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        border-color: rgba(255,255,255,0.2);
    }
    
    /* Hamburger Menu open state animation */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent !important;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
        background-color: white !important;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
        background-color: white !important;
    }
    
    /* Highlights Grid */
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    /* Nearby attractions full stack */
    .nearby-carousel {
        grid-template-columns: 1fr;
    }
    
    #nearby-3 {
        grid-column: span 1;
        height: 420px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    /* Small mobiles */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .transport-card {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .transport-icon-box {
        width: 50px;
        height: 50px;
    }
    
    .tips-container {
        padding: 1.8rem;
    }
    
    .contact-form-panel {
        padding: 2rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-success-alert {
        padding: 2rem;
    }
}
