/* HashMap Website - Responsive Styles */

/* Large Desktop: 1280px+ */
@media screen and (min-width: 1280px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* Tablet Landscape: 1024px - 1279px */
@media screen and (max-width: 1279px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .why-grid {
        gap: var(--space-12);
    }

    .why-visual {
        height: 450px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-10);
    }
}

/* Tablet Portrait: 768px - 1023px */
@media screen and (max-width: 1023px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .hero-chart {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-stats {
        gap: var(--space-8);
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .why-visual {
        height: 400px;
        order: -1;
    }

    .why-content {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-10);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* Mobile Landscape: 640px - 767px */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-16) 0;
    }

    /* Navigation */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px var(--space-8) var(--space-8);
        gap: var(--space-2);
        transition: right var(--duration-normal) var(--ease-out);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .navbar-menu a:not(.btn) {
        width: 100%;
        padding: var(--space-4) 0;
        font-size: 1.125rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-menu a:not(.btn)::after {
        display: none;
    }

    .navbar-menu .btn {
        margin-top: var(--space-4);
        width: 100%;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-16);
    }

    .hero .container {
        padding-top: 0;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-chart {
        max-width: 100%;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .hero-stat {
        flex: 1 1 calc(50% - var(--space-3));
        min-width: 120px;
    }

    .hero-orb-1 {
        width: 400px;
        height: 400px;
    }

    .hero-orb-2 {
        width: 300px;
        height: 300px;
    }

    .hero-orb-3 {
        display: none;
    }

    /* Logos */
    .logos-section {
        padding: var(--space-10) 0;
    }

    .logos-grid {
        gap: var(--space-8);
    }

    .logos-grid span {
        font-size: 1.125rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .service-card {
        padding: var(--space-6);
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    /* Why Section */
    .why-visual {
        height: 320px;
    }

    .why-visual-card {
        padding: var(--space-4);
    }

    .why-card-1 {
        width: 200px;
    }

    .why-card-2 {
        width: 220px;
    }

    .why-card-3 {
        width: 180px;
    }

    .why-card-stat {
        font-size: 1.5rem;
    }

    .why-features {
        gap: var(--space-4);
    }

    /* Stats */
    .stats-section {
        padding: var(--space-12) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-item {
        padding: var(--space-4);
    }

    .stat-item::after {
        display: none;
    }

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

    /* CTA */
    .cta-section {
        padding: var(--space-16) 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer {
        padding-top: var(--space-12);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-brand {
        grid-column: 1;
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h4 {
        margin-bottom: var(--space-4);
    }

    .footer-links ul {
        gap: var(--space-2);
    }

    .footer-bottom {
        margin-top: var(--space-10);
        flex-direction: column;
        gap: var(--space-4);
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: var(--space-2);
    }

    /* Inner Page Responsive */
    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about-image {
        order: -1;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .section:nth-child(even) .service-detail {
        direction: ltr;
    }

    .service-detail-image {
        order: -1;
    }

    .training-formats {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--space-6);
    }
}

/* Mobile Portrait: Below 480px */
@media screen and (max-width: 479px) {
    .hero-stat {
        flex: 1 1 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        padding-top: var(--space-6);
    }

    .hero-stat-number {
        font-size: 2.25rem;
    }

    .navbar-logo img {
        height: 36px;
    }

    .why-visual {
        height: 280px;
    }

    .why-card-1,
    .why-card-2 {
        position: relative;
        width: 100%;
        margin-bottom: var(--space-4);
        animation: none;
    }

    .why-card-3 {
        position: relative;
        width: 100%;
        transform: none;
        animation: none;
    }

    .why-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Inner page mobile portrait */
    .values-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .contact-info {
        padding: 0;
    }
}

/* Reduced Motion */
@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;
    }

    .hero-bg::before {
        animation: none;
    }

    .hero-orb {
        animation: none;
    }

    .why-visual-card {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-bg,
    .hero-orb,
    .hero-grid,
    .menu-overlay,
    .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    h1, h2, h3, h4 {
        color: black;
    }

    .service-card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
