/* ===========================
   Responsive Design
   =========================== */

/* Tablets and below (992px) */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    /* Header */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .slider-pagination {
        right: 20px;
        bottom: 80px;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .pagination-dot {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    
    .social-links {
        left: 20px;
        bottom: 20px;
        flex-direction: row;
        gap: 1rem;
    }
    
    .social-link span {
        display: none;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-video {
        order: -1;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Blog */
    .blog-slider-wrapper {
        grid-template-columns: 1fr;
    }
    
    .slider-btn {
        display: none;
    }
}

/* Mobile devices (768px and below) */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Header */
    .header {
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .tagline {
        font-size: 0.65rem;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .slide-content {
        padding-top: 80px;
    }
    
    .title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .slider-pagination {
        right: 50%;
        transform: translateX(50%);
        bottom: 30px;
    }
    
    .pagination-dot {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .social-links {
        left: 50%;
        transform: translateX(-50%);
        bottom: 90px;
    }
    
    /* Section Titles */
    .section-title-spaced {
        font-size: 2rem;
        letter-spacing: 4px;
        margin-bottom: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Marquee */
    .marquee-content span {
        font-size: 1.2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-number {
        font-size: 2.5rem;
        top: -15px;
        left: 20px;
    }
    
    /* About */
    .tab-nav {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .about-tabs {
        padding: 1.5rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    /* Contact */
    .contact-form-wrapper h3 {
        font-size: 2rem;
    }
    
    .office-info {
        padding: 1.5rem;
        background: white;
        border-radius: 8px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* Small mobile devices (480px and below) */
@media screen and (max-width: 480px) {
    /* Hero */
    .hero {
        min-height: 450px;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .slider-pagination {
        gap: 0.3rem;
    }
    
    .pagination-dot {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-title-spaced {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    /* Services */
    .service-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Features */
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon svg {
        width: 40px;
        height: 40px;
    }
    
    /* Tab */
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Contact */
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .slide-content {
        padding-top: 100px;
    }
    
    .slider-pagination {
        bottom: 20px;
    }
    
    .social-links {
        bottom: 70px;
    }
}

/* High resolution displays */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media screen and (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* Print styles */
@media print {
    .header,
    .social-links,
    .slider-pagination,
    .nav-toggle,
    .slider-btn,
    .play-btn {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero {
        height: auto;
        min-height: 300px;
    }
}

/* Reduced motion for 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;
    }
}
