/* Simply Complex Solutions - Premium Styles */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #a855f7;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a24;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: #2a2a3a;
  --border-light: #3a3a4a;
  --gradient: linear-gradient(135deg, var(--primary), #a855f7);
  --gradient-accent: linear-gradient(135deg, #a855f7, #ec4899);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: var(--primary-light); text-decoration: none; transition: all 0.3s; }

/* Background Effects */
.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(99,102,241,0.05) 1px,transparent 1px), linear-gradient(90deg,rgba(99,102,241,0.05) 1px,transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: 0; }
.bg-glow { position: fixed; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle,rgba(99,102,241,0.2) 0%,transparent 60%); top: -300px; right: -300px; pointer-events: none; z-index: 0; animation: pulse 10s ease-in-out infinite; }
.bg-glow-2 { position: fixed; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle,rgba(168,85,247,0.15) 0%,transparent 60%); bottom: -200px; left: -200px; pointer-events: none; z-index: 0; animation: pulse 12s ease-in-out infinite reverse; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }

/* Header */
header, .navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    background: rgba(10,10,15,0.85); 
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); 
}
.header-inner, .nav-container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 12px 32px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.logo-text { background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
nav, .nav-links { display: flex; align-items: center; gap: 8px; }
nav a, .nav-links a { color: rgba(255, 255, 255, 0.6); font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 10px; position: relative; transition: all 0.25s ease; }
nav a:hover, .nav-links a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
nav a.nav-btn, .nav-links a.nav-btn { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: #ffffff; font-weight: 600; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3); }
nav a.nav-btn:hover, .nav-links a.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45); color: #ffffff; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s; border: none; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 24px rgba(99,102,241,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(99,102,241,0.1); }

/* Currency Toggle */
.currency-toggle { display: flex; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; padding: 0.25rem; gap: 0.25rem; }
.currency-btn { background: transparent; border: none; color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.currency-btn:hover { color: var(--text); }
.currency-btn.active { background: var(--gradient); color: #fff; box-shadow: 0 2px 12px rgba(99,102,241,0.4); }

/* Hero */
.hero { position: relative; padding: 140px 2rem 100px; text-align: center; max-width: 1100px; margin: 0 auto; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; color: var(--primary-light); margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2.5rem,6vw,4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero h1 .gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-bottom: 5rem; }
.hero-stats { display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 3rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.hero-stat-label { font-size: 1rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Sections */
section { padding: 7rem 2rem; max-width: 1500px; margin: 0 auto; z-index: 1; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; }

/* Template Grid */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2rem; }
.template-card { background: linear-gradient(155deg, var(--bg-card) 0%, #18181f 100%); border: 1px solid var(--border); border-radius: 28px; overflow: hidden; transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275); position: relative; }
.template-card:hover { transform: translateY(-14px) scale(1.01); border-color: var(--primary); box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 80px rgba(99,102,241,0.12); }
.template-image { height: 220px; position: relative; overflow: hidden; }
.template-image::before { content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: 0.9; }
.template-image::after { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="0.5"/></svg>'); background-size: 150% 150%; animation: shimmer 4s linear infinite; }
@keyframes shimmer { 0% { background-position: 0% 0%; } 100% { background-position: 150% 150%; } }
.template-image > * { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; gap: 0.75rem; }
.template-icon { font-size: 4.5rem; filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4)); animation: icon-glow 3s ease-in-out infinite; }
@keyframes icon-glow { 0%,100% { filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4)); } 50% { filter: drop-shadow(0 8px 40px rgba(99,102,241,0.4)); } }
.template-image-text { color: rgba(255,255,255,0.95); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; }
.template-badge { position: absolute; top: 1.25rem; left: 1.25rem; background: rgba(0,0,0,0.7); backdrop-filter: blur(16px); padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 2; letter-spacing: 1.5px; }
.template-badge.hot { color: #f59e0b; border: 1px solid rgba(245,158,11,0.4); }
.template-badge.popular { color: #10b981; border: 1px solid rgba(16,185,129,0.4); }
.template-badge.new { color: var(--primary-light); border: 1px solid rgba(99,102,241,0.4); }
.template-content { padding: 2rem; }
.template-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; letter-spacing: -0.01em; }
.template-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.template-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.feature-tag { background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.15)); padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.8rem; color: var(--primary-light); font-weight: 500; border: 1px solid rgba(99,102,241,0.25); }
.template-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.price { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
.buy-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; background: var(--gradient); color: #fff; border-radius: 14px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; }
.buy-link:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(99,102,241,0.5); }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.08)); border: 1px solid var(--border); border-radius: 36px; padding: 6rem 3rem; text-align: center; margin: 5rem auto; max-width: 1300px; }
.cta-section h2 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.cta-section p { color: var(--text-muted); font-size: 1.2rem; max-width: 650px; margin: 0 auto 3rem; line-height: 1.7; }
.cta-pricing { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.cta-price-card { background: linear-gradient(155deg, var(--bg-card), #1a1a28); border: 1px solid var(--border); border-radius: 24px; padding: 2.5rem 3rem; min-width: 300px; transition: all 0.3s; }
.cta-price-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.3); }
.cta-price-card.featured { border-color: var(--primary); background: linear-gradient(155deg, rgba(99,102,241,0.15), rgba(168,85,247,0.08)); box-shadow: 0 8px 32px rgba(99,102,241,0.2); }
.cta-price-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.cta-price-value { font-size: 3rem; font-weight: 800; color: var(--primary-light); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.cta-price-value span { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }
.cta-price-desc { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* Footer */
footer { background: linear-gradient(180deg, var(--bg-card) 0%, #080810 100%); border-top: 1px solid var(--border); padding: 6rem 2rem 2.5rem; margin-top: 5rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; }
.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; max-width: 320px; margin-top: 1.25rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.75rem; }
.footer-social a { width: 46px; height: 46px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s; font-size: 1.1rem; }
.footer-social a:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }
.footer-links h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text); letter-spacing: 0.5px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.85rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: all 0.3s; }
.footer-links a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 4rem; padding-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom a { color: var(--primary-light); }

/* Detail Page */
.detail-hero { padding: 180px 2rem 5rem; text-align: center; max-width: 1000px; margin: 0 auto; }
.detail-hero-icon { width: 120px; height: 120px; background: var(--gradient); border-radius: 30px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; margin: 0 auto 2.5rem; box-shadow: 0 8px 40px rgba(99,102,241,0.4); }
.detail-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.detail-hero p { font-size: 1.35rem; color: var(--text-muted); margin-bottom: 2rem; }
.detail-section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.detail-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.detail-section p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.features-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 2rem; }
.features-list li { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; font-size: 1rem; }
.features-list li i { color: var(--primary-light); font-size: 1.1rem; }
.related-templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }

/* About Page */
.about-content { max-width: 1000px; margin: 0 auto; }
.about-content h2 { font-size: 2.25rem; font-weight: 700; margin: 4rem 0 1.5rem; letter-spacing: -0.01em; }
.about-content p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.85; margin-bottom: 1.75rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.team-card { background: linear-gradient(155deg, var(--bg-card), #18181f); border: 1px solid var(--border); border-radius: 28px; padding: 2.5rem; text-align: center; transition: all 0.3s; }
.team-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.team-avatar { font-size: 5rem; margin-bottom: 1.25rem; }
.team-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.team-card .role { color: var(--primary-light); font-weight: 500; font-size: 1rem; margin-bottom: 1rem; }
.team-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Contact Page */
.contact-content { max-width: 900px; margin: 0 auto; }
.contact-form { background: linear-gradient(155deg, var(--bg-card), #18181f); border: 1px solid var(--border); border-radius: 28px; padding: 3rem; }
.form-group { margin-bottom: 1.75rem; }
.form-group label { display: block; margin-bottom: 0.75rem; font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1.1rem 1.25rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-size: 1rem; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 4rem; }
.contact-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; text-align: center; transition: all 0.3s; }
.contact-item:hover { border-color: var(--primary); transform: translateY(-4px); }
.contact-item i { font-size: 2.5rem; color: var(--primary-light); margin-bottom: 1rem; }
.contact-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 900px) {
  .header-inner { padding: 1rem 1.5rem; }
  nav { display: none; }
  .hero { padding: 150px 1.5rem 80px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-desc { font-size: 1.15rem; }
  .hero-stats { gap: 3rem; }
  .templates-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-pricing { flex-direction: column; align-items: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header scroll state */
.navbar.scrolled, header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Fade in on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-hero, .hero {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Pulse animation for CTAs */
@keyframes gentle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.btn-primary:hover {
    animation: gentle-pulse 1.5s infinite;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

