:root {
    --primary: #bc2025;
    --primary-dark: #901a1e;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #fee2e2;
    /* Light red */
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #f1f5f9;
    /* Light gray */
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #fecaca;
    /* Another light red */
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.text-primary {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-login {
    text-decoration: none;
    color: var(--white);
    background: var(--primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(188, 32, 37, 0.2);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(188, 32, 37, 0.3);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(188, 32, 37, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(188, 32, 37, 0.35);
}

.btn-primary i {
    margin-left: 8px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--white);
}

/* Hero Image */
.hero-image {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
    max-width: 50%;
    /* Ensure it doesn't take more than half */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: hero-wiggle 6s ease-in-out infinite;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
    animation: none;
}

@keyframes hero-wiggle {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(-10px);
    }
}

/* Wave Dots Animation */
.wave-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.wave-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 4px rgba(188, 32, 37, 0.2);
}

@keyframes wave-move {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-alt);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
        /* Reset max-width for mobile */
    }

    .hero-img {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .nav {
        display: none;
        /* Simple hide for mobile for now */
    }

    .logo-text {
        font-size: 20px;
    }
}