/* Reset and Base Styles */
:root {
    --primary-color: #FF8FAB; /* A gentle pink */
    --secondary-color: #FEE5E9; /* A lighter pink */
    --text-color: #333;
    --bg-color: #FFFFFF;
    --light-gray: #f4f4f4;
    --medium-gray: #e0e0e0;
    --dark-gray: #555;
    --font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Meiryo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    cursor: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 300;
}

/* Cursor */
.cursor, .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transition: transform 0.1s ease, opacity 0.2s ease;
}
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}
.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    transition: transform 0.2s ease-out;
}
body:hover .cursor, body:hover .cursor-follower {
    opacity: 1;
}
a:hover ~ .cursor-follower, button:hover ~ .cursor-follower {
    transform: scale(1.5);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}
.loading-logo img {
    width: 150px;
    height: auto;
}
.loading-logo {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.loaded .loading-screen {
    opacity: 0;
    pointer-events: none;
}

/* Header */
.header {
    width: 100%;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 画像とテキストの間隔 */
}
.header-logo img {
    height: 40px;
    object-fit: contain;
}
.header-logo span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.nav-menu a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}
.nav-menu a:hover {
    color: var(--primary-color);
}
.nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px; /* Header height */
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
}
.hero-text {
    position: relative;
    z-index: 1;
    color: #333;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
}
.hero-text h2 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.hero-text p {
    font-size: 1.2rem;
    color: #555;
}

/* Mission & Vision */
.mission-vision {
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}
.mission-vision::before {
    content: '';
    background-image: url(images/logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 40rem;
    height: 40rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 0;
}
.mission-vision .container {
    position: relative;
    z-index: 1;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.vision-item h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
}
.greeting {
    margin-top: 2rem;
}
.greeting h4 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
}
.greeting-content {
    text-align: center;
}

/* Service Section */
.service-section { background-color: var(--light-gray); }
.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.service-img {
    width: 100%;
    border-radius: 10px;
}
.service-text h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.service-text ul {
    list-style: none;
    margin: 1.5rem 0;
}
.service-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.service-text ul li::before {
    content: '♥';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Features Section */
.features-section { background-color: var(--bg-color); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.feature-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.feature-item h5 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 400;
}

/* Company Info */
.company-info { background-color: var(--light-gray); }
.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.company-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
}
.company-details dt {
    font-weight: bold;
    color: var(--dark-gray);
}
.company-details dd {
    margin-left: 0;
}
.company-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}
.contact-section .section-title {
    color: white;
}
.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.contact-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #333;
    color: #f4f4f4;
    padding: 3rem 0 1rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    text-decoration: none;
    color: #f4f4f4;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.copyright {
    text-align: center;
    border-top: 1px solid var(--dark-gray);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */

/* 1441px〜1919px (Ultrawide) & 1920px+ */
@media (min-width: 1441px) {
    html { font-size: 17px; }
    .container { max-width: 1300px; }
}

/* 1280px〜1440px (Wide Desktop) */
@media (min-width: 1280px) and (max-width: 1440px) {
    html { font-size: 16px; }
    .container { max-width: 1200px; }
}

/* 1025px〜1279px (Standard Desktop) */
/* Base styles are for this range, so no specific media query needed unless overriding */

/* 768px〜1024px (Tablet Landscape / Small PC) */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    .container { width: 92%; }
    .section-title { font-size: 2.2rem; }
    .hero-text h2 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .mission-content, .company-grid, .service-card { grid-template-columns: 1fr; }
    .greeting-content { flex-direction: column; align-items: center; text-align: center; }
    .vision-item { text-align: center; }
    .service-img { order: -1; }
}

/* 481px〜767px (Tablet Portrait) */
@media (max-width: 767px) {
    html { font-size: 14px; }
    .container { padding: 3rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .header { padding: 1rem 5%; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }
    .hamburger-menu {
        display: block;
    }
    .hero { height: 70vh; }
    .hero-text h2 { font-size: 2rem; }
    .hero-text h2 br { display: none; }
    .hero-text p { font-size: 1rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links ul { margin-top: 2rem; }
    .tokusho-table dl {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .tokusho-table dt {
        border-bottom: 1px solid var(--medium-gray);
        padding-bottom: 0.5rem;
    }
    .tokusho-table dd {
        padding-left: 0.5rem; /* 少しインデント */
    }
    .cursor, .cursor-follower { display: none; } /* Hide custom cursor on touch devices */
    body { cursor: auto; }
}

/* 321px〜480px (Large Smartphone) */
@media (max-width: 480px) {
    html { font-size: 13px; }
    .container { width: 95%; }
    .section-title { font-size: 1.8rem; }
    .hero-text { padding: 1.5rem; }
    .hero-text h2 { font-size: 1.8rem; }
    .service-card { padding: 1.5rem; }
    .feature-item { padding: 1.5rem; }
    .contact-button { width: 80%; padding: 1rem; }
}

/* 〜320px (Standard Smartphone) */
@media (max-width: 320px) {
    html { font-size: 12px; }
    .header-logo h1 { font-size: 1.2rem; }
    .hero-text h2 { font-size: 1.6rem; }
}

/* --- Static Page Styles --- */
.page-main {
    padding-top: 100px; /* Header height + margin */
    background-color: var(--bg-color);
}

.page-container {
    max-width: 800px;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.page-title {
    font-size: 2.8rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.page-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.page-content p, .page-content li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.page-content ol {
    padding-left: 2rem;
}

.page-content ol ol {
    margin-top: 0.5rem;
}

.page-content address {
    font-style: normal;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.policy-date {
    text-align: right;
    margin-top: 3rem;
    color: var(--dark-gray);
}

.page-content h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.page-content ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 1rem;
}

.commitment-divider {
    border: none;
    border-top: 1px solid var(--medium-gray);
    margin: 2.5rem 0;
}

.tokusho-table dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem 1rem;
    border-top: 1px solid var(--medium-gray);
    padding-top: 2rem;
}

.tokusho-table dt {
    font-weight: bold;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.tokusho-table dd {
    margin-left: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
}

/* --- Jisen Helper Page Styles (なご実ケアサービス風デザイン) --- */
.jisen-page {
    padding-top: 72px;
    background: #fffaf3;
    font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* Hero Section */
.jisen-hero {
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    background: #fffcf8;
    overflow: hidden;
    margin-top: 0;
}

.jisen-main-title {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    color: #FF8FAB;
    font-weight: 300;
    margin: 0;
    font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* Section Styles */
.jisen-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.jisen-white-bg {
    background: #fffcf8;
}

.jisen-pink-bg {
    background: #fff4ee;
    position: relative;
}

.jisen-pink-bg::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C300,100 900,100 1200,0 L1200,120 L0,120 Z" fill="%23fffcf8"/></svg>');
    background-size: 100% 100%;
    pointer-events: none;
}

.jisen-section .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 0 3rem;
}

.jisen-section p {
    line-height: 2;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.jisen-section ul {
    margin: 2rem 0;
}

.jisen-section li {
    line-height: 2;
}

.jisen-section-title {
    font-size: 2.2rem;
    color: #FF8FAB;
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
    position: relative;
    line-height: 1.5;
}

.jisen-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 500;
    position: relative;
    display: inline-block;
    line-height: 1.7;
}

.jisen-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 10px;
    background: #e1ffbc;
    z-index: -1;
    opacity: 0.8;
}

.jisen-problem-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.jisen-problem-list li {
    padding: 1rem 0 1rem 2.5rem;
    font-size: 1.15rem;
    position: relative;
    line-height: 2;
}

.jisen-problem-list li::before {
    content: '●';
    position: absolute;
    left: 0.5rem;
    color: #FF8FAB;
    font-size: 1rem;
}

.jisen-example {
    background: rgba(255, 143, 171, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    margin-top: 2.5rem;
    border-left: 4px solid #FF8FAB;
}

.jisen-example h4 {
    font-size: 1.3rem;
    color: #FF8FAB;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.jisen-example p {
    margin-bottom: 1rem;
    line-height: 2;
    font-size: 1.1rem;
}

.jisen-example a {
    color: #FF8FAB;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.jisen-example a:hover {
    opacity: 0.7;
}

.jisen-step {
    margin: 2rem 0;
    padding: 2.2rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border-left: 4px solid #FF8FAB;
}

.jisen-step-title {
    font-size: 1.3rem;
    color: #FF8FAB;
    margin-bottom: 1rem;
    font-weight: 500;
}

.jisen-step p {
    margin-bottom: 0;
    line-height: 2;
    font-size: 1.15rem;
}

/* Diagram Image */
.jisen-diagram-image {
    text-align: center;
    margin: 2rem auto;
    max-width: 100%;
    padding: 0 1rem;
}

.jisen-diagram-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 143, 171, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.jisen-diagram-image img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 143, 171, 0.2);
}

.jisen-stance-list {
    list-style: none;
    padding-left: 0;
    margin: 2.5rem 0;
}

.jisen-stance-list li {
    padding: 1.5rem 2rem 1.5rem 3.5rem;
    position: relative;
    font-size: 1.15rem;
    line-height: 2;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid #FF8FAB;
}

.jisen-stance-list li::before {
    content: '✓';
    position: absolute;
    left: 1.2rem;
    color: #FF8FAB;
    font-weight: bold;
    font-size: 1.5rem;
}

/* 波形装飾 */
.jisen-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C300,100 900,100 1200,0 L1200,120 L0,120 Z" fill="%23fffcf8"/></svg>');
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.jisen-white-bg::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C300,100 900,100 1200,0 L1200,120 L0,120 Z" fill="%23fff4ee"/></svg>');
}

/* Responsive for Jisen Page */
@media (max-width: 767px) {
    .jisen-hero {
        padding: 2.5rem 1.5rem;
    }

    .jisen-main-title {
        font-size: 1.5rem;
    }

    .jisen-section {
        padding: 2.5rem 0;
    }

    .jisen-section .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .jisen-section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .jisen-subtitle {
        font-size: 1rem;
    }

    .jisen-section p {
        font-size: 0.9rem;
    }

    .jisen-diagram-image {
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }

    .jisen-step {
        padding: 1.2rem;
    }

    .jisen-example {
        padding: 1.2rem;
    }

    .jisen-stance-list li {
        font-size: 0.9rem;
        padding: 0.8rem 1rem 0.8rem 2rem;
    }

    .jisen-problem-list li {
        font-size: 0.9rem;
    }
}

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

/* Initial state - hidden */
.jisen-section,
.mission-vision,
.service-section,
.features-section,
.company-info,
.contact-section,
.jisen-hero,
.jisen-example,
.jisen-step,
.jisen-diagram-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Feature items slide in from sides */
.feature-item:nth-child(1),
.vision-item:nth-child(1) {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.feature-item:nth-child(2),
.vision-item:nth-child(2) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.feature-item:nth-child(3) {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

/* Animated state - visible */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
}

/* Service card animation */
.service-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-card.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Jisen specific animations */
.jisen-example.animate-in {
    animation: slideInLeft 0.8s ease-out forwards;
}

.jisen-step.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.jisen-diagram-image.animate-in {
    animation: zoomIn 1s ease-out forwards;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth transitions for all animated elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
