/**
 * Landing Pages CSS
 * Gazduire DNS - ITDATA TELECOM SRL
 * Author: Radu Ciurușu
 */

/* ==================== Base Styles ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== Gradient Text ==================== */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Hero Section ==================== */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #4c1d95 100%);
}

/* ==================== Glass Effect ==================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== Animations ==================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==================== Pattern Backgrounds ==================== */
.pattern-dots {
    background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dark .pattern-dots {
    background-image: radial-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
}

/* ==================== Feature Cards ==================== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==================== Pricing Cards ==================== */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

/* ==================== Button Styles ==================== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* ==================== Navbar ==================== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .navbar-scrolled {
    background: rgba(17, 24, 39, 0.95);
}

/* ==================== FAQ Accordion ==================== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ==================== Infrastructure Map ==================== */
.map-marker {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ==================== Stats Counter ==================== */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ==================== Scrollbar Styling ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ==================== Selection Styling ==================== */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* ==================== Loading Skeleton ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== Responsive Utilities ==================== */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        text-decoration: underline;
    }
}

/* ==================== Pattern Grid (Service Page) ==================== */
.pattern-grid {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ==================== Service Page Specific ==================== */
.pricing-card.popular {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.pricing-card.popular:hover {
    transform: scale(1.07);
}

/* ==================== Leaflet Map Customization ==================== */
.leaflet-container {
    border-radius: 1rem;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
}

.dark .leaflet-tile {
    filter: brightness(0.8) contrast(1.1);
}
