/* Responsive */
@media (max-width: 1024px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(0, 0, 0, 0.35);
        margin-right: 0.75rem;
    }

    header {
        padding: 0.75rem 0 !important;
    }

    .header-container {
        width: 90%;
        gap: 1rem;
        justify-content: space-between;
    }

    header .logo {
        justify-content: flex-start;
    }

    header .logo img {
        height: 70px;
    }

    header.menu-open nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: fixed;
        top: 80px;
        left: 1.5rem;
        right: 1.5rem;
        background: rgba(0, 0, 0, 0.92);
        padding: 1.75rem;
        border-radius: 16px;
        z-index: 1100;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    header.menu-open nav a {
        color: #fff;
        font-size: 1.1rem;
        width: 100%;
    }

    header.menu-open nav a:hover {
        color: var(--primary-color);
    }

    header.menu-open .nav-dropdown {
        width: 100%;
        align-items: flex-start;
    }

    header.menu-open .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    header.menu-open .dropdown-toggle::after {
        display: none;
    }

    header.menu-open .dropdown-menu {
        display: flex !important;
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 0 0.25rem;
        gap: 0;
        width: 100%;
    }

    header.menu-open .dropdown-menu a {
        padding: 0.45rem 0 0.45rem 1.5rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
    }

    header.menu-open .dropdown-menu a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .header-buttons,
    .btn-phone {
        display: none;
    }

    .mobile-phone {
        display: block;
        color: #fff;
        font-weight: 600;
        letter-spacing: 0.04em;
        background: rgba(0, 0, 0, 0.4);
        padding: 0.45rem 0.8rem;
        border-radius: 999px;
        font-size: 0.95rem;
    }

    /* Center universes section for tablet */
    #universes .container-fluid {
        width: 90%;
        margin: 0 auto;
    }

    .universes-grid {
        justify-content: center;
        gap: 2rem;
    }

    .universe-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    /* Center the last card */
    .universe-card:nth-child(5) {
        margin-left: auto;
        margin-right: auto;
    }

    .category-header,
    .dark-category {
        padding: 3.5rem 2.5rem;
        gap: 2.5rem;
    }

    .category-info,
    .dark-category .category-info {
        text-align: center;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .product-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-tabs .tab-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .product-title {
        text-align: center;
    }

    .product-description {
        text-align: center;
    }

    .product-link-btn {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-container {
        width: 90%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(0, 0, 0, 0.122);
        margin-right: 0.5rem;
    }

    .mobile-phone {
        display: block;
        color: #fff;
        font-weight: 600;
        letter-spacing: 0.04em;
        background: rgba(0, 0, 0);
        padding: 0.45rem 0.8rem;
        border-radius: 999px;
        font-size: 0.95rem;
    }

    header {
        padding: 0.75rem 0 !important;
    }

    .header-container {
        width: 90%;
        gap: 1rem;
        justify-content: space-between;
    }

    header .logo {
        justify-content: flex-start;
    }

    header .logo img {
        height: 70px;
    }

    header.menu-open nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: fixed;
        top: 80px;
        left: 1.5rem;
        right: 1.5rem;
        background: rgba(0, 0, 0, 0.92);
        padding: 1.75rem;
        border-radius: 16px;
        z-index: 1100;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    header.menu-open nav a {
        color: #fff;
        font-size: 1.1rem;
        width: 100%;
    }

    header.menu-open nav a:hover {
        color: var(--primary-color);
    }

    header.menu-open .nav-dropdown {
        width: 100%;
        align-items: flex-start;
    }

    header.menu-open .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    header.menu-open .dropdown-toggle::after {
        display: none;
    }

    header.menu-open .dropdown-menu {
        display: flex !important;
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 0 0.25rem;
        gap: 0;
        width: 100%;
    }

    header.menu-open .dropdown-menu a {
        padding: 0.45rem 0 0.45rem 1.5rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
    }

    header.menu-open .dropdown-menu a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .hero {
        height: 60vh;
    }

    .hero::after {
        height: 90px;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath d='M0,150 L0,0 Q720,90 1440,0 L1440,150 Z' fill='white'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath d='M0,150 L0,0 Q720,90 1440,0 L1440,150 Z' fill='white'/%3E%3C/svg%3E");
    }

    .category-header,
    .dark-category {
        flex-direction: column;
        min-height: auto;
    }

    .product-image-container {
        flex: 1;
        width: 100%;
        min-height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info h2 {
        text-align: center;
    }

    .contact-info p {
        text-align: center;
    }

    .contact-phone-cta {
        flex-direction: row;
        padding: 0.5rem 1rem;
    }

    .phone-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .phone-number {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-modal-close {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    /* Center universes section for mobile */
    #universes .container-fluid {
        width: 90%;
    }

    .universes-grid {
        justify-content: center;
    }

    .universe-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .container-fluid {
        width: 90%;
    }

    .category-header,
    .dark-category {
        padding: 2.75rem 1.75rem;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .product-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .product-tabs .tab-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .product-image-container {
        margin-top: 1.5rem;
    }

    .product-link-btn {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    .contact-container {
        width: 90%;
        gap: 1rem !important;
    }

    footer {
        padding: 1.25rem 0;
    }

    .footer-content {
        width: 90%;
        gap: 1.25rem;
    }

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

    .footer-title {
        font-size: 0.95rem;
    }

    .copyright {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 0 !important;
    }

    .header-container {
        width: 90%;
    }

    .mobile-phone {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    header .logo img {
        height: 54px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 18px;
    }

    .category-header,
    .dark-category {
        padding: 2.2rem 1.25rem;
        gap: 1.5rem;
        min-height: auto;
    }

    .product-tabs {
        gap: 0.6rem;
    }

    .product-tabs .tab-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .product-image-container {
        min-height: 300px;
    }

    .contact-phone-cta {
        flex-direction: row;
        align-items: center;
        text-align: center;
    }

    .phone-number {
        font-size: 1.4rem;
    }

    .modal-content {
        padding: 1.75rem 1.25rem;
    }

    .modal-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .btn-modal-close {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .product-link-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .contact-container {
        width: 90%;
        gap: 1rem !important;
    }

    footer {
        padding: 1rem 0;
    }

    .footer-content {
        width: 90%;
        gap: 1rem;
    }

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

    .footer-title {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}