:root {
    --bg-main: #020617;
    --bg-secondary: #0f172a;
    --bg-accent: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --border-color: #334155;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    scroll-behavior: smooth;
    margin: 0;
    overflow-x: hidden;
}

.metal-shine {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--border-color);
}

.hero-text {
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Navigation */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-cta {
    background: white;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-blue);
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

/* Cards */
.portfolio-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

#chat-bubble {
    width: 4rem;
    height: 4rem;
    background: var(--accent-blue-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 2px solid var(--accent-blue);
}

#chat-bubble:hover {
    transform: scale(1.1);
    background: #1d4ed8;
}

#chat-window {
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#chat-window.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* Layout Utilities */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.container-narrow {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.container-wide {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
