/* ========================================
   Responsive Design
   Mobile-first Approach
======================================== */

/* Tablet & Below (991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--space-2xl) 0;
    }
    
    .hero-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: var(--space-sm);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .hero {
        min-height: 70vh;
        padding: var(--space-xl) 0;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: var(--space-sm);
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: var(--space-md);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .nav-toggle {
        display: none;
    }
    
    .hero {
        min-height: auto;
        margin-top: 0;
    }
    
    body {
        background: white;
    }
}
