/* Custom Styles Override - Green Home Decor Theme */

/* ========================================
   1. CUSTOM ANIMATIONS (Subtle & Elegant)
   ======================================== */

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

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Subtle hover lift */
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Green glow animation */
@keyframes green-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(22, 163, 74, 0.5); }
}

/* ========================================
   2. FLOATING NAVIGATION
   ======================================== */

app-header {
    position: fixed !important;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 1280px;
}

@media (min-width: 768px) {
    app-header {
        top: 20px;
        width: 92%;
    }
}

/* ========================================
   2.1 HEADER - GREEN THEME
   ======================================== */

app-header header {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #BBF7D0 !important;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.08);
}

app-header header:hover {
    border-color: #16A34A !important;
}

/* ========================================
   3. MOBILE MENU
   ======================================== */

#mobile-menu-overlay {
    backdrop-filter: blur(8px);
}

#mobile-menu {
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(240, 253, 244, 0.98) 50%,
        rgba(232, 253, 245, 0.98) 100%);
}

#mobile-menu .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* ========================================
   4. BODY & CONTENT ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
    body > main,
    main {
        margin-top: 84px !important;
    }

    #banner-section {
        margin-top: 84px !important;
    }
}

/* ========================================
   5. CARD STYLING - MINIMAL & CLEAN
   ======================================== */

.fashion-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fashion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16A34A, #22C55E);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fashion-card:hover::before {
    transform: scaleX(1);
}

.fashion-card:hover {
    border-color: #BBF7D0;
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.08);
    transform: translateY(-2px);
}

/* Dark card variant - green themed */
.dark-card {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-card:hover {
    border-color: #16A34A;
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.12);
}

/* ========================================
   6. BUTTON STYLING - MINIMAL & BOLD
   ======================================== */

.fashion-button {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    letter-spacing: 0.025em;
}

.fashion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.fashion-button:hover::before {
    left: 100%;
}

.fashion-button:hover {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
    transform: translateY(-1px);
}

.fashion-button:active {
    transform: translateY(0);
}

/* Outlined button variant */
.fashion-button-outline {
    background: transparent;
    color: #16A34A;
    font-weight: 600;
    padding: 14px 28px;
    border: 1.5px solid #16A34A;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fashion-button-outline:hover {
    background: #16A34A;
    color: #ffffff;
}

/* ========================================
   7. FORM INPUTS - CLEAN & FOCUSED
   ======================================== */

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    transition: all 0.25s ease;
    border: 1.5px solid #E5E7EB;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #9CA3AF;
}

/* ========================================
   8. TEXT STYLES - TYPOGRAPHY FOCUS
   ======================================== */

.heading-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.body-text {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* ========================================
   9. GRADIENT TEXT (Subtle)
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   10. SWIPER CUSTOMIZATION
   ======================================== */

.swiper-button-next,
.swiper-button-prev {
    color: #16A34A !important;
}

.swiper-pagination-bullet-active {
    background: #16A34A !important;
}

/* ========================================
   11. SCROLLBAR - MINIMAL
   ======================================== */

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ========================================
   12. BANNER SECTION - HERO STYLE
   ======================================== */

.banner-enhanced {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.9) 0%, rgba(21, 128, 61, 0.85) 100%);
    border: 1px solid #BBF7D0;
    backdrop-filter: blur(12px);
}

/* ========================================
   13. SERVICE CARDS
   ======================================== */

.service-card {
    background: #FFFFFF;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #16A34A;
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.1);
}

.service-card .bg-black {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%) !important;
}

/* ========================================
   14. GLOW EFFECTS (Green)
   ======================================== */

.glow-on-hover:hover {
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   15. CYBER CARD (Legacy - Mapped to fashion-card)
   ======================================== */

.cyber-card {
    background: #FFFFFF;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.05);
}

.cyber-card:hover {
    border-color: #22C55E;
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.1);
    transform: translateY(-2px);
}

/* Dark variant - green themed */
body.text-gray-100 .cyber-card,
body[class*="dark"] .cyber-card {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

body.text-gray-100 .cyber-card:hover,
body[class*="dark"] .cyber-card:hover {
    border-color: #16A34A;
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.15);
}

/* ========================================
   16. CYBER BUTTON (Legacy - Mapped to fashion-button)
   ======================================== */

.cyber-button {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cyber-button:hover {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
}

/* ========================================
   17. GRID LAYOUTS
   ======================================== */

.asym-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* ========================================
   18. ANIMATION CLASSES
   ======================================== */

.fade-in-up {
    animation: fade-in 0.5s ease forwards;
}

.slide-up {
    animation: slide-up 0.5s ease forwards;
}

.scale-in {
    animation: scale-in 0.3s ease forwards;
}

/* ========================================
   19. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .asym-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    app-header .container {
        padding: 0 0.75rem;
    }

    app-header .text-3xl {
        font-size: 1.5rem;
    }

    #banner-section h2 {
        font-size: 2rem;
    }

    #services .service-card {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .fashion-button,
    .cyber-button {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .cyber-card,
    .fashion-card {
        padding: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .service-card .w-16 {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
    }
}

/* ========================================
   20. ACCESSIBILITY - REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .slide-up,
    .scale-in,
    .animate-bounce,
    .animate-float {
        animation: none;
    }

    .glow-on-hover:hover {
        transform: none;
    }

    .cyber-card:hover,
    .fashion-card:hover {
        transform: none;
    }
}

/* ========================================
   21. ERROR STATES
   ======================================== */

input.border-red-500,
textarea.border-red-500 {
    border-color: #DC2626 !important;
}

.text-red-500 {
    color: #DC2626;
}

/* ========================================
   22. SELECT DROPDOWN ARROWS
   ======================================== */

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ========================================
   23. BOX SHADOW UTILITIES
   ======================================== */

.shadow-fashion {
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.1);
}

.shadow-fashion-lg {
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.12);
}

/* ========================================
   24. BORDER UTILITIES
   ======================================== */

.border-minimal {
    border: 1px solid #E5E7EB;
}

.border-minimal-dark {
    border: 1px solid #1F1F1F;
}

/* ========================================
   25. HOVER LINK STYLES
   ======================================== */

a.hover-underline {
    position: relative;
}

a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

a.hover-underline:hover::after {
    width: 100%;
}
