/* =============================================
   공감각 디자인 스튜디오 - 반응형 스타일시트
   Arctic Blue & Luxury Gold Theme
   ============================================= */

/* ===== Tablet (768px and up) ===== */
@media (max-width: 1024px) {
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 350px;
        margin: var(--space-xl) auto 0;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .process-timeline {
        padding-left: var(--space-xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    .contact-info-section {
        order: 2;
    }

    /* Hide floating elements on tablet */
    .hero-float-element {
        display: none;
    }
}

/* ===== Mobile Large (640px and up) ===== */
@media (max-width: 768px) {
    :root {
        --space-2xl: 3.5rem;
        --space-3xl: 5rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1);
        flex-direction: column;
        padding: 100px var(--space-lg) var(--space-lg);
        gap: 8px;
        transition: right var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: var(--radius-lg);
        background: transparent;
        transition: all var(--transition-fast);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--gradient-arctic);
        color: var(--text-light);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 998;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 130px 0 var(--space-2xl);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-visual {
        max-width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
    
    /* Page Header */
    .page-header {
        padding: 140px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Filter Tabs */
    .filter-tabs {
        gap: 8px;
        padding: 0 var(--space-sm);
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    /* Section */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* Cards */
    .card-body {
        padding: var(--space-md);
    }

    .glass-card {
        border-radius: var(--radius-lg);
    }
    
    /* Forms */
    .form-group {
        margin-bottom: var(--space-sm);
    }
    
    /* Newsletter Preview */
    .newsletter-preview-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .faq-item {
        padding: var(--space-sm);
    }
    
    /* Timeline */
    .process-step {
        padding-left: var(--space-md);
    }
    
    .process-step::before {
        left: -20px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    /* Tools */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Toast */
    .toast-container {
        left: var(--space-sm);
        right: var(--space-sm);
        bottom: var(--space-sm);
    }
    
    .toast {
        width: 100%;
    }
    
    /* Modal */
    .modal {
        margin: var(--space-sm);
        max-height: calc(100vh - var(--space-lg));
        border-radius: var(--radius-lg);
    }

    /* Particles - reduce on mobile */
    .particle {
        width: 4px;
        height: 4px;
    }

    .particle:nth-child(n+5) {
        display: none;
    }
}

/* ===== Mobile Small (480px and down) ===== */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }
    
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .hero p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: var(--space-sm);
    }
    
    /* Tools */
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    /* Logo */
    .logo-text span {
        display: none;
    }

    .logo-icon {
        height: 32px;
    }
    
    /* Cards */
    .glass-card,
    .soft-card {
        border-radius: var(--radius-md);
    }

    .card-body {
        padding: var(--space-sm);
    }
    
    /* Form file */
    .form-file-label {
        padding: var(--space-md);
    }
    
    .form-file-label i {
        font-size: 2rem;
    }

    /* Section Badge */
    .section-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--space-lg) 0;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }

    /* Particles - hide on very small screens */
    .particles {
        display: none;
    }
}

/* ===== Large Screens (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-visual {
        max-width: 550px;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

/* ===== Extra Large Screens (1600px and up) ===== */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero p {
        font-size: 1.3rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .btn,
    .filter-tabs,
    .nav-toggle,
    .bg-gradient-animated,
    .particles,
    .hero-visual,
    .hero-float-element {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass,
    .glass-card,
    .glass-strong,
    .soft-card,
    .glass-dark {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .page-header {
        padding-top: 20px;
        background: none;
    }

    .page-header::before {
        display: none;
    }

    .gradient-text,
    .gradient-text-arctic,
    .gradient-text-gold {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: currentColor;
        color: #333;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }

    .hero-shape,
    .hero-shape::before,
    .particle,
    .bg-gradient-animated::after {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #333;
        --text-muted: #555;
        --navy-200: #999;
    }
    
    .glass-card,
    .soft-card {
        border-width: 2px;
        border-color: #333;
    }

    .btn-primary,
    .btn-gold,
    .btn-dark {
        border: 2px solid currentColor;
    }
}

/* ===== Dark Mode Support (Future) ===== */
@media (prefers-color-scheme: dark) {
    /* 
    :root {
        --bg-primary: #0F172A;
        --bg-secondary: #1E293B;
        --bg-card: #1E293B;
        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        --text-muted: #64748B;
    }
    */
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work well on touch */
    .btn::before {
        display: none;
    }

    .card:hover,
    .glass-card:hover,
    .soft-card:hover {
        transform: none;
    }

    .card:hover .card-overlay {
        opacity: 1;
    }

    /* Larger touch targets */
    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .filter-tab {
        min-height: 44px;
    }

    .btn {
        min-height: 48px;
    }
}

/* ===== Landscape Mobile ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--space-xl);
    }

    .hero-visual {
        max-width: 180px;
    }

    .page-header {
        padding: 100px 0 60px;
    }
}
