/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #fafafa;
    --black: #0a0a0a;
    --gray-light: #e5e5e5;
    --gray-dark: #1a1a1a;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: var(--black);
    z-index: -2;
}

/* Profile Photo */
.profile-photo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 100px;
    height: 100px;
    clip-path: polygon(43.6% 0%, 100% 0%, 100% 85%, 56.4% 100%, 0% 100%, 0% 15%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    overflow: hidden;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

@media (max-width: 768px) {
    .profile-photo {
        width: 50px;
        height: 50px;
        top: 1.5rem;
        left: 1.5rem;
    }

    .profile-photo-img {
        width: 150%;
        height: 150%;
        object-position: center 25%;
        transform: translate(-16.67%, -16.67%);
    }
}

/* Diagonal Background */
.diagonal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300vh;
    background: linear-gradient(
        161deg,
        var(--white) 0%,
        var(--white) 32%,
        var(--black) 32%,
        var(--black) 100%
    );
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .diagonal-bg {
        background: linear-gradient(
            161deg,
            var(--white) 0%,
            var(--white) 30%,
            var(--black) 30%,
            var(--black) 100%
        );
    }
}

main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem 2rem;
    color: var(--black);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero .availability {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 600px;
    opacity: 0.7;
}

/* Form Section */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    min-height: 60vh;
}

/* Glassmorphism Form */
.glass-form {
    width: 100%;
    max-width: 560px;
    padding: 3rem;
    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: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-smooth);
}

/* Form on white background - keep it glass-like */
.glass-form.on-white {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Form Groups with Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    outline: none;
    transition: all var(--transition-smooth);
}

.glass-form.on-white .form-group input,
.glass-form.on-white .form-group textarea,
.glass-form.on-white .form-group select,
.form-group.on-white input,
.form-group.on-white textarea,
.form-group.on-white select {
    color: var(--black) !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.glass-form.on-white .form-group input:focus,
.glass-form.on-white .form-group textarea:focus,
.glass-form.on-white .form-group select:focus,
.form-group.on-white input:focus,
.form-group.on-white textarea:focus,
.form-group.on-white select:focus {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

/* Select dropdown specific styling */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.08);
}

.glass-form.on-white .form-group select {
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: var(--black);
    color: var(--white);
}

.form-group label {
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all var(--transition-smooth);
}

.glass-form.on-white .form-group label,
.form-group.on-white label {
    color: rgba(0, 0, 0, 0.6) !important;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.glass-form.on-white .form-group input:focus + label,
.glass-form.on-white .form-group input:valid + label,
.glass-form.on-white .form-group textarea:focus + label,
.glass-form.on-white .form-group textarea:valid + label,
.glass-form.on-white .form-group select:focus + label,
.glass-form.on-white .form-group select:valid + label,
.form-group.on-white input:focus + label,
.form-group.on-white input:valid + label,
.form-group.on-white textarea:focus + label,
.form-group.on-white textarea:valid + label,
.form-group.on-white select:focus + label,
.form-group.on-white select:valid + label {
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Budget section removed */

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-form.on-white .submit-btn,
.submit-btn.on-white {
    color: var(--white) !important;
    background: var(--black) !important;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.glass-form.on-white .submit-btn:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--black);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Message */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgba(34, 197, 94, 1);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 1);
}

/* Examples Section */
.examples {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--white);
    text-align: center;
}

.examples h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.example-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.example-links a {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    position: relative;
    transition: color var(--transition-smooth);
}

.example-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width var(--transition-smooth);
}

.example-links a:hover {
    color: var(--gray-light);
}

.example-links a:hover::after {
    width: 100%;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-form {
        padding: 2rem 1.5rem;
    }

    .hero {
        min-height: 50vh;
    }

    .form-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .examples {
        min-height: 40vh;
    }
}

@media (max-width: 480px) {
    .glass-form {
        padding: 1.5rem 1rem;
    }
}
