/* ============================================
   DD360Media - Responsive Styles
   Complete responsive design for all devices
   Based on spintadigital.com breakpoints
   ============================================ */

/* ============================================
   LARGE DESKTOP (1400px and above)
   ============================================ */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        gap: 35px;
    }
}

/* ============================================
   DESKTOP (1200px - 1399px)
   ============================================ */
@media screen and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   TABLET LANDSCAPE (1025px - 1199px)
   ============================================ */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .hero-section .container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .services-grid {
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .detail-text h2 {
        font-size: 2.2rem;
    }
    
    .testimonials-grid {
        gap: 25px;
    }
    
    .footer-grid {
        gap: 30px;
    }
}

/* ============================================
   TABLET PORTRAIT (768px - 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    /* General */
    section {
        padding: 80px 0;
    }
    
    .container {
        padding: 0 30px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        margin: 20px auto 30px;
        max-width: 600px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    /* Detailed Services */
    .detail-row,
    .detail-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin: 60px 0;
    }
    
    .detail-text {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .detail-text h2 {
        font-size: 2rem;
    }
    
    .detail-img {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Capabilities Section */
    .capabilities-section {
        margin: 40px auto;
        border-radius: 40px;
    }
    
    .capabilities-wrapper {
        padding: 50px 40px;
    }
    
    .capabilities-grid span {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    /* Awards Section */
    .awards-grid {
        gap: 40px;
    }
    
    .award-item img {
        max-width: 120px;
    }
    
    /* CTA Section */
    .cta-section {
        margin: 40px auto;
        border-radius: 40px;
    }
    
    .cta-wrapper {
        padding: 60px 40px;
    }
    
    .cta-wrapper h2 {
        font-size: 2.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-col:first-child {
        grid-column: span 2;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ============================================
   MOBILE LANDSCAPE (576px - 767px)
   ============================================ */
@media screen and (max-width: 767px) {
    /* General */
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-highlight-text {
        display: inline-block;
    }
    
    .hero-accent-mark {
        padding: 2px 12px;
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 20px 0 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .hero-visual {
        max-width: 100%;
    }
    
    .hero-main-img {
        max-width: 100%;
    }
    
    .floating-star {
        width: 40px;
    }
    
    .star-1 {
        top: -10px;
        left: -15px;
    }
    
    .star-2 {
        bottom: -10px;
        right: -15px;
        width: 50px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon img {
        width: 50px;
        height: 50px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    /* Detailed Services */
    .detailed-services {
        padding: 40px 0;
    }
    
    .detail-row {
        margin: 50px 0;
    }
    
    .detail-text h2 {
        font-size: 1.6rem;
    }
    
    .detail-text p {
        font-size: 0.95rem;
    }
    
    /* Capabilities Section */
    .capabilities-section {
        margin: 30px auto;
        border-radius: 30px;
    }
    
    .capabilities-wrapper {
        padding: 40px 25px;
    }
    
    .capabilities-grid {
        gap: 12px;
        margin-top: 30px;
    }
    
    .capabilities-grid span {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
    
    /* Work Section */
    .work-item img {
        max-width: 150px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-quote i {
        font-size: 1.5rem;
    }
    
    .testimonial-quote p {
        font-size: 0.9rem;
    }
    
    .testimonial-author img {
        width: 45px;
        height: 45px;
    }
    
    /* Awards Section */
    .awards-grid {
        gap: 25px;
        margin-top: 40px;
    }
    
    .award-item img {
        max-width: 80px;
    }
    
    /* CTA Section */
    .cta-section {
        margin: 30px auto;
        border-radius: 30px;
    }
    
    .cta-wrapper {
        padding: 40px 25px;
    }
    
    .cta-wrapper h2 {
        font-size: 1.6rem;
    }
    
    .cta-wrapper p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 50px 0 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-col:first-child {
        grid-column: span 1;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-col p {
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 25px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ============================================
   MOBILE PORTRAIT (375px - 575px)
   ============================================ */
@media screen and (max-width: 575px) {
    /* General */
    section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-accent-mark {
        padding: 2px 10px;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
        width: 100%;
    }
    
    /* Services */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Detailed Services */
    .detail-text h2 {
        font-size: 1.4rem;
    }
    
    /* Capabilities */
    .capabilities-wrapper {
        padding: 30px 20px;
    }
    
    .capabilities-grid {
        gap: 10px;
    }
    
    .capabilities-grid span {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }
    
    /* CTA */
    .cta-wrapper {
        padding: 35px 20px;
    }
    
    .cta-wrapper h2 {
        font-size: 1.4rem;
    }
    
    .btn-large {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-col p {
        font-size: 0.85rem;
    }
    
    .footer-col h4 {
        font-size: 1.1rem;
    }
    
    .footer-col ul li a {
        font-size: 0.85rem;
    }
}

/* ============================================
   SMALL MOBILE (320px - 374px)
   ============================================ */
@media screen and (max-width: 374px) {
    /* Typography */
    h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    /* Services */
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    /* Capabilities */
    .capabilities-grid span {
        padding: 5px 12px;
        font-size: 0.65rem;
    }
    
    /* CTA */
    .cta-wrapper h2 {
        font-size: 1.2rem;
    }
    
    .cta-wrapper p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================
   HEADER RESPONSIVE
   ============================================ */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 998;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-links li a {
        font-size: 1.3rem;
    }
    
    .btn-enquire {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        z-index: 999;
    }
    
    .menu-toggle.active i::before {
        content: '\f00d';
    }
}

/* ============================================
   ANIMATION ADJUSTMENTS FOR MOBILE
   ============================================ */
@media screen and (max-width: 767px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .animated,
    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .stagger-item {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .floating-star {
        animation: none;
    }
}

/* ============================================
   SWIPER/SLIDER RESPONSIVE
   ============================================ */
@media screen and (max-width: 767px) {
    .work-slider {
        padding-bottom: 40px;
    }
    
    .work-item img {
        max-width: 120px;
    }
    
    .swiper-pagination {
        bottom: 0;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media screen and (max-width: 480px) {
    .work-item img {
        max-width: 100px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-scroll-indicator,
    .btn,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .service-card,
    .testimonial-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-aos] {
        transition: none !important;
    }
}

/* ============================================
   HIGH DPI SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-main-img,
    .detail-img img {
        image-rendering: crisp-edges;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* This is optional - only if you want dark mode support */
    /* You can enable this by toggling a class on body */
}

/* ============================================
   ORIENTATION SPECIFIC
   ============================================ */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

/* ============================================
   NOTCH SUPPORT
   ============================================ */
@supports (padding: max(0px)) {
    .site-header {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .site-footer {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   FLEXBOX FALLBACKS
   ============================================ */
@supports not (display: grid) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        margin: -15px;
    }
    
    .service-card {
        width: calc(25% - 30px);
        margin: 15px;
    }
    
    .testimonials-grid {
        display: flex;
        flex-wrap: wrap;
        margin: -15px;
    }
    
    .testimonial-card {
        width: calc(33.333% - 30px);
        margin: 15px;
    }
    
    @media screen and (max-width: 1024px) {
        .service-card {
            width: calc(50% - 30px);
        }
        
        .testimonial-card {
            width: calc(50% - 30px);
        }
    }
    
    @media screen and (max-width: 767px) {
        .service-card,
        .testimonial-card {
            width: calc(100% - 30px);
        }
    }
}