/* Tailwind Config - Colors & Fonts */
:root {
    --dv-blue: #0F172A;
    --dv-accent: #F59E0B;
    --dv-light: #F8FAFC;
    --dv-grey: #334155;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Background */
.hero-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1565008447742-97f6f38c985c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.products-hero-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1565008447742-97f6f38c985c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.services-hero-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.solutions-hero-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1565514020125-99d63c563e77?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.projects-hero-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1590644365607-1c5a38fc43e0?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

/* Dropdown Styles - Desktop - Smooth Animation with CSS Hover */
.dropdown-group {
    position: relative;
}

/* Base hidden state - uses opacity and transform for smooth animation */
/* JavaScript will remove inline styles, allowing CSS to control visibility */
.dropdown-content {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    overflow: hidden;
}

/* Show on hover - smooth fade in and slide up */
.dropdown-group:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Ensure links inside dropdown work */
.dropdown-content a {
    pointer-events: auto;
    display: block;
}

/* Hide desktop dropdowns on mobile - always hidden */
@media (max-width: 1023px) {
    .dropdown-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Mobile Dropdown Styles */
.mobile-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* MOBILE MENU ANIMATION */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    /* Ensure no padding/border interferes with the collapse */
    display: block !important; 
    opacity: 1 !important;
    visibility: visible !important;
}

/* When the menu is open, we will set a specific max-height via JS */
.mobile-dropdown.active {
    /* Transition is handled by the base class */
}

/* Filter Tab Active State */
.filter-btn.active {
    background-color: #0F172A;
    color: white;
    border-color: #0F172A;
}

/* Modal Styles */
.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Accordion Styles */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.accordion-content.active {
    opacity: 1;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-btn[aria-expanded="true"] {
    background-color: #F8FAFC;
    border-left-color: #F59E0B;
}

/* Card Zoom Effect */
.card-zoom:hover img {
    transform: scale(1.05);
}

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

.group:hover .project-category-icon {
    transform: scale(1.1) rotate(5deg);
    color: #F59E0B;
}

/* Table Styles */
.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: bold;
    color: #475569;
    background-color: #F8FAFC;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E2E8F0;
}

.comparison-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #F1F5F9;
}

.comparison-table tr:hover td {
    background-color: #F8FAFC;
}

.solution-col {
    background-color: #EFF6FF;
    border-left: 2px solid rgba(15, 23, 42, 0.2);
    border-right: 2px solid rgba(15, 23, 42, 0.2);
}

.solution-col-header {
    background-color: #0F172A !important;
    color: white !important;
}

.check-icon {
    color: #10B981;
    font-size: 1.125rem;
}

.cross-icon {
    color: #CBD5E1;
    font-size: 1.125rem;
}

.warn-icon {
    color: #F59E0B;
    font-size: 0.875rem;
}

