/* ===================================
   Responsive Styles
   =================================== */

/* Tablet Styles (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-base);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
        letter-spacing: -2px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* AI Solutions */
    .ai-content {
        grid-template-columns: 1fr;
    }
    
    .ai-visual {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
    
    .metric-number {
        font-size: 4rem;
    }
    
    /* Hospitality */
    .hospitality-feature {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-image {
        order: -1;
    }
    
    .hospitality-feature:nth-child(even) .feature-image {
        order: -1;
    }
    
    .placeholder-image {
        height: 300px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Mobile Styles (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
        --font-size-base: 15px;
    }
    
    /* Navigation */
    .nav {
        height: 60px;
    }
    
    .nav-logo a {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        width: 100%;
        left: -100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-xs) 0;
    }
    
    .nav-link.nav-cta {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        padding-top: 60px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .service-card {
        padding: var(--spacing-sm);
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    .service-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    /* AI Solutions */
    .ai-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .ai-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .ai-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .ai-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .ai-content-wrapper {
        min-height: 500px;
    }
    
    .ai-text h3 {
        font-size: 1.6rem;
    }
    
    .ai-text p {
        font-size: 1rem;
    }
    
    .ai-text li {
        font-size: 0.95rem;
    }
    
    .metric-number {
        font-size: 3.5rem;
    }
    
    .metric-symbol {
        font-size: 2.5rem;
    }
    
    .metric-label {
        font-size: 1rem;
    }
    
    .ai-metric {
        padding: var(--spacing-md);
    }
    
    /* Hospitality */
    .hospitality-content {
        gap: var(--spacing-lg);
    }
    
    .hospitality-feature {
        gap: var(--spacing-sm);
    }
    
    .feature-text h3 {
        font-size: 1.6rem;
    }
    
    .feature-text > p {
        font-size: 1rem;
    }
    
    .placeholder-image {
        height: 250px;
    }
    
    .feature-cta {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* About */
    .about-content {
        gap: var(--spacing-md);
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-values {
        margin-top: var(--spacing-sm);
    }
    
    .value-item h4 {
        font-size: 1.1rem;
    }
    
    .value-item p {
        font-size: 0.95rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-plus {
        font-size: 1.5rem;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: var(--spacing-sm);
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .blog-meta {
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-wrapper {
        gap: var(--spacing-md);
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: var(--spacing-sm);
    }
    
    .form-group {
        margin-bottom: var(--spacing-sm);
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    
    .form-submit {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: var(--spacing-sm);
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: var(--spacing-sm);
    }
    
    .ai-text h3 {
        font-size: 1.4rem;
    }
    
    .feature-text h3 {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .metric-number {
        font-size: 3rem;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    :root {
        --spacing-xl: 8rem;
    }
    
    .hero-title {
        font-size: 6.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-cta,
    .feature-cta,
    .contact-form,
    .social-links,
    .newsletter-form,
    .footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .ai-metric,
    .placeholder-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: This is a placeholder for potential dark mode support */
    /* Uncomment and customize if dark mode is desired */
    
    /*
    :root {
        --text-dark: #ffffff;
        --text-medium: #b0b0b0;
        --text-light: #808080;
        --bg-white: #1a1a1a;
        --bg-light: #2a2a2a;
        --border-color: #404040;
    }
    */
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .nav-link {
        padding: var(--spacing-sm) 0;
    }
    
    .service-card,
    .blog-card {
        transition: none;
    }
    
    .service-card:active,
    .blog-card:active {
        transform: scale(0.98);
    }
    
    /* Remove hover effects */
    .service-card:hover,
    .blog-card:hover,
    .stat-item:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Optimize touch scrolling */
    .ai-tabs {
        -webkit-overflow-scrolling: touch;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
