:root {
    --bg-color: #0a0908;
    --text-primary: #e8e4dc;
    --text-secondary: #8a8580;
    --text-muted: #6b6560;
    --accent: #b4a078;
    --border-color: #2a2622;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body, html {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.noise-overlay {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.parallax-container {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 2px;
    scroll-behavior: smooth;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    z-index: -1;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background: url("banner.jpeg") center 30% / cover;
    transform: translateZ(-1px) scale(1.6);
    z-index: -1;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 9, 8, 0.4), transparent 30%, transparent 60%, var(--bg-color) 95%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(10, 9, 8, 0.8) 100%);
    z-index: 1;
    transform: translateZ(0);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%; /* Ensure container stays within bounds */
    max-width: 800px;
    padding: 0 1.5rem;
    transform: translateZ(0);
    animation: fadeIn 1.2s ease-out;
}

.welcome-text {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 8vw, 4rem); /* Slightly reduced minimum size */
    color: #f5f2ec;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    word-wrap: break-word; /* Safety for mobile overflow */
}

.hero-handle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-bio {
    color: rgba(201, 194, 184, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 450px;
    width: 100%; /* Makes bio fluid on mobile */
    margin: 0 auto 1.5rem;
    font-weight: 300;
}

.text-accent {
    color: var(--accent);
    opacity: 0.9;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    opacity: 0.8;
}

#visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 5;
    pointer-events: none;
}

.audio-toggle {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.8rem;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.65rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.audio-toggle:hover {
    background: rgba(180, 160, 120, 0.1);
    letter-spacing: 0.35em;
    box-shadow: 0 0 20px rgba(180, 160, 120, 0.1);
}

.audio-toggle.active {
    background: var(--accent);
    color: var(--bg-color);
}

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

.content-wrapper {
    position: relative;
    z-index: 20;
    background-color: var(--bg-color);
    box-shadow: 0 -80px 100px 40px var(--bg-color);
    margin-top: -1px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.section-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.social-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(20, 18, 16, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-item:hover {
    border-color: var(--accent);
    background: rgba(26, 24, 22, 0.8);
    transform: translateX(4px);
}

.social-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-portfolio { background: #b4a07815; color: var(--accent); }
.icon-github { background: #a09a9215; color: #a09a92; }

.social-info { flex: 1; }
.social-name { color: var(--text-primary); font-weight: 500; }
.social-desc { color: var(--text-muted); font-size: 0.85rem; }

.footer {
    text-align: center;
    padding-top: 8rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Specific mobile adjustment for very small screens */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-bio {
        font-size: 0.95rem;
    }
}