/* ===================================
   RESPONSIVE DESIGN
   Mobile-first approach
   =================================== */

/* Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) {
    :root {
        --font-size-6xl: 3rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --spacing-3xl: 4rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-visual {
        height: 400px;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .product-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

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

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

    .service-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .service-layout.reverse {
        direction: ltr;
    }

    .consulting-graphic,
    .training-graphic {
        height: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px var(--spacing-lg) var(--spacing-lg);
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

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

    .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: flex-start;
    }

    .nav-link {
        font-size: var(--font-size-lg);
        width: 100%;
        display: block;
        padding: var(--spacing-sm) 0;
    }

    .mobile-toggle {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

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

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

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-2xl);
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        padding: var(--spacing-sm);
    }

    .card-text {
        font-size: var(--font-size-xs);
    }

    .ai-brain {
        width: 200px;
        height: 200px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Product Section */
    .section-title {
        font-size: var(--font-size-4xl);
    }

    .section-subtitle {
        font-size: var(--font-size-lg);
    }

    .product-features {
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-item {
        padding: var(--spacing-lg);
    }

    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .use-case-card {
        padding: var(--spacing-lg);
    }

    /* Service Content */
    .service-description {
        font-size: var(--font-size-base);
    }

    .service-feature {
        font-size: var(--font-size-base);
    }

    .consulting-graphic,
    .training-graphic {
        display: none;
    }

    /* Contact Section */
    .contact-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: var(--spacing-lg);
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

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

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    :root {
        --font-size-6xl: 2rem;
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --font-size-2xl: 1.125rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 2.5rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navigation */
    .nav-container {
        height: 70px;
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 var(--spacing-2xl);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-badge {
        font-size: var(--font-size-xs);
        padding: 6px var(--spacing-sm);
    }

    .hero-stats {
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    .stat-label {
        font-size: var(--font-size-xs);
    }

    .hero-visual {
        height: 250px;
    }

    .floating-card {
        padding: var(--spacing-xs);
        gap: 6px;
    }

    .card-icon {
        font-size: var(--font-size-lg);
    }

    .card-text {
        display: none;
    }

    .ai-brain {
        width: 150px;
        height: 150px;
    }

    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    .section-label {
        font-size: var(--font-size-xs);
        padding: 4px var(--spacing-sm);
    }

    /* Product Screen */
    .screen-content {
        padding: var(--spacing-md);
    }

    .message-bubble {
        max-width: 200px;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }

    .analytics-panel {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }

    .metric-value {
        font-size: var(--font-size-lg);
    }

    .metric-label {
        font-size: 0.65rem;
    }

    /* Features */
    .feature-item {
        padding: var(--spacing-md);
    }

    .feature-item h3 {
        font-size: var(--font-size-lg);
    }

    .feature-item p {
        font-size: var(--font-size-sm);
    }

    /* Use Cases */
    .use-case-card {
        padding: var(--spacing-md);
    }

    .use-case-icon {
        font-size: 2rem;
    }

    .use-case-card h3 {
        font-size: var(--font-size-lg);
    }

    .use-case-card p {
        font-size: var(--font-size-sm);
    }

    /* Service Features */
    .service-features {
        gap: var(--spacing-sm);
    }

    .service-feature {
        font-size: var(--font-size-sm);
        gap: var(--spacing-sm);
    }

    .check-icon {
        width: 20px;
        height: 20px;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    .contact-form {
        gap: var(--spacing-md);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    /* Info Cards */
    .info-card {
        padding: var(--spacing-md);
    }

    .info-icon svg {
        width: 32px;
        height: 32px;
    }

    .info-card h3 {
        font-size: var(--font-size-lg);
    }

    .info-link,
    .info-text {
        font-size: var(--font-size-sm);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .footer-content {
        margin-bottom: var(--spacing-xl);
    }

    .footer-brand {
        margin-bottom: var(--spacing-lg);
    }

    .footer-logo {
        font-size: var(--font-size-lg);
    }

    .footer-logo .logo-img {
        width: 32px;
        height: 32px;
    }

    .footer-tagline {
        font-size: var(--font-size-sm);
    }

    .footer-column h4 {
        font-size: var(--font-size-sm);
    }

    .footer-column a {
        font-size: var(--font-size-xs);
    }

    .footer-bottom {
        font-size: var(--font-size-xs);
    }
}

/* Mobile Extra Small (375px and below) */
@media screen and (max-width: 375px) {
    :root {
        --font-size-6xl: 1.75rem;
        --font-size-5xl: 1.5rem;
        --font-size-4xl: 1.375rem;
        --font-size-3xl: 1.125rem;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

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

    .stat-item {
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

/* Landscape Orientation */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-2xl);
    }

    .hero-visual {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    :root {
        --font-size-6xl: 5rem;
        --font-size-5xl: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-toggle,
    .scroll-indicator,
    .hero-visual,
    .floating-card,
    .gradient-orb,
    .grid-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: var(--spacing-sm) 0;
    }

    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .use-case-card:hover,
    .info-card:hover {
        transform: none;
    }
}

/* Dark Mode Support (if user preference) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
    /* Keep dark theme for this design */
}
