/* ==========================================
   Responsive Design Styles
   Premium Enterprise Website
   ========================================== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .service-card {
        padding: var(--space-xl);
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .hero-content {
        max-width: 900px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }
    
    .app-showcase .container {
        gap: var(--space-xl);
    }
    
    .app-mockup {
        width: 280px;
        height: 560px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .header-inner {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 85vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .app-showcase .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-content {
        padding-right: 0;
        order: 2;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .app-feature {
        text-align: left;
    }
    
    .app-image {
        order: 1;
        margin-bottom: var(--space-xl);
    }
    
    .app-mockup {
        width: 260px;
        height: 520px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-item {
        padding: var(--space-lg);
    }
    
    .stat-item::after {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 8px !important;
        right: auto !important;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .page-header {
        padding: 150px 0 80px;
    }
    
    .page-header h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* Mobile Landscape (600px - 767px) */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 120px var(--space-md) var(--space-xl);
    }
    
    .hero-content {
        padding: var(--space-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: none;
        padding: var(--space-sm) var(--space-lg);
    }
    
    .services-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (320px - 599px) */
@media (max-width: 599px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .header-inner {
        padding: var(--space-sm);
    }
    
    .logo svg {
        width: 45px;
        height: 45px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
    
    .mobile-menu-btn span {
        width: 24px;
    }
    
    .mobile-nav {
        padding: var(--space-xl) var(--space-md);
    }
    
    .mobile-nav-link {
        font-size: 1.25rem;
        padding: var(--space-sm);
    }
    
    .hero {
        min-height: 100vh;
        padding: 100px var(--space-sm) var(--space-xl);
    }
    
    .hero-badge {
        padding: var(--space-xs) var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .hero-badge span {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
        line-height: 1.6;
    }
    
    .hero-buttons {
        gap: var(--space-sm);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
    }
    
    .hero-scroll {
        bottom: var(--space-lg);
    }
    
    .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .section-badge {
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .section-badge span {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .section-line {
        width: 60px;
        height: 3px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-md);
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-desc {
        font-size: 0.9rem;
    }
    
    .app-showcase .container {
        gap: var(--space-lg);
    }
    
    .app-content {
        padding: 0;
    }
    
    .app-features {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .app-feature {
        padding: var(--space-sm);
    }
    
    .app-image {
        margin-bottom: var(--space-lg);
    }
    
    .app-mockup {
        width: 200px;
        height: 400px;
        border-radius: 30px;
        border-width: 3px;
    }
    
    .app-screen {
        padding: 15px;
    }
    
    .app-screen-header {
        padding: 15px 0;
    }
    
    .app-screen-header h4 {
        font-size: 0.85rem;
    }
    
    .app-screen-content {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .app-screen-item {
        padding: 10px;
        gap: 8px;
    }
    
    .app-screen-item-icon {
        width: 35px;
        height: 35px;
    }
    
    .app-screen-item-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .app-screen-item-text span {
        font-size: 0.7rem;
    }
    
    .app-screen-item-text small {
        font-size: 0.6rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .stat-item {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--space-md);
    }
    
    .feature-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .feature-title {
        font-size: 1.15rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .news-card {
        border-radius: var(--radius-lg);
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: var(--space-md);
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 10px;
        width: 3px;
    }
    
    .timeline-item {
        padding-left: 40px !important;
        margin-bottom: var(--space-lg);
    }
    
    .timeline-dot {
        width: 18px;
        height: 18px;
        left: 1px !important;
        border-width: 3px;
    }
    
    .timeline-year {
        font-size: 1.1rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-desc {
        font-size: 0.85rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .value-item {
        padding: var(--space-lg);
        flex-direction: column;
        text-align: center;
    }
    
    .value-icon {
        margin: 0 auto;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .team-member {
        padding: var(--space-lg);
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }
    
    .team-avatar svg {
        width: 50px;
        height: 50px;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-text h5 {
        font-size: 0.9rem;
    }
    
    .contact-text p {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .form-group {
        margin-bottom: var(--space-md);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-brand {
        grid-column: auto;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .legal-content {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .legal-section {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    .legal-section h2 {
        font-size: 1.35rem;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .legal-section h2 svg {
        width: 24px;
        height: 24px;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }
    
    .service-card,
    .feature-card,
    .news-content {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo svg,
    .hero-badge svg,
    .section-badge svg,
    .service-icon svg,
    .app-feature svg,
    .contact-icon svg,
    .social-link svg {
        transform: translateZ(0);
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-scroll,
    .mobile-nav,
    .loading-overlay,
    .hero-particles,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle,
    .hero-scroll,
    .app-mockup {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0a1628;
        --text-color: #ffffff;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-card:hover,
    .news-card:hover,
    .team-member:hover {
        transform: none;
    }
    
    .service-card:active,
    .feature-card:active,
    .news-card:active,
    .team-member:active {
        transform: scale(0.98);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .btn::before {
        display: none;
    }
}

/* Landscape Phone to Landscape Tablet */
@media (min-width: 568px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Orientation Change Animations */
@media (orientation: portrait) and (min-width: 768px) {
    .app-mockup {
        animation: floatPhonePortrait 8s ease-in-out infinite;
    }
}

@keyframes floatPhonePortrait {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}
