/* CSS Variables - matching debstream.cz_astro global.css */
:root {
    /* Brand colors from Astro design system */
    --primary: #2563eb;                    /* Brand blue */
    --primary-foreground: #ffffff;          /* White text on blue */
    --secondary: #f1f5f9;                   /* Light gray */
    --secondary-foreground: #2563eb;        /* Blue text on light */
    
    /* Base colors */
    --background: #ffffff;                  /* White background */
    --foreground: #1e293b;                  /* Dark text */
    --muted: #f8fafc;                       /* Very light gray */
    --muted-foreground: #64748b;            /* Medium gray text */
    
    /* Interactive elements */
    --accent: #f1f5f9;                      /* Light accent */
    --accent-foreground: #2563eb;           /* Blue accent text */
    --border: #e2e8f0;                      /* Light border */
    --input: #e2e8f0;                       /* Input border */
    --ring: #3b82f6;                        /* Focus ring */
    
    /* Component colors */
    --card: #ffffff;                        /* Card background */
    --card-foreground: #1e293b;             /* Card text */
    
    /* Custom brand additions */
    --brand-primary: #2563eb;               /* Main brand blue */
    --brand-dark: #1d4ed8;                  /* Darker blue for hovers */
    --brand-light: #f8f8f8;                 /* Off-white */
    --text-dark: #252525;                   /* Dark gray */
    --white: #f8f8f8;                       /* Off-white from original */
    
    /* Layout */
    --radius: 0.625rem;                     /* 10px border radius */
    
    /* Animation and effects */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    --transition: all 0.3s ease;
}

/* Dark theme - matching debstream.cz_astro */
body.dark {
    /* Brand colors for dark theme */
    --primary: #3b82f6;                    /* Brighter blue for dark */
    --primary-foreground: #ffffff;          /* White text on blue */
    --secondary: #1e293b;                   /* Dark slate */
    --secondary-foreground: #60a5fa;        /* Light blue text */
    
    /* Base colors for dark theme */
    --background: #0f172a;                  /* Dark slate background */
    --foreground: #f1f5f9;                  /* Light text */
    --muted: #1e293b;                       /* Dark muted background */
    --muted-foreground: #94a3b8;            /* Light gray text */
    
    /* Interactive elements for dark theme */
    --accent: #334155;                      /* Medium slate accent */
    --accent-foreground: #60a5fa;           /* Light blue accent text */
    --border: #334155;                      /* Medium slate border */
    --input: #334155;                       /* Input border */
    --ring: #60a5fa;                        /* Light blue focus ring */
    
    /* Component colors for dark theme */
    --card: #1e293b;                        /* Dark card background */
    --card-foreground: #f1f5f9;             /* Light card text */
    
    /* Custom brand additions for dark theme */
    --brand-primary: #3b82f6;               /* Brighter blue for dark */
    --brand-dark: #1e40af;                  /* Darker blue for hovers */
    --brand-light: #f8f8f8;                 /* Off-white */
    --text-dark: #f1f5f9;                   /* Light text for dark theme */
    --white: #f8f8f8;                       /* Consistent off-white */
    
    /* Updated shadows for dark theme */
    --shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 15px 40px rgba(255, 255, 255, 0.15);
}

/* Typography - following debstream.cz_astro pattern */
body {
    font-family: 'Poppins', sans-serif; /* Primary font in astro */
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--foreground);
    transition: var(--transition);
    overflow-x: hidden;
}

.font-jura {
    font-family: 'Jura', sans-serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin: 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: var(--foreground);
}

h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--foreground);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--muted-foreground);
}

/* Layout */
.container {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.logo {
    width: 45px;
    height: 45px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.logo-black {
    fill: var(--foreground);
    display: block;
}

.logo-white {
    fill: #ffffff;
    display: none;
}

body.dark .logo-black {
    display: none;
}

body.dark .logo-white {
    display: block;
}

.logo-white .cls-1 {
    fill: #ffffff;
}

.logo:hover .logo-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(37, 99, 235, 0.3));
}

.theme-toggle {
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: var(--foreground);
}

.theme-toggle:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.1);
}

.theme-toggle:focus {
    outline: none;
    background: var(--secondary);
    color: var(--foreground);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle .bi-sun-fill {
    display: none;
}

body.dark .theme-toggle .bi-sun {
    display: none;
}

body.dark .theme-toggle .bi-sun-fill {
    display: block;
}

/* Hero Section - inspired by debstream.cz_astro HeroSection.jsx */
.hero-section {
    padding: 6rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

/* Coming Soon Badge - Enhanced */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    animation: enhanced-pulse 4s ease-in-out infinite;
    box-shadow: 
        0 8px 32px rgba(37, 99, 235, 0.4),
        0 0 0 0 rgba(37, 99, 235, 0.7);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.coming-soon-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 5s infinite;
}

.coming-soon-badge i {
    font-size: 1.3rem;
    animation: tick 2s ease-in-out infinite alternate;
}

body.dark .coming-soon-badge {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.5),
        0 0 0 0 rgba(59, 130, 246, 0.8);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    line-height: 1.1;
}

.hero-title .title-main {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

/* Ensure proper contrast in light/dark modes */
body:not(.dark) .hero-title .title-main {
    color: #111827 !important; /* gray-900 equivalent - dark text for light mode */
}

body.dark .hero-title .title-main {
    color: #f9fafb !important; /* gray-50 equivalent - light text for dark mode */
}

.title-highlight {
    display: block;
    color: var(--brand-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    background: var(--muted);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Center features when there are 3 items but only space for 2 columns */
@media screen and (min-width: 601px) and (max-width: 999px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(300px, 400px));
        justify-content: center;
    }
    
    /* If there are 3 features, center the last one */
    .feature-card:nth-child(3):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 400px;
    }
}

.feature-card {
    background: var(--muted);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
    background: var(--background);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--background);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--muted-foreground);
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--muted);
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
    font-weight: 600;
    min-width: 150px;
    justify-content: center;
}

.contact-link:hover {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-link i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--muted);
    color: var(--foreground);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.social-link:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--brand-primary);
}

/* Background Canvas */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes enhanced-pulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(37, 99, 235, 0.4),
            0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 12px 40px rgba(37, 99, 235, 0.6),
            0 0 0 12px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(37, 99, 235, 0.4),
            0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes tick {
    0% {
        transform: rotate(-3deg);
    }
    100% {
        transform: rotate(3deg);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 30px rgba(37, 117, 221, 0.3);
    }
    100% {
        text-shadow: 0 0 40px rgba(37, 117, 221, 0.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media screen and (max-width: 1000px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0 6rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
    }
    
    .feature-card {
        max-width: 400px;
    }
}

@media screen and (max-width: 600px) {
    .header {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .coming-soon-badge {
        font-size: 1rem;
    }

    .btn-outline, .btn-primary {
        padding: 1rem 0rem;
    }

    .contact-link {
        padding: 1rem 0;
    }

    .contact-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .services-section, .contact-section {
        padding: 4rem 1rem;
    }
}