:root {
    --primary: #1e3a8a;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --error: #ef4444;
    --success: #10b981;
    --transition-fast: 0.15s;
    --transition-normal: 0.25s;
    --transition-slow: 0.4s;
    --easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
    --easing-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
    --footer-bg: #f1f5f9;
    --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Better focus indicators */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #e2e8f0 100%);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    body { padding: 2rem; }
}

.navbar {
    background: var(--surface);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition-normal) var(--easing-standard), transform var(--transition-normal) var(--easing-standard);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: flex-end;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
}

@media (max-width: 767px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    }
}

@media (max-width: 767px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 80px;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.about, .contact {
    padding: 5rem 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.about {
    background: rgba(255, 255, 255, 0.4);
    padding: 5rem 2rem;
    border-radius: 16px;
    margin: 3rem auto;
}

.about h2, .contact h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about p {
    font-size: 1.125rem;
    line-height: 2.0;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.paragraph-animate {
    opacity: 0;
    animation: fadeInUpStagger 0.6s var(--easing-decelerate) forwards;
}

/* Fade-in animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered paragraph animation */
@keyframes fadeInUpStagger {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about, .contact {
    animation: fadeInUp 0.6s ease-out;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.contact {
    background: var(--surface);
    border-radius: 16px;
    padding: 5rem 2rem 3rem;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
    margin: 3rem auto;
}

.contact form > div {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.contact input:focus, .contact textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact textarea {
    resize: vertical;
    min-height: 100px;
}

.contact button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.contact button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.contact button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.copyright {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
    background: var(--footer-bg);
    box-shadow: inset 0 1px 0 rgba(30, 58, 138, 0.1);
}

h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
}

form > div {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.error { color: var(--error); font-size: 0.875rem; margin-top: 0.25rem; }
.counter { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }
.counter-warning { color: var(--warning); }

.tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    background: var(--primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .tooltip {
        left: calc(100% + 1rem);
        top: 2.5rem;
        transform: translateX(-10px);
    }
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .tooltip.show {
        transform: translateX(0);
    }
}

.tooltip::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: -5px;
    border: 5px solid transparent;
    border-bottom-color: var(--primary);
}

@media (min-width: 768px) {
    .tooltip::before {
        left: -5px;
        top: 50%;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-right-color: var(--primary);
        border-bottom-color: transparent;
    }
}

.submit-tooltip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.submit-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary);
}

.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid var(--success);
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid var(--error);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* A
ccessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable smooth scrolling */
    html {
        scroll-behavior: auto;
    }

    /* Disable all transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Ensure paragraph content is immediately visible */
    .paragraph-animate {
        opacity: 1;
        animation: none;
    }

    /* Disable section animations */
    .about,
    .contact {
        animation: none;
    }

    /* Disable button transforms */
    .btn-primary:hover,
    .contact button:hover:not(:disabled),
    button:hover:not(:disabled) {
        transform: none;
    }

    /* Disable tooltip animations */
    .tooltip {
        transition: none;
    }

    .tooltip.show {
        transform: none;
    }

    /* Disable status message animations */
    .status-message {
        animation: none;
    }

    /* Disable hamburger menu animation */
    .nav-toggle span {
        transition: none;
    }

    .nav-toggle.active span:nth-child(1),
    .nav-toggle.active span:nth-child(3) {
        /* Keep the transforms for visual state but remove animation */
        transition: none;
    }
}
