/* ===== RESPONSIVE DESIGN ===== */

/* Large Devices (Desktops, 1024px and up) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .center-icon {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
    }
}

/* Medium Devices (Tablets, 768px to 1023px) */
@media (max-width: 1023px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-cta {
        width: 100%;
        margin-top: 2rem;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-divider.left-align {
        margin: 1.5rem auto;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .operations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cards and Stats */
    .stats-card {
        grid-template-columns: repeat(3, 1fr);
        padding: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .model-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .model-card.featured {
        transform: none;
    }
    
    .model-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 2rem;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    /* Additional Services */
    .additional-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Mobile, up to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .center-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .visual-center p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Stats Card */
    .stats-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .operations-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .service-item, .feature-card, .value-card, .benefit-card, .industry-card {
        padding: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .service-detail-card {
        padding: 2rem;
    }
    
    .service-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.875rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Forms */
    .form-container {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    /* Map/Region */
    .map-visual {
        flex-direction: column;
        align-items: center;
    }
    
    .region-card {
        width: 100%;
        max-width: 300px;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Additional Services */
    .additional-services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    /* Industries Grid */
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    /* Page Hero */
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 2rem;
    }
    
    /* Features Grid in Services */
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices (up to 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.625rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .btn-lg, .btn-xl {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-main {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .service-icon, .feature-icon, .value-icon, .benefit-icon, .industry-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .additional-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .placeholder-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .center-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .mission-list li {
        font-size: 0.95rem;
    }
    
    .operation-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -10px;
        left: -10px;
    }
    
    .model-card {
        padding: 1.5rem;
    }
    
    .model-price {
        font-size: 1.5rem;
    }
    
    .form-wrapper, .form-container {
        padding: 1.25rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .page-hero {
        padding: 120px 0 40px;
    }
}

/* High Resolution Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #ffffff;
        --dark-gray: #e0e0e0;
        --gray: #b0b0b0;
        --light-gray: #1a1a1a;
        --white: #2d2d2d;
        --bg-light: #1a1a1a;
        --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .header {
        background-color: rgba(45, 45, 45, 0.95);
    }
    
    .logo {
        color: #ffffff;
    }
    
    .nav-link {
        color: #e0e0e0;
    }
    
    .hero {
        background: var(--bg-gradient);
    }
    
    .hero-subtitle {
        color: #b0b0b0;
    }
    
    .service-item, .feature-card, .value-card, .benefit-card, .industry-card,
    .card, .service-detail-card, .contact-info-card, .region-card,
    .team-member, .model-card, .form-wrapper, .form-container,
    .stats-card, .faq-item, .additional-service, .operation-step {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #3d3d3d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #808080;
    }
    
    .newsletter-form {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .footer {
        background-color: #1a1a1a;
    }
}

/* Animation for mobile menu */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
    
    .cta-section {
        background-attachment: scroll;
    }
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    .header {
        backdrop-filter: none;
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    @media (prefers-color-scheme: dark) {
        .header {
            background-color: rgba(45, 45, 45, 0.98);
        }
    }
}

/* Print Optimization */
@media print {
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    .header, .footer, .cta-section, .hero-actions, .back-to-top,
    .nav-cta, .hamburger, .social-links, .newsletter,
    .btn, .faq-question i, .contact-link {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    a {
        text-decoration: none;
        color: #000 !important;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        font-weight: normal;
    }
}