/* Common Styles for kawunda.net */
/* Header, Footer, Navigation - shared across all pages */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --accent: #00E5A0;
    --dark: #0A0E27;
    --dark-light: #141936;
    --white: #FFFFFF;
    --gray: #8B92B0;
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', Consolas, monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI Symbol', sans-serif;
    --grid-size: 20px;
}

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

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid only in specific sections */
.hero::before,
.examples::before,
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.015) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    z-index: 0;
}

.faq-answer {
    visibility: visible;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 39, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display) !important;
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: inline;
    position: relative;
}

.logo-cursor {
    display: inline;
    color: var(--accent);
    animation: blink 0.7s infinite;
}

.logo-cursor.hide {
    display: none;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.logo-icon {
    color: var(--accent);
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    width: 36px;
    height: 36px;
    position: relative;
}

.logo-icon-chevron {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: rotate(0deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.logo-icon-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: rotate(-180deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.logo-icon.transform .logo-icon-chevron {
    opacity: 0;
    transform: rotate(180deg);
}

.logo-icon.transform .logo-icon-svg {
    opacity: 1;
    transform: rotate(0deg);
}

.logo-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo::before {
    display: none;
}

.logo-cursor {
    display: inline;
    color: var(--accent);
    animation: blink 0.7s infinite;
}

.logo-cursor.hide {
    display: none;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Navigation */
nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Desktop: always show nav */
@media (min-width: 1001px) {
    nav {
        display: flex !important;
    }

    .menu-toggle {
        display: none !important;
    }
}

/* Mobile: show toggle, hide nav by default */
@media (max-width: 1000px) {
    .menu-toggle {
        display: block !important;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        align-items: stretch;
    }

    nav.active {
        display: flex !important;
    }

    nav.active a::after {
        display: none;
    }

    nav a {
        padding: 15px 40px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav .cta-button {
        margin: 15px 40px 0;
        width: calc(100% - 80px);
        text-align: center;
    }

    nav .lang-switch {
        margin: 20px auto 0;
        width: auto;
        padding: 8px 24px;
        display: block;
    }
}

nav a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

nav a:hover {
    color: var(--white);
}

@media (min-width: 1001px) {
    nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    nav a:hover::after {
        width: 100%;
    }
}

/* Remove underline effect from button-style links */
nav .cta-button::after {
    display: none;
}

/* Language switcher */
.lang-switch {
    color: var(--accent) !important;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-switch::after {
    display: none !important;
}

.lang-switch:hover {
    background: var(--accent);
    color: var(--dark) !important;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: var(--dark);
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    display: inline-block;
    position: relative;
}

.footer-logo-icon-chevron {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent);
    font-weight: bold;
    opacity: 0;
    transform: rotate(180deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-logo-icon-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: rotate(0deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-logo-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-logo::before {
    display: none;
}

.footer-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

footer h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .container {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}