/* ===================================
   CEYPA VISION - Responsive Styles
   Mobile & Tablet Optimization
   =================================== */

/* ===================================
   Large Tablets & Small Desktops (1200px)
   =================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .about-content {
        gap: 60px;
    }
    
    .footer-content {
        gap: 40px;
    }
}

/* ===================================
   Tablets (992px)
   =================================== */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 10px;
        background: rgba(15, 52, 96, 0.5);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 50px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-badge {
        bottom: -20px;
        right: -20px;
        width: 120px;
        height: 120px;
    }
    
    .badge-number {
        font-size: 30px;
    }
    
    .badge-text {
        font-size: 11px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .portfolio-image {
        height: 350px;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ===================================
   Mobile Landscape & Small Tablets (768px)
   =================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Typography */
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    /* Navigation */
    .logo-text {
        font-size: 20px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .btn-call span {
        display: none;
    }
    
    .btn-call {
        padding: 12px 20px;
    }
    
    /* Hero */
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 40px;
        margin-top: 60px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* About */
    .about-heading {
        font-size: 30px;
    }
    
    .about-description {
        font-size: 15px;
    }
    
    .about-features {
        margin: 30px 0;
        gap: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 20px;
    }
    
    .feature-content h4 {
        font-size: 16px;
    }
    
    .feature-content p {
        font-size: 13px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-image {
        height: 220px;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-title {
        font-size: 22px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    /* Portfolio */
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-image {
        height: 300px;
    }
    
    .portfolio-content h3 {
        font-size: 20px;
    }
    
    .portfolio-content p {
        font-size: 13px;
    }
    
    /* Contact */
    .info-card {
        padding: 20px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon i {
        font-size: 20px;
    }
    
    .info-content h3 {
        font-size: 16px;
    }
    
    .info-content p {
        font-size: 13px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }
    
    .map-container {
        height: 350px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about h3 {
        font-size: 20px;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* ===================================
   Mobile Portrait (576px)
   =================================== */
@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    .section-title {
        font-size: 30px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    /* Navigation */
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .mouse {
        width: 25px;
        height: 40px;
    }
    
    /* About */
    .about-heading {
        font-size: 26px;
    }
    
    .about-badge {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: -15px;
    }
    
    .badge-number {
        font-size: 24px;
    }
    
    .badge-text {
        font-size: 10px;
    }
    
    /* Services */
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-features li {
        font-size: 13px;
    }
    
    /* Portfolio */
    .portfolio-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 18px;
    }
    
    /* Contact */
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 25px 15px;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-about p {
        font-size: 13px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* ===================================
   Extra Small Mobile (400px)
   =================================== */
@media (max-width: 400px) {
    .hero-title {
        font-size: 30px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .about-heading {
        font-size: 22px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .portfolio-content h3 {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* ===================================
   Landscape Orientation
   =================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .scroll-top,
    .hero-video,
    .preloader {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===================================
   High DPI Displays
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===================================
   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;
    }
}

/* ===================================
   Dark Mode Support
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* ===================================
   Touch Device Optimizations
   =================================== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .filter-btn,
    .service-link,
    .portfolio-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .service-overlay,
    .portfolio-overlay {
        opacity: 0.9;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}
