/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

/* Large Screens (1024px - 1280px) */
@media (max-width: 1280px) {
    .container {
        max-width: var(--container-lg);
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .hero-stats {
        gap: var(--space-8);
    }
    
    .footer-grid {
        gap: var(--space-8);
    }
}

/* Medium Screens / Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: var(--container-md);
    }
    
    /* Navigation */
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-8);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: var(--z-fixed);
    }
    
    .navbar-menu.active {
        transform: translateX(0);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--border-light);
        font-size: var(--text-lg);
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-actions {
        display: none;
    }
    
    /* Grid */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-description {
        font-size: var(--text-lg);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-6);
    }
    
    .hero-stat {
        flex: 1 1 calc(50% - var(--space-3));
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section */
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
}

/* Small Screens / Mobile (480px - 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Typography */
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
    
    .display {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    /* Grid */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-12)) 0 var(--space-12);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-4);
        background-color: var(--bg-secondary);
        border-radius: var(--radius-lg);
    }
    
    .hero-stat-value {
        font-size: var(--text-2xl);
    }
    
    /* Cards */
    .service-card {
        padding: var(--space-6);
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* Section */
    .section {
        padding: var(--space-12) 0;
    }
    
    /* Forms */
    .form-input,
    .form-textarea,
    .form-select {
        padding: var(--space-3);
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-5);
        width: 100%;
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-6);
    }
    
    /* Tech Stack */
    .tech-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }
    
    .tech-category-btn {
        flex-shrink: 0;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
    
    .tech-item {
        padding: var(--space-3);
    }
    
    .tech-icon {
        width: 32px;
        height: 32px;
    }
    
    .tech-name {
        font-size: var(--text-xs);
    }
}

/* Extra Small Screens (< 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .navbar-container {
        height: 70px;
    }
    
    .navbar-logo {
        height: 32px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-badge {
        font-size: var(--text-xs);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-image-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .theme-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .hero {
        min-height: auto;
        padding: 20pt 0;
    }
    
    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
}