/*
|--------------------------------------------------------------------------
| Studia | 21 - Responsive Stylesheet
|--------------------------------------------------------------------------
*/

/* ============================================
   LARGE DEVICES (1200px and up)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ============================================
   MEDIUM DEVICES (992px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .projects-masonry {
        columns: 2;
    }

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

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

    .process-steps-horizontal {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

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

/* ============================================
   TABLET LANDSCAPE (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    /* Sections */
    .section {
        padding: 80px 0;
    }

    .section-sm {
        padding: 60px 0;
    }

    /* Navbar */
    #mainNav {
        padding: 15px 0;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(20px);
    }

    .navbar-collapse {
        display: none;
    }

    .social-sidebar {
        display: none !important;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
    }

    /* About */
    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-masonry {
        columns: 2;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

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

    /* Process */
    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        flex-direction: column !important;
        padding-left: 70px;
    }

    .process-step-content {
        width: 100%;
    }

    .process-step-number {
        left: 30px;
        transform: translateX(-50%);
    }

    /* Process Steps Horizontal */
    .process-steps-horizontal {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Founders */
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 40px;
    }

    /* Footer */
    .footer-newsletter {
        padding: 30px;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 15px;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 30px 0 30px;
    }

    /* Inner Page Hero */
    .page-hero {
        padding: 150px 0 60px;
    }

    /* Project Details */
    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Service Gallery */
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Horizontal Scroll */
    .horizontal-scroll-card {
        width: 350px;
    }
}

/* ============================================
   TABLET PORTRAIT (576px - 767px)
   ============================================ */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 15px 35px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

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

    /* Hero */
    .hero-section {
        min-height: 600px;
    }

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

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* About */
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-image-wrapper img {
        height: 350px;
    }

    .about-experience-badge {
        right: 20px;
        bottom: 20px;
        padding: 20px;
    }

    .about-experience-badge .number {
        font-size: 2.5rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 40px 30px;
    }

    /* Projects */
    .projects-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.7rem;
    }

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

    .projects-masonry {
        columns: 1;
    }

    .project-card {
        aspect-ratio: 3/2;
    }

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

    .project-card .view-project {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Stats */
    .stats-section {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .stat-item {
        padding: 20px 15px;
    }

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

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

    /* Quote */
    .quote-section {
        padding: 80px 0;
    }

    .quote-text {
        font-size: 1.3rem;
    }

    /* Process */
    .process-steps-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step-card {
        padding: 25px 15px;
    }

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

    /* Founders */
    .founders-grid {
        grid-template-columns: 1fr;
    }

    .founder-image {
        height: 350px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card-image {
        height: 250px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 30px 25px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    /* Why Us */
    .why-us-card {
        padding: 30px 25px;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 30px 0 20px;
    }

    .breadcrumb-custom {
        font-size: 0.75rem;
    }

    /* Inner Page Hero */
    .page-hero {
        padding: 130px 0 50px;
    }

    /* Project Details */
    .project-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

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

    .project-gallery-grid .gallery-item img {
        height: 250px;
    }

    /* Service Detail */
    .service-detail-card {
        padding: 30px 20px;
    }

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

    .service-gallery .gallery-item img {
        height: 200px;
    }

    /* FAQ */
    .faq-question {
        padding: 20px 0;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 60px 0 0;
    }

    .footer-brand {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-title {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

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

    .footer-contact li {
        justify-content: center;
    }

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

    .footer-newsletter {
        text-align: center;
        padding: 25px 20px;
    }

    .newsletter-title,
    .newsletter-subtitle {
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .copyright-text {
        margin-bottom: 10px;
    }

    .footer-legal {
        justify-content: center;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    /* Horizontal Scroll */
    .horizontal-scroll-card {
        width: 300px;
    }

    .horizontal-scroll-card img {
        height: 200px;
    }

    /* Map */
    .map-section {
        height: 300px;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }

    /* Next Project */
    .next-project-section {
        padding: 60px 0;
    }
}

/* ============================================
   MOBILE PHONES (575px and below)
   ============================================ */
@media (max-width: 575px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    /* Hero */
    .hero-section {
        min-height: 550px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .hero-scroll-indicator span {
        font-size: 0.6rem;
    }

    /* About */
    .about-experience-badge {
        position: relative;
        right: auto;
        bottom: auto;
        display: inline-block;
        margin-top: 20px;
    }

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

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Process */
    .process-steps-horizontal {
        grid-template-columns: 1fr;
    }

    .process-step-card {
        padding: 20px;
    }

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

    .process-step-card h5 {
        font-size: 1rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card-image {
        height: 300px;
    }

    .team-card-social {
        transform: translateY(0);
    }

    /* Project Details */
    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-item {
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Footer */
    .footer-social .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control {
        border-bottom: 1px solid var(--border-color);
    }

    .newsletter-form .btn {
        width: 100%;
    }

    /* Contact Info */
    .contact-info-card {
        padding: 25px 20px;
        text-align: center;
    }

    /* Buttons */
    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 12px 25px;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 4px;
    }

    /* Pagination */
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-nav {
        width: 35px;
        height: 35px;
    }

    .lightbox-prev {
        left: -40px;
    }

    .lightbox-next {
        right: -40px;
    }

    .lightbox-close {
        top: -40px;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        right: 15px;
        bottom: 80px;
    }

    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    /* Page Hero */
    .page-hero {
        padding: 120px 0 40px;
    }

    /* 404 */
    .error-number span {
        font-size: 80px;
    }

    .number-0 {
        width: 80px;
        height: 80px;
    }

    .number-0 i {
        font-size: 35px;
    }

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

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .quick-link-item {
        padding: 20px 15px;
    }
}

/* ============================================
   VERY SMALL PHONES (375px and below)
   ============================================ */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .brand-text,
    .brand-divider,
    .brand-number {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding-left: 30px;
    }

    .section-subtitle::before {
        width: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0;
    }

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

    .hero-subtitle {
        margin-bottom: 30px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .page-loader {
        display: none;
    }
}

/* ============================================
   HIGH RESOLUTION SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .page-loader,
    .scroll-progress,
    .social-sidebar,
    .scroll-to-top,
    .whatsapp-float,
    #mainNav,
    .footer,
    .breadcrumb-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 20px 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}