/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Header Styles */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6fffad 0%, #ff4562 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: flex;
    justify-content: center;
    /* flex-wrap: wrap; */
    gap: 20px;
    /* gap: 30px; */
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Templates Section */
.templates {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.template-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.template-card:hover {
    transform: translateY(-10px);
}

.template-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-img img {
    transform: scale(1.05);
}

.template-content {
    padding: 20px;
}

.template-content h3 {
    margin-bottom: 10px;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
}

.template-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.template-buttons a {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.view-all {
    text-align: center;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #a30c0c 0%, #43a2ee 100%);
    padding: 20px 0;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
}

/* Enhanced Mobile Responsiveness */

@media (max-width: 991px) {
    .header-container {
        padding: 10px 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    
    nav ul {
        justify-content: center;
        gap: 15px;
        margin-top: 5px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    /* Homepage sections */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Feature cards */
    .feature-card {
        text-align: center;
        padding: 20px;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
    
    /* CTA section */
    .cta {
        text-align: center;
        padding: 40px 0;
    }
    
    .cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    /* Minimize header */
    .header-container {
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    nav ul li a {
        font-size: 0.85rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Footer spacing */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        gap: 25px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}


/* Add this to your css/styles.css file */
.hero-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-image {
    flex: 1;
    max-width: 25%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content {
    flex: 1;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
}