@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}
/* Add Font Awesome CDN import at the top */


/* Navigation Buttons Fix */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section Buttons Fix */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
    justify-content: center;
}

/* Modal Form Fixes */
.modal-body {
    padding: 0 32px 32px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    z-index: 2;
    font-size: 1rem;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Submit Button Fix */
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

/* Password Strength Fix */
.password-strength {
    height: 4px;
    margin: 8px 0 4px 0;
    border-radius: 2px;
    transition: var(--transition);
    width: 0;
}

.strength-weak {
    background: var(--danger);
    width: 25%;
}

.strength-fair {
    background: var(--warning);
    width: 50%;
}

.strength-good {
    background: var(--accent);
    width: 75%;
}

.strength-strong {
    background: var(--success);
    width: 100%;
}

.form-group small {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* Auth Switch Link Fix */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-switch p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Loading State Fix */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Styles Fix */
.message {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Modal Header Fix */
.modal-header {
    padding: 24px 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--danger);
}

/* Select Dropdown Fix */
.input-with-icon select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--surface);
        border: none;
        border-radius: var(--radius);
        color: var(--text);
        cursor: pointer;
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px;
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 12px 24px;
    }
    
    .input-with-icon input,
    .input-with-icon select {
        padding: 10px 16px 10px 40px;
        font-size: 0.95rem;
    }
    
    .input-with-icon i {
        left: 14px;
        font-size: 0.9rem;
    }
}

/* Ensure icons are visible */
.fas, .fab {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
}

/* Specific icon fixes */
.nav-logo i,
.feature-icon i,
.about-feature i,
.footer-logo i,
.social-links i,
.hero-buttons i,
.modal-close i,
.input-with-icon i,
.btn i {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Navigation Styles - Fixed & Clean */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-logo i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Navigation Buttons */
.nav-links .btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.nav-links .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.nav-links .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.nav-links .btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.nav-links .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-mobile-toggle:hover {
    background: var(--surface);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
        margin: 8px 0;
    }

    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure proper spacing for fixed nav */
body {
    padding-top: 70px;
}
/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    z-index: 2;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.25rem;
}

.card-1 {
    top: 20px;
    left: 0;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 120px;
    right: 0;
    animation: float 3s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite 2s;
}

.dashboard-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.preview-header {
    background: var(--primary);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.preview-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: calc(100% - 40px);
}

.preview-chart {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 8px;
}

.preview-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-stat {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    flex: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 24px;
}

.feature-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text > p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 48px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 4px;
}

.about-feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-feature p {
    color: var(--text-light);
}

/* About Visual */
.about-visual {
    position: relative;
    height: 400px;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.visual-card i {
    color: var(--primary);
    font-size: 1.5rem;
}

.visual-1 {
    top: 0;
    left: 0;
    animation: float 4s ease-in-out infinite;
}

.visual-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: float 4s ease-in-out infinite 1.3s;
}

.visual-3 {
    bottom: 0;
    left: 20%;
    animation: float 4s ease-in-out infinite 2.6s;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 32px 0;
    text-align: center;
    color: #94a3b8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 32px 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 0 32px 32px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    transition: var(--transition);
    width: 0;
}

.strength-weak {
    background: var(--danger);
    width: 25%;
}

.strength-fair {
    background: var(--warning);
    width: 50%;
}

.strength-good {
    background: var(--accent);
    width: 75%;
}

.strength-strong {
    background: var(--success);
    width: 100%;
}

.form-group small {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
}

/* Message */
.message {
    margin: 16px 32px;
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px;
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
}