/**
 * Rise Studio - Responsive Stylesheet
 * Mobile-first responsive design
 * Breakpoints: 1400px+, 1200px, 992px, 768px, 576px
 */

/* ============================================
   DESKTOP LARGE (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   DESKTOP (1200px - 1399px)
   ============================================ */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-video-slider {
        max-width: 400px;
    }
}

/* ============================================
   LAPTOP (992px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-frame-container {
        height: 400px;
    }
    
    .hero-video-slider {
        max-width: 350px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mega-menu {
        padding: 1.5rem 0;
    }
    
    .mega-menu-item {
        padding: 0.75rem;
    }
    
    .mega-icon {
        width: 40px;
        height: 40px;
    }
    
    .mega-icon i {
        font-size: 1rem;
    }
    
    .mega-content h5 {
        font-size: 0.9rem;
    }
    
    .mega-content p {
        font-size: 0.75rem;
    }
}

/* ============================================
   TABLET (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
    /* Header */
    .main-header {
        padding: 0.75rem 0;
    }
    
    .main-header.scrolled {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-link {
        color: var(--text-dark);
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mega-dropdown {
        position: relative;
    }
    
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        background: var(--off-white);
        border-radius: var(--border-radius);
    }
    
    .mega-menu .container {
        padding: 0;
    }
    
    .mega-menu-item {
        padding: 1rem;
    }
    
    .btn-quote {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust-badges {
        justify-content: center;
    }
    
    .hero-frame-container {
        height: 350px;
        margin-top: 2rem;
    }
    
    .hero-video-slider {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Sections */
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* About Preview */
    .about-preview-section::before {
        display: none;
    }
    
    .about-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
    
    .about-features {
        display: inline-block;
        text-align: left;
    }
    
    /* Services */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Why Choose */
    .feature-box {
        margin-bottom: 1rem;
    }
    
    .stats-container {
        justify-content: center;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Testimonials */
    .testimonial-card {
        margin: 0 1rem;
    }
    
    /* Reels */
    .reel-card {
        width: 240px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    /* Footer */
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ============================================
   MOBILE LARGE (576px - 767px)
   ============================================ */
@media (max-width: 767px) {
    /* Typography */
    body {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
    }
    
    /* Hero */
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-frame-container {
        height: 300px;
    }
    
    .hero-video-slider {
        max-width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-trust-badges {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    /* Marquee */
    .marquee-track {
        gap: 2rem;
    }
    
    .marquee-item img {
        height: 35px;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.375rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    /* Blog */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-form .input-group {
        flex-direction: column;
        background: transparent;
        gap: 0.75rem;
    }
    
    .cta-form .form-control {
        border-radius: var(--border-radius-full);
        background: var(--white);
    }
    
    .cta-form .btn {
        width: 100%;
        border-radius: var(--border-radius-full);
    }
    
    /* Footer */
    .footer-top {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    /* Custom Cursor - Hide on mobile */
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
    
    /* Back to top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   MOBILE SMALL (< 576px)
   ============================================ */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-frame-container {
        height: 250px;
    }
    
    .hero-video-slider {
        max-width: 200px;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
    }
    
    /* Stats */
    .stats-container {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Reels */
    .reel-card {
        width: 200px;
    }
    
    /* Tech Stack */
    .tech-icon {
        width: 50px;
        height: 50px;
    }
    
    .tech-icon i {
        font-size: 1.5rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .reel-modal .modal-dialog {
        max-width: 100%;
        margin: 1rem;
    }
}

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

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .main-header,
    .back-to-top,
    .scroll-progress,
    .custom-cursor,
    .custom-cursor-follower,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
    }
    
    .hero-title,
    .section-title {
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .service-card,
    .blog-card,
    .portfolio-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY - FOCUS STYLES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-teal);
    color: var(--white);
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   DARK MODE SUPPORT (Future)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment when dark mode is implemented */
    /*
    :root {
        --text-dark: #f7fafc;
        --text-light: #a0aec0;
        --off-white: #1a202c;
        --white: #2d3748;
    }
    */
}
