/* Base CSS - Shared styles for all pages */

:root {
    --black: #050508;
    --black-light: #0a0a0f;
    --white: #ffffff;
    --red: #c41a1f;
    --red-dark: #a01519;
    --red-glow: rgba(227, 30, 36, 0.4);
    --gray-light: #f5f5f5;
    --gray-text-light: #b0b0b0;
    --gray: #888888;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-glow: 0 0 60px rgba(227, 30, 36, 0.2);
    --gradient-premium: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-glow: 1px solid rgba(227, 30, 36, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--red) #1a1a1a;
    background-color: var(--black);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

::selection {
    background: var(--red);
    color: var(--white);
}

::-moz-selection {
    background: var(--red);
    color: var(--white);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.3), transparent);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo span {
    color: var(--red);
    text-shadow: 0 0 20px rgba(227, 30, 36, 0.3);
}

/* Nav CTA Button (used on index) */
.nav-cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

.nav-cta svg {
    width: 18px;
    height: 18px;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--red-dark) 0%, #a01519 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 36px rgba(227, 30, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Nav CTA White Variant (used on legal/cv pages) */
.nav-cta-white {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-cta-white:hover {
    background: var(--gray-light);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.3);
    color: var(--black);
}

/* Nav CTA Muted Variant (outline style) */
.nav-cta-muted {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.nav-cta-muted:hover {
    background: var(--white);
    color: var(--black);
    transform: none;
    box-shadow: none;
}

/* Nav Back Button (used on legal pages) */
.nav-back {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.nav-back:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-back:hover svg {
    transform: translateX(-3px);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #050508 0%, #030305 100%);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.35), transparent);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    flex: 1;
}

.footer-brand p {
    max-width: 420px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #606060;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-copyright {
    margin-top: 20px;
}

.footer-contact {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.footer-contact a {
    color: #606060;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--red);
}

.footer-nav {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #808080;
}

.footer-links a {
    display: block;
    color: #606060;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--red);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 48px;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #505050;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #505050;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

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

/* Simple footer (for legal pages) */
.footer-simple {
    padding: 32px 0;
    text-align: center;
}

.footer-simple p {
    color: #505050;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
}

/* Links */
a {
    color: var(--red);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 32px;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }

    .footer-links {
        min-width: 120px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
