/* ============================================================
   Naila Cloud - Responsive Stylesheet
   Website: https://naila.cloud
   Owner: Naila Zafira (SMKN 01 Cibinong - Bogor)
   Jurusan: Rekayasa Perangkat Lunak (RPL)
   ============================================================ */

/* ============================================================
   Large Desktop (min-width: 1200px)
   ============================================================ */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .blog-thumb-card {
        height: 250px;
    }
}

/* ============================================================
   Desktop & Tablet (max-width: 1199px)
   ============================================================ */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .floating-card {
        padding: 10px 14px;
    }

    .card-1 {
        left: 0;
    }

    .card-2 {
        right: 0;
    }
}

/* ============================================================
   Tablet (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .hero-image-wrapper {
        max-width: 400px;
    }

    .floating-card {
        padding: 8px 12px;
    }

    .floating-card i {
        font-size: 1.2rem;
    }

    .floating-card strong {
        font-size: 0.8rem;
    }

    .floating-card span {
        font-size: 0.7rem;
    }

    .navbar-collapse {
        background: var(--bg-dark);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 10px;
        backdrop-filter: blur(20px);
    }

    .navbar-nav .nav-link {
        padding: 10px 16px;
    }

    .btn-theme-toggle {
        margin-left: 0;
        margin-top: 10px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .chat-panel {
        width: 350px;
    }

    .blog-featured-link {
        grid-template-columns: 1.1fr 1fr;
    }

    .blog-featured-body {
        padding: 32px;
    }

    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-thumb-card {
        height: 220px;
    }
}

/* ============================================================
   Mobile (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-typing {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-socials a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .floating-card {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .chat-panel {
        width: calc(100vw - 40px);
        height: 450px;
        right: -10px;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .project-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .blog-post .blog-post-wrap {
        padding: 24px 18px;
    }

    .blog-post-header h1 {
        font-size: 1.6rem;
    }

    .blog-post-meta {
        gap: 12px;
    }

    .blog-post-nav {
        grid-template-columns: 1fr;
    }

    .blog-nav-item.nav-next {
        text-align: left;
    }

    .blog-author-card {
        flex-direction: column;
        text-align: center;
    }

    .blog-author-info p {
        font-size: 0.85rem;
    }

    .blog-related-header {
        justify-content: center;
        text-align: center;
    }

    .blog-section .section-header {
        margin-bottom: 40px;
    }

    .blog-hero {
        padding: 140px 0 80px;
    }

    .blog-hero h1 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    .blog-featured-link {
        grid-template-columns: 1fr;
    }

    .blog-featured-thumb {
        min-height: 220px;
    }

    .blog-featured-thumb img,
    .blog-featured-thumb .blog-thumb-fallback {
        position: relative;
        height: 220px;
    }

    .blog-featured-body {
        padding: 28px 22px;
    }

    .blog-featured-title {
        font-size: 1.35rem;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-thumb-card {
        height: 160px;
    }

    .blog-name {
        font-size: 1.05rem;
    }

    .blog-button {
        width: 130px;
        height: 38px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   Small Mobile (max-width: 575px)
   ============================================================ */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-typing {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .about-image-wrapper {
        max-width: 280px;
    }

    .info-item {
        padding: 12px;
    }

    .info-item i {
        font-size: 1.2rem;
    }

    .info-item strong {
        font-size: 0.85rem;
    }

    .contact-item {
        padding: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    .project-links .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .chat-message {
        max-width: 90%;
    }

    .message-content p {
        font-size: 0.85rem;
    }
}

/* ============================================================
   Landscape Mobile (max-height: 500px)
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 80px;
    }

    .hero-visual {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .chat-panel {
        height: 400px;
    }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
    .navbar,
    .chat-widget,
    .back-to-top,
    .scroll-indicator,
    .hero-socials,
    .hero-actions,
    .cta-section,
    .footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .section {
        padding: 30px 0;
    }
}