/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    /* Hero Section Mobile Optimization */
    .hero-section {
        height: auto;
        min-height: 500px;
        padding-top: 5rem;
        padding-bottom: 2rem;
        display: flex;
        align-items: center;
    }
    
    #home .max-w-3xl {
        text-align: center;
        padding: 0 1rem;
        width: 100%;
    }
    
    #home h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        display: block;
        width: 100%;
        color: var(--text-color);
    }
    
    #home h1 span {
        display: inline-block;
    }
    
    #home .relative.z-10 {
        position: relative;
        z-index: 10;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #home p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        display: block;
        width: 100%;
    }
    
    #home .flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* Product Section Mobile Optimization */
    #activation .full-width-slider {
        height: auto;
        min-height: 600px;
    }

    #activation .slide {
        height: 100%;
    }

    #activation .grid.grid-cols-2 {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #activation .slide img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        order: -1;
    }

    #activation .slide > div:last-child {
        padding: 1.5rem;
        background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.98));
    }

    #activation .slide .text-center {
        max-width: 100%;
        margin: 0 auto;
    }

    #activation .slide h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #activation .slide p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    #activation .slide .flex.items-center {
        justify-content: center;
    }

    /* Enhanced Mobile Navigation */
    #mobile-menu {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-menu.active {
        transform: translateY(0);
    }

    #mobile-menu .flex {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-menu.active .flex {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-menu a {
        position: relative;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 80%;
        max-width: 300px;
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobile-menu.active a {
        opacity: 1;
        transform: translateX(0);
    }

    #mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
    #mobile-menu a:nth-child(2) { transition-delay: 0.2s; }
    #mobile-menu a:nth-child(3) { transition-delay: 0.3s; }
    #mobile-menu a:nth-child(4) { transition-delay: 0.4s; }
    #mobile-menu a:nth-child(5) { transition-delay: 0.5s; }

    #mobile-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    #mobile-menu a:active {
        transform: scale(0.95);
    }

    #mobile-menu .group:hover svg {
        transform: translateX(5px);
    }

    #mobile-menu svg {
        transition: transform 0.3s ease;
    }

    /* Menu Button Animation */
    #menu-button span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #menu-button.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    #menu-button.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #menu-button:hover span {
        background: var(--primary-color);
    }
}

@media (max-width: 640px) {
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .w-full-mobile {
        width: 100%;
    }
    
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-4-mobile {
        margin-bottom: 1rem;
    }
    
    /* Hero Section Further Mobile Optimization */
    #home h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
        margin-top: 0;
    }
    
    #home .hero-section {
        padding-top: 4rem;
        padding-bottom: 1.5rem;
        min-height: 450px;
    }
    
    #home p {
        font-size: 1rem;
    }
    
    /* Product Section Further Mobile Optimization */
    #activation .full-width-slider {
        min-height: 520px;
    }

    #activation .slide img {
        height: 220px;
    }

    #activation .slide > div:last-child {
        padding: 1rem;
    }

    #activation .slide h3 {
        font-size: 1.75rem;
    }

    #activation .slide p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Adjust slider navigation dots position */
    #services .slider .absolute.bottom-4 {
        bottom: 0.5rem;
    }

    /* Services Section Spacing Fix */
    #services {
        padding-top: 2rem;
    }

    /* Mobile Menu Refinements */
    #mobile-menu a {
        width: 90%;
        padding: 0.875rem;
        margin: 0.375rem 0;
    }

    #mobile-menu .text-2xl {
        font-size: 1.25rem;
    }

    #mobile-menu svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

.fixed.inset-0.bg-gray-900\/95 {
    transition: all 0.5s ease-in-out;
}

#mobile-menu {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Enhanced mobile menu links */
#mobile-menu a {
    position: relative;
    transition: all 0.4s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 0.5rem 0;
    width: 100%;
    max-width: 300px;
}

#mobile-menu a:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

#mobile-menu a:hover::before {
    width: 10px;
}

/* Enhanced menu button */
#menu-button {
    position: relative;
    z-index: 50;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#menu-button:hover {
    transform: scale(1.1);
}

#menu-button span {
    transition: all 0.3s ease;
}

#menu-button.active span:first-child {
    transform: translateY(10px) rotate(45deg);
}

#menu-button.active span:nth-child(2) {
    opacity: 0;
}

#menu-button.active span:last-child {
    transform: translateY(-10px) rotate(-45deg);
}

/* SVG icon animations */
#mobile-menu svg {
    transition: all 0.3s ease;
}

#mobile-menu a:hover svg {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px currentColor);
}

/* Group hover effects */
#mobile-menu .group:hover span {
    transform: translateX(8px);
}

/* Add stagger animation for menu items */
#mobile-menu a {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

#mobile-menu:not(.hidden) a {
    animation: slideIn 0.5s ease forwards;
}

#mobile-menu a:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu a:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu a:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu a:nth-child(4) { animation-delay: 0.4s; }
#mobile-menu a:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add pulse effect for active menu items */
#mobile-menu a:active {
    transform: scale(0.98);
    transition: transform 0.2s;
}

/* Enhanced backdrop blur and gradient */
#mobile-menu {
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.98));
}

/* Add subtle border effect */
#mobile-menu a {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu a:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Add glow effect on hover */
#mobile-menu a:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #mobile-menu a {
        font-size: 1.25rem;
        padding: 0.875rem 1.25rem;
        width: 90%;
    }
} 