/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: none;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    position: relative;
}

.nav-links li a::after {
    display: none;
}

.nav-links li a:hover::after {
    display: none;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #f0f7fd 50%, #f7fafd 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: #dbeafe;
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: none;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--secondary-color);
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 35px;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 15px 20px -3px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.05);
}

.hero-image {
    flex: 1.2;
    /* Allows it to take slightly more space than the text */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.2s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 900px;
    /* Allows the full-screen effect */
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(59, 130, 246, 0.15));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Features Section */
.features {
    padding: 80px 5%;
    background: var(--white);
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    color: #64748b;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.feature-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-color: rgba(59, 130, 246, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 60px 5%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 80px 5%;
    background-color: var(--light-bg);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }

    .about-content {
        text-align: center;
    }

    .about .section-title {
        text-align: center !important;
    }
}

/* Footer */
/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-info-item i {
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        margin-top: 40px;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        padding: 0 20px;
    }

    .logo-text {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
}

/* Auth Pages (Login & Register) */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 20px;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: #64748b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    background-color: #fef2f2;
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
    text-align: center;
    font-size: 0.9rem;
}

.success-msg {
    background-color: #ecfdf5;
    color: #10b981;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d1fae5;
    text-align: center;
    font-size: 0.9rem;
}