/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --bg-dark: #020617;
    --bg-darker: #000000;
    --border-color: #1e293b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--primary-color) 100%);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1s;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}

/* Container */
.container-fluid {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Header */
.box-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.box-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Navigation Trigger */
.box-primary-nav-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.box-primary-nav-trigger:hover {
    color: var(--accent-color);
}

.box-menu-text {
    font-size: 16px;
    font-weight: 500;
}

.box-menu-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box-menu-icon::before,
.box-menu-icon::after {
    content: '';
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.box-menu-icon::before {
    transform-origin: top left;
}

.box-menu-icon::after {
    transform-origin: bottom left;
}

nav.open .box-menu-icon::before {
    transform: rotate(45deg);
}

nav.open .box-menu-icon::after {
    transform: rotate(-45deg);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.9);
    border-left: 1px solid var(--border-color);
}

nav.open {
    right: 0;
}

.box-primary-nav {
    list-style: none;
    padding: 100px 40px 40px;
}

.box-primary-nav li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(50px);
}

nav.open .box-primary-nav li {
    animation: slideIn 0.5s forwards;
}

.box-primary-nav li:nth-child(1) { animation-delay: 0.1s; }
.box-primary-nav li:nth-child(2) { animation-delay: 0.15s; }
.box-primary-nav li:nth-child(3) { animation-delay: 0.2s; }
.box-primary-nav li:nth-child(4) { animation-delay: 0.25s; }
.box-primary-nav li:nth-child(5) { animation-delay: 0.3s; }
.box-primary-nav li:nth-child(6) { animation-delay: 0.35s; }
.box-primary-nav li:nth-child(7) { animation-delay: 0.4s; }
.box-primary-nav li:nth-child(8) { animation-delay: 0.45s; }
.box-primary-nav li:nth-child(9) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.box-primary-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 12px 0;
    border-left: 3px solid transparent;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.box-primary-nav a:hover,
.box-primary-nav a.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 25px;
}

/* Intro Section */
.box-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.box-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.table-cell {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

/* Animated Headline */
.box-headline {
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 700;
    margin-bottom: 30px;
}

.box-words-wrapper {
    display: inline-block;
    position: relative;
    min-height: 1.2em;
    vertical-align: bottom;
}

.box-words-wrapper b {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.5s ease;
}

.box-words-wrapper b.is-visible {
    opacity: 1;
    position: relative;
}

.intro-text {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

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

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Content Pages */
.content-page {
    min-height: 100vh;
    padding: 120px 20px 100px;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.content-container h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 30px;
    color: var(--accent-color);
}

.content-container h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-container h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.content-container p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-container ul,
.content-container ol {
    margin-bottom: 20px;
    margin-left: 30px;
    color: var(--text-secondary);
}

.content-container li {
    margin-bottom: 10px;
}

.content-container a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-container a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    z-index: 100;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

.copyright a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Scroll to Top Button */
.cd-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
    z-index: 999;
    border: 2px solid var(--border-color);
}

.cd-top.visible {
    opacity: 1;
    visibility: visible;
}

.cd-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.cd-top::before {
    content: '↑';
    font-size: 24px;
    color: white;
    font-weight: bold;
}

/* Decorative Elements */
.decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
}

.decoration-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    bottom: 15%;
    right: 10%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .box-header {
        padding: 0 20px;
    }

    nav {
        width: 100%;
        right: -100%;
    }

    .box-headline {
        font-size: clamp(30px, 10vw, 50px);
    }

    .cd-top {
        right: 20px;
        bottom: 90px;
        width: 45px;
        height: 45px;
    }

    .content-container {
        padding: 30px 20px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }
}

/* Login Form Styles */
.login-container {
    max-width: 450px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.8);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.login-links {
    text-align: center;
    margin-top: 25px;
}

.login-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}
