/* Base Styles */
:root {
    --primary-color: #5b13ec;
    /* Vibrant Deep Purple */
    --primary-hover: #7b3aff;
    --secondary-color: #f7f9fc;
    /* Light Gray Background */
    --text-color: #1e293b;
    /* Dark Slate */
    --text-light: #64748b;
    /* Medium Slate */
    --bg-color: #ffffff;
    /* Pure White */
    --card-bg: rgba(255, 255, 255, 0.7);
    /* Light Frosted Glass Base */
    --border-color: rgba(91, 19, 236, 0.1);
    /* Subtle Purple Border */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', sans-serif; /* Modern Headline Font */
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    background-image: radial-gradient(circle at top right, rgba(91, 19, 236, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 163, 255, 0.05), transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em; /* Tighter tracking for modern look */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 19, 236, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-hover);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

button.btn {
    font-family: var(--font-family);
    font-size: 1rem;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-links {
    margin: 0 auto;
    display: flex;
    list-style: none;
    gap: 20px;
}

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

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

.auth-links {
    display: flex;
    gap: 10px;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(91, 19, 236, 0.1) 0%, transparent 50%);
    animation: pulse 10s infinite alternate;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem; /* Slightly larger */
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-color), #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin-top: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(91, 19, 236, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    margin-top: 50px;
}

.scroll-indicator a {
    display: inline-block;
    color: var(--text-light);
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-indicator a:hover {
    color: var(--primary-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(91, 19, 236, 0.1);
    border-color: var(--border-color);
}

.feature-icon {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(91, 19, 236, 0.05) 0%, rgba(247, 249, 252, 0) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Animations */
.reveal,
.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active,
.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger card reveals */
.feature-grid .reveal-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-grid .reveal-card:nth-child(2) {
    transition-delay: 0.3s;
}

.feature-grid .reveal-card:nth-child(3) {
    transition-delay: 0.5s;
}

/* Footer */
footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    padding: 60px 0 20px;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 10px;
    text-align: center;
}

.auth-card p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(91, 19, 236, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.auth-links-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error ul {
    margin-left: 20px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .nav-logo {
        height: 40px !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    /* Dashboard Responsive Utilities */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .dashboard-header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-header-actions .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    .responsive-grid {
        grid-template-columns: 1fr !important;
    }

    .responsive-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .responsive-flex>div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .responsive-flex .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid var(--border-color);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-hover);
}

.btn-cookie-decline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cookie-decline:hover {
    background-color: #f1f5f9;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    /* Mobile Header Menu */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease;
        z-index: 99;
        border-top: 1px solid transparent;
        opacity: 0;
    }

    .nav-wrapper.active {
        max-height: 500px;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        opacity: 1;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: right;
        gap: 0;
        margin-bottom: 20px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        padding-right: 10px;
    }

    .auth-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: flex-end;
        padding-right: 10px;
    }

    .auth-links .btn {
        width: auto;
        text-align: center;
        padding: 10px 25px;
    }

    /* Hamburger Animation */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

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

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(91, 19, 236, 0.4);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(91, 19, 236, 0.6);
    color: #FFF;
}