/* Custom Styles for Die Stromer Website */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom font stack */
body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, system-ui, -apple-system, sans-serif;
}

/* Ensure proper spacing for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Hover effects for service cards */
.hover\:shadow-lg {
    transition: box-shadow 0.3s ease;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #FF8C42 !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}

/* Button hover animation */
button,
a {
    transition: all 0.3s ease;
}

/* Active navigation link */
.nav-active {
    color: #FF8C42;
    font-weight: 600;
}

/* Loader for form submission */
.form-submitting {
    opacity: 0.6;
    pointer-events: none;
}

.form-submitting button[type="submit"] {
    position: relative;
}

.form-submitting button[type="submit"]::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success message styling */
.form-success {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.form-error {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    header,
    #mobile-menu-btn,
    form {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility: Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #FF8C42;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: #FF8C42;
    color: #0A0A0A;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #FF8C42;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E8762D;
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
    }
}

/* Dark theme enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper text selection color for dark theme */
::selection {
    background-color: #FF8C42;
    color: #0A0A0A;
}

::-moz-selection {
    background-color: #FF8C42;
    color: #0A0A0A;
}

/* Add subtle glow effect to primary elements */
.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

/* Form placeholder text color for dark theme */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #B0B0B0;
    opacity: 0.6;
}

/* Form option styling */
option {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

/* Founder cards - independent heights */
.founder-card {
    align-self: start;
}

/* Bio expansion animation */
.bio-full {
    animation: expandBio 0.3s ease-in-out;
}

@keyframes expandBio {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}