:root {
    --primary-color: #0f172a;
    /* Dark Navy/Black */
    --text-color: #1e293b;
    --text-light: #64748b;
    --background-color: #ffffff;
    --accent-color: #3b82f6;
    --font-family: 'Outfit', sans-serif;
    --container-width: 1400px;
    /* Revert to original max-width for text content */
    --border-radius-btn: 50px;
    --transition-speed: 0.3s;
    --navbar-height: 80px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    background: transparent;
    /* Cleaner look if image overlaps */
    z-index: 1000;
    flex-shrink: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

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

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

.btn-primary.small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid #e2e8f0;
    /* Thicker border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.hero {
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* Vertically center */
    padding-bottom: 0;
    height: calc(100vh - var(--navbar-height));
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    padding-left: 0;
    /* Slight offset */
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    /* Reverted to original responsive size */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Align right */
    align-items: flex-end;
    /* Align bottom to stand on edge */
    height: 100%;
    position: relative;
    max-width: 55%;
    /* Keep width large for image */
    margin-right: -5%;
    /* Pull image slightly outside standard container bounds to right edge */
}

.hero-image {
    height: auto;
    max-height: 92vh;
    /* Use almost all vertical space */
    width: 100%;
    object-fit: contain;
    object-position: bottom right;
    mix-blend-mode: multiply;
    animation: fadeUp 1s ease-out;
    transform-origin: bottom right;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 0;
        margin-top: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
        font-size: 1.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 100%;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-image {
        max-height: 45vh;
        width: auto;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-auth {
        display: none;
        /* Hide top button on mobile to prevent overlap */
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 32px;
    }

    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    /* Flex to center */
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.full-width {
    width: 100%;
    margin-top: 10px;
}