/* ============================================
   RESPONSIVE.CSS — Media Queries
   ============================================ */

/* ---------- Tablet (768px - 1199px) ---------- */
@media (max-width: 1199px) {
    .hero-image-wrapper {
        width: 320px;
        height: 320px;
    }

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

/* ---------- Tablet Small (768px - 991px) ---------- */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        margin-top: 3rem;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-decoration {
        display: none;
    }

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

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

    .masonry-grid {
        columns: 2;
    }

    .footer {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }

    .cta-section {
        padding: 50px 0;
    }
}

/* ---------- Mobile (< 768px) ---------- */
@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-tag {
        font-size: 0.7rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-image-wrapper {
        width: 240px;
        height: 240px;
    }

    .hero-shape-1 {
        width: 70px;
        height: 70px;
        top: -10px;
        left: -15px;
    }

    .hero-shape-2 {
        width: 60px;
        height: 60px;
        bottom: -10px;
        right: -15px;
    }

    .hero-shape-3 {
        display: none;
    }

    .hero-cta .btn-brutal {
        width: 100%;
        justify-content: center;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        columns: 1;
    }

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

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        flex-shrink: 0;
    }

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

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .article-content {
        padding: 0 0.5rem;
    }

    .article-content pre {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .process-step {
        padding: 1.5rem;
    }

    .process-step-number {
        font-size: 2.5rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .skill-group {
        padding: 1.25rem;
    }
}

/* ---------- Small Mobile (< 480px) ---------- */
@media (max-width: 479px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .hero-roles {
        gap: 0.35rem;
    }

    .hero-role {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }

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

    .btn-brutal {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }

    .btn-lg {
        font-size: 0.9rem;
        padding: 0.85rem 1.75rem;
    }

    .brutal-card .card-body {
        padding: 1.25rem;
    }

    .project-card .project-info,
    .product-card .product-info,
    .blog-card .blog-info {
        padding: 1.25rem;
    }

    .filter-tab {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }
}

/* ---------- Status Pages: Tablet ---------- */
@media (max-width: 991px) {
    .status-code {
        font-size: clamp(5rem, 18vw, 9rem);
    }

    .status-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-shape--1,
    .status-shape--3 {
        display: none;
    }

    .launch-hero {
        padding: 55px 0 70px;
    }

    .launch-visual {
        margin-top: 1rem;
    }

    .dev-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Status Pages: Mobile ---------- */
@media (max-width: 767px) {
    .status-page {
        padding: 60px 0 70px;
    }

    .status-shape,
    .status-shape-plus {
        display: none;
    }

    .status-code {
        font-size: clamp(4.5rem, 24vw, 7rem);
        margin-bottom: 1.25rem;
    }

    .status-code-zero {
        box-shadow: var(--shadow-brutal-sm);
    }

    .status-actions .btn-brutal {
        width: 100%;
        justify-content: center;
    }

    .status-links {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .status-panel {
        padding: 2rem 1.25rem;
    }

    .status-checklist {
        grid-template-columns: 1fr;
    }

    .status-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-form .btn-brutal {
        width: 100%;
        justify-content: center;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 68px;
        padding: 0.6rem 0.4rem;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .launch-title {
        font-size: 2.15rem;
    }

    .launch-visual {
        padding: 1.5rem;
    }

    .launch-shape--1 {
        width: 80px;
        height: 80px;
    }

    .launch-shape--2 {
        width: 64px;
        height: 64px;
    }

    .launch-shape--3 {
        display: none;
    }

    .dev-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }
}

/* ---------- Status Pages: Small Mobile ---------- */
@media (max-width: 479px) {
    .status-code {
        font-size: 4.5rem;
    }

    .status-code-outline {
        -webkit-text-stroke-width: 2px;
    }

    .status-title {
        font-size: 1.7rem;
    }

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

    .countdown-item {
        min-width: 0;
    }

    .dev-steps {
        grid-template-columns: 1fr;
    }

    .launch-highlight {
        transform: none;
    }
}

/* ---------- Print ---------- */
@media print {
    .navbar,
    .back-to-top,
    .footer,
    .cta-section,
    .btn-brutal {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .brutal-card,
    .project-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================================
   HOMEPAGE V2 - RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .welcome-hero {
        min-height: 80vh;
        padding: 80px 0 110px;
    }

    .welcome-hero h1 {
        font-size: clamp(2.1rem, 6vw, 3.4rem);
    }

    .story-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .story-controls {
        padding-bottom: 0;
    }

    .story-card {
        flex-basis: clamp(260px, 68%, 400px);
    }
}

@media (max-width: 767px) {
    .welcome-hero {
        min-height: calc(100vh - 64px);
        padding: 70px 0 90px;
        background-attachment: scroll;
    }

    .welcome-hero h1 {
        font-size: 2.15rem;
    }

    .welcome-hero-text {
        font-size: 1rem;
    }

    .welcome-hero-cta .btn-brutal {
        width: 100%;
        justify-content: center;
    }

    .welcome-scroll-cue {
        display: none;
    }

    .story-card {
        flex-basis: 86%;
    }

    .story-body {
        padding: 1.15rem;
    }

    .story-nav {
        width: 42px;
        height: 42px;
    }
}