/* AGN Pompa Custom Styles - Tailwind CSS handles most styling */

/* Custom CSS Variables for AGN Pompa Brand Colors */
:root {
    --agn-primary: #16a7b7;
    --agn-primary-dark: #138a96;
    --agn-primary-light: #4db8c7;
    --agn-primary-lighter: #7bc8d3;
    --agn-primary-lightest: #a8d8df;
    --agn-secondary: #2c3e50;
    --agn-accent: #e74c3c;
    --agn-success: #27ae60;
    --agn-warning: #f39c12;
    --agn-neutral: #34495e;
}

/* Custom Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Mobile Menu Animation */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.show {
    display: block !important;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Hamburger Animation */
.hamburger-icon {
    transition: all 0.3s ease;
}

.close-icon {
    transition: all 0.3s ease;
}

.mobile-menu-button.active .hamburger-icon {
    display: none;
}

.mobile-menu-button.active .close-icon {
    display: block;
}

/* Custom Slider Styles */
.slide.active {
    opacity: 1 !important;
}

.slider-dot.active {
    background: white !important;
    transform: scale(1.2);
}

/* Custom Button Hover Effects */
.btn-custom {
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 167, 183, 0.3);
}

/* Custom Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Custom Icon Animations */
.icon-bounce {
    transition: all 0.3s ease;
}

.icon-bounce:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Custom Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--agn-primary) 0%, var(--agn-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Shadow Effects */
.shadow-agn {
    box-shadow: 0 10px 30px rgba(22, 167, 183, 0.15);
}

.shadow-agn-lg {
    box-shadow: 0 20px 40px rgba(22, 167, 183, 0.2);
}

/* Custom Border Radius */
.rounded-agn {
    border-radius: 20px;
}

.rounded-agn-lg {
    border-radius: 30px;
}

/* Custom Spacing */
.spacing-agn {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .spacing-agn {
        padding: 4rem 0;
    }
}

/* Custom Typography */
.text-agn-primary {
    color: var(--agn-primary);
}

.text-agn-secondary {
    color: var(--agn-secondary);
}

/* Custom Background Gradients */
.bg-agn-gradient {
    background: linear-gradient(135deg, var(--agn-primary) 0%, var(--agn-primary-light) 50%, var(--agn-primary-dark) 100%);
}

.bg-agn-gradient-light {
    background: linear-gradient(135deg, var(--agn-primary-light) 0%, var(--agn-primary-lighter) 100%);
}

/* Custom Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--agn-primary-light);
    border-top: 4px solid var(--agn-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--agn-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--agn-primary-dark);
}

/* Custom Focus States */
.focus-agn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 167, 183, 0.3);
}

/* Custom Selection */
::selection {
    background: var(--agn-primary-light);
    color: white;
}

::-moz-selection {
    background: var(--agn-primary-light);
    color: white;
}

/* Custom Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Custom Utility Classes */
.container-agn {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-agn {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-agn {
        padding: 0 2rem;
    }
}

/* Custom Grid Utilities */
.grid-agn {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-agn {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-agn {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Custom Flexbox Utilities */
.flex-agn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.flex-agn-col {
    flex-direction: column;
}

@media (min-width: 768px) {
    .flex-agn-col {
        flex-direction: row;
    }
}

/* Custom Text Utilities */
.text-agn-balance {
    text-wrap: balance;
}

.text-agn-pretty {
    text-wrap: pretty;
}

/* Custom Aspect Ratio */
.aspect-agn {
    aspect-ratio: 16/9;
}

.aspect-agn-square {
    aspect-ratio: 1/1;
}

/* Custom Backdrop Utilities */
.backdrop-agn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.backdrop-agn-dark {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile Viewport Height Fix */
@media (max-width: 640px) {
    #home {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    #home {
        height: -webkit-fill-available !important;
        min-height: -webkit-fill-available !important;
    }
}

/* Dynamic viewport height support */
@supports (height: 100dvh) {
    #home {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }
}