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

:root {
    --primary: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #3d3d3d;
    --text-tertiary: #6b6b6b;
    --accent: #5BA3D0;
    --accent-hover: #4a8bb8;
    --accent-light: rgba(91, 163, 208, 0.08);
    --border: #e8e8e8;
    --border-light: #f5f5f5;
    --bg-secondary: #fafafa;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }

/* Header */
header {
    background-color: var(--primary);
    padding: 64px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-height: 180px;
    width: auto;
    height: auto;
    display: block;
    transition: var(--transition-fast);
    filter: brightness(1);
}

.logo:hover {
    filter: brightness(0.95);
}

/* Hero Section */
.hero {
    padding: 120px 0 140px;
    background-color: var(--primary);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
}

.description {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-style: normal;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--primary);
    padding: 64px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    pointer-events: none;
    transition: var(--transition-fast);
    background-color: var(--primary);
    padding: 0 4px;
    transform-origin: left top;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    font-size: 1.0625rem;
    background-color: var(--primary);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', Georgia, serif;
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.6875rem;
    color: var(--accent);
    transform: scale(0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group textarea {
    min-height: 160px;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 20px 32px;
    font-size: 1.0625rem;
    font-weight: 500;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
    font-family: 'Cormorant Garamond', Georgia, serif;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.submit-btn span {
    position: relative;
    z-index: 1;
}

.form-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    display: none;
    font-family: 'Cormorant Garamond', Georgia, serif;
    animation: fadeInUp 0.4s ease-out;
}

.form-message.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1.5px solid var(--success);
}

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

/* Footer */
footer {
    background-color: var(--primary);
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

footer p {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

footer p.admin-link {
    margin-top: 8px;
}

footer p.admin-link a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

footer p.admin-link a:hover {
    opacity: 1;
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 32px;
    }

    header {
        padding: 36px 0;
    }

    .logo {
        max-height: 140px;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .description {
        font-size: 1.5rem;
        line-height: 1.65;
    }

    .contact {
        padding: 80px 0;
    }

    .contact h2 {
        font-size: 1.75rem;
        margin-bottom: 48px;
    }

    .contact-form {
        padding: 40px 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-row .form-group {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 64px 0 80px;
    }

    .description {
        font-size: 1.375rem;
    }

    .contact h2 {
        font-size: 1.625rem;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .logo {
        max-height: 120px;
    }

    .submit-btn {
        padding: 16px 24px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for now, but structure is ready */
}
