/* 
* RooJI Custom Premium Stylesheet
* Focus on Typography, Glassmorphism, Micro-animations 
*/

:root {
    --bg-color: #ffffff; /* Pure youthful white */
    --text-primary: #2d2d2d; /* Softer, friendly dark */
    --text-secondary: #707070;
    --accent-color: #fa9c7a; /* Vibrant Milk Tea Peach */
    --accent-hover: #f08964;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 10px 20px rgba(250, 156, 122, 0.08); /* Colored fuzzy shadow */
    --shadow-lg: 0 20px 40px rgba(250, 156, 122, 0.15);
    --font-heading: 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Clean background, removing the old traditional pattern */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

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

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

.section-padding {
    padding: 6rem 0;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.rounded-img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 246, 241, 0.85); /* cream bg somewhat transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 75px; /* Increased height for better visibility */
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-link.highlight {
    background-color: var(--text-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.nav-link.highlight::after {
    display: none;
}

.nav-link.highlight:hover {
    background-color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
}


/* Layout Base */
.main-content {
    min-height: calc(100vh - 300px);
}


/* Hero Section (Index) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1563729784474-d77dbb933a9e?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05); /* for subtle scale animation */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-content {
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-main-title {
    font-size: 4rem;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-highlight {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

/* Page Headers */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px; /* offset navbar */
    background-size: cover;
    background-position: center;
}
.page-header .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.page-header .header-content {
    position: relative;
    z-index: 1;
}
.page-header h1 { font-size: 3rem; letter-spacing: 4px; }
.page-header p { font-size: 1.2rem; letter-spacing: 2px; color: var(--accent-color); }

.franchise-header { background-image: url('https://images.unsplash.com/photo-1556740758-90de374c12ad?auto=format&fit=crop&q=80'); }
.about-header { background-image: url('https://images.unsplash.com/photo-1615555437885-3eabe6e44bde?auto=format&fit=crop&q=80'); }
.products-header { background-image: url('https://images.unsplash.com/photo-1627435601361-ec25f5b1d0e5?auto=format&fit=crop&q=80'); }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(250, 156, 122, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(250, 156, 122, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Sections & Grid Layouts */
.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.en-title {
    font-weight: 300;
    color: var(--accent-color);
    font-size: 1.5rem;
    display: block;
    margin-top: 0.5rem;
}

.divider {
    height: 2px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 1.5rem 0;
}

.divider.center {
    margin: 1.5rem auto;
}

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

.mt-2 { margin-top: 2rem; }


/* Index Info Section */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-tag {
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: table;
}

.info-text .highlight-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 2rem 0;
}

.features-list {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.icon-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* Franchise Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: flex-start;
}

.adv-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.adv-item {
    display: flex;
    gap: 1.5rem;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.adv-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
}

.adv-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(191, 161, 95, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    height: max-content;
}

.adv-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.adv-text p {
    color: var(--text-secondary);
}

.cta-section {
    margin-top: 6rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(26,26,26,0.9), rgba(26,26,26,0.95)), url('https://images.unsplash.com/photo-1544256718-3baf237f39df?auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    border-radius: 16px;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* About Timeline */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-timeline {
    margin-top: 3rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-item .year {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}


/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    overflow: hidden;
}

.product-img {
    height: 250px;
    overflow: hidden;
}

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

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* Footer */
.site-footer {
    background-color: var(--text-primary);
    color: white;
    padding: 4rem 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-brand p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
}

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

.footer-contact p {
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.slide-up-delay.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.slide-up-delay-2.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsive */
@media (max-width: 900px) {
    .info-grid, .advantages-grid, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
}

/* Original Franchise Image Stack */
.original-franchise-section {
    width: 100%;
    margin-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.franchise-slice {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* 2.0 Animations & Enhancements */

/* Magnetic Hover effect */
.magnetic-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.magnetic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Image Shimmer on Hover */
.image-shimmer {
    position: relative;
    overflow: hidden;
}
.image-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 2;
}
.image-shimmer:hover::before {
    left: 200%;
}

/* Text Reveal Animation */
.text-reveal-trigger {
    overflow: hidden;
}
.reveal-text {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.2, 1, 0.2, 1), opacity 1s ease-out;
}
.text-reveal-trigger.visible .reveal-text {
    transform: translateY(0);
    opacity: 1;
}

/* Delay Utils */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-collection > *:nth-child(1) { transition-delay: 0.1s; }
.delay-collection > *:nth-child(2) { transition-delay: 0.3s; }
.delay-collection > *:nth-child(3) { transition-delay: 0.5s; }

/* Parallax BG Utils */
.parallax-bg {
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}
.img-hero { background-image: url('https://images.unsplash.com/photo-1563729784474-d77dbb933a9e?auto=format&fit=crop&q=80&w=2000'); }
.img-process { background-image: url('https://images.unsplash.com/photo-1544256718-3baf237f39df?auto=format&fit=crop&q=80&w=2000'); }

/* Process Banner */
.process-banner {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 4rem;
    overflow: hidden;
}
.process-banner .parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* Extra height for parallax travel */
}
.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(26,26,26,0.8), rgba(26,26,26,0.6));
    z-index: 1;
}
.process-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.process-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
}
.step {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}
.step-num {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

/* New Outline Button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* About 2.0 additions */
.founder-quote {
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.quote-author {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--accent-color);
}
.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.timeline-sep {
    height: 2px;
    background: var(--accent-color);
    flex-grow: 1;
    min-width: 50px;
}
.timeline-card {
    padding: 2rem;
    text-align: center;
    width: 250px;
    position: relative;
}
.timeline-card .year {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
}
