
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #3498db;
    --dark: #2c3e50;
    --accent: #e74c3c;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    overflow-x: hidden;
}

/* --- Smooth Entry Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Navigation (Glass Effect) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: clamp(1.2rem, 5vw, 1.8rem); /* Responsive Font */
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 1rem);
    transition: 0.3s;
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-login:hover {
    transform: scale(1.05);
    background: var(--dark);
}

/* --- Hero Section (Animated) --- */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: clamp(4rem, 15vh, 8rem) 5%;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%); /* Modern Curve */
}

.hero-content h1 {
    /* Font size auto-adjusts between 2rem and 4rem */
    font-size: clamp(2rem, 8vw, 4rem); 
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-inline: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.btn-primary {
    text-decoration: none;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.4);
}

/* --- Features Grid (Adaptive) --- */
.features-section {
    padding: 5rem 5%;
}

.features-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 4rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: var(--primary);
}

.feature-card:hover h3, .feature-card:hover p {
    color: white;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem;
    margin-top: 4rem;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .nav-links a:not(.btn-login) {
        display: none; /* Hide links on mobile for cleaner look */
    }
    .hero {
        clip-path: none;
        padding-top: 3rem;
    }
}