:root {
    /* Modern Color Palette */
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #f72585;
    --accent-color: #4cc9f0;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --danger: #ef4444;
    --success: #10b981;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #111827;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

#user-links,
#auth-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a:not(.btn) {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
}

.btn-primary:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--text-color);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost {
    background: transparent;
    color: var(--text-color);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-google {
    background-color: #4285F4;
    color: white;
    border: 1px solid #4285F4;
    transition: var(--transition);
}

.btn-google:hover {
    background-color: #357ae8;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: #0f172a;
    height: 90vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    margin-top: -74px;
    padding-top: 74px;
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
}

.hero-bg-pinned {
    position: fixed;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    pointer-events: none;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(58, 12, 163, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: white;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2px;
    color: #d7defc;
    margin: -0.25rem 0 1.35rem;
    text-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}



.custom-shape-divider-bottom-1681234567 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.custom-shape-divider-bottom-1681234567 svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 60px;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1681234567 .shape-fill {
    fill: var(--white);
    /* Changed to match Features section bg */
}

/* --- Features Section (NEW) --- */
.features-section {
    padding: 80px 0;
    background: white;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    padding: 20px;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- Stats Section --- */
.stats-section {
    padding: 80px 0;
    position: relative;
    z-index: 3;
    background-color: var(--bg-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* --- How It Works --- */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* --- Latest Items --- */
.latest-items {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-all-btn {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all-btn:hover {
    gap: 12px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.item-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.item-image {
    height: 220px;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    position: relative;
}

.item-content {
    padding: 20px;
}

.item-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-lost {
    color: var(--danger);
}

.badge-found {
    color: var(--success);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Footer --- */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.footer-col ul li a {
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: rotate(360deg);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 74px);
        min-height: calc(100svh - 74px);
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .hero-bg-pinned {
        background-position: center top;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(58, 12, 163, 0.58));
    }

    .hero-content {
        max-width: 640px;
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 2.35rem;
        margin-bottom: 0.45rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 1.18rem;
        margin-bottom: 1rem;
        color: #cdd7ff;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: min(100%, 290px);
    }

    .stats-grid,
    .footer-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animated Password Toggle Styles */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-control {
    padding-right: 50px;
}

/* Base toggle button */
.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 0;
    outline: none;
}

.password-toggle-btn:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.password-toggle-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* The SVG inside the button */
.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke 0.3s ease;
}

.password-toggle-btn:hover svg {
    stroke: var(--primary-color);
}

/* Anatomy of the eye SVG */
.eye-sclera {
    transition: d 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eye-iris {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-origin: center;
}

.eye-slash {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State: Password Hidden (Slash is drawn, iris shrinks/fades, sclera flattens slightly) */
.password-input-group.is-hidden .eye-slash {
    stroke-dashoffset: 0;
}

.password-input-group.is-hidden .eye-iris {
    transform: scale(0.3);
    opacity: 0;
}

.password-input-group.is-hidden .eye-sclera {
    /* Flatten the eye shape slightly to look like a closed lid */
    d: path('M 2 12 C 2 12 7 14 12 14 C 17 14 22 12 22 12 C 22 12 17 10 12 10 C 7 10 2 12 2 12 Z');
}

/* Validation Styles */
.form-control.error {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-control.success {
    border-color: var(--success);
}

.validation-message {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 5px;
    display: none;
}

.password-requirements {
    font-size: 0.8rem;
    margin-top: 8px;
    color: #6b7280;
    list-style: none;
    padding: 0;
    display: none;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.password-requirements li i {
    font-size: 0.7rem;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.invalid {
    color: var(--danger);
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 50px;
}

/* Professional Team Styles (No Box) */
.team-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.member-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    /* Soft shadow instead of border for a premium look */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    /* Crisp inner border */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover .member-img-container {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.team-card:hover h3 {
    color: var(--primary-color);
}

.member-role {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Team Social Icons */
.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Team Section Divider */
.team-section {
    position: relative;
    padding-bottom: 120px;
    /* Adjusted padding */
}

.team-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.team-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 60px;
    /* Reduced height for subtler curve */
}

.team-shape-fill {
    fill: #111827;
    /* Matches Footer Background */
}

/* --- Custom Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--success);
    font-size: 2.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.modal-message {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* --- Sticky Reveal Footer & Main Wrapper --- */
.enable-sticky-footer .main-wrapper {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    /* Adds depth over footer */
    /* Margin bottom handled by JS */
}

.enable-sticky-footer footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}
