/* Base styles */
:root {
    --yinmn-blue: #485696;
    --platinum: #e7e7e7;
    --sunset: #f9c784;
    --pumpkin: #fc7a1e;
    --golden-gate-bridge: #f24c00;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --radius: 0.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--yinmn-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--pumpkin);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--golden-gate-bridge);
}

ul {
    list-style-type: none;
    padding-left: 0;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--yinmn-blue);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--platinum);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes borderPulse {
    0% { border-color: var(--yinmn-blue); }
    50% { border-color: var(--golden-gate-bridge); }
    100% { border-color: var(--yinmn-blue); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--pumpkin);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--golden-gate-bridge);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 76, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--yinmn-blue);
    border: 2px solid var(--yinmn-blue);
}

.btn-outline:hover {
    background-color: rgba(72, 86, 150, 0.05);
    transform: translateY(-2px);
}

.search-btn {
    background-color: var(--pumpkin);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--golden-gate-bridge);
}

/* Grid layouts */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

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

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Header and Navigation */
.pre-header {
    background-color: var(--yinmn-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.pre-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--sunset);
}

.contact-info i {
    margin-right: 6px;
}

.user-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.dropdown-toggle:hover + .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(72, 86, 150, 0.05);
    color: var(--pumpkin);
}

.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.main-nav .nav-menu {
    display: flex;
    gap: 30px;
}

.main-nav .nav-menu > li > a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    display: inline-block;
    position: relative;
}

.main-nav .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pumpkin);
    transition: width 0.3s ease;
}

.main-nav .nav-menu > li > a:hover::after,
.main-nav .nav-menu > li.active > a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon, .wishlist-icon, .account-icon {
    position: relative;
}

.cart-icon a, .wishlist-icon a, .account-icon a {
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.cart-icon a:hover, .wishlist-icon a:hover, .account-icon a:hover {
    color: var(--pumpkin);
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--pumpkin);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(72, 86, 150, 0.05) 0%, rgba(249, 199, 132, 0.05) 50%, rgba(72, 86, 150, 0.05) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--yinmn-blue);
}

.hero-search {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.search-container {
    display: flex;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--pumpkin);
}

.hero-tags {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    color: var(--text-light);
    font-weight: 500;
}

.hero-tags a {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(72, 86, 150, 0.1);
    color: var(--yinmn-blue);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hero-tags a:hover {
    background-color: var(--pumpkin);
    color: var(--white);
}

/* Category styles */
.category-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(72, 86, 150, 0.1);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--yinmn-blue);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background-color: var(--pumpkin);
    color: var(--white);
    transform: rotate(10deg);
}

.category-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--pumpkin);
}

.template-count {
    color: var(--text-light);
    font-size: 14px;
}

/* Template Card Styles */
.template-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.template-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--pumpkin);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.template-badge.sale {
    background-color: var(--golden-gate-bridge);
}

.template-info {
    padding: 20px;
}

.template-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.template-info h3 {
    color: var(--yinmn-blue);
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.template-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.template-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    color: var(--yinmn-blue);
    font-weight: 700;
    font-size: 18px;
}

.old-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 16px;
}

.template-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--yinmn-blue);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--pumpkin);
}

.details-btn {
    width: 46px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.details-btn:hover {
    background-color: var(--pumpkin);
    color: var(--white);
    border-color: var(--pumpkin);
}

/* Footer Styles */
.footer {
    background-color: var(--yinmn-blue);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--pumpkin);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--sunset);
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--pumpkin);
    transform: translateY(-3px);
}

/* Additional Services Section */
.additional-services {
    background-color: var(--white);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--yinmn-blue);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--pumpkin);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(72, 86, 150, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--yinmn-blue);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--pumpkin);
    color: var(--white);
    transform: rotate(10deg);
}

.service-card h3 {
    color: var(--yinmn-blue);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--pumpkin);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card .btn {
    align-self: flex-start;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--platinum);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-top: 20px;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 80px;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(252, 122, 30, 0.2);
    font-family: Georgia, serif;
}

.testimonial-content p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: var(--yinmn-blue);
    font-size: 18px;
}

.author-info p {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--golden-gate-bridge);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(252, 122, 30, 0.1) 0%, rgba(252, 122, 30, 0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(252, 122, 30, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--pumpkin);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--pumpkin);
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--yinmn-blue);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .pre-header {
        display: none;
    }
    
    .contact-info {
        display: none;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .features-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Helper Classes */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.text-center {
    text-align: center;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.mb-4 {
    margin-bottom: 20px;
}

.mt-4 {
    margin-top: 20px;
}

.py-4 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.bg-white {
    background-color: white;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
} 