/**
 * Custom CSS for hypermodern dark design
 * Glassmorphism, gradients, subtle shadows, dark theme
 */

/* Dark theme base */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: #e2e8f0;
}

/* Hero noise overlay (optimized) */
.hero-noise {
    position: relative;
}

.hero-noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Glassmorphism cards - dark theme */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes slide-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

/* Focus styles for accessibility - dark theme */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast for better accessibility */
a:hover {
    text-decoration: underline;
}

/* Nav scroll effect - dark theme */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Subtle gradients - dark theme */
.gradient-subtle {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
}

.gradient-subtle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

.accordion-content.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* Mail body styling - reduce line spacing */
.mail-body br {
    line-height: 1.2;
    margin: 0;
}

.mail-body {
    line-height: 1.5;
}

/* Dark theme text colors */
.text-gray-900 {
    color: #f1f5f9 !important;
}

.text-gray-800 {
    color: #e2e8f0 !important;
}

.text-gray-700 {
    color: #cbd5e1 !important;
}

.text-gray-600 {
    color: #94a3b8 !important;
}

.text-gray-500 {
    color: #64748b !important;
}

/* Dark theme backgrounds */
.bg-white {
    background-color: #1e293b !important;
}

.bg-gray-50 {
    background-color: #1e293b !important;
}

.bg-gray-100 {
    background-color: #334155 !important;
}

.bg-gray-200 {
    background-color: #475569 !important;
}

/* Dark theme borders */
.border-gray-200 {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.border-gray-300 {
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Accent colors for buttons and links */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
}
