:root {
    --primary: #4785d9; /* Muted blue */
    --secondary: #2db381; /* Muted emerald */
    --bg-base: #131a2b; /* Lighter, but still deep, navy slate */
    --bg-surface: rgba(30, 41, 59, 0.5); /* Slightly lighter surface to match */
    --text-main: #cbd5e1; /* Soft white/grey, slightly darkened from e2e8f0 */
    --text-muted: #5e6d81; /* Muted slate grey, slightly darkened from 64748b */
    --border-color: rgba(255, 255, 255, 0.05); /* Very subtle borders */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Elegant ambient light effects */
.ambient-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4; /* Significantly muted */
    animation: float 12s infinite alternate ease-in-out;
}

.light-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(10, 15, 30, 0) 70%);
    top: -15%;
    left: -10%;
}

.light-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, rgba(10, 15, 30, 0) 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -3s;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.95); }
}

.container {
    max-width: 900px;
    width: 90%;
    text-align: center;
    z-index: 1;
    position: relative;
}

header {
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
    text-align: left;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-layout {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .hero-left {
        flex: 0 0 300px;
        position: sticky;
        top: 2rem;
    }
    
    .hero-right {
        flex: 1;
    }
}

.hero-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headshot-img {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Changed from 24px to 50% for a circular look */
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.skills-preview {
    margin-top: 1rem;
}

.skills-preview p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    white-space: nowrap;
}

.yellow-hover-wave strong, 
.intro-block p strong {
    color: #d97706; /* Muted amber/yellow instead of fbbf24 */
    font-weight: 800;
    display: inline-block;
    transition: all 0.3s ease;
}

.yellow-hover-wave:hover strong {
    color: #f59e0b; /* Slightly brighter amber on hover */
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(217, 119, 6, 0.6), 0 0 40px rgba(217, 119, 6, 0.3);
}

.yellow-hover-wave .link-glow {
    background: #d97706;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.yellow-hover-wave:hover .link-glow {
    opacity: 0.9;
    filter: blur(25px);
    transform: translate(-50%, -50%) scale(1.8);
}

@keyframes blink {
    50% { opacity: 0; }
}

.intro-block {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.intro-block p {
    font-size: 1.15rem;
    line-height: 1.5; /* Tightened from 1.7 */
    margin: 0 0 1.5rem 0;
    color: var(--text-muted);
}

.text-link {
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    transition: all 0.3s ease;
    display: inline;
}

.text-link span {
    font-size: 1.1rem; /* Match paragraph size */
    font-weight: 700;
    letter-spacing: -0.2px;
    z-index: 2;
    position: relative;
    display: inline;
    color: var(--text-main);
}

.link-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: var(--primary);
    filter: blur(25px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.portfolio-link:hover span {
    color: var(--primary);
}

.portfolio-link:hover .link-glow {
    opacity: 0.4;
}

.about-link:hover span {
    color: var(--secondary);
}

.about-link:hover .link-glow {
    background: var(--secondary);
    opacity: 0.3;
}

/* Wave Text Animation */
.wave-text span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.text-link:hover .wave-text span {
    animation: wave 0.8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes borderBreathe {
    0% {
        border-color: rgba(148, 163, 184, 0.2);
        box-shadow: 0 0 5px rgba(148, 163, 184, 0.1);
    }
    100% {
        border-color: rgba(148, 163, 184, 0.7);
        box-shadow: 0 0 15px rgba(148, 163, 184, 0.5);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Page Content Sections */
.disclaimer {
    background: rgba(148, 163, 184, 0.05);
    border-left: 2px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 8px 8px 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    animation: fadeInDown 1.2s ease-out;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .info-section {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.info-card h2 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Plain Content Blocks (No Cards) */
.content-block {
    text-align: left;
    color: var(--text-main);
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.content-block h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-block p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.info-card ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.info-card li {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.info-card strong {
    color: var(--text-main);
}

/* Footer & Disclaimer Styles */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-disclaimer {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: var(--text-main);
}

.article-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.article-link:hover {
    text-decoration: underline;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:visited {
    color: var(--primary);
}

.back-link:hover {
    color: #60a5fa;
    text-decoration: none;
}

/* Dev Nav Terminal */
#dev-nav-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#dev-nav-toggle {
    background: var(--bg-base);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#dev-nav-toggle:hover {
    background: var(--secondary);
    color: var(--bg-base);
}

#dev-terminal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--secondary);
    width: 380px;
    height: 280px;
    margin-bottom: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

#dev-terminal.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

#terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

#terminal-output div {
    margin-bottom: 4px;
}

#terminal-input-line {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    padding-top: 8px;
}

.prompt {
    margin-right: 8px;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-family: inherit;
    font-size: 0.9rem;
    flex-grow: 1;
    outline: none;
}

.connect-button:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 119, 181, 0.6));
}

.skate-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: inherit; /* Remove the bolding */
    display: inline-block; /* Changed to block for scaling */
    transition: all 0.3s ease;
}

.skate-link:hover {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.8), 0 0 40px rgba(96, 165, 250, 0.4);
}

/* Collapsible Bio Sections */
.collapsible-section {
    margin-bottom: 1.5rem;
}

.collapsible-trigger {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 4px;
    text-decoration: underline;
    transition: color 0.2s;
}

.collapsible-trigger:hover {
    color: #60a5fa;
}

.collapsible-section.active .collapsible-trigger {
    display: none;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.collapsible-section.active .collapsible-content {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Shepherd.js Bento Brutalism Theme */
.shepherd-element {
    background: var(--bg-base) !important;
    border: 3px solid var(--primary) !important;
    border-radius: 0 !important; /* Sharp brutalist corners */
    box-shadow: 10px 10px 0px var(--primary) !important; /* Thick "hard" offset shadow */
    color: var(--text-main) !important;
    padding: 2rem !important;
    max-width: 400px !important;
    backdrop-filter: none !important; /* No soft blur in brutalism */
}

.shepherd-arrow:before {
    background: var(--bg-base) !important;
    border: 3px solid var(--primary) !important;
}

.shepherd-header {
    background: var(--primary) !important;
    padding: 0.5rem 1rem !important;
    margin: -2rem -2rem 1.5rem -2rem !important;
    border-bottom: 3px solid var(--primary) !important;
}

.shepherd-title {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: var(--bg-base) !important; /* Inverted for header */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.shepherd-text {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    color: var(--text-main) !important;
    font-weight: 500 !important;
    margin-bottom: 2rem !important;
}

.shepherd-button {
    background: var(--bg-base) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: all 0.1s ease !important;
}

.shepherd-button:hover {
    background: var(--primary) !important;
    color: var(--bg-base) !important;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--text-main);
}

.shepherd-button-secondary {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 2px solid var(--text-muted) !important;
    margin-right: 1rem !important;
}

/* High-Contrast Highlight */
.shepherd-enabled {
    position: relative;
    z-index: 10002 !important;
    outline: none !important; /* Remove the green/emerald border */
    border-radius: 0 !important;
    box-shadow: 12px 12px 0px #d97706 !important; /* Thick muted orange offset shadow */
    animation: none !important;
}

/* Tour Re-init Button */
#tour-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    background: var(--bg-base);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

#tour-trigger:hover {
    opacity: 1;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

