/* 
   "This is Lans" brand website stylesheet.
   Uses a responsive, modern design system with curated colors,
   glassmorphism, interactive elements, custom keyframes, 
   and full dark mode support.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color System */
    --primary: #10b981; /* Emerald Green - VetMed, Nature */
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #0ea5e9; /* Sky Blue - Intelligence, Water (Swimming) */
    --secondary-light: #38bdf8;
    --secondary-dark: #0284c7;
    --accent: #f59e0b; /* Amber/Gold - Education, Trivia, Fun */
    --accent-light: #fbbf24;
    
    /* Light Mode Variables */
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-card: #ffffff;
    --bg-chat-bubble-user: #0ea5e9;
    --bg-chat-bubble-lans: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    --text-on-lans: #334155;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Layout Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Dark Mode Override Variables */
    --bg-base: #0b0f19;
    --bg-surface: rgba(15, 23, 42, 0.8);
    --bg-card: #1e293b;
    --bg-chat-bubble-user: #0284c7;
    --bg-chat-bubble-lans: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-on-lans: #e2e8f0;
    --border-color: rgba(51, 65, 85, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* Base Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Blobs for Visual Interest */
.bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary);
    bottom: 20%;
    left: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background-color: var(--accent);
    top: 45%;
    right: 10%;
    animation-delay: 10s;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-base) == #0b0f19 ? 11 : 248, var(--bg-base) == #0b0f19 ? 15 : 250, var(--bg-base) == #0b0f19 ? 25 : 252, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.theme-btn:hover {
    background-color: var(--border-color);
    color: var(--primary);
}

.theme-btn .sun-icon { display: none; }
.theme-btn .moon-icon { display: block; }
[data-theme="dark"] .theme-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-btn .moon-icon { display: none; }

/* Call to Action Button */
.cta-btn {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-on-primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.mobile-cta-li {
    display: none !important;
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    animation: bounce 3s infinite;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span.accent-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 45px;
}

.secondary-btn {
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 2;
    animation: float 6s infinite ease-in-out;
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-frame:hover img {
    transform: scale(1.05);
}

.hero-circle-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(14,165,233,0.05) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    animation: spin 30s infinite linear;
}

/* About Section */
.about {
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.pill i {
    color: var(--primary);
}

.pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-base);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Video Hub Section */
.video-hub {
    background-color: rgba(var(--primary) == #10b981 ? 16 : 0, 185, 129, 0.02);
}

.hub-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    transition: transform var(--transition-fast);
}

.play-icon-btn i {
    margin-left: 4px;
}

.video-card:hover .play-icon-btn {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.video-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.4;
}

.video-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.video-meta i {
    color: var(--primary);
    margin-right: 4px;
}

/* Trivia Quiz Section */
.quiz-section {
    position: relative;
}

.quiz-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    overflow: hidden;
    position: relative;
}

.quiz-intro {
    text-align: center;
}

.quiz-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    animation: float 4s infinite ease-in-out;
}

.quiz-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.quiz-intro p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.quiz-progress-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.quiz-score-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 35px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.quiz-question-container h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

.quiz-opt {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
    text-align: left;
}

.quiz-opt:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.02);
    transform: translateX(4px);
}

.quiz-opt-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.quiz-opt:hover .quiz-opt-letter {
    background: var(--primary);
    color: var(--text-on-primary);
}

.quiz-opt.correct {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
}

.quiz-opt.correct .quiz-opt-letter {
    background: var(--primary);
    color: var(--text-on-primary);
}

.quiz-opt.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.quiz-opt.incorrect .quiz-opt-letter {
    background: #ef4444;
    color: #ffffff;
}

.quiz-opt.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-feedback {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-weight: 600;
    animation: fadeInUp 0.4s ease forwards;
}

.quiz-feedback.correct-bg {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary-dark);
}

.quiz-feedback.incorrect-bg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.quiz-actions {
    display: flex;
    justify-content: flex-end;
}

.quiz-result {
    text-align: center;
}

.quiz-result-score {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.quiz-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.quiz-result-msg {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Chatbot Section */
.chat-section {
    background-color: rgba(var(--secondary) == #0ea5e9 ? 14 : 0, 165, 233, 0.02);
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.chat-user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar-wrapper {
    position: relative;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

.chat-username {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-status {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Scrollbar styles for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.msg-wrapper {
    display: flex;
    gap: 12px;
    max-width: 75%;
}

.msg-wrapper.received {
    align-self: flex-start;
}

.msg-wrapper.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 4px;
}

.msg-content {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.received .msg-content {
    background: var(--bg-chat-bubble-lans);
    color: var(--text-on-lans);
    border-top-left-radius: 4px;
}

.sent .msg-content {
    background: var(--bg-chat-bubble-user);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
    text-align: right;
}

.sent .msg-time {
    color: rgba(255, 255, 255, 0.7);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-quick-replies {
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
}

.chat-quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-reply-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.quick-reply-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(14, 165, 233, 0.05);
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex-grow: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--secondary);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.chat-send-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

/* Contact / Social Hub Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.social-card {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: transform var(--transition-fast);
}

.social-card span {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.social-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-card.facebook i { color: #1877f2; }
.social-card.youtube i { color: #ff0000; }
.social-card.tiktok i { color: var(--text-main); }
.social-card.instagram i { color: #e1306c; }

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-card.facebook:hover { border-color: #1877f2; box-shadow: 0 0 15px rgba(24,119,242,0.2); }
.social-card.youtube:hover { border-color: #ff0000; box-shadow: 0 0 15px rgba(255,0,0,0.2); }
.social-card.tiktok:hover { border-color: var(--text-main); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
.social-card.instagram:hover { border-color: #e1306c; box-shadow: 0 0 15px rgba(225,48,108,0.2); }

.social-card:hover i {
    transform: scale(1.1);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info-panel p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-detail-text h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-text p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0;
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: none;
    height: 120px;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background-color: var(--bg-card);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Modal Windows (Video & Contact Success) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 800px;
    position: relative;
    padding: 30px;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-main);
}

/* Success Modal Details */
.success-modal-card {
    max-width: 440px;
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Custom Facebook Video Player Mock Frame */
.video-player-wrapper {
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.video-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mock-video-player {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #ffffff;
}

.mock-video-player img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.mock-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.play-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
}

.play-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    width: 35%;
}

.play-time {
    font-size: 0.8rem;
    font-family: monospace;
}

/* Floating Actions */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Keyframes & Animations */
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes typing {
    0%, 100% { transform: translateY(0px); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    .hero-grid { gap: 30px; }
    .hero-title { font-size: 3.2rem; }
    .about-grid { gap: 40px; }
    .contact-layout { gap: 30px; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 40px 24px;
        gap: 25px;
        align-items: flex-start;
        transition: left var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    #nav-cta-btn {
        display: none !important;
    }
    
    .mobile-cta-li {
        display: block !important;
        width: 100%;
        margin-top: 15px;
    }
    
    .mobile-cta-btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-badge { margin: 0 auto 24px auto; }
    .hero-desc { margin: 0 auto 35px auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { max-width: 500px; margin: 0 auto; }
    .hero-visual { order: -1; }
    .hero-frame { max-width: 320px; }
    
    .about-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form { padding: 25px; }
    .quiz-card { padding: 25px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-title { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .cta-btn, .hero-btns .secondary-btn { width: 100%; justify-content: center; }
    .social-grid { grid-template-columns: 1fr; }
    .chat-container { height: 480px; }
    .chat-messages { padding: 15px; }
    .chat-input-area { padding: 12px 15px; }
    .quiz-card { padding: 15px; }
}

/* ==========================================
   Awwwards & Cute Enhancements 🏆🐾
   ========================================== */

/* 1. Custom Smooth Trail Cursor */
.custom-cursor {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease;
    mix-blend-mode: difference;
    background-color: transparent;
    left: -100px;
    top: -100px;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease;
    left: -100px;
    top: -100px;
}

/* Hover active state for cursor */
.custom-cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
    mix-blend-mode: normal;
}

.custom-cursor-dot.hovered {
    transform: translate(-50%, -50%) scale(1.8);
    background-color: var(--primary);
}

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
}

/* 2. Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1100;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0%;
}

/* 3. Floating Cute Shapes in Hero */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    color: var(--primary);
    opacity: 0.08;
    animation: floatUp 15s infinite linear;
    font-size: 1.5rem;
}

.shape-1 { left: 8%; bottom: -10%; animation-duration: 10s; font-size: 2.2rem; color: var(--primary); }
.shape-2 { left: 22%; bottom: -10%; animation-delay: 2s; animation-duration: 18s; font-size: 1.6rem; color: var(--accent); }
.shape-3 { left: 38%; bottom: -10%; animation-delay: 5s; animation-duration: 14s; color: var(--secondary); }
.shape-4 { left: 52%; bottom: -10%; animation-delay: 1s; animation-duration: 16s; font-size: 2.4rem; color: var(--primary); }
.shape-5 { left: 68%; bottom: -10%; animation-delay: 7s; animation-duration: 20s; color: var(--accent); }
.shape-6 { left: 82%; bottom: -10%; animation-delay: 4s; animation-duration: 15s; font-size: 1.8rem; color: var(--secondary); }
.shape-7 { left: 14%; bottom: -10%; animation-delay: 9s; animation-duration: 13s; color: var(--primary-light); }
.shape-8 { left: 76%; bottom: -10%; animation-delay: 3s; animation-duration: 17s; color: var(--accent-light); }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* 4. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 5. 3D Tilt Card Interaction & Cute details */
.video-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    transform-style: preserve-3d;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12), var(--shadow-glow);
}

/* Quiz Option Hover effect */
.quiz-opt {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quiz-opt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.quiz-opt:hover::before {
    transform: translateX(0);
}

/* Chat bubble entrance animation */
.msg-wrapper {
    animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom left;
}

.msg-wrapper.sent {
    transform-origin: bottom right;
}

@keyframes bubblePop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom Interactive Highlights */
.logo:hover #logo-img {
    transform: rotate(360deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-pills .pill {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                border-color 0.3s ease;
}

.about-pills .pill:hover {
    transform: scale(1.1) rotate(2deg);
    background-color: var(--primary);
    color: var(--text-on-primary) !important;
}

.about-pills .pill:hover i {
    color: var(--text-on-primary) !important;
}

.about-timeline .timeline-item {
    transition: transform 0.3s ease;
}

.about-timeline .timeline-item:hover {
    transform: translateX(6px);
}

