/* Custom styles for IqBox Frontend Homepage */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Layout helpers */
.nav-container {
    position: relative;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Section animations */
.section {
    animation: fadeIn 0.8s ease-in-out;
}

/* Hero section hover effects */
.hero a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

/* Feature cards hover effects */
#features > div > div > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* Button hover effects */
button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    .nav-container {
        padding: 0 1rem !important;
    }
}

/* Mobile menu toggle (if needed) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
}

.nav-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .nav-mobile-only {
        display: block;
    }

    /* Hide desktop buttons on mobile */
    .nav-actions {
        display: none;
    }
}

/* Benefits layout fix to avoid horizontal scroll on mobile */
#benefits .benefits-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    #benefits .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact form layout */
#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    #contact .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.shadow-medium {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.shadow-strong {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Accessibility improvements */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .footer, #contact {
        display: none;
    }
}
