@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

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

:root {
    --primary-blue: #3d5175;
    --accent-red: #e95454;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-bg: linear-gradient(135deg, #3d5175 0%, #2a3f5f 100%);
}

body {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.6;
    color: var(--text-light);
    overflow-x: hidden;
}

/* Animated Background */
.hero {
    min-height: 100vh;
    background: var(--gradient-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(233, 84, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(233, 84, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.logo-icon {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--text-light), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(233, 84, 84, 0.3);
    border-color: var(--accent-red);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.cta-section {
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, var(--accent-red), #ff6b6b);
    color: var(--text-light);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(233, 84, 84, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px; 
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(233, 84, 84, 0.6);
    background: linear-gradient(45deg, #ff6b6b, var(--accent-red));
}

.login-btn:active {
    transform: translateY(-1px);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: rgba(233, 84, 84, 0.3);
    font-size: 2rem;
    animation: floatAround 15s linear infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.floating-icon:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: -7s;
}

@keyframes floatAround {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.5; }
    50% { transform: translateY(0px) rotate(180deg); opacity: 0.3; }
    75% { transform: translateY(20px) rotate(270deg); opacity: 0.5; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.3; }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .login-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}