/**
 * Technik Racing - Landing Page
 * Responsive Stylesheet
 * Mobile-First Approach
 * @author Technik Racing
 * @version 1.0
 */

/* ============================================
   TABLET BREAKPOINT (max-width: 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Container */
    .container {
        max-width: 960px;
    }

    /* Section Padding */
    .section {
        padding: 80px 0;
    }

    /* Header */
    .nav-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero .swiper-button-prev,
    .hero .swiper-button-next {
        width: 50px;
        height: 50px;
    }

    /* About */
    .about-content {
        gap: 40px;
    }

    .about-badge {
        bottom: 20px;
        right: 20px;
        padding: 20px;
    }

    .badge-number {
        font-size: 2rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA */
    .cta-grid {
        gap: 40px;
    }

    /* Contact */
    .contact-grid {
        gap: 40px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
}

/* ============================================
   TABLET SMALL BREAKPOINT (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {
    /* Container */
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    /* Typography */
    h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    }

    /* Section */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.8125rem;
    }

    .btn-lg {
        padding: 15px 30px;
    }

    /* Header / Navigation */
    .navbar {
        padding: 15px 0;
    }

    .header.sticky .navbar {
        padding: 12px 0;
    }

    .logo-img {
        height: 40px;
    }

    .header.sticky .logo-img {
        height: 35px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px 0;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero,
    .hero .swiper-slide {
        min-height: 600px;
        height: 100vh;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero .swiper-button-prev,
    .hero .swiper-button-next {
        display: none;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-text {
        order: 2;
    }

    .about-media {
        order: 1;
    }

    .about-features {
        margin: 30px 0;
    }

    /* Animated Text */
    .text-item {
        font-size: clamp(1.25rem, 2.5vw, 2rem);
        padding: 0 30px;
    }

    /* Services */
    .service-card:hover {
        transform: translateY(-5px);
    }

    .services-slider .swiper-button-prev,
    .services-slider .swiper-button-next {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item {
        padding: 30px 20px;
    }

    /* Gallery */
    .gallery-item {
        height: 250px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 30px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Partners */
    .partner-logo img {
        max-height: 60px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-image {
        order: -1;
    }

    /* Blog */
    .blog-slider .swiper-button-prev,
    .blog-slider .swiper-button-next {
        display: none;
    }

    .blog-card:hover {
        transform: translateY(-5px);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Newsletter */
    .newsletter {
        padding: 60px 0;
    }

    .form-input-group {
        flex-direction: column;
    }

    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Floating Buttons */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 1.75rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 25px;
        font-size: 1.125rem;
    }
}

/* ============================================
   MOBILE BREAKPOINT (max-width: 576px)
   ============================================ */
@media screen and (max-width: 576px) {
    /* Container */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Typography */
    h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }

    /* Section */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .section-description {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.75rem;
        gap: 8px;
    }

    .btn-lg {
        padding: 14px 25px;
        font-size: 0.875rem;
    }

    /* Header */
    .navbar {
        padding: 12px 0;
    }

    .header.sticky .navbar {
        padding: 10px 0;
    }

    .logo-img {
        height: 35px;
    }

    .header.sticky .logo-img {
        height: 30px;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }

    .hamburger-line {
        height: 2px;
    }

    /* Hero */
    .hero,
    .hero .swiper-slide {
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: clamp(0.9375rem, 2vw, 1.125rem);
        margin-bottom: 25px;
    }

    .hero .swiper-pagination {
        bottom: 30px;
    }

    .scroll-indicator {
        display: none;
    }

    /* About */
    .about-content {
        gap: 30px;
    }

    .about-subtitle {
        font-size: 1.25rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-features {
        gap: 20px;
        margin: 25px 0;
    }

    .feature-item {
        gap: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-content h4 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.875rem;
    }

    .about-badge {
        bottom: 15px;
        right: 15px;
        padding: 15px;
    }

    .badge-number {
        font-size: 1.75rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    /* Animated Text */
    .animated-text-section {
        padding: 30px 0;
    }

    .text-item {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        padding: 0 20px;
    }

    /* Services */
    .service-image {
        height: 200px;
    }

    .service-content {
        padding: 25px 20px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-description {
        font-size: 0.875rem;
    }

    .service-features li {
        font-size: 0.8125rem;
    }

    /* Stats */
    .stat-item {
        padding: 25px 15px;
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-stars {
        margin-bottom: 20px;
    }

    .testimonial-stars i {
        font-size: 1.125rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
        margin-bottom: 25px;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 15px;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }

    .author-info {
        text-align: center;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-car {
        font-size: 0.8125rem;
    }

    /* Partners */
    .partner-logo {
        padding: 15px;
    }

    .partner-logo img {
        max-height: 50px;
    }

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-grid {
        gap: 30px;
    }

    .cta-subtitle {
        font-size: 0.75rem;
    }

    .cta-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Blog */
    .blog-image {
        height: 200px;
    }

    .blog-category {
        padding: 6px 15px;
        font-size: 0.6875rem;
    }

    .blog-content {
        padding: 25px 20px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-date,
    .blog-author {
        font-size: 0.8125rem;
    }

    .blog-title {
        font-size: 1.125rem;
    }

    .blog-excerpt {
        font-size: 0.875rem;
    }

    .blog-link {
        font-size: 0.8125rem;
    }

    /* Contact */
    .contact-item {
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .contact-details h4 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.875rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-group label {
        font-size: 0.8125rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9375rem;
    }

    /* Newsletter */
    .newsletter {
        padding: 50px 0;
    }

    .newsletter-subtitle {
        font-size: 0.75rem;
    }

    .newsletter-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .newsletter-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .form-input-group input {
        padding: 15px 20px;
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-description {
        font-size: 0.875rem;
    }

    .footer-social .social-title {
        font-size: 0.875rem;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links li a {
        font-size: 0.875rem;
    }

    .footer-contact {
        gap: 12px;
    }

    .footer-contact li {
        font-size: 0.875rem;
    }

    .footer-contact li i {
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 20px;
        gap: 15px;
    }

    .copyright {
        font-size: 0.8125rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8125rem;
    }

    .separator {
        display: none;
    }

    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (max-width: 375px)
   ============================================ */
@media screen and (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .section {
        padding: 40px 0;
    }

    .service-content,
    .blog-content,
    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.6875rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.375rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 70px;
        right: 15px;
        font-size: 0.9375rem;
    }
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
   ============================================ */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero,
    .hero .swiper-slide {
        height: 100vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 20px 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vh, 2.5rem);
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.8125rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 50px 0;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    .logo-img,
    .about-image,
    .service-image img,
    .gallery-item img,
    .blog-image img,
    .partner-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    /* Hide unnecessary elements */
    .header,
    .hero,
    .whatsapp-float,
    .back-to-top,
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination,
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Optimize for print */
    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    /* Show all content (no hidden sliders) */
    .swiper-slide {
        display: block !important;
    }

    /* Adjust colors for print */
    a {
        color: black;
        text-decoration: underline;
    }

    .btn {
        border: 2px solid black;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .text-scroll {
        animation: none;
    }

    .whatsapp-float {
        animation: none;
    }
}

/* ============================================
   DARK MODE (if system prefers dark)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Already dark theme by default, but can add adjustments here if needed */
}

/* ============================================
   HOVER-CAPABLE DEVICES
   ============================================ */
@media (hover: hover) and (pointer: fine) {
    /* Enable hover effects only on devices that support it */
    .service-card:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: translateY(-10px);
    }

    .btn:hover {
        transform: translateY(-2px);
    }
}

@media (hover: none) and (pointer: coarse) {
    /* Disable transform hover effects on touch devices */
    .service-card:hover,
    .blog-card:hover,
    .gallery-item:hover,
    .btn:hover {
        transform: none;
    }

    /* But keep color/opacity changes */
    .nav-link:hover {
        color: var(--primary-color);
    }
}
