/**
 * Custom Styles for Haszler e.U. Website
 * Theme: Minimalist Black & White (Elegant, Simple)
 */

/* ===== CSS Variables - Theme Colors ===== */
:root {
    /* Midnight Navy Theme Palette */
    --color-midnight: #0B1120;
    --color-azure: #3B82F6;
    --color-amber: #D97706;
    --color-emerald: #10B981;
    --color-slate-100: #F1F5F9;

    /* Semantic Colors */
    --bg-primary: var(--color-midnight);
    --bg-secondary: #161E2E;
    /* Slightly lighter navy for cards */
    --bg-tertiary: #1E293B;
    /* Even lighter for hover/inputs */
    --border-color: #334155;

    /* Text */
    --text-primary: var(--color-slate-100);
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Brand & Accents */
    --color-highlight: var(--color-azure);
    /* Primary Buttons / CTA */
    --color-accent: var(--color-amber);
    /* Secondary / Badges */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ===== Dark Mode Variables ===== */


/* ===== Base Styles ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    /* Slightly reduced weight for elegance */
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    /* Tighten tracking for modern look */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* Removed Gradient Text - Replaced with solid high contrast */
/* Gradient Text - Restored for premium feel */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-azure) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Removed underline effect for simpler look */
.nav-link::after {
    display: none;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 80vh;
    /* Reduced height slightly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
}

/* Minimalist Background - removed patterns/glows */
/* Background Effects */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-azure) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 0;
    animation: pulseGlow 10s infinite alternate;
}

.hero-glow-1 {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--color-azure) 0%, transparent 70%);
}

.hero-glow-2 {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--color-amber) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

/* ===== Cards ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Remove gradient borders/glows on hover for cleaner look */
.card:hover {
    transform: translateY(-2px);
    border-color: var(--text-muted);
    box-shadow: var(--shadow-lg);
}



.glass-card {
    background: rgba(22, 30, 46, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    color: var(--color-highlight);
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
}

/* App Card */
.app-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .app-card {
        flex-direction: row;
        align-items: center;
    }
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    /* More pill-shaped for modern feel */
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Primary: Black btn, White text (Light mode) */
.btn-primary {
    background: var(--color-highlight);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

/* Secondary: Outline/Ghost style */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.btn-playstore {
    background: var(--color-highlight);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-playstore:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.btn-playstore img {
    height: 32px;
}

/* ===== Sections ===== */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    /* Slightly narrower for readability */
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

/* ===== Grid Layouts ===== */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-apps {
    display: grid;
    gap: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ===== UI Elements ===== */
.lang-selector,
.nav-menu-dropdown {
    position: relative;
}

.lang-toggle,
.nav-menu-btn,
#mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    padding: 0.5rem;
}

.lang-dropdown,
.nav-menu-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 180px;
    z-index: 50;
    animation: fadeInDown 0.2s ease-out;
}

.lang-option,
.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.lang-option:last-child,
.nav-menu-item:last-child {
    border-bottom: none;
}

.lang-option:hover,
.nav-menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ===== Nap Type Cards & Others ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-premium,
.badge-pro {
    background: var(--color-accent);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-free {
    background: var(--color-emerald);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    /* Much lighter blue for readability */
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-feature {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.surface-tertiary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

/* Utility */
.text-primary {
    color: var(--color-highlight) !important;
}

/* Restore some utility logic if needed, but keeping it minimal */
.text-slate-200 {
    color: var(--text-primary) !important;
}

.text-slate-400 {
    color: var(--text-muted) !important;
}

.text-slate-500 {
    color: var(--text-muted) !important;
}

.text-slate-300 {
    color: var(--text-secondary) !important;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reset specific tailwind color behaviors that might conflict */
.bg-gradient-to-br {
    background: var(--text-primary) !important;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}