/* KMKSI Corporate Website - Responsive Stylesheet */

/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 3.2rem; }
    h3 { font-size: 2.5rem; }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 10rem 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop Screens */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-showcase {
        gap: 3rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}

/* Tablet Screens */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-features {
        padding: 1.5rem;
    }
    
    .app-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .page-header {
        padding: 10rem 0 5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ad-formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        z-index: 999;
        padding: 5rem 2rem 2rem;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .mobile-menu li {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    
    .mobile-menu a {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-dark);
        display: block;
        padding: 0.5rem 0;
    }
    
    .mobile-menu a:hover {
        color: var(--primary-color);
    }
    
    .header-inner {
        padding: 1rem;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Small Tablet and Large Mobile */
@media (max-width: 768px) and (min-width: 481px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .services-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .app-preview {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .page-header {
        padding: 8rem 0 4rem;
    }
    
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-formats-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about,
    .footer-links {
        text-align: center;
    }
    
    .footer-links ul {
        padding: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-legal a {
        display: block;
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .app-feature-icon {
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .page-header {
        padding: 7rem 0 4rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .legal-content {
        padding: 3rem 1rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .legal-content p {
        font-size: 0.95rem;
    }
    
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .icon-item {
        padding: 1.5rem 0.75rem;
    }
    
    .icon-item svg {
        width: 40px;
        height: 40px;
    }
    
    .icon-item span {
        font-size: 0.9rem;
    }
    
    .ad-formats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ad-format-card {
        padding: 2rem 1.5rem;
    }
    
    .ad-format-icon {
        width: 70px;
        height: 70px;
    }
    
    .ad-format-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .partner-logos {
        gap: 2rem;
    }
    
    .partner-logo {
        width: 120px;
        height: 50px;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .team-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 8rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo svg,
    .service-icon svg,
    .feature-icon svg {
        shape-rendering: geometricPrecision;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .btn,
    .hero-buttons,
    .read-more {
        display: none !important;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .services-grid,
    .news-grid,
    .team-grid {
        display: block;
    }
    
    .service-card,
    .news-card,
    .team-card {
        page-break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* 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;
    }
    
    .hero-content h1,
    .hero-content p,
    .hero-content .hero-buttons {
        opacity: 1;
        transform: none;
    }
    
    .page-header h1,
    .page-header p {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --border-color: #404040;
    }
    
    body {
        background: #121212;
        color: #ffffff;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.98);
    }
    
    .service-card,
    .news-card,
    .team-card,
    .contact-form {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .footer {
        background: #0a0a0a;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .news-card:hover,
    .team-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-menu a:hover::after {
        width: 0;
    }
    
    a:hover {
        color: inherit;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .service-card,
    .feature-item,
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

/* Accessibility - Focus States */
@media (focus-visible) {
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Browser Zoom */
@media (max-width: 1200px) and (min-width: 769px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}
