:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-glow: rgba(249, 115, 22, 0.22);
    --accent: #fbbf24;
    --bg-dark: #080706;
    --surface-base: rgba(18, 16, 14, 0.6);
    --surface-1: rgba(255, 255, 255, 0.02);
    --surface-2: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-primary: rgba(249, 115, 22, 0.28);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    background-image: url('../img/background.png');
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.12;
    transform: translateZ(0);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.08), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(251, 191, 36, 0.05), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.06), transparent 50%),
        radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark) 92%);
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
}

main {
    flex: 1;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary);
}

a:hover {
    text-decoration: none;
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-top: 0;
}

#project-name,
.project-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
}

#project-name a,
.project-brand a {
    background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none !important;
}

header {
    background: rgba(10, 8, 7, 0.72) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    z-index: 1000;
    transform: translateZ(0);
}

header.scrolled {
    padding: 0.3rem 0 !important;
    background: rgba(8, 7, 6, 0.88) !important;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.detail-wrapper {
    position: relative;
    padding: 24px 0 40px;
    margin: 0 auto;
}

.glass {
    background: var(--surface-base);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.glass-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-primary);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: var(--transition);
}

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

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    body::after {
        background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08), transparent 70%);
    }

    header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 8, 7, 0.98) !important;
    }

    .glass {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(18, 16, 14, 0.95);
    }

    .detail-wrapper {
        padding: 16px 0 30px;
    }
}
