/* ===========================
   Variables & Reset
   =========================== */
:root {
    --primary: #ff4444;
    --primary-dark: #cc0000;
    --primary-light: #ff6666;
    --foreground: #ffffff;
    --muted-foreground: rgba(255, 255, 255, 0.7);
    --background: #0a0a0a;
    --card: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 68, 68, 0.3);
    
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   Fixed Parallax Background
   =========================== */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    will-change: transform;
}

.fixed-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ===========================
   Navigation
   =========================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease,
                backdrop-filter 0.3s ease;
}

nav.nav-hidden {
    transform: translateY(-100px);
}

nav.nav-visible {
    transform: translateY(0);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover img {
    transform: rotate(360deg);
}

.nav-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.nav-logo-text {
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: none;
}

@media (min-width: 640px) {
    .nav-logo-text {
        display: block;
    }
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.75rem;
    background: var(--primary);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -5px rgba(255, 68, 68, 0.5),
                0 0 30px rgba(255, 68, 68, 0.3);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-logo {
    margin: 0 auto 2rem;
    animation: logoEntrance 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoEntrance {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}



.hero-logo img {
    height: 140px;
    width: 140px;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo:hover img {
    transform: rotate(360deg);
}

@media (min-width: 640px) {
    .hero-logo img {
        height: 180px;
        width: 180px;
    }
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease 0.3s both;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
    animation: fadeInUp 1s ease 0.5s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

.text-primary {
    color: var(--primary);
}

.hero-description {
    max-width: 36rem;
    margin: 1.25rem auto 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted-foreground);
    line-height: 1.75;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    animation: fadeInUp 1s ease 0.9s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--foreground);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary .arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -5px rgba(255, 68, 68, 0.5),
                0 0 30px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-secondary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease 1.5s both;
}

.scroll-indicator span {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-foreground);
    font-weight: 500;
}

.scroll-line {
    height: 40px;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.5), 
        rgba(255, 255, 255, 0));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ===========================
   Sections
   =========================== */
.section {
    position: relative;
    padding: 7rem 0;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary));
}

.section-label::before {
    right: 100%;
    background: linear-gradient(to left, var(--primary), transparent);
}

.section-label::after {
    left: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-description {
    max-width: 36rem;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted-foreground);
}

/* ===========================
   Services Grid
   =========================== */
.services-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    padding: 2rem;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition-slow);
    overflow: hidden;
    height: 100%;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 68, 68, 0.05), 
        transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    box-shadow: 0 30px 60px -12px rgba(255, 68, 68, 0.3),
                0 0 40px rgba(255, 68, 68, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-8px) scale(1.02);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: var(--transition-slow);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--foreground);
    transform: scale(1.1);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: rotate(10deg) scale(1.1);
}

.service-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.service-description {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted-foreground);
}

/* ===========================
   About Section
   =========================== */
.about-grid {
    display: grid;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text {
    margin-top: 1.5rem;
    font-weight: 300;
    color: var(--muted-foreground);
    line-height: 1.75;
}

.qualifications {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.qualification-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 20px -1px rgba(255, 68, 68, 0.15);
    transform: translateX(4px);
}

.qualification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.qualification-icon svg {
    width: 16px;
    height: 16px;
}

.qualification-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 2rem;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition-slow);
}

.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 68, 68, 0.2),
                0 0 30px rgba(255, 68, 68, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: var(--transition-slow);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--foreground);
    transform: scale(1.1);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card p {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted-foreground);
}

/* ===========================
   Contact Section
   =========================== */
.contact-grid {
    display: grid;
    gap: 1rem;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition-slow);
    height: 100%;
}

.contact-card:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 68, 68, 0.2),
                0 0 30px rgba(255, 68, 68, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary);
    border-radius: 12px;
    flex-shrink: 0;
    transition: var(--transition-slow);
}

.contact-card:hover .contact-icon {
    background: var(--primary);
    color: var(--foreground);
    transform: scale(1.1);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon svg {
    transform: rotate(-10deg) scale(1.15);
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.link-external {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.link-external:hover {
    background: rgba(255, 68, 68, 0.1);
    gap: 0.75rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    position: relative;
    padding: 2.5rem 0;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 32px;
    width: 32px;
}

.footer-brand span {
    font-size: 0.875rem;
    font-weight: 700;
}

.footer-copyright {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--muted-foreground);
}

/* ===========================
   Animations & Utilities
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 1s ease both;
}

/* Progressive Enhancement: Fade-Animationen nur wenn JS läuft */
body.js-loaded .fade-in-up {
    opacity: 0;
    transform: translateY(60px);
}

.fade-in-up {
    transition: opacity 1s ease, transform 1s ease;
}

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

body.js-loaded .fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
}

.fade-in-left {
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

body.js-loaded .fade-in-right {
    opacity: 0;
    transform: translateX(60px);
}

.fade-in-right {
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-center {
    text-align: center;
}

/* ===========================
   Back to Top Button
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--foreground);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 15px 50px rgba(255, 68, 68, 0.6),
                0 0 40px rgba(255, 68, 68, 0.4);
    background: var(--primary-light);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 767px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================
   Parallax Layers
   =========================== */
.parallax-layer {
    will-change: transform;
}

.parallax-slow {
    transition: transform 0.2s ease-out;
}

.parallax-medium {
    transition: transform 0.2s ease-out;
}

.parallax-fast {
    transition: transform 0.2s ease-out;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .hero {
        min-height: 100svh;
    }
}

/* ===========================
   Service Card CTA
   =========================== */
.service-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-cta {
    opacity: 1;
    transform: translateX(0);
}

.service-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-cta svg {
    transform: translateX(4px);
}

/* ===========================
   Modal System
   =========================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--foreground);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    padding: 3rem 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
}

.modal-icon svg {
    width: 40px;
    height: 40px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.modal-body {
    padding: 2.5rem;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.modal-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--foreground);
}

.modal-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.modal-body ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.modal-body ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.modal-result {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.modal-result h4 {
    margin-top: 0;
}

.modal-result p {
    margin-bottom: 0;
}

.modal-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Custom scrollbar for modal */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 68, 68, 0.5);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Modal */
@media (max-width: 767px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .modal-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1.15rem;
    }
    
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .modal-close svg {
        width: 18px;
        height: 18px;
    }
}
