* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    overflow: hidden;
    font-family: sans-serif;
    background: #05060f;
}
#webGLApp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.heading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: white;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-wrap: auto;
    font-family: "Syne", sans-serif;
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1;
}

/* Show all options in a grid for comparison */
.headings-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4rem;
    width: 80vw;
    max-width: 1200px;
    pointer-events: none;
}

.color-controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
    pointer-events: auto;
}
.color-btn {
    min-width: 48px;
    height: 48px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    color: white;
    font-family: "Syne", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
}
.color-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.color-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Color Adjuster Panel */
.color-adjuster-panel {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 400px;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: none;
}

.color-adjuster-panel.open {
    display: block;
}

.color-adjuster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.color-adjuster-title {
    color: white;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.color-adjuster-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.color-adjuster-close:hover {
    opacity: 0.7;
}

.color-picker-group {
    margin-bottom: 1.25rem;
}

.color-picker-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}

.color-picker-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-picker-input {
    width: 60px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-value-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: white;
    font-family: "Inter", monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: text;
    user-select: all;
    transition: all 0.3s ease;
}

.color-value-display:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.color-value-display:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn.copied {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.color-adjuster-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
}

.export-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-family: "Syne", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.export-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.toggle-adjuster-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: "Syne", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    pointer-events: auto;
}

.toggle-adjuster-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-family: "Syne", sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    pointer-events: auto;
}
.footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer a:hover {
    opacity: 0.7;
}
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-width 0.2s ease;
    background: transparent;
    will-change: transform;
}
.custom-cursor::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}
body {
    cursor: none;
}

/* ── SCROLL HINT ── */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-family: "Syne", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.15); }
}
body { overflow-y: auto !important; background: #05060f; }
#webGLApp {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    transition: opacity 0.4s ease;
}
.heading, .color-controls, .toggle-adjuster-btn,
.color-adjuster-panel, .custom-cursor, .footer, .scroll-hint { position: fixed; }
.footer { bottom: 2rem; z-index: 10; }

#sections-wrapper {
    position: relative;
    z-index: 20;
    background: #05060f;
}
.section {
    position: relative;
    padding: 6rem 0 5rem;
    background: #05060f;
    overflow: hidden;
}
.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(241,90,34,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(10,14,39,0.8) 0%, transparent 60%);
    pointer-events: none;
}
.section-alt { background: #080a18; }
.section-alt::before {
    background: radial-gradient(ellipse at 80% 30%, rgba(241,90,34,0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 10% 70%, rgba(10,14,39,0.6) 0%, transparent 60%);
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }
.section-label {
    font-family: "Syne", sans-serif;
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(241,90,34,0.8); margin-bottom: 1rem;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-title {
    font-family: "Syne", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700; color: white;
    letter-spacing: -0.02em; line-height: 1; margin-bottom: 4rem;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.section-label.visible, .section-title.visible { opacity: 1; transform: translateY(0); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 5rem; align-items: start; }
.about-text p {
    font-family: "Inter", sans-serif; font-size: 1.05rem;
    line-height: 1.85; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.about-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 2px solid rgba(241,90,34,0.6);
    padding: 1.5rem; background: rgba(255,255,255,0.02);
    border-radius: 0 8px 8px 0;
    opacity: 0; transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}
.about-card:nth-child(2) { transition-delay: 0.1s; }
.about-card:nth-child(3) { transition-delay: 0.2s; }
.about-card.visible { opacity: 1; transform: translateX(0); }
.about-card:hover { background: rgba(241,90,34,0.05); border-left-color: rgba(241,90,34,0.9); }
.about-card-num { font-family: "Syne", sans-serif; font-size: 2.5rem; font-weight: 700; color: white; line-height: 1; margin-bottom: 0.4rem; }
.about-card-label { font-family: "Inter", sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; text-transform: uppercase; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.skill-category {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.skill-category:nth-child(2) { transition-delay: 0.1s; }
.skill-category:nth-child(3) { transition-delay: 0.2s; }
.skill-category.visible { opacity: 1; transform: translateY(0); }
.skill-category-title {
    font-family: "Syne", sans-serif; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; color: rgba(241,90,34,0.8);
    margin-bottom: 1.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.skill-list { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.4rem; }
.skill-name { font-family: "Inter", sans-serif; font-size: 0.875rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.skill-bar { height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden; }
.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(241,90,34,0.9), rgba(241,90,34,0.4));
    border-radius: 1px; transform: scaleX(0); transform-origin: left;
    transition: transform 1s cubic-bezier(0.4,0,0.2,1);
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
.contact-left { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.contact-left.visible { opacity: 1; transform: translateY(0); }
.contact-desc { font-family: "Inter", sans-serif; font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 2.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
    display: flex; align-items: center; gap: 1rem;
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-family: "Inter", sans-serif; font-size: 0.9rem;
    padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.3s ease;
}
.contact-link:hover { color: white; }
.contact-link-icon {
    width: 32px; height: 32px; border: 1px solid rgba(241,90,34,0.4); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: rgba(241,90,34,0.8); flex-shrink: 0;
}
.contact-right { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s; }
.contact-right.visible { opacity: 1; transform: translateY(0); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-family: "Syne", sans-serif; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.form-input {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 0.875rem 1rem; color: white;
    font-family: "Inter", sans-serif; font-size: 0.9rem; outline: none; resize: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus { border-color: rgba(241,90,34,0.5); background: rgba(241,90,34,0.03); }
.form-textarea { min-height: 140px; }
.form-submit {
    background: rgba(241,90,34,0.15); border: 1px solid rgba(241,90,34,0.4);
    border-radius: 8px; padding: 1rem 2rem; color: white;
    font-family: "Syne", sans-serif; font-size: 0.875rem; font-weight: 500;
    letter-spacing: 0.05em; cursor: pointer; transition: all 0.3s ease; align-self: flex-start;
}
.form-submit:hover { background: rgba(241,90,34,0.28); border-color: rgba(241,90,34,0.7); transform: translateY(-2px); }
.section-footer {
    text-align: center; margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: "Inter", sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.2); letter-spacing: 0.05em;
    padding-bottom: 1rem;
}

/* Last section gets less bottom padding */
#sections-wrapper .section:last-child {
    padding-bottom: 4rem;
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-aside { flex-direction: row; flex-wrap: wrap; }
    .about-card { flex: 1; min-width: 140px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
    .skills-grid { grid-template-columns: 1fr; }
    .section-inner { padding: 0 1.5rem; }
    .section { padding: 5rem 0; }
}
/* ── PERSISTENT NAVBAR ── */
#navbar {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
}

/* Home button — hidden by default, slides in when scrolled */
.nav-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.25rem;
    background: rgba(241, 90, 34, 0.15);
    border: 1px solid rgba(241, 90, 34, 0.5);
    border-radius: 24px;
    color: white;
    font-family: "Syne", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Hidden state */
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    overflow: hidden;
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
}
.nav-home.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    max-width: 120px;
    padding: 0 1.25rem;
}
.nav-home:hover {
    background: rgba(241, 90, 34, 0.3);
    border-color: rgba(241, 90, 34, 0.8);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Override old color-controls positioning — navbar handles it now */
.color-controls {
    position: static !important;
    top: unset !important;
    right: unset !important;
}
