/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f9f9f9;
    line-height: 1.6;
}

/* Navbar - sticky with rounded bottom corners */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.extra-cards.hidden {
    display: none;
}

/* Keep existing styles */
.expand-btn-container {
    text-align: center;
    margin-top: 15px;
}

.extra-videos.hidden {
    display: none;
}

.template-title {
    background: rgba(255, 255, 255, 0.7);
    /* light semi-transparent white */
    color: #333;
    /* dark text */
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 8px 5px;
    border-radius: 0 0 8px 8px;
    /* round bottom corners */
    position: relative;
    top: -5px;
    /* slight overlap if needed */
}


.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a60ff;
}

.logo span {
    color: #ff4a89;
}

.nav-btn {
    text-decoration: none;
    padding: 10px 18px;
    background: linear-gradient(135deg, #4a60ff, #ff4a89);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #3e50e8, #e53e7b);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a60ff, #ff4a89);
    color: #fff;
    text-align: center;
    padding: 80px 20px 100px;
    position: relative;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    animation: fadeInUp 1s ease;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #4a60ff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Templates Section */
.templates-section {
    padding: 60px 20px;
    text-align: center;
}

.templates-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4a60ff;
}

.templates-section p {
    margin-bottom: 30px;
    color: #666;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.template-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-item img {
    width: 100%;
    height: auto;
    display: block;
}

.template-item h3 {
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
}

.template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* About Section */
#about {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#about p {
    color: #555;
}

/* Footer */
footer {
    background: #4a60ff;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    margin-top: 40px;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}