/* ============================
   Nhi Feasible - WhyToHow Journey
   Beautiful Feminine Design
   ============================ */

/* CSS Variables */
:root {
    /* Primary Colors - Soft Rose/Coral Palette */
    --primary: #E8A4A4;
    --primary-dark: #D4847A;
    --primary-light: #F5D5D5;
    --accent: #C97B84;
    --accent-light: #E8B4B8;

    /* Neutral Colors */
    --bg-cream: #FDF8F6;
    --bg-white: #FFFFFF;
    --bg-soft: #FBF4F2;
    --text-dark: #4A3F3F;
    --text-medium: #6B5B5B;
    --text-light: #8B7B7B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E8A4A4 0%, #D4847A 100%);
    --gradient-soft: linear-gradient(135deg, #F5D5D5 0%, #E8B4B8 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(232, 164, 164, 0.1) 0%, rgba(212, 132, 122, 0.2) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(201, 123, 132, 0.1);
    --shadow-md: 0 4px 20px rgba(201, 123, 132, 0.15);
    --shadow-lg: 0 8px 40px rgba(201, 123, 132, 0.2);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================
   Base Styles
   ============================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

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

a:hover {
    color: var(--accent);
}

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

/* Selection */
::selection {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

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

/* ============================
   Animations
   ============================ */

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes jumpLetter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.jumping-text {
    display: inline-block;
}

.jumping-text .letter {
    display: inline-block;
    animation: jumpLetter 2s ease-in-out infinite;
}

.jumping-text .letter:nth-child(1) { animation-delay: 0s; }
.jumping-text .letter:nth-child(2) { animation-delay: 0.1s; }
.jumping-text .letter:nth-child(3) { animation-delay: 0.2s; }
.jumping-text .letter:nth-child(4) { animation-delay: 0.3s; }
.jumping-text .letter:nth-child(5) { animation-delay: 0.4s; }
.jumping-text .letter:nth-child(6) { animation-delay: 0.5s; }
.jumping-text .letter:nth-child(7) { animation-delay: 0.6s; }
.jumping-text .letter:nth-child(8) { animation-delay: 0.7s; }
.jumping-text .letter:nth-child(9) { animation-delay: 0.8s; }
.jumping-text .letter:nth-child(10) { animation-delay: 0.9s; }
.jumping-text .letter:nth-child(11) { animation-delay: 1.0s; }
.jumping-text .letter:nth-child(12) { animation-delay: 1.1s; }

.jumping-text .space {
    display: inline-block;
    width: 0.3em;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ============================
   Navigation
   ============================ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.nav-logo-text {
    display: none;
    transition: opacity 0.3s ease;
}

/* Show logo at top, text when scrolled */
#navbar:not(.scrolled) .nav-logo-img {
    display: block;
}

#navbar:not(.scrolled) .nav-logo-text {
    display: none;
}

#navbar.scrolled .nav-logo-img {
    display: none;
}

#navbar.scrolled .nav-logo-text {
    display: block;
}

#navbar:not(.scrolled) .nav-logo {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-medium);
    position: relative;
    padding-bottom: 5px;
}

#navbar:not(.scrolled) .nav-link {
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

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

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

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

#navbar:not(.scrolled) .nav-link:hover,
#navbar:not(.scrolled) .nav-link.active {
    color: var(--primary-light);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
}

#navbar:not(.scrolled) .nav-toggle span {
    background: white;
}

/* Hamburger to X animation when menu is open */
.nav-toggle.active {
    position: fixed !important;
    top: 20px;
    right: 30px;
    z-index: 1002 !important;
}

.nav-toggle.active span {
    background: #333 !important;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   Hero Section
   ============================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #D4847A 0%, #C97B84 30%, #E8A4A4 70%, #F5D5D5 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: white;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation: float 10s ease-in-out infinite 2s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 30px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.hero-title .highlight {
    color: #FFF8DC;
    text-shadow: 0 2px 10px rgba(255, 248, 220, 0.5);
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-tagline em {
    font-style: italic;
    font-weight: 600;
    color: #FFF8DC;
}

.hero-quote {
    max-width: 750px;
    margin: 0 auto;
}

.hero-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    padding: 35px 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.6;
}

.hero-quote cite {
    display: block;
    margin-top: 20px;
    font-size: 1.3rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    display: block;
    margin: 40px auto 0;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    text-align: center;
}

.scroll-indicator svg {
    width: 36px;
    height: 36px;
}

.scroll-indicator:hover {
    color: white;
    transform: translateY(5px);
}

/* ============================
   Section Headers
   ============================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light .section-title {
    color: white;
}

.section-header.light .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-logo {
    width: 65px;
    height: auto;
    margin-left: 0;
    margin-top: -30px;
    vertical-align: middle;
    display: inline-block;
}

.highlight-box {
    background: var(--primary);
    color: white;
    padding: 0 0.15em;
    line-height: 1.1;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   Journey Section
   ============================ */

.journey-section {
    padding: 60px 0 var(--section-padding) 0;
    background: var(--bg-cream);
}

.journey-section .section-header {
    margin-bottom: 35px;
}

/* Timeline Navigation */
.timeline-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 12px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.timeline-nav.visible {
    opacity: 1;
    visibility: visible;
}

.timeline-nav.visible.idle {
    opacity: 0;
    visibility: hidden;
}

.timeline-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.timeline-dots::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 1;
    height: 0%;
    transition: height var(--transition-slow);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-light);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all var(--transition-fast);
}

.timeline-dot:hover,
.timeline-dot.active {
    background: var(--primary);
    border-color: var(--primary-dark);
    transform: scale(1.3);
}

.timeline-dot::after {
    content: attr(title);
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-dark);
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}

.timeline-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Journey Container */
.journey-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Journey Cards */
.journey-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.journey-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 40px;
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--primary-light);
}

.card-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    opacity: 0.5;
}

.card-title {
    flex: 1;
    font-size: 1.75rem;
    color: var(--text-dark);
}

.card-age {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.card-content {
    padding: 40px;
}

.card-text {
    margin-bottom: 30px;
}

.card-text p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.card-text p:last-child {
    margin-bottom: 0;
}

.card-text strong {
    color: var(--text-dark);
}

.card-text em {
    font-style: italic;
    color: var(--primary-dark);
}

/* Card Gallery */
.card-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card-gallery.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.card-gallery.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 4px 15px rgba(180, 130, 140, 0.15), 0 2px 6px rgba(180, 130, 140, 0.1);
    border: 2px solid transparent;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(180, 130, 140, 0.25), 0 6px 15px rgba(180, 130, 140, 0.15);
    border-color: var(--primary);
}

.gallery-item.featured {
    grid-column: span 1;
    border: 2px solid var(--primary);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 20px 20px 25px 20px;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-item figcaption strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.reference-link {
    display: inline-block;
    margin-top: 0;
    margin-left: 12px;
    padding-top: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary-dark);
    background: transparent;
    border: none;
    transition: color 0.3s ease;
}

.reference-link:hover {
    color: var(--accent);
}

/* ============================
   Vision Section
   ============================ */

.vision-section {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, #D4847A 0%, #C97B84 50%, #E8A4A4 100%);
    overflow: hidden;
}

.vision-background {
    position: absolute;
    inset: 0;
    background: url('images/pattern.svg') repeat;
    opacity: 0.05;
}

.vision-content {
    position: relative;
    z-index: 10;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.vision-section .section-header {
    margin-bottom: 30px;
}

.vision-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: white;
}

.vision-lead {
    font-size: 1.35rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.vision-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.vision-highlight {
    font-family: var(--font-serif);
    font-size: 1.5rem !important;
    font-style: italic;
    opacity: 1 !important;
    margin-top: 30px !important;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.vision-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

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

.vision-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.vision-item figcaption {
    padding: 25px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ============================
   Human Side Section
   ============================ */

.human-section {
    padding: 60px 0 var(--section-padding) 0;
    background: var(--bg-white);
}

.human-section .section-header {
    margin-bottom: 35px;
}

.human-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.human-item {
    background: var(--bg-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.human-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.human-item figcaption {
    padding: 25px;
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.human-item .secret {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-style: italic;
}

/* ============================
   Connect Section
   ============================ */

.connect-section {
    position: relative;
    padding: 20px 0 var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-soft) 100%);
    overflow: hidden;
}

.connect-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.connect-shapes .shape {
    background: var(--gradient-soft);
    opacity: 0.3;
}

.connect-shapes .shape-1 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.connect-shapes .shape-2 {
    width: 300px;
    height: 300px;
    top: 50px;
    left: -100px;
    animation: pulse 6s ease-in-out infinite reverse;
}

.connect-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.connect-section .section-header {
    margin-bottom: 25px;
}

.connect-message {
    margin-bottom: 50px;
}

.connect-lead {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.connect-lead .rainbow {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.connect-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-dark);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connect-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.connect-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.connect-link svg {
    width: 20px;
    height: 20px;
}

/* ============================
   Footer
   ============================ */

.footer {
    padding: 40px 0;
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.footer-copyright {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-copyright strong {
    color: var(--primary-light);
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

/* ============================
   Back to Top Button
   ============================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: backToTopFloat 3s ease-in-out infinite;
}

@keyframes backToTopFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.back-to-top:hover {
    animation-play-state: paused;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================
   Responsive Styles
   ============================ */

@media (max-width: 1024px) {
    .card-gallery,
    .vision-gallery,
    .human-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-gallery.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .timeline-nav {
        display: none;
    }

    /* Mobile Menu Overlay - separate element for pink background */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #D4847A 0%, #C97B84 30%, #E8A4A4 70%, #F5D5D5 100%);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-menu.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: transparent !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 30px !important;
        z-index: 1000 !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .nav-menu.active .nav-link,
    #navbar.scrolled .nav-menu.active .nav-link,
    #navbar:not(.scrolled) .nav-menu.active .nav-link {
        color: white !important;
        font-size: 1.3rem;
        font-weight: 600;
        text-shadow: none;
    }

    .nav-menu.active .nav-link:hover,
    .nav-menu.active .nav-link.active,
    #navbar.scrolled .nav-menu.active .nav-link:hover,
    #navbar.scrolled .nav-menu.active .nav-link.active {
        color: var(--text-dark) !important;
    }

    /* Adjust bubbles on mobile - touch slightly in center */
    .connect-shapes .shape-1 {
        right: -100px !important;
        width: 400px !important;
        height: 400px !important;
    }

    .connect-shapes .shape-2 {
        left: -150px !important;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .card-header {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .card-number {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.5rem;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .card-content {
        padding: 25px;
    }

    .card-gallery,
    .card-gallery.two-col,
    .card-gallery.three-col,
    .vision-gallery,
    .human-gallery {
        grid-template-columns: 1fr;
    }

    .timeline-nav {
        display: none;
    }

    .vision-text {
        padding: 0 15px;
    }

    .connect-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-quote blockquote {
        padding: 20px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================
   Print Styles
   ============================ */

@media print {
    #navbar,
    .timeline-nav,
    .back-to-top,
    .scroll-indicator,
    .video-container {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    .journey-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================
   Chatbot
   ============================ */

.chatbot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Nunito', sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(232, 164, 164, 0.4);
    transition: box-shadow 0.3s ease;
    animation: chatFloat 3s ease-in-out infinite;
}

@keyframes chatFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.chatbot-toggle:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(232, 164, 164, 0.5);
}

.chatbot-toggle svg {
    color: white;
    transition: all 0.3s ease;
}

.chatbot-toggle .close-icon {
    display: none;
}

.chatbot.active .chatbot-toggle {
    display: none;
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chatbot.active .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.chatbot-status {
    font-size: 0.7rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

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

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    min-height: 250px;
    background: #faf8f8;
}

.chat-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: messageSlide 0.3s ease;
}

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

.chat-message.bot {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-message.user {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.typing {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chatbot-input-area {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid #f0e8e8;
    background: white;
}

.chatbot-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #f0e8e8;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
    border-color: var(--primary);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

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

.chatbot-send svg {
    color: white;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-reply {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply:hover {
    background: var(--primary);
    color: white;
}

/* Mobile responsiveness for chatbot */
@media (max-width: 480px) {
    .chatbot {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .chatbot-window {
        width: calc(100vw - 60px);
        max-width: 320px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 70px;
        max-height: 70vh;
    }

    .chatbot.active .chatbot-window {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}
