/* --- Mobile View Specific Styles --- */
/* Only apply these styles on mobile devices (max-width: 767px) */

@media (max-width: 767px) {
    /* Mobile Background - 배경색 고정 (iOS Safari 호환) */
    html {
        height: 100%;
    }

    body {
        position: relative;
        min-height: 100%;
        min-height: -webkit-fill-available;
    }

    /* 고정 배경 효과 (pseudo-element 방식) */
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: -webkit-fill-available;
        z-index: -1;
        background: linear-gradient(135deg, #0c0a17 0%, #1a1535 50%, #0c0a17 100%);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    .page-wrapper {
        background: transparent;
    }

    /* Mobile Navigation */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 24px;
        padding: 0;
        margin-right: 0.75rem;
        z-index: 1001;
    }

    .hamburger-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--color-text-primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

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

    .hamburger-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

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

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(12, 10, 23, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-menu {
        list-style: none;
        text-align: center;
    }

    .mobile-nav-menu li {
        margin: 2rem 0;
    }

    .mobile-nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-text-primary);
        transition: color 0.2s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        color: var(--color-purple-light);
    }

    /* Mobile-specific adjustments */
    .nav-logo {
        font-size: 1.25rem;
        font-weight: 700;
        color: #fff;
        margin-left: 0.75rem;
    }

    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        font-weight: 900;
        letter-spacing: -0.05em;
    }

    .hero-subtitle {
        margin: 1.5rem 0 0;
        font-size: 1rem;
        color: var(--color-text-secondary);
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2.5rem;
        width: 100%;
    }

    .hero-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.5rem;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
    }

    .hero-button:active {
        transform: scale(0.96);
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.3);
    }

    /* Process Grid Mobile */
    .process-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }

    .process-card {
        padding: 1rem;
        border-radius: 0.5rem;
        text-align: center;
    }

    .process-card svg {
        margin: 0 auto 0.5rem;
    }

    .process-card h3 {
        font-weight: 600;
        font-size: 0.875rem;
    }

    /* Single Column Grid for Mobile */
    .grid-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        text-align: left;
    }

    /* Portfolio Images Mobile */
    .portfolio-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    /* Footer Mobile */
    .footer-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 1.75rem;
        line-height: 2.15rem;
        font-weight: 700;
        color: #fff;
    }

    .section-subtitle {
        margin: 0.75rem auto 0;
        color: var(--color-text-secondary);
        font-size: 0.95rem;
    }

    /* Glass Card Mobile Touch */
    .glass-card:active {
        transform: scale(0.98);
        border-color: rgba(192, 132, 252, 0.5);
        box-shadow: 0 0 20px rgba(192, 132, 252, 0.2);
    }

    /* Remove last section margin */
    .content-wrap .section:last-of-type {
        margin-bottom: 0;
    }

    /* --- About Page Specific Styles --- */
    /* Page Hero */
    .page-hero {
        text-align: center;
        padding: 4rem 0 6rem 0;
    }

    .page-hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        font-weight: 900;
        letter-spacing: -0.05em;
    }

    .page-hero-subtitle {
        margin: 1.5rem 0 0;
        font-size: 1rem;
        color: var(--color-text-secondary);
    }

    /* Story Section */
    .story-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }

    .story-image-wrapper {
        border-radius: 0.75rem;
        overflow: hidden;
    }

    .story-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

    .story-content {
        text-align: left;
    }

    .story-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .story-text {
        color: #d1d5db;
        line-height: 1.75;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    /* Core Values & Team Sections */
    .values-grid,
    .team-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .value-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
        text-align: left;
    }

    .value-card h4 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .value-card p {
        font-size: 0.9rem;
        color: var(--color-text-secondary);
    }

    .team-card {
        border-radius: 0.75rem;
        padding: 1.5rem;
        text-align: center;
    }

    .team-card img {
        width: 6rem;
        height: 6rem;
        border-radius: 9999px;
        object-fit: cover;
        margin: 0 auto 1rem;
        border: 2px solid var(--color-purple-medium);
    }

    .team-card h4 {
        font-size: 1.125rem;
        font-weight: 700;
    }

    .team-card p {
        color: var(--color-purple-light);
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

    /* CTA Section */
    .cta-card {
        border-radius: 1rem;
        padding: 2.5rem 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .cta-glow {
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 9999px;
        filter: blur(80px);
    }

    .cta-glow.top-left {
        top: -40%;
        left: -40%;
        background-color: rgba(147, 51, 234, 0.4);
    }

    .cta-glow.bottom-right {
        bottom: -40%;
        right: -40%;
        background-color: rgba(37, 99, 235, 0.4);
    }

    .cta-content {
        position: relative;
        z-index: 1;
    }

    .cta-content p {
        color: #d1d5db;
        margin-top: 1rem;
    }

    .cta-button {
        margin-top: 2rem;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        background-image: linear-gradient(to right, var(--color-blue), var(--color-purple));
        border-radius: 0.5rem;
    }

    /* --- Services Page Specific Styles --- */
    .detailed-services-section {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        margin-top: 3rem;
    }

    .service-item-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .service-image-wrapper {
        padding: 1rem;
        border-radius: 0.75rem;
        overflow: hidden;
    }

    .service-image-wrapper img {
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
        display: block;
    }

    .service-content {
        text-align: left;
    }

    .service-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #fff;
    }

    .service-content p {
        color: #d1d5db;
        line-height: 1.75;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .service-content ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
    }

    .service-content ul li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.95rem;
        color: #d1d5db;
    }

    .service-content ul li svg {
        width: 20px;
        height: 20px;
        color: var(--color-purple-light);
        flex-shrink: 0;
    }

    /* Process Grid for Services Page */
    .process-grid-services {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .process-step-circle {
        width: 3rem;
        height: 3rem;
        border-radius: 9999px;
        background-image: linear-gradient(to right, var(--color-blue), var(--color-purple));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        font-weight: 700;
        color: #fff;
        margin: 0 auto 1rem;
    }

    .process-card h4 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #fff;
    }

    .process-card p {
        font-size: 0.9rem;
        color: var(--color-text-secondary);
        line-height: 1.6;
    }

    /* --- Portfolio Page Specific Styles --- */
    .portfolio-section {
        margin-top: 3rem;
    }

    .filter-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 9999px;
        transition: color 0.2s, background-color 0.2s;
        border: 1px solid transparent;
    }

    .filter-btn.active {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .filter-btn:not(.active) {
        color: #d1d5db;
    }

    .filter-btn:not(.active):active {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-card {
        border-radius: 0.75rem;
        text-align: left;
        overflow: hidden;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .portfolio-card.hidden {
        opacity: 0;
        transform: scale(0.95);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .portfolio-card-image-wrapper {
        overflow: hidden;
        height: 14rem;
        border-radius: 0.75rem;
    }

    .portfolio-card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .portfolio-card-content {
        padding: 1.5rem 1rem;
    }

    .portfolio-card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 0.5rem;
    }

    .portfolio-card-text {
        color: var(--color-text-secondary);
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .portfolio-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .portfolio-card-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 9999px;
    }

    .tag-purple {
        background-color: rgba(168, 85, 247, 0.2);
        color: #d8b4fe;
    }

    .tag-blue {
        background-color: rgba(59, 130, 246, 0.2);
        color: #93c5fd;
    }

    .tag-green {
        background-color: rgba(34, 197, 94, 0.2);
        color: #86efac;
    }

    .tag-red {
        background-color: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
    }

    .tag-yellow {
        background-color: rgba(234, 179, 8, 0.2);
        color: #fde047;
    }

    .tag-indigo {
        background-color: rgba(99, 102, 241, 0.2);
        color: #a5b4fc;
    }

    .portfolio-card-link {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-purple-light);
    }

    /* Testimonials Section */
    .testimonials-section {
        margin-top: 4rem;
    }

    .testimonials-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
        text-align: left;
    }

    .testimonial-card p {
        color: #d1d5db;
        margin-bottom: 1.5rem;
        font-style: italic;
        line-height: 1.7;
        font-size: 0.95rem;
    }

    .testimonial-author {
        display: flex;
        align-items: center;
    }

    .testimonial-author img {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        object-fit: cover;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .testimonial-author h4 {
        font-weight: 600;
        color: #fff;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .testimonial-author div p {
        margin: 0;
        color: var(--color-text-secondary);
        font-size: 0.8rem;
        font-style: normal;
    }

    /* CTA Section */
    .cta-section {
        margin-top: 4rem;
    }

    /* --- Pricing Page Specific Styles --- */
    .pricing-section {
        margin-top: 3rem;
    }

    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .pricing-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
        display: flex;
        flex-direction: column;
        text-align: left;
        position: relative;
        transition: transform 0.3s ease;
    }

    .pricing-card:active {
        transform: scale(0.98);
    }

    .pricing-highlight {
        border: 2px solid var(--color-purple-medium);
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.3);
    }

    .pricing-popular-badge {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: var(--color-purple);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
    }

    .pricing-card-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 0.25rem;
    }

    .pricing-card-subtitle {
        font-size: 0.875rem;
        color: var(--color-text-secondary);
        margin-bottom: 1rem;
    }

    .pricing-card-price {
        font-size: 2rem;
        font-weight: 700;
        margin: 1rem 0;
        color: #fff;
    }

    .pricing-card-price span {
        font-size: 1rem;
        font-weight: 400;
        color: var(--color-text-secondary);
    }

    .pricing-card-features {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.875rem;
        flex-grow: 1;
        color: var(--color-text-secondary);
        margin-bottom: 2rem;
    }

    .pricing-card-features li {
        display: flex;
        align-items: center;
        line-height: 1.6;
    }

    .pricing-card-features span {
        color: var(--color-purple-light);
        margin-right: 0.5rem;
        font-weight: 700;
    }

    .pricing-card-button {
        width: 100%;
        padding: 0.875rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        border-radius: 0.5rem;
        text-align: center;
        transition: all 0.2s ease-in-out;
    }

    .pricing-card-button--secondary {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .pricing-card-button--secondary:active {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .pricing-card-button--primary {
        background-image: linear-gradient(to right, var(--color-blue), var(--color-purple));
    }

    .pricing-card-button--primary:active {
        opacity: 0.9;
    }

    /* Comparison Table Mobile */
    .comparison-section {
        margin-top: 4rem;
    }

    .comparison-title {
        margin-bottom: 2rem;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table tr {
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 0.75rem;
        background: var(--glass-bg);
        border: var(--glass-border);
    }

    .comparison-table tr:last-child {
        margin-bottom: 0;
    }

    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }

    .comparison-table tr td:last-child {
        border-bottom: none;
    }

    .comparison-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-secondary);
        text-align: left;
        margin-right: 1rem;
    }

    .comparison-table td.feature-title {
        font-size: 1.125rem;
        font-weight: 700;
        color: #fff;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
    }

    .comparison-table td.feature-title::before {
        display: none;
    }

    .comparison-table .highlight-check {
        color: var(--color-purple-light);
        font-weight: 700;
        font-size: 1.25rem;
    }

    /* FAQ Section */
    .faq-section {
        margin-top: 4rem;
    }

    .faq-list {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .faq-item {
        padding: 1.25rem;
        border-radius: 0.5rem;
    }

    .faq-item summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: 600;
        color: #fff;
        list-style: none;
        text-align: left;
        font-size: 0.95rem;
    }

    .faq-item summary::-webkit-details-marker {
        display: none;
    }

    .faq-item-icon {
        color: var(--color-purple-light);
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease-in-out;
        flex-shrink: 0;
        margin-left: 1rem;
    }

    .faq-item[open] .faq-item-icon {
        transform: rotate(45deg);
    }

    .faq-item p {
        color: var(--color-text-secondary);
        margin-top: 1rem;
        font-size: 0.875rem;
        text-align: left;
        line-height: 1.6;
    }

    /* GPU 가속 및 성능 최적화 */
    .hero-button,
    .glass-card,
    .pricing-card,
    .filter-btn,
    .portfolio-card {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    /* 터치 지연 제거 */
    a, button, .interactive-element {
        touch-action: manipulation;
    }

    /* 접근성: 애니메이션 감소 선호 사용자 대응 */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}