/* ============================================
   VELONEX - Enterprise IT & Cybersecurity Solutions
   SEPL-Inspired Responsive Stylesheet
   ============================================ */

/* ===== Large Desktop (1440px+) ===== */
@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }
    .hero-title { font-size:3.5rem; }
    .section-title { font-size:2.5rem; }
}

/* ===== Desktop (1200px - 1439px) ===== */
@media (max-width: 1439px) {
    .hero-title { font-size:3rem; }
    .section-title { font-size:2rem; }
    .page-title { font-size:2.5rem; }
}

/* ===== Tablet Landscape (1024px - 1199px) ===== */
@media (max-width: 1199px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }
    .hero-title { font-size:2.5rem; }
    .section-title { font-size:1.875rem; }
    .page-title { font-size:2.25rem; }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        backdrop-filter: blur(20px);
        padding: 80px 24px 24px;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; color: var(--text-primary); }
    .nav-link:hover { background: var(--light-100); }
    .nav-link.active { background: rgba(26,95,180,0.08); }
    .hamburger { display: flex; }

    /* Hero */
    .hero { min-height: 400px; padding: 100px 0 40px; }

    /* Grids */
    .intro-grid, .why-us-grid, .about-grid, .service-detail-grid,
    .infra-hero-grid, .careers-hero-grid, .application-grid,
    .contact-main-grid, .mission-grid { grid-template-columns: 1fr; gap: 40px; }

    .services-grid, .values-grid, .culture-grid, .benefits-grid,
    .solutions-cards, .capabilities-grid, .metrics-grid, .server-grid,
    .security-grid, .offices-grid, .contact-info-grid, .action-grid { grid-template-columns: repeat(2, 1fr); }

    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    /* Infrastructure */
    .infra-grid, .infra-showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .infra-card.large, .infra-showcase-card.large { grid-column: span 2; grid-row: span 1; height: 350px; }
    .network-grid, .arch-panel-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .vm-grid { grid-template-columns: 1fr; }

    .service-detail-grid.reverse { direction: ltr; }
    .service-detail-grid.reverse > * { direction: ltr; }

    /* Process */
    .process-timeline::before { left: 28px; }
    .process-step { gap: 20px; }
    .process-number { width: 56px; height: 56px; min-width: 56px; font-size: 1.125rem; }

    /* Architecture */
    .arch-tab-content { padding: 28px; }

    /* Positions */
    .position-item { flex-direction: column; align-items: flex-start; gap: 16px; }
    .position-apply { width: 100%; }
}

/* ===== Tablet Portrait (768px - 1023px) ===== */
@media (max-width: 1023px) {
    :root { --section-padding: 48px; }
    .hero-title { font-size:2rem; }
    .section-title { font-size:1.75rem; }
    .page-title { font-size:2rem; }
    .cta-title { font-size:1.875rem; }

    /* Hero */
    .hero { min-height: 350px; padding: 90px 0 32px; }
    .hero-subtitle { font-size:1.125rem; }

    /* Buttons */
    .hero-buttons, .cta-buttons { flex-direction: column; width: 100%; max-width: 280px; margin-left: auto; margin-right: auto; }
    .hero-buttons .btn, .cta-buttons .btn { width: 100%; }

    /* Single Column Grids */
    .services-grid, .values-grid, .culture-grid, .benefits-grid,
    .solutions-cards, .capabilities-grid, .metrics-grid, .server-grid,
    .security-grid, .offices-grid, .contact-info-grid, .stats-grid,
    .team-grid, .footer-grid, .action-grid { grid-template-columns: 1fr; }

    /* Infrastructure */
    .infra-grid, .infra-showcase-grid { grid-template-columns: 1fr; }
    .infra-card.large, .infra-showcase-card.large { grid-column: span 1; height: 280px; }
    .infra-hero-stats { grid-template-columns: repeat(2, 1fr); }

    /* Network Diagram */
    .network-diagram { padding: 20px; }
    .network-node { padding: 12px 16px; }

    /* Architecture */
    .arch-tab-buttons { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .arch-tab-buttons::-webkit-scrollbar { display: none; }
    .arch-tab-btn { padding: 12px 16px; font-size: 0.8125rem; }
    .arch-tab-content { padding: 20px; }
    .arch-diagram.micro { grid-template-columns: repeat(2, 1fr); }
    .arch-diagram.zero-trust { height: 220px; }
    .zt-ring.outer { width: 180px; height: 180px; }
    .zt-ring.middle { width: 120px; height: 120px; }
    .zt-ring.inner { width: 70px; height: 70px; }

    /* Process */
    .process-timeline::before { left: 22px; }
    .process-step { gap: 14px; }
    .process-number { width: 46px; height: 46px; min-width: 46px; font-size: 0.9375rem; }
    .process-content { padding: 20px; }

    /* Careers */
    .careers-stats { gap: 20px; flex-wrap: wrap; }
    .career-stat-value { font-size: 1.75rem; }

    /* Positions Filter */
    .positions-filter { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 0.75rem; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .application-form-wrapper, .contact-form-wrapper { padding: 24px; }

    /* Testimonials */
    .testimonial-text p { font-size: 0.9375rem; }

    /* Map */
    .map-container { height: 280px; }

    /* Floating elements */
    .intro-image-float, .infra-hero-float, .why-us-counter { display: none; }

    /* Floating action button */
    .floating-action-btn { display: none; }
}

/* ===== Mobile (480px - 767px) ===== */
@media (max-width: 767px) {
    :root {
        --section-padding: 40px;
        --container-padding: 16px;
    }
    html { font-size: 15px; }
    .hero-title { font-size:1.75rem; }
    .section-title { font-size:1.5rem; }
    .page-title { font-size:1.75rem; }
    .cta-title { font-size:1.5rem; }

    /* Hero */
    .hero { min-height: 300px; padding: 80px 0 24px; }
    .hero-subtitle { font-size: 1rem; }

    /* Scroll indicator */
    .hero-scroll { display: none; }

    /* Cards */
    .service-card, .value-card, .culture-card, .benefit-card,
    .solution-card, .capability-card, .metric-card, .server-card,
    .security-card, .office-card, .action-card { padding: 24px 20px; }

    /* Stats Section */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-box { padding: 24px 14px; }
    .stat-counter { font-size: 1.5rem; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; }

    /* Infrastructure */
    .infra-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .infra-stat { padding: 14px; }
    .infra-stat-value { font-size: 1.375rem; }
    .infra-locations { padding: 24px; }

    /* Network */
    .network-diagram { padding: 16px; }
    .network-node { padding: 10px 14px; }
    .network-node i { font-size: 1rem; }
    .network-node span { font-size: 0.6875rem; }
    .network-nodes { gap: 6px; }
    .network-feature { padding: 14px; gap: 12px; }
    .network-feature-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.875rem; }

    /* Architecture */
    .arch-tab-btn { padding: 10px 14px; font-size: 0.75rem; }
    .arch-tab-content { padding: 16px; }
    .arch-diagram { padding: 20px; }
    .arch-diagram.micro { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .micro-service { padding: 12px; }
    .arch-diagram.zero-trust { height: 180px; }
    .zt-ring.outer { width: 140px; height: 140px; }
    .zt-ring.middle { width: 95px; height: 95px; }
    .zt-ring.inner { width: 50px; height: 50px; font-size: 0.6875rem; }
    .arch-diagram.edge { height: 220px; }
    .edge-node { padding: 8px 12px; font-size: 0.6875rem; }

    /* Process */
    .process-timeline::before { left: 18px; }
    .process-step { gap: 12px; }
    .process-number { width: 38px; height: 38px; min-width: 38px; font-size: 0.8125rem; }
    .process-content { padding: 16px; }
    .process-icon { width: 36px; height: 36px; font-size: 0.875rem; }

    /* Careers */
    .careers-stats { flex-direction: column; gap: 12px; }
    .career-stat { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--light-100); border-radius: var(--radius-md); }
    .career-stat-value { font-size: 1.5rem; }

    /* Positions */
    .positions-filter { gap: 5px; }
    .filter-btn { padding: 5px 12px; font-size: 0.6875rem; }
    .position-item { padding: 16px; }
    .position-info h3 { font-size: 0.9375rem; }
    .position-meta { flex-direction: column; gap: 4px; }
    .position-tags { gap: 4px; }
    .tag { padding: 2px 8px; font-size: 0.625rem; }

    /* Forms */
    .application-form-wrapper, .contact-form-wrapper { padding: 16px; border-radius: var(--radius-lg); }
    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 0.75rem; }
    .form-group input, .form-group textarea, .form-group select { padding: 10px 12px; font-size: 0.8125rem; }
    .checkbox-label { font-size: 0.75rem; }
    .file-input-display { padding: 20px 12px; }
    .file-input-display i { font-size: 1.375rem; }
    .file-text { font-size: 0.75rem; }

    /* Contact */
    .contact-info-card { padding: 20px; }
    .contact-info-icon { width: 40px; height: 40px; font-size: 1rem; }
    .map-container { height: 220px; }
    .map-info { padding: 14px 18px; }

    /* Office cards */
    .office-image { height: 140px; }
    .office-info { padding: 14px; }
    .office-info h3 { font-size: 0.9375rem; }
    .office-info p { font-size: 0.75rem; }

    /* FAQ */
    .faq-question { padding: 14px 18px; font-size: 0.875rem; }
    .faq-item.active .faq-answer { padding: 0 18px 14px; }
    .faq-answer p { font-size: 0.8125rem; }

    /* Footer */
    .footer-social { gap: 6px; }
    .footer-social a { width: 34px; height: 34px; }
    .footer-links h4, .footer-contact h4 { font-size: 0.9375rem; margin-bottom: 14px; }
    .footer-links a, .contact-item span, .contact-item a { font-size: 0.8125rem; }

    /* Breadcrumb */
    .breadcrumb { font-size: 0.75rem; }

    /* Page Header */
    .page-header { padding: 100px 0 40px; }
    .page-subtitle { font-size: 0.9375rem; }

    /* Nav */
    .nav-logo img { max-height: 28px; }
    .logo-text { font-size: 1.125rem; }
    .nav-menu { width: 280px; }

    /* Hamburger */
    .hamburger { padding: 5px; }
    .hamburger span { width: 20px; }

    /* Back to top */
    .back-to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }
}

/* ===== Small Mobile (below 480px) ===== */
@media (max-width: 479px) {
    html { font-size: 14px; }
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.375rem; }
    .page-title { font-size: 1.5rem; }
    .cta-title { font-size: 1.375rem; }

    .hero { min-height: 260px; padding: 70px 0 20px; }

    .stat-number { font-size: 1.25rem; }
    .stat-suffix { font-size: 1rem; }

    .positions-filter { grid-template-columns: repeat(2, 1fr); }
    .filter-btn { width: 100%; text-align: center; }

    .btn { padding: 10px 18px; font-size: 0.8125rem; }
    .btn-lg { padding: 12px 24px; }
}

/* ===== Extra Small Mobile (below 360px) ===== */
@media (max-width: 359px) {
    .hero-title { font-size: 1.375rem; }
    .section-title { font-size: 1.25rem; }
    .page-title { font-size: 1.375rem; }
    .cta-title { font-size: 1.25rem; }
    .stat-number { font-size: 1.125rem; }
    .stat-suffix { font-size: 0.875rem; }
    .positions-filter { grid-template-columns: 1fr; }
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .hero-scroll, .back-to-top, .scroll-progress,
    .testimonial-nav, .cta-section, .footer-social,
    .hamburger, .floating-action-btn { display: none !important; }

    body { background: white; color: black; }
    .hero, .page-header { padding: 32px 0; min-height: auto; }
    .section-title, .page-title, .cta-title { color: black; }
    a { color: black; text-decoration: underline; }
}

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

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0056b3;
        --primary-light: #0066cc;
        --accent: #0099cc;
    }
    .btn-primary, .btn-glow { border: 2px solid var(--text-primary); }
}
