:root {
    /* Essential Colors - Only 10 variables */
    --color-bg-dark: #000000;
    /* 1. Dark background */
    --color-bg-light: #000000;
    /* 2. Light background (also black) */
    --color-accent: #2dd2c7;
    /* 3. Turquoise accent */
    --color-accent-light: #00bdbd;
    /* 4. Dark turquoise */
    --color-text: #f3f3f3;
    /* 5. Main text */
    --color-white: #ffffff;
    /* 6. White text/elements */
    --color-glass: rgba(64, 211, 224, 0.12);
    /* 7. Turquoise glass background */
    --color-border: rgba(64, 211, 224, 0.18);
    /* 8. Turquoise borders */
    --color-shadow: rgba(0, 0, 0, 0.4);
    /* 9. Black shadows */
    --color-overlay: rgba(64, 213, 224, 0.08);
    /* 10. Turquoise overlays/effects */

    /* Gradients using the 10 colors above */
    --primary-gradient: var(--color-bg-dark);
    --accent-gradient: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    --shimmer-gradient: linear-gradient(90deg, transparent, var(--color-overlay), transparent);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    background: var(--primary-gradient);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: var(--color-text);
    letter-spacing: 0.02em;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(64, 211, 224, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 173, 189, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(64, 224, 224, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}


/* Topbar with enhanced modern effects */
.topbar {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    border-bottom: 1px solid var(--color-border);
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer-gradient);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes slideInDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced navigation container */
.topbar .elements {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Modern navigation links */
.topbar .element {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.topbar .element a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
    transition: all var(--transition-smooth);
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
    transform: translateY(0);
}

.topbar .element a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -102%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: left var(--transition-fast);
    z-index: -1;
    opacity: 0.0;
}

.topbar .element a:hover {
    color: var(--color-accent);
    background: rgba(45, 210, 199, 0.1);
}

#downloadButton a {
    color: var(--color-accent);
    background: rgba(45, 210, 199, 0.1);
}

.topbar .element a:hover::before {
    left: 0;
}

.topbar .element a:active {
    transform: translateY(0) scale(0.98);
    transition: transform var(--transition-fast);
}

/* Enhanced main content area */
.bottomdiv {
    flex-grow: 1;
    max-width: 2400px;
    width: 92%;
    margin: 20px auto 30px auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    position: relative;
    min-height: calc(100vh - 60px);
}

/* Hero text styling */
.hero-text {
    position: relative;
    margin-bottom: 0px;
    width: 100%;
    text-align: left;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Second hero text styling */
.hero-text-second {
    margin-bottom: 80px;
    margin-top: 16px;
}

/* Typing indicator animation */
.typing-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin-left: 20px;
}

/* Second typing indicator animation */
.typing-indicator-second {
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin-left: 20px;
}

.dot {
    width: 1rem;
    height: 1rem;
    background: var(--color-accent);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-5px);
    }
}

@keyframes typingFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typewriter text styling */
#typewriter-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--color-text);
    margin: 0;
    padding: 16px 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(15px) translateX(-10px) scale(0.85);
    transform-origin: bottom left;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(45, 210, 199, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(45, 210, 199, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Second typewriter text styling */
#typewriter-text-second {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--color-text);
    margin: 0;
    padding: 16px 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(15px) translateX(-10px) scale(0.85);
    transform-origin: bottom left;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(45, 210, 199, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(45, 210, 199, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes blink-caret {

    from,
    to {
        border-color: var(--color-accent);
    }

    50% {
        border-color: transparent;
    }
}

@keyframes messageBounce {
    0% {
        transform: translateY(15px) translateX(-5px) scale(0.85);
        transform-origin: bottom left;
        opacity: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
        transform-origin: bottom left;
        opacity: 1;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

.hero-text h1:hover {
    text-shadow: 0 8px 16px var(--color-shadow);
}

@keyframes heroSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo container and main logo styling */
.topbar .logo-container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.topbar .main-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px var(--color-shadow));
    transition: all var(--transition-smooth);
}

.topbar .main-logo:hover {
    filter: drop-shadow(0 4px 12px var(--color-shadow)) brightness(1.2);
}

@keyframes logoEntrance {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modern cards with background and equal widths */
.modern-card {
    background: var(--color-glass);
    border-radius: 20px;
    box-shadow: 0 4px 24px var(--color-shadow);
    padding: 32px 28px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    width: 100%;
    transition: all var(--transition-smooth);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}


@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced modern buttons */
.modern-btn {
    background: var(--accent-gradient);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--color-shadow);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-overlay);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-fast), height var(--transition-fast);
}

.modern-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px var(--color-shadow);
}

.modern-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform var(--transition-fast);
}

/* Enhanced responsive design with maintained modern effects */
@media (max-width: 900px) {
    .topbar {
        height: 56px;
        font-size: 1rem;
        border-radius: 16px;
        margin: 20px auto 16px auto;
    }

    .bottomdiv {
        flex-direction: column;
        gap: 18px;
        padding: 12px 0;
    }

    .hero-text-second {
        margin-top: 20px;
    }

    .modern-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .topbar .elements {
        gap: 18px;
        left: 50%;
        transform: translateX(-50%);
    }

    .modern-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .main-logo {
        max-height: 100px;
    }
}

@media (max-width: 600px) {
    :root {
        --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .topbar {
        width: 98%;
        margin: 10px auto 8px auto;
        border-radius: 12px;
        height: 48px;
        font-size: 0.9rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .bottomdiv {
        width: 98%;
        padding: 8px 0;
        margin: 0 auto 20px auto;
    }

    .modern-card {
        padding: 16px 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .topbar .elements {
        gap: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .topbar .element a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .modern-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .main-logo {
        max-height: 80px;
    }
}

/* Additional modern touches */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll effects */
@media (min-width: 901px) {
    .topbar {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .topbar.scrolled {
        transform: scale(0.98);
        box-shadow: 0 4px 20px var(--color-shadow);
    }
}

/* Footer styles */
.footer {
    width: 100%;
    background: var(--color-glass);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px var(--color-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-left {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.footer-right {
    display: flex;
    gap: 18px;
}

.footer-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    text-decoration: none;
    border: none;
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 0;
    transition: none;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-text);
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

li::before {
    content: '•';
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

strong {
    color: var(--color-accent);
    font-weight: 600;
}