/* ==========================================================================
   Mobile Home Page Styles - Completely Independent
   ========================================================================== */

/* ---------------------------------- */
/* 1. Global Mobile Variables & Reset */
/* ---------------------------------- */
:root {
    --m-home-color-background: #0a0a0a;
    --m-home-color-text-primary: #ffffff;
    --m-home-color-text-secondary: #a0aec0;
    --m-home-color-text-tertiary: #718096;
    --m-home-color-border: #2d3748;
    --m-home-font-main: 'Pretendard', sans-serif;
}

/* Global reset for mobile pages */
.m-home-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Ensure no horizontal scroll on mobile */
html.m-home-page,
body.m-home-page {
    width: 100%;
    overflow-x: hidden;
}

body.m-home-page {
    font-family: var(--m-home-font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--m-home-color-background);
    color: var(--m-home-color-text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.m-home-nav-is-open {
    overflow: hidden;
}

/* Global styles for mobile page elements */
.m-home-page a {
    color: inherit;
    text-decoration: none;
}

.m-home-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.m-home-page main {
    width: 100%;
    overflow-x: hidden;
}

/* ---------------------------------- */
/* 2. Mobile Container & Utilities    */
/* ---------------------------------- */
.m-home-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* ---------------------------------- */
/* 3. Animation & Effects             */
/* ---------------------------------- */
@keyframes m-home-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.m-home-fade-in {
    animation: m-home-fadeIn 1s ease-out forwards;
}

.m-home-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.m-home-reveal.m-home-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/* 4. Mobile Header & Navigation      */
/* ---------------------------------- */
.m-home-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
}

.m-home-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.m-home-header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 1001;
    color: var(--m-home-color-text-primary);
    text-decoration: none;
}

.m-home-nav-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    cursor: pointer;
}

.m-home-nav-toggle__icon {
    width: 28px;
    height: 28px;
    color: var(--m-home-color-text-primary);
}

.m-home-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--m-home-color-background);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.m-home-mobile-nav.m-home-is-open {
    transform: translateX(0);
}

.m-home-mobile-nav__close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.m-home-mobile-nav__links {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.m-home-mobile-nav__item {
    margin: 2rem 0;
}

.m-home-mobile-nav__link {
    font-size: 2rem;
    font-weight: 500;
    color: var(--m-home-color-text-secondary);
    transition: color 0.3s;
    text-decoration: none;
}

.m-home-mobile-nav__link:hover,
.m-home-mobile-nav__link.m-home-is-active {
    color: var(--m-home-color-text-primary);
}

/* ---------------------------------- */
/* 5. Section Base                    */
/* ---------------------------------- */
.m-home-snap-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    width: 100%;
    overflow-x: hidden;
}

/* Hero section maintains full height */
.m-home-hero.m-home-snap-section {
    min-height: 100vh;
    padding: 6rem 0;
}

/* ---------------------------------- */
/* 6. Hero Section                    */
/* ---------------------------------- */
.m-home-hero {
    background-image:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.m-home-hero__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.m-home-hero__subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    animation-delay: 0.4s;
    margin-bottom: 0;
}

.m-home-hero__title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 1rem 0;
    line-height: 1.2;
    animation-delay: 0.6s;
}

.m-home-hero__description {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #e2e8f0;
    animation-delay: 0.7s;
}

.m-home-hero__icon-links {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    animation-delay: 0.8s;
}

.m-home-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--m-home-color-text-primary);
}

.m-home-icon-link svg {
    width: 3.5rem;
    height: 3.5rem;
}

.m-home-icon-link span {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* ---------------------------------- */
/* 7. Section Headers                 */
/* ---------------------------------- */
.m-home-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.m-home-section-header__subtitle {
    font-size: 0.875rem;
    color: var(--m-home-color-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
}

.m-home-section-header__title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
}

.m-home-section-header__description {
    margin-top: 1rem;
    color: var(--m-home-color-text-secondary);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------- */
/* 8. Process Section                 */
/* ---------------------------------- */
.m-home-process {
    background-color: var(--m-home-color-background);
}

.m-home-process__grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.m-home-process-step {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--m-home-color-border);
}

.m-home-process-step__content {
    position: relative;
    padding-right: 1rem;
}

.m-home-process-step__content::before {
    content: attr(data-step);
    position: absolute;
    top: -1rem;
    left: -2.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.m-home-process-step__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--m-home-color-text-primary);
}

.m-home-process-step__description {
    margin: 0;
    color: var(--m-home-color-text-secondary);
    line-height: 1.6;
}

/* ---------------------------------- */
/* 9. Spotlight Section               */
/* ---------------------------------- */
.m-home-spotlight {
    background-color: var(--m-home-color-background);
}

.m-home-spotlight__grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.m-home-spotlight__text-content {
    text-align: center;
}

.m-home-spotlight__title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 600;
    margin: 1rem 0;
}

.m-home-spotlight__description {
    margin-top: 1.5rem;
    color: #d1d5db;
    line-height: 1.75;
}

.m-home-spotlight__link {
    display: inline-block;
    margin-top: 2rem;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--m-home-color-text-tertiary);
    color: var(--m-home-color-text-primary);
    text-decoration: none;
}

.m-home-spotlight__image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
}

.m-home-spotlight__image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    z-index: 10;
}

.m-home-spotlight__image-border {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: calc(100% - 0.75rem);
    height: calc(100% - 0.75rem);
    border: 2px solid var(--m-home-color-border);
    border-radius: 0.5rem;
    z-index: 5;
}

/* ---------------------------------- */
/* 10. Portfolio Section              */
/* ---------------------------------- */
.m-home-portfolio {
    background-color: var(--m-home-color-background);
}

.m-home-portfolio__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.m-home-portfolio-item {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 350px;
    text-decoration: none;
}

.m-home-portfolio-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-home-portfolio-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 1;
}

.m-home-portfolio-item__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--m-home-color-text-primary);
    margin: 0 0 0.25rem 0;
}

.m-home-portfolio-item__subtitle {
    color: #e2e8f0;
    margin: 0;
    font-size: 0.875rem;
}

.m-home-portfolio__cta-button-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.m-home-portfolio__cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--m-home-color-text-primary);
    padding: 0.75rem 2rem;
    border: 1px solid #4a5568;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
}

/* ---------------------------------- */
/* 11. Testimonials Section           */
/* ---------------------------------- */
.m-home-testimonials {
    background-color: #000;
}

.m-home-testimonials__container {
    text-align: center;
}

.m-home-testimonials__blockquote {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.m-home-testimonials__text {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.m-home-testimonials__author {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #a0aec0;
}

/* ---------------------------------- */
/* 12. Footer Section                 */
/* ---------------------------------- */
.m-home-footer {
    background-color: var(--m-home-color-background);
}

.m-home-footer__container {
    text-align: center;
}

.m-home-footer__email-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--m-home-color-text-tertiary);
    color: var(--m-home-color-text-primary);
    text-decoration: none;
}

.m-home-footer__bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1a202c;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
}

.m-home-footer__copyright {
    margin: 0;
    color: var(--m-home-color-text-secondary);
}

.m-home-footer__socials {
    display: flex;
    gap: 1rem;
}

.m-home-footer__socials a {
    color: var(--m-home-color-text-secondary);
    text-decoration: none;
}

/* ---------------------------------- */
/* 13. Responsive Transitions         */
/* ---------------------------------- */
.m-home-reveal[style*="transition-delay: 0.2s"] {
    transition-delay: 0.2s;
}

.m-home-reveal[style*="transition-delay: 0.4s"] {
    transition-delay: 0.4s;
}