/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .phone-mockup {
        width: 350px;
        height: 700px;
    }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

/* Small screens (768px to 991px) */
@media (max-width: 991px) {
    .nav-container {
        height: 70px;
        padding: 0 1.5rem;
    }
    
    .nav-logo {
        gap: 0.8rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .penguin-logo {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 10002;
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        margin: 0.2rem 1rem;
        border-radius: 12px;
        justify-content: center;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .search-container {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .search-input {
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* User Guide Tablet */
    .user-guide {
        flex-direction: column;
        gap: 15px;
    }
    
    .guide-step {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }
    
    .guide-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    /* Hero Buttons Tablet */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    /* Quick Actions Tablet */
    .quick-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .quick-action {
        min-width: 150px;
    }
    
    /* Instagram Mobile */
    .instagram-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .instagram-info {
        margin-left: 0;
        text-align: center;
        min-width: auto;
    }
    
    .instagram-info h4,
    .instagram-info p {
        word-break: break-word;
        hyphens: auto; /* 하이픈으로 자연스러운 줄바꿈 */
    }
    
    .instagram-posts {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    .post-placeholder {
        padding: 15px;
    }
    
    .post-placeholder i {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .post-placeholder h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .post-placeholder p {
        font-size: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    /* 태블릿에서는 여전히 한 줄 유지 */
    .hero-title-section .hero-title {
        white-space: nowrap;
    }

    .hero-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small screens (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 1rem;
        height: 65px;
    }
    
    .nav-logo {
        gap: 0.6rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .penguin-icon {
        width: 25px;
        height: 25px;
    }
    
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title-section {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .hero-title-section .hero-title {
        white-space: normal;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        min-height: 48px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .section-title {
        font-size: 2rem;
    }

    .apps-section,
    .about-section,
    .support-section {
        padding: 60px 0;
    }

    .app-card,
    .support-card {
        padding: 1.5rem;
    }

    .app-features {
        justify-content: center;
    }

    .app-links {
        flex-direction: column;
        align-items: center;
    }

    .app-links .btn {
        width: 100%;
        max-width: 200px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .value-item {
        padding: 1rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* Very small screens (up to 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-title-section .hero-title {
        white-space: normal;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .app-preview {
        padding: 15px;
    }

    .app-header {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .goal-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .app-card h3,
    .support-card h3 {
        font-size: 1.2rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .value-item i {
        font-size: 1.5rem;
    }

    .value-item h4 {
        font-size: 1rem;
    }

    .support-card i {
        font-size: 2rem;
    }
    
    /* Instagram Very Small Mobile */
    .instagram-header {
        padding: 15px;
        gap: 10px;
    }
    
    .instagram-profile {
        width: 40px;
        height: 40px;
    }
    
    .instagram-info h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .instagram-info p {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .instagram-stats {
        gap: 10px;
        justify-content: center; /* 모바일에서 중앙 정렬 */
    }
    
    .instagram-stats span {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .follow-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .instagram-posts {
        grid-template-columns: 1fr;
    }
    
    .post-placeholder {
        padding: 12px;
    }
    
    .post-placeholder i {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .post-placeholder h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .post-placeholder p {
        font-size: 9px;
    }
    
    .instagram-cta {
        padding: 20px 15px;
    }
    
    .btn-instagram {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .instagram-note {
        font-size: 12px;
        margin-top: 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-mockup {
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
    
    .app-card,
    .support-card {
        box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .app-links,
    .support-card .btn,
    .footer {
        display: none;
    }

    .hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .section-title {
        color: #000;
    }

    .app-card,
    .support-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

