/* ========================================
   ABSOLUTEWEB - Responsive Styles
   Mobile-First Approach
   ======================================== */

/* Tablet and Below (1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* About Section */
    .about-content {
        gap: var(--spacing-md);
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait and Below (768px) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-normal);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Section */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-image {
        max-height: 400px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat {
        padding: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Recent Project */
    .recent-project-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .recent-project-video {
        max-height: 400px;
    }
    
    .recent-project-video video {
        height: 100%;
        object-fit: cover;
    }
    
    .recent-project-title {
        font-size: 2rem;
    }
    
    .recent-project-info .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
    
    /* Contact */
    .contact-content {
        gap: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-md) 0;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
    
    /* WhatsApp Float Button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        width: 90%;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* About */
    .about-image {
        max-height: 300px;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    /* Projects */
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-tags {
        gap: 0.3rem;
    }
    
    .tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-item {
        padding: var(--spacing-sm);
        flex-direction: row;
    }
    
    .contact-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .contact-details h4 {
        font-size: 0.9rem;
    }
    
    .contact-details a {
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    /* WhatsApp Float Button */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

/* Extra Small Devices (360px and below) */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .about-stats {
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/* Landscape Mode (Mobile) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra-Wide Screens */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hamburger,
    .social-links,
    .contact-form {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: rgba(255, 255, 255, 0.3);
    }
    
    .service-card,
    .contact-item,
    .project-card {
        border-width: 2px;
    }
}
