html {
    scroll-behavior: smooth;
    scroll-padding-top: 3.5rem;
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #2C3639;
    background-color: #DCD7C9;
}

h1, h2, h5, h6, .navbar-brand {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

a, .btn-link {
    color: #A27B5C;
}

a:hover, .btn-link:hover {
    color: #8a6748;
}

.btn-primary {
    color: #DCD7C9;
    background-color: #A27B5C;
    border-color: #8a6748;
}

.btn-primary:hover {
    background-color: #8a6748;
    border-color: #7a5d3e;
}

.btn-outline-light {
    color: #DCD7C9;
    border-color: #DCD7C9;
}

.btn-outline-light:hover {
    color: #2C3639;
    background-color: #DCD7C9;
    border-color: #DCD7C9;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== Scroll Reveal ===== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero ===== */

.hero {
    background: linear-gradient(135deg, #2C3639 0%, #3F4E4F 100%);
    color: #DCD7C9;
    padding: 6rem 1rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    outline: none;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #A27B5C;
    width: 0;
    animation: typing 1.5s steps(11) 0.5s forwards, blink 0.7s step-end 3s forwards, hide-cursor 0s 3.5s forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 11ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes hide-cursor {
    to { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #A27B5C;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    animation: fade-in 0.8s ease 2.2s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fade-in 0.8s ease 2.6s forwards;
    margin-top: 1.5rem;
}

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

/* ===== Sections ===== */

.section {
    padding: 4rem 1rem;
}

.section-alt {
    background-color: #3F4E4F;
    color: #DCD7C9;
}

.section h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2C3639;
}

.section-alt h2 {
    color: #DCD7C9;
}

/* ===== Navbar ===== */

.profile-nav {
    background-color: #2C3639;
}

.profile-nav .navbar-brand {
    color: #A27B5C !important;
    font-weight: 700;
}

.profile-nav .nav-link {
    color: #DCD7C9 !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.profile-nav .nav-link:hover {
    color: #A27B5C !important;
}

/* ===== Skills ===== */

.skill-group {
    margin-bottom: 1.25rem;
}

.skill-group h6 {
    color: #A27B5C;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.skill-badge {
    display: inline-block;
    background-color: #DCD7C9;
    color: #2C3639;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    margin: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Experience ===== */

.experience-item {
    border-left: 3px solid #A27B5C;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.experience-item h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.experience-item .text-muted {
    font-size: 0.9rem;
}

.section-alt .experience-item {
    border-left-color: #A27B5C;
}

.section-alt .experience-item h5 {
    color: #DCD7C9;
}

.section-alt .experience-item .text-muted {
    color: #A27B5C !important;
}

.section-alt .experience-item p,
.section-alt .experience-item li {
    color: #DCD7C9;
}

.section-alt .experience-item strong {
    color: #fff;
}

/* ===== Contact ===== */

.section-contact {
    background-color: #2C3639;
    color: #DCD7C9;
    padding: 5rem 1rem;
}

.section-contact h2 {
    color: #DCD7C9;
    font-size: 2rem;
}

.section-contact p {
    color: rgba(220, 215, 201, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-contact {
    color: #DCD7C9;
    border: 2px solid #A27B5C;
    background: transparent;
    min-width: 140px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.btn-contact:hover {
    background-color: #A27B5C;
    color: #DCD7C9;
}

/* ===== Footer ===== */

footer {
    background-color: #2C3639;
    color: rgba(220, 215, 201, 0.4);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(220, 215, 201, 0.1);
}
