/**
 * HIPTON Germany - Responsive Stylesheet
 * Mobile-first approach with breakpoints
 */

/* ==================== Breakpoints ==================== */
/*
- Mobile: up to 576px
- Tablet: 577px to 968px
- Desktop: 969px and above
*/


/* ==================== Fix Mobile Overflow ==================== */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Prevent specific sections from causing overflow */
.hero-section,
.main-content,
section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix video overflow */
.hero-video-wrapper {
    width: 100%;
    overflow: hidden;
}

.hero-video {
    min-width: 100%;
    width: 100%;
}

/* ==================== Large Desktop (1400px+) ==================== */
@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
    }
    
    .hero-title-main {
        font-size: 84px;
    }
    
    .section-title {
        font-size: 56px;
    }
}

/* ==================== Desktop (969px - 1199px) ==================== */
@media (max-width: 1199px) {
    :root {
        --container-width: 960px;
    }
    
    .hero-title-main {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .products-grid {
        gap: 25px;
    }
    
    .partners-grid {
        gap: 30px;
    }
}

/* ==================== Tablet (768px - 968px) ==================== */
@media (max-width: 968px) {
    :root {
        --container-width: 720px;
        --section-padding: 80px 0;
    }
    
    /* ==================== Header / Navigation ==================== */
    .header-container {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    /* ==================== Hero Section ==================== */
    .hero-title-line {
        font-size: 22px;
    }
    
    .hero-title-main {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-badges {
        gap: 15px;
    }
    
    .badge-separator {
        display: none;
    }
    
    .hero-scroll-indicator {
        bottom: 30px;
    }
    
    .hero-sound-toggle {
        bottom: 30px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
    
    /* ==================== Content Grids ==================== */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-text .lead {
        font-size: 18px;
    }
    
    /* ==================== Products ==================== */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .product-image {
        height: 220px;
    }
    
    /* ==================== Quality Features Slider ==================== */
    .feature-content,
    .feature-content.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-content.reverse .feature-text,
    .feature-content.reverse .feature-image {
        order: initial;
    }
    
    .feature-text h3 {
        font-size: 32px;
    }
    
    .features-slider {
        min-height: auto;
    }
    
    .slider-controls {
        gap: 25px;
        margin-top: 40px;
    }
    
    /* ==================== CTA Sections ==================== */
    .cta-content {
        flex-direction: column;
        padding: 50px 40px;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 36px;
    }
    
    .work-content h2 {
        font-size: 42px;
    }
    
    /* ==================== Partners ==================== */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    /* ==================== Contact Section ==================== */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-map-social {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-cta {
        position: static;
    }
    
    /* ==================== Footer ==================== */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ==================== Mobile Landscape / Small Tablet (577px - 767px) ==================== */
@media (max-width: 767px) {
    :root {
        --container-width: 540px;
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* ==================== Typography ==================== */
    .section-title {
        font-size: 36px;
    }
    
    .section-label {
        font-size: 12px;
    }
    
    /* ==================== Hero Section ==================== */
    .hero-title-line {
        font-size: 20px;
    }
    
    .hero-title-main {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .badge-item {
        padding: 10px 20px;
        width: 100%;
        max-width: 250px;
    }
    
    /* ==================== Buttons ==================== */
    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    /* ==================== Products ==================== */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 250px;
    }
    
    /* ==================== Quality Features ==================== */
    .feature-text h3 {
        font-size: 28px;
    }
    
    .feature-text p {
        font-size: 15px;
    }
    
    /* ==================== Partners ==================== */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* ==================== Footer ==================== */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ==================== Mobile (up to 576px) ==================== */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* ==================== Header ==================== */
    .header-container {
        height: 65px;
        padding: 0 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hamburger {
        width: 25px;
        height: 2px;
    }
    
    .main-content {
        margin-top: 65px;
    }
    
    /* ==================== Mobile Menu ==================== */
    .mobile-menu-content {
        padding: 80px 30px 30px;
    }
    
    .mobile-nav-link {
        font-size: 20px;
    }
    
    .mobile-social {
        gap: 15px;
        margin-top: 40px;
    }
    
    .mobile-social a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* ==================== Hero Section ==================== */
    .hero-section {
        min-height: 100vh;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        margin-bottom: 15px;
    }
    
    .hero-title-line {
        font-size: 18px;
    }
    
    .hero-title-main {
        font-size: 38px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        margin-bottom: 35px;
    }
    
    .btn-hero {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .hero-badges {
        gap: 10px;
    }
    
    .badge-item {
        padding: 8px 15px;
    }
    
    .badge-item i {
        font-size: 16px;
    }
    
    .badge-item span {
        font-size: 12px;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 10px;
    }
    
    .scroll-mouse {
        width: 22px;
        height: 35px;
    }
    
    .hero-sound-toggle {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Hide particles on mobile for performance */
    .hero-particles {
        display: none;
    }
    
    /* ==================== Section Headers ==================== */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .section-label {
        font-size: 11px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }
    
    .section-description {
        font-size: 16px;
        margin-top: 10px;
    }
    
    /* ==================== Content Sections ==================== */
    .content-text .lead {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .content-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .image-wrapper {
        border-radius: 15px;
    }
    
    /* ==================== Buttons ==================== */
    .btn {
        padding: 12px 25px;
        font-size: 14px;
        gap: 8px;
    }
    
    .btn i {
        font-size: 14px;
    }
    
    /* ==================== Products Section ==================== */
    .product-card {
        border-radius: 15px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .product-info p {
        font-size: 13px;
    }
    
    .section-cta {
        margin-top: 35px;
    }
    
    /* ==================== Quality Features Slider ==================== */
    .feature-text h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .feature-text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    .slider-controls {
        gap: 20px;
        margin-top: 35px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .slider-dots {
        gap: 12px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 12px;
        height: 12px;
    }
    
    .slider-progress {
        margin-top: 25px;
    }
    
    /* ==================== Distributor CTA ==================== */
    .distributor-cta::before,
    .work-with-us::before {
        backdrop-filter: blur(3px);
    }
    
    .cta-content {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .cta-text h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .cta-text p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .cta-action {
        margin-top: 20px;
    }
    
    /* ==================== Work With Us ==================== */
    .work-content h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .work-content p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 25px;
    }
    
    /* ==================== Partners Section ==================== */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-logo {
        padding: 25px;
        border-radius: 12px;
    }
    
    .partner-logo img {
        max-width: 120px;
    }
    
    /* ==================== Contact Section ==================== */
    .contact-card {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .contact-icon i {
        font-size: 24px;
    }
    
    .contact-details h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .contact-details p,
    .contact-details a {
        font-size: 14px;
    }
    
    .map-wrapper {
        border-radius: 15px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .map-link {
        font-size: 12px;
        padding: 10px 18px;
        bottom: 15px;
        right: 15px;
    }
    
    .contact-cta {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .contact-cta h3 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .contact-cta p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .social-links {
        gap: 12px;
        margin-bottom: 30px;
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .newsletter-cta {
        padding-top: 25px;
    }
    
    .newsletter-cta h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .newsletter-form-inline {
        gap: 12px;
    }
    
    .newsletter-input-inline {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    /* ==================== Footer ==================== */
    .main-footer {
        padding-top: 60px;
    }
    
    .footer-top {
        padding-bottom: 40px;
        gap: 30px;
    }
    
    .footer-column h3,
    .footer-column h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-about .footer-logo img {
        height: 40px;
    }
    
    .footer-about p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .footer-social {
        gap: 12px;
        justify-content: center;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-links ul {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .contact-info li {
        font-size: 14px;
    }
    
    .contact-info i {
        font-size: 14px;
        min-width: 18px;
    }
    
    .footer-newsletter p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .newsletter-input {
        padding: 12px 50px 12px 18px;
        font-size: 13px;
    }
    
    .newsletter-btn {
        width: 40px;
        height: 40px;
        right: 4px;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        font-size: 13px;
    }
    
    
    
    
    
    /* ==================== Scroll to Top Button ==================== */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
    
    /* ==================== Notification System ==================== */
    .notification {
        max-width: 90%;
        left: 5%;
        right: 5%;
        margin: 0 auto;
        padding: 15px;
    }
    
    .notification-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .notification-message {
        font-size: 14px;
    }
}

/* ==================== Extra Small Mobile (up to 375px) ==================== */
@media (max-width: 375px) {
    .hero-title-main {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero-badges {
        max-width: 100%;
    }
    
    .badge-item {
        max-width: 100%;
        padding: 8px 12px;
    }
    
    .badge-item span {
        font-size: 11px;
    }
    
    .cta-text h2 {
        font-size: 24px;
    }
    
    .work-content h2 {
        font-size: 28px;
    }
    
    .contact-cta h3 {
        font-size: 22px;
    }
}

/* ==================== Landscape Orientation (Mobile) ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .hero-sound-toggle {
        bottom: 15px;
        right: 15px;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .main-header,
    .mobile-menu-overlay,
    .hero-sound-toggle,
    .scroll-to-top,
    .hero-scroll-indicator,
    .notification {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* ==================== Accessibility Enhancements ==================== */
@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-particles,
    .particle {
        animation: none !important;
    }
}

/* ==================== High Contrast Mode ==================== */
@media (prefers-contrast: high) {
    :root {
        --color-border: rgba(255, 255, 255, 0.3);
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link,
    .footer-links a {
        text-decoration: underline;
    }
}


/* ==================== Mobile Menu Fixes ==================== */
@media (max-width: 968px) {
    /* Ensure mobile menu is above everything */
    .mobile-menu-overlay {
        position: fixed;
        z-index: 9999;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu-content {
        position: relative;
        height: 100%;
        overflow-y: auto;
    }
    
    /* Make close button more tappable */
    .mobile-menu-close {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix hamburger menu button */
    .mobile-menu-toggle {
        z-index: 1001;
        cursor: pointer;
        padding: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* ==================== Fix Container Overflow ==================== */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix hero content overflow */
    .hero-inner {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Fix badge overflow */
    .hero-badges {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Fix CTA buttons */
    .hero-cta {
        width: 100%;
        padding: 0 10px;
    }
    
    .btn-hero {
        max-width: 100%;
        width: 100%;
    }
}

/* ==================== Dark Mode (System Preference) ==================== */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add overrides if needed */
}