/* ===== RESPONSIVE STYLES FOR AQUAD WEBSITE ===== */

/* ===== TABLET (1024px and below) ===== */
@media (max-width: 1024px) {
    /* Container adjustments */
    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        backdrop-filter: blur(20px);
        padding: 100px 2rem 2rem;
        gap: 0.5rem;
        border-radius: 0;
        border: none;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .services-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Company Stats */
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Company Introduction */
    .company-intro-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== MOBILE (768px and below) ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1rem;
        min-height: 70px;
    }

    .navbar.scrolled .nav-container {
        min-height: 65px;
    }

    .logo-img {
        width: 150px;
        height: 45px;
    }

    .navbar.scrolled .logo-img {
        width: 140px;
        height: 42px;
    }

    .nav-menu {
        width: 280px;
        padding: 90px 1.5rem 1.5rem;
    }

    /* Hero Section */
    .hero {
        margin-top: 70px;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .title-main {
        font-size: 1.1rem;
    }

    .title-highlight {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin: 1rem 0;
    }

    .company-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .services-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .service-item {
        padding: 1.25rem;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .service-info h3 {
        font-size: 1rem;
    }

    .service-info p {
        font-size: 0.85rem;
    }

    /* Hero Actions */
    .hero-actions {
        margin: 1.5rem 0;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Company Stats */
    .company-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .projects {
        padding: 3rem 0;
    }

    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .section-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .section-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Projects Grid - already handled in inline styles but adding backup */
    .projects-grid {
        margin-top: 2rem;
    }

    /* Company Introduction */
    .company-intro {
        padding: 3rem 0;
    }

    .about-section,
    .services-overview {
        padding: 2rem 1rem;
    }

    .company-features {
        gap: 1.5rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .feature-details h4 {
        font-size: 1.1rem;
    }

    .feature-details p {
        font-size: 0.9rem;
    }

    .about-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .about-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services List */
    .services-list {
        margin-top: 1.5rem;
    }

    .service-item {
        gap: 1rem;
    }

    /* Footer adjustments */
    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-copyright {
        padding: 1.5rem 1rem;
    }

    .copyright-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    /* Navigation */
    .nav-container {
        padding: 0 0.75rem;
        min-height: 65px;
    }

    .logo-img {
        width: 120px;
        height: 36px;
    }

    .nav-menu {
        width: 100%;
        padding: 80px 1rem 1rem;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    /* Hero Section */
    .hero {
        margin-top: 65px;
        padding: 2rem 0;
    }

    .hero-container {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .title-main {
        font-size: 1rem;
    }

    .title-highlight {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .company-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .service-item {
        padding: 1rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-info h3 {
        font-size: 0.95rem;
    }

    .service-info p {
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Company Stats */
    .stat-item {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Sections */
    .projects,
    .company-intro {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    /* Company Features */
    .feature-item {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .feature-details h4 {
        font-size: 1rem;
    }

    .feature-details p {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 0.85rem;
    }

    .footer-copyright {
        padding: 1.25rem 0.75rem;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ===== OVERLAY FOR MOBILE MENU ===== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    body.menu-open {
        overflow: hidden;
    }
}

/* ===== RESPONSIVE UTILITIES ===== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }

    .service-item,
    .feature-item {
        padding: 1.25rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-container {
        padding: 1.5rem;
    }

    .services-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .nav-overlay,
    .hero-actions,
    .about-actions,
    .floating-shape {
        display: none !important;
    }

    .hero {
        margin-top: 0;
    }

    body {
        background: white;
    }

    .hero-container,
    .projects-container,
    .company-intro-container {
        padding: 1rem 0;
    }
}
