@import 'variables.css';
@import 'default.css';

/* =========================
   Base Styles (1920x1080 optimized)
   ========================= */

.logo-container img {
    max-width: 100px;
    height: auto;
}

.section-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
}

.section-indicator-track {
    width: 3px;
    height: 400px;
    background: rgba(162, 146, 129, 0.2);
    position: relative;
    margin-bottom: 15px;
}

.section-indicator-thumb {
    position: absolute;
    margin-left: 1.5px;
    width: 3px;
    height: 200px;
    background: var(--accent-color);
    left: -2px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}

.head-container {
    position: relative;
    cursor: none;
    align-items: center;
    justify-content: flex-start;
    padding: 0 clamp(20px, 5vw, 60px);
    min-height: 100dvh;
    margin: 0;
    width: 100%;
    overflow: hidden;
	height: 100dvh !important;
}
/* 
.visionary-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    font-family: 'Beautique Display';
    transform: translateX(-50%);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0;
    font-weight: 400;
    line-height: 100%;
    color: #FFFFFF;
    text-transform: uppercase;
} */

.video-background {
    opacity: 1 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    -webkit-pointer-events: none;
}

.head-container > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-family-display);
    line-height: 100%;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    font-size: 80px;
    color: #fcfdff;
    width: 40%;
    z-index: 10;
}

.head-container > div:nth-child(2) {
    display: flex;
    gap: 2.5vh;
    font-family: var(--font-family-mincho);
    line-height: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 50.5vw;
    top: 50vh;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: auto;
}

.head-container > div:nth-child(2) span {
    display: block;
    font-size: 24px;
    color: #fcfdff;
    text-align: center;
    font-weight: 600;
    z-index: 10;
}

.service-container {
    display: grid;
    /* justify-content: space-between; */
    align-items: center;
    gap: 5px;
    padding: 210px 64px 200px 64px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

.service-container--first {
    background-image: var(--about-background-image-url);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.service-container--second {
    background-image: var(--about-background-image-url);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.greeting-section {
    background-image: var(--about-background-image-url);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.service-image {
    width: 666px;
    max-width: 666px;
    height: 666px;
    grid-column: 1;
    position: relative;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
    -webkit-transition: box-shadow 0.3s ease;
}

.more-button {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.more-button div {
    font-family: var(--font-family-display);
    line-height: 100%;
    font-size: 20px;
    font-weight: 400;
    width: 100px;
    height: 100px;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.more-button div:hover {
    transform: scale(1.1);
    background: rgba(210, 173, 146, 0.1);
}

.service-content-left,
.service-content-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    min-height: 100%;
    padding: 40px;
    max-width: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.service-content-left {
    background-image: var(--service-content-left-image-url);
}

.service-content-right {
    background-image: var(--service-content-right-image-url);
}

.cover {
    position: relative;
    background-color: rgba(40, 40, 40, 0.6);
    height: 100%;
    display: flex;
    border-radius: 8px;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* .cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 40, 40, 0.6);
    transition: transform 0.5s ease;
    transform: translateX(0);
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .cover:hover::before {
        transform: translateX(-100%);
    }
}

@media (hover: none) and (pointer: coarse) {
    .cover.tapped::before {
        transform: translateX(-100%);
    }
} */

.service-title,
.service-description {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 10px;
    transition: opacity 0.4s ease;
    /* position: relative;
    padding: 0 20px;
    z-index: 2; */
}

.service-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-mincho);
    line-height: 100%;
    font-size: 64px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin: 0 auto 20px auto;
    align-self: center;
    gap: 12px;
    width: fit-content;
    opacity: 1;
    pointer-events: auto;

    /* flex-direction: column;
    font-family: var(--font-family-mincho);
    line-height: 100%;
    font-size: 64px;
    font-weight: 400;
    color: #fff;
    text-align: left;
    margin: 0;
    align-self: flex-start;
    gap: 12px;
    width: fit-content;
    display: flex; */
}

/* @media (hover: hover) and (pointer: fine) {
    .cover:hover .service-title {
        display: none;
    }

    .cover:hover .service-description {
        display: flex;
        pointer-events: auto;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cover.tapped .service-title {
        display: none;
    }

    .cover.tapped .service-description {
        display: flex;
        pointer-events: auto;
    }
} */

@media (hover: hover) and (pointer: fine) {
    .cover:hover .service-title {
        opacity: 0 !important;
        transform: translateY(-50%) translateY(-10px);
        pointer-events: none;
    }

    .cover:hover .service-description {
        opacity: 1 !important;
        transform: translateY(-50%);
        pointer-events: auto;
    }
}

/* Touch states */
@media (hover: none) and (pointer: coarse) {
    .cover.tapped .service-title {
        opacity: 0 !important;
        transform: translateY(-50%) translateY(-10px);
        pointer-events: none;
    }

    .cover.tapped .service-description {
        opacity: 1 !important;
        transform: translateY(-50%);
        pointer-events: auto;
    }
}

.service-title > span {
    white-space: nowrap;
}

.title-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border: none;
    margin: 10px 0;
}

.service-description {
    display: flex;
    flex-direction: column;
    gap: -10px;
    text-align: left;
    color: #fff;
    font-family: var(--font-family-mincho);
    line-height: 2;
    font-size: 20px;
    font-weight: 400;
    width: 100%;
    align-content: center;
    opacity: 0 !important;
    pointer-events: none;

    /* flex-direction: column;
    gap: 10px;
    text-align: left;
    color: #fff;
    font-family: var(--font-family-mincho);
    line-height: 2;
    font-size: 20px;
    font-weight: 400;
    width: 100%;
    display: none;
    pointer-events: none;
    align-content: center; */
}

.service-description--mobile {
    display: none;
    flex-direction: column;
    color: var(--primary-color);
    font-family: var(--font-family-mincho);
    line-height: 200%;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    width: 100%;
    pointer-events: none;
    align-content: center;
}

.greeting-section {
    gap: 246px;
    padding: 290px 64px 207px 64px;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #fcfdff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.greeting-head {
    display: flex;
    margin: 0;
    gap: 110px;
    align-items: flex-start;
    flex-direction: column;
}

.greeting-title {
    font-family: var(--font-family-mincho);
    line-height: 100%;
    font-size: 80px;
    font-weight: 400;
    color: var(--primary-color);
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
}

.greeting-image {
    flex: 1;
    max-width: 666px;
}

.greeting-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.greeting-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: var(--primary-color);
    font-family: var(--font-family-mincho);
    font-weight: 400;
    font-size: 20px;
    line-height: 2;
    width: 45%;
    padding-right: 100px;
}

.greeting-content--mobile {
    display: none;
}

.greeting-content span {
    display: block;
}

.greeting-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contacts-section {
    width: 100vw;
    height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-text-container {
    height: 80px;
    width: min(90%, 350px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    border-radius: 5000px;
    border: 2px solid #ffffff !important;
    transition:
        color 0.2s ease 0.4s,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    -webkit-transition:
        color 0.2s ease 0.4s,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    background-image: var(--background-image-url);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: transparent;
    overflow: hidden;
    text-decoration: none;
    outline: none !important;
    box-shadow: none !important;
    pointer-events: auto;
}

.contact-text-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: #FFFFFF;
    transform-origin: right center;
    transition: none;
    -webkit-transition: none;
    z-index: -1;
}

.scrolling-text {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-infinite 30s linear infinite;
    -webkit-animation: scroll-infinite 30s linear infinite;
    will-change: transform;
    width: max-content;
}

.scrolling-text.single-text {
    justify-content: center;
    align-items: center;
    animation: none !important;
    transform: none !important;
    width: 100%;
    display: none;
}

.static-text {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-text-container.hovered .static-text {
    display: flex !important;
    animation: none !important;
}

.text-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.text-item.english-text .text {
    font-family: var(--font-family-display);
    font-weight: 400;
}

.text {
    color: #FFFFFF;
    font-family: var(--font-family-mincho), serif;
    line-height: 100%;
    font-size: 64px;
    white-space: nowrap;
    transition: color 0.3s ease 0.2s;
    -webkit-transition: color 0.3s ease 0.2s;
}

.contact-text-container .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 80px;
    margin-left: 80px;
}

.contact-text-container:hover {
    border: 2px solid var(--accent-color) !important;
}

.contact-text-container:hover::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.contact-text-container:hover::after {
    width: 5000px;
    height: 5000px;
}

.contact-text-container:hover .contact-text {
    color: var(--accent-color) !important;
}

.contact-text-container:hover .scrolling-text.repeated {
    display: none !important;
}

.contact-text-container:hover .scrolling-text.single-text {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    animation: none !important;
    transform: none !important;
    width: 100% !important;
}

.scrolling-text.single-text {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.scrolling-text.single-text .japanese-text {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-text-container:hover .scrolling-text {
    animation-play-state: paused !important;
}

.contact-text-container:hover .japanese-text {
    display: flex !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2;
}

.contact-text-container:hover .english-text {
    display: none !important;
}

.scrolling-text {
    display: none;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    animation: scroll-infinite 30s linear infinite;
}

.scrolling-text.active {
    display: flex;
}

.single-text {
    animation: none !important;
    justify-content: center;
}

/* @keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@-webkit-keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
} */

.contact-text .text-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100%);
    will-change: transform, opacity;
    z-index: 2;
}

.contact-text-container .japanese-text {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    visibility: visible;
}

.contact-text-container .english-text {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
}

.contact-text {
    color: #FFFFFF;
    font-family: var(--font-family-mincho);
    line-height: 100%;
    font-size: 22px;
    white-space: nowrap;
}

.contact-text .dot {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #FFFFFF;
    flex-shrink: 0;
}

.footer-section {
    position: relative !important;
    min-height: 20vh;
    max-height: 30vh;
    height: auto;
    width: 100%;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    display: none;
    overflow: hidden;
    overflow-y: hidden !important;
    bottom: 0;
    left: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    box-sizing: border-box;
    /* touch-action: none !important; */
    /* -webkit-touch-callout: none; */
    -webkit-user-select: none;
    user-select: none;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.footer-section::after {
    content: "";
    display: block;
    height: 50px;
}

.footer-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.footer-section a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
    border-radius: 64px;
}

.footer-section a:hover {
    transform: translateY(-3px);
}

.footer-section a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================
   Responsive Scaling from 1920x1080 Base
   ========================= */

/* Large Screens (Above 1920px) - Scale Up */
@media (min-width: 2560px) {
    .head-container > div:first-child {
        font-size: 100px;
    }

    .head-container > div:nth-child(2) span {
        font-size: 30px;
    }

    .service-container {
        padding: 280px 80px 260px 80px;
        gap: 60px;
    }

    .service-image {
        width: 800px;
        max-width: 800px;
        height: 800px;
    }

    .service-title {
        font-size: 80px;
    }

    .service-description {
        font-size: 25px;
    }

    .greeting-section {
        padding: 350px 80px 250px 80px;
    }

    .greeting-title {
        font-size: 100px;
    }

    .greeting-content {
        font-size: 24px;
    }

    .more-button div {
        width: 120px;
        height: 120px;
        font-size: 24px;
    }
}

/* Standard Large Desktop (1920px) - Base Styles Apply */
@media (min-width: 1920px) and (max-width: 2559px) {}

/* Desktop (1440px-1919px) - Scale Down Proportionally */
@media (min-width: 1440px) and (max-width: 1919px) {
    .head-container > div:first-child {
        font-size: 60px; /* 75% of 80px */
        width: 45%;
    }
    .head-container > div:nth-child(2) {
        gap: 2vh;
        /* left: 47.3%; */
    }

    .head-container > div:nth-child(2) span {
        font-size: 18px; /* 75% of 24px */
    }

    .service-container {
        padding: 170px 64px 150px 64px; /* 75% of original */
    }

    .service-image {
        width: 500px; /* 75% of 666px */
        max-width: 500px;
        height: 500px;
    }

    .service-title {
        font-size: 48px; /* 75% of 64px */
    }

    .service-description {
        font-size: 16px; /* 75% of 20px */
    }

    .service-content-left,
    .service-content-right {
        padding: 10px;
    }

    .greeting-section {
        padding: 218px 64px 155px 64px; /* 75% of original */
        gap: 246px;
    }

    .greeting-head {
        gap: 83px; /* 75% of 110px */
    }

    .greeting-title {
        font-size: 60px; /* 75% of 80px */
    }

    .greeting-image {
        max-width: 400px; /* 75% of 666px */
    }

    .greeting-content {
        font-size: 15px; /* 75% of 20px */
        padding-right: 75px; /* 75% of 100px */
    }

    .more-button div {
        width: 75px; /* 75% of 100px */
        height: 75px;
        font-size: 15px; /* 75% of 20px */
    }
}

/* Laptop (1024px-1439px) - Scale Down to 60% */
@media (min-width: 1024px) and (max-width: 1439px) {
    .section-indicator {
        right: 30px;
    }

    .section-indicator-track {
        height: 300px;
    }

    .section-indicator-thumb {
        height: 100px;
    }

    .head-container > div:first-child {
        font-size: 48px; /* 60% of 80px */
        width: 55%;
    }

    .head-container > div:nth-child(2) {
        /* transform: translateX(-50%); */
        width: auto;
        gap: 10px;
        /* left: 50%; */
    }

    .head-container > div:nth-child(2) span {
        font-size: 20px; /* 60% of 24px */
    }

    .service-container {
        display: block;
        padding: 126px 40px 120px 40px; /* 60% of original */
    }

    .service-image {
        width: 350px;
        max-width: 350px;
        height: 350px;
    }

    .service-content-left,
    .service-content-right {
        padding: 0;
    }

    .service-title {
        font-size: 38px; /* 60% of 64px */
    }

    .service-description {
        font-size: 14px; /* 60% of 20px */
        padding: 0;
    }

    .more-button {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .more-button div {
        width: 60px; /* 60% of 100px */
        height: 60px;
        font-size: 12px; /* 60% of 20px */
    }

    .greeting-section {
        padding: 174px 40px 124px 40px; /* 60% of original */
        gap: 148px;
    }

    .greeting-head {
        gap: 66px; /* 60% of 110px */
    }

    .greeting-title {
        font-size: 48px; /* 60% of 80px */
    }

    .greeting-image {
        max-width: 400px; /* 60% of 666px */
    }

    .greeting-content {
        gap: 6px;
        font-size: 12px; /* 60% of 20px */
        padding-right: 40px;
    }
}

/* Tablet (768px-1023px) - Scale Down to 45% */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-indicator {
        display: none;
    }

    .section-indicator {
        right: 20px;
    }

    .section-indicator-track {
        height: 300px;
    }

    .head-container {
        padding: 40px 40px;
    }

    .head-container > div:first-child {
        font-size: 36px; /* 45% of 80px */
    }

    .head-container > div:nth-child(2) {
        gap: 26px;
        left: 50vw;
    }

    .head-container > div:nth-child(2) span {
        font-size: 24px;
    }

    .service-container {
        padding: 250px 40px 250px 40px; /* 45% of original */
    }

    .service-image {
        width: 400px; /* 45% of 666px */
        max-width: 400px;
        height: 400px;
    }

    .service-content-left,
    .service-content-right {
        padding: 20px;
    }

    .service-title {
        font-size: 29px; /* 45% of 64px */
    }

    .service-description {
        font-size: 10px; /* 45% of 20px */
    }

    .more-button {
        margin-top: 15px;
    }

    .more-button div {
        width: 45px; /* 45% of 100px */
        height: 45px;
        font-size: 9px; /* 45% of 20px */
    }

    .greeting-section {
        padding: 250px 40px 250px 40px; /* 45% of original */
        gap: 111px;
    }

    .greeting-head {
        gap: 50px; /* 45% of 110px */
    }

    .greeting-title {
        font-size: 36px; /* 45% of 80px */
    }

    .greeting-image {
        max-width: 300px; /* 45% of 666px */
    }

    .greeting-content {
        padding-right: 10px;
        font-size: 9px; /* 45% of 20px */
    }

    .contact-text .dot {
        width: 7px; /* 45% of 16px */
        height: 7px;
    }

    .contact-text .dot.left {
        margin-right: 9px; /* 45% of 20px */
    }

    .contact-text .dot.right {
        margin-left: 9px;
    }
}

/* Mobile (480px-767px) - Scale Down to 35% */
@media (min-width: 480px) and (max-width: 767px) {
    .section-indicator {
        display: none;
    }

    .logo-container img {
        max-width: 80px;
    }

    .section-indicator {
        right: 15px;
    }

    .section-indicator-track {
        height: 200px;
        width: 3px;
    }

    .scrolling-text {
        animation: none;
        -webkit-animation: none;
    }

    .section-indicator-thumb {
        width: 3px;
        height: 80px;
    }

    .head-container {
        padding: 30px 20px;
    }

    .head-container > div:first-child {
        font-size: 24px; /* 35% of 80px */
        width: 100%;
    }

    .head-container > div:nth-child(2) {
        gap: 14px;
        left: 50vw;
    }

    .head-container > div:nth-child(2) span {
        font-size: 20px;
    }

    .service-container {
        padding: 200px 20px 200px 20px; /* 35% of original */
    }

    .service-image {
        width: 233px; /* 35% of 666px */
        max-width: 233px;
        height: 233px;
    }

    .service-content-left,
    .service-content-right {
        height: 500px;
        max-width: 100%;
        padding: 20px;
    }

    .service-title,
    .service-description {
        padding: 0 10px;
    }

    .service-title {
        font-size: 22px; /* 35% of 64px */
        padding: 0 5px;
    }

    .service-description {
        font-size: 7px; /* 35% of 20px */
    }

    .more-button {
        margin-top: 10px;
    }

    .more-button div {
        width: 35px; /* 35% of 100px */
        height: 35px;
        font-size: 7px; /* 35% of 20px */
    }

    .greeting-section {
        padding: 200px 20px 200px 20px; /* 35% of original */
        gap: 80px;
    }

    .greeting-head {
        gap: 39px; /* 35% of 110px */
    }

    .greeting-title {
        font-size: 28px; /* 35% of 80px */
    }

    .greeting-image {
        max-width: 233px; /* 35% of 666px */
    }

    .greeting-content {
        padding-right: 10px;
        font-size: 7px; /* 35% of 20px */
    }

    .contact-text .dot {
        width: 6px; /* 35% of 16px */
        height: 6px;
    }

    .contact-text .dot.left {
        margin-right: 7px; /* 35% of 20px */
    }

    .contact-text .dot.right {
        margin-left: 7px;
    }
}

/* Small Mobile (320px-479px) - Scale Down to 25% */
@media (max-width: 479px) {
    .section-indicator {
        display: none;
    }
    .transition-section {
        display: flex;
        background-color: #e8d6c0 !important;
    }

    .logo-container img {
        max-width: 70px;
    }

    .section-indicator {
        right: 10px;
        opacity: 0.5;
    }

    .section-indicator-track {
        height: 150px;
        width: 2px;
    }

    .section-indicator-thumb {
        width: 2px;
        height: 60px;
    }

    .head-container {
        padding: 30px 32px;
    }

    .visionary-text {
        font-size: 16px;
        bottom: 20px;
    }

    .visionary-text img {
        height: 16px;
    }

    .head-container > div:first-child {
        display: none;
    }

    .head-container > div:nth-child(2) {
        gap: 20px;
        left: 50vw;
        top: 45vh;
    }

    .head-container > div:nth-child(2) span {
        font-size: 20px;
    }

    .service-container {
        padding: 50px 32px 100px 32px;
        gap: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: fit-content !important;
    }

    .service-image {
        width: 100%;
        height: fit-content;
        display: flex;
    }

    .service-container--first .service-image {
        justify-content: flex-start;
    }

    .service-container--second .service-image {
        justify-content: flex-end;
    }

    .service-image img {
        width: 297px;
        height: 390px;
    }

    .service-title {
        top: unset;
    }

    .service-description {
        padding: 0 5px;
    }

    .service-content-left,
    .service-content-right {
        height: 500px;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        text-align: center;
        justify-content: flex-start;
        gap: 32px;
    }

    .service-description--mobile {
        display: flex;
    }

    .service-container--first .service-description--mobile {
        text-align: left;
        align-self: flex-start;
    }

    .service-container--second .service-description--mobile {
        text-align: left;
        align-self: flex-start;
    }

    .service-title {
        font-size: 32px;
    }

    .service-description {
        font-size: 14px;
    }

    .more-button div {
        width: 70px;
        height: 70px;
    }

    .greeting-section {
		height: fit-content !important;
        padding: 50px 32px 50px 32px;
        gap: 60px;
        flex-direction: column;
    }

    .greeting-head {
        gap: 64px;
        align-items: center;
    }

    .greeting-title {
        text-align: center;
        font-size: 32px;
    }

    .greeting-image {
        width: 100%;
    }

    .greeting-image img {
        width: 100%;
        height: 100%;
    }

    .greeting-content {
        display: none;
    }

    .greeting-content--mobile {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--primary-color);
        font-family: var(--font-family-mincho);
        font-weight: 400;
        font-size: 14px;
        line-height: 200%;
    }

    .contact-text .dot {
        width: 10px;
        height: 10px;
    }

    .contact-text .dot.left {
        margin-right: 8px;
    }

    .contact-text .dot.right {
        margin-left: 8px;
    }

    /* .service-image,
    .greeting-image,
    .service-title {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    } */

    /* .contacts-section {
        height: 50vh !important;
    } */
}

@media (min-width: 376px) and (max-width: 400px) {
    .section-indicator {
        display: none;
    }

    .service-container {
        padding: 50px 32px 100px 32px;
    }

	.greeting-section {
		padding: 50px 32px 50px 32px;
	}
}


/* Ultra Small Mobile (max-width: 320px) */
@media (max-width: 375px) {
    .section-indicator {
        display: none;
    }
    .logo-container img {
        max-width: 60px;
    }

    .head-container {
        padding: 20px 20px;
    }

    .head-container > div:first-child {
        font-size: 22px;
    }

    .head-container > div:nth-child(2) {
        gap: 15px;
        /* left: 39.5%; */
    }

    .head-container > div:nth-child(2) span {
        font-size: 18px;
    }

    .service-container {
        padding: 40px 20px 80px 20px;
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .service-image {
        width: 100%;
        height: auto;
    }

    .service-title,
    .service-description {
        padding: 0 5px;
    }
    
    .service-content-left,
    .service-content-right {
        height: 500px;
        max-width: 100%;
        width: 100%;
        padding: 20px;
        text-align: center;
        justify-content: flex-start;
    }

    .service-title,
    .service-description {
        text-align: center;
    }

    .service-title {
        font-size: 32px;
    }

    .service-description {
        font-size: 18px;
    }

    .greeting-section {
        padding: 40px 20px;
    }

    /* .greeting-section {
        height: 150vh !important;
    } */

    .contacts-section {
        height: 10vh !important;
    }
}



/* =========================
   High DPI / Retina Displays
   ========================= */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .service-image img,
    .greeting-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* =========================
   Reduced Motion Preference
   ========================= */

@media (hover: none) and (pointer: coarse) {
    .contact-text-container:hover,
    .more-button div:hover {
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-background,
    .scrolling-text,
    [class*="gsap-"],
    [class*="ScrollTrigger"] {
        animation: none !important;
        transition: none !important;
    }
}

.gsap-animated-element {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
}

@media (max-width: 375px) and (max-height: 479px) {
    .service-container {
        height: 160vh !important;
    }

    .service-title,
    .greeting-title {
        font-size: 28px;
    }

    /* .greeting-section {
        height: 240vh !important;
    } */

    .head-container > div:nth-child(2) {
        gap: calc(5px + 1vmin);
    }

    .head-container > div:nth-child(2) span {
        font-size: calc(12px + 0.5vmin);
    }

    .contacts-section {
        min-height: 40vh !important;
        height: 50vh !important;
    }
}

/* =========================
   Mobile Animation
   ========================= */

@media (max-width: 767px) {
    .head-container {
        min-height: unset !important;
        max-height: unset;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .footer-section {
        content: '';
        display: flex;
    }

    .contact-text-container {
        height: 50px;
        width: min(90%, 250px);
    }

    .service-title,
    .greeting-title {
        opacity: 0 !important;
        transform: translateY(-30px) !important;
        -webkit-transform: translateY(-30px) !important;
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        -webkit-transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                            opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        will-change: transform, opacity !important;
        transition-delay: 0.1s;
    }

    .service-title.animate,
    .greeting-title.animate {
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }

    .service-description {
        transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        -webkit-transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                            opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        will-change: transform, opacity !important;
        transition-delay: 0.1s;
    }

    .service-description--mobile,
    .greeting-content--mobile {
        opacity: 0 !important;
        transform: translateY(-30px) !important;
        -webkit-transform: translateY(-30px) !important;
        transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        -webkit-transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                            opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        will-change: transform, opacity !important;
        transition-delay: 0.1s;
    }

    .service-description--mobile.animate,
    .greeting-content--mobile.animate {
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }

    .title-line,
    .title-line--right,
    .title-line--left,
    .title-line--center {
        opacity: 0 !important;
        transform: scaleX(0) !important;
        -webkit-transform: scaleX(0) !important;
        transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s !important;
        -webkit-transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                            opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s !important;
        will-change: transform, opacity !important;
        transition-delay: 0.1s;
    }

    .title-line--right {
        transform-origin: right center !important;
        -webkit-transform-origin: right center !important;
    }
    .title-line--left {
        transform-origin: left center !important;
        -webkit-transform-origin: left center !important;
    }
    .title-line--center {
        transform-origin: center center !important;
        -webkit-transform-origin: center center !important;
    }

    .title-line.animate,
    .title-line--right.animate,
    .title-line--left.animate,
    .title-line--center.animate {
        transform: scaleX(1) !important;
        -webkit-transform: scaleX(1) !important;
        opacity: 1 !important;
    }

    .contacts-section {
        display: flex;
        height: 10vh !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 998;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }

    .service-image,
    .greeting-image {
        opacity: 0 !important;
        transition: opacity 1.2s linear !important;
        -webkit-transition: opacity 1.2s linear !important;
        will-change: transform, opacity !important;
        transition-delay: 2s;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .service-image.animate,
    .greeting-image.animate {
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
    /* Mobile section reveal: pure fade-in/out */
    .hero-section,
	.service-container--first,
    .service-container--second,
    .greeting-section {
		opacity: 0 !important;
        transition: opacity 0.5s ease;
        -webkit-transition: opacity 0.5 ease;
        will-change: opacity;
    }

    .hero-section.show,
	.service-container--first.show,
    .service-container--second.show,
    .greeting-section.show {
        opacity: 1 !important;
		transition: opacity 0.8s ease;
        -webkit-transition: opacity 0.8 ease;
        will-change: opacity;
    }

    .reveal-background {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
        -webkit-transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}
