/* =========================================
   Base & Reset
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #f9f6f0;
    --navy: #1a2238;
    --navy-light: #2c3a58;
    --gold: #b8965a;
    --gold-light: #d4b07a;
    --text: #2d2d2d;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border: #e5e0d8;
    --shadow: 0 4px 24px rgba(26, 34, 56, 0.08);
    --shadow-hover: 0 8px 40px rgba(26, 34, 56, 0.15);
    --radius: 12px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   Splash Loader
   ========================================= */

.splash-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    z-index: 9999;
}

.splash-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.loading-progress {
    display: block;
    width: 5rem;
    height: 5rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--gold-light);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* =========================================
   Blazor Error UI
   ========================================= */

#blazor-error-ui {
    color-scheme: light only;
    background: #b32121;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

/* =========================================
   Page Layout
   ========================================= */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   Navigation
   ========================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(26, 34, 56, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.875rem 2rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.08em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold-light);
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(184, 150, 90, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(44, 58, 88, 0.8) 0%, transparent 60%);
}

.hero-decoration {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 1s ease both;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero-name span {
    display: block;
    font-weight: 500;
    color: var(--gold-light);
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.75rem auto;
    opacity: 0.6;
}

.hero-tagline {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 150, 90, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* LinkedIn Icon */
.icon-linkedin {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =========================================
   Scroll Indicator
   ========================================= */

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInUp 1.2s ease 0.5s both;
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 11px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: scrollDot 2s ease infinite;
}

/* =========================================
   Section Shared Styles
   ========================================= */

section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 680px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 3rem;
}

/* =========================================
   Contact Section
   ========================================= */

.contact-section {
    background: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #c0b9ae;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.12);
}

.form-field textarea {
    height: 140px;
}

.btn-submit {
    align-self: flex-start;
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* =========================================
   Success Message
   ========================================= */

.success-card {
    background: #f0faf4;
    border: 1px solid #b7dfc8;
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    animation: fadeInUp 0.5s ease both;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: #dcf0e4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon svg {
    width: 26px;
    height: 26px;
    stroke: #2d7a4f;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.success-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* =========================================
   Error Banner
   ========================================= */

.form-error {
    background: #fff0f0;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #b00;
    animation: fadeInUp 0.3s ease both;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    margin-top: auto;
}

.footer a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

/* =========================================
   Animations
   ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 640px) {
    section {
        padding: 4rem 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-submit {
        align-self: stretch;
        justify-content: center;
    }

    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
    }
}
