/* ===========================
   Responsive Design
   =========================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: var(--spacing-md);
    }
    
    .floating-card {
        padding: var(--spacing-sm);
    }
    
    .card-icon {
        font-size: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: var(--spacing-sm);
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-text {
        font-size: 0.875rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.125rem;
    }
    
    /* Expertise */
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-visual {
        height: 300px;
    }
    
    .about-features {
        text-align: left;
    }
    
    /* CTA */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .cta-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-description {
        margin: 0 auto;
    }
    
    /* Service Detail Pages */
    .service-hero {
        padding: 6rem 0 3rem;
    }
    
    .service-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .service-hero-icon svg {
        width: 150px;
        height: 150px;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-card {
        padding: 0.75rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .card-text {
        font-size: 0.75rem;
    }
    
    /* Services */
    .service-card {
        padding: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Expertise */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* About */
    .about-visual {
        height: 250px;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .feature-content h4 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.875rem;
    }
    
    /* CTA */
    .cta {
        padding: var(--spacing-lg) 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 1rem;
        flex-direction: column;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Service Detail Pages */
    .service-hero {
        padding: 5rem 0 2rem;
    }
    
    .service-hero-title {
        font-size: 2rem;
    }
    
    .service-hero-subtitle {
        font-size: 1rem;
    }
    
    .service-hero-icon {
        display: none;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-text {
        font-size: 1rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .floating-card {
        display: none;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .cta,
    .footer,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .service-card {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment and customize if you want to add dark mode support */
    /*
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #cbd5e0;
        --text-light: #a0aec0;
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --bg-dark: #0d1117;
        --border-color: #4a5568;
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .service-card,
    .footer {
        background: var(--bg-secondary);
    }
    */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0052cc;
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Orientation Changes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }
    
    .hero-visual {
        display: none;
    }
}

