:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-900: #111827;
    font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--white);
    color: var(--gray-900);
    overflow-x: hidden;
}

/* Animated Background Gradient */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #e0f2fe, #ffffff, #dbeafe, #f0f9ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Elements */
.float-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.float-element:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--blue-300);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--blue-500);
    bottom: -5%;
    left: -5%;
    animation-delay: 5s;
}

.float-element:nth-child(3) {
    width: 300px;
    height: 300px;
    background: var(--blue-200);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: #ffffff;
    color: #3b82f6;
    border: none;
    outline: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(68, 71, 253, 0.4);
}

#scrollTopBtn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate 3s linear infinite;
}

#scrollTopBtn:hover::before {
    opacity: 1;
}

#scrollTopBtn:hover {
    color: #ffffff;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

#scrollTopBtn:active {
    transform: translateY(-4px) scale(1.05);
}

#scrollTopBtn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

#scrollTopBtn:hover i {
    transform: translateY(-3px);
    animation: bounce 0.6s ease infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Fade in animation when button appears */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#scrollTopBtn.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.5s ease;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    object-fit: cover;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--blue-600) !important;
    background: var(--blue-50);
}

.btn-login {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1rem 0 4rem;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.hero-content h3 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.45);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: var(--blue-600);
    padding: 1rem 2.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--blue-200);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--blue-50);
    border-color: var(--blue-600);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.animated-card {
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    animation: none;
}

.animated-card:hover .hero-logo {
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.5));
}

.animated-card:hover .hero-app-name {
    color: #667eea;
    transform: scale(1.05);
}

.hero-logo {
    animation: zoomIn 0.6s ease-out 0.3s both;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(102, 126, 234, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    border-radius: 10px;
}

.animated-card:hover .hero-logo::before {
    opacity: 1;
}

.hero-app-name {
    animation: fadeIn 0.6s ease-out 0.5s both;
    color: #333;
    transition: all 0.4s ease;
}

.btn-login {
    animation: fadeInUp 0.6s ease-out 0.7s both;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 100%;
    height: 300px;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card {
    animation: float 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.card:hover {
    animation-play-state: paused;
}

/* Shimmer effect on card */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.card {
    position: relative;
    overflow: hidden;
}

.stats-box {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--blue-100);
    flex: 1;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-mockup {
    position: relative;
    z-index: 2;
}

.mockup-main {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.mockup-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-300);
}

.mockup-content {
    display: grid;
    gap: 1rem;
}

.mockup-card {
    background: var(--blue-50);
    border-radius: 12px;
    padding: 1.2rem;
    border-left: 4px solid var(--blue-500);
    animation: slideIn 1s ease both;
}

.mockup-card:nth-child(1) {
    animation-delay: 0.8s;
}

.mockup-card:nth-child(2) {
    animation-delay: 1s;
}

.mockup-card:nth-child(3) {
    animation-delay: 1.2s;
}

.mockup-bar {
    height: 10px;
    background: var(--blue-200);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.mockup-bar.short {
    width: 60%;
}

.mockup-bar.medium {
    width: 80%;
}

.mockup-bar.long {
    width: 90%;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    position: relative;
}

.section-badge {
    display: inline-block;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--blue-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-50), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    border-color: var(--blue-300);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 2rem;
    color: var(--blue-600);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.how-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, white, var(--blue-50));
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.step-card:hover::after {
    width: 100%;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.4s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.step-description {
    color: var(--gray-600);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: white;
    color: var(--blue-600);
    padding: 1rem 2.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: var(--blue-700);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--blue-600);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: white;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--blue-100);
}

.footer-logo {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--blue-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: white;
    transform: translateY(-3px);
}

.footer-text {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--blue-700);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .stats-box {
        flex-direction: column;
    }

    .hero {
        padding: 6rem 0 3rem;
    }
}