/* HEROTOTO - Custom Styles */
:root {
  --primary: #d4af37;
  --primary-dark: #b8960c;
  --secondary: #1a1a2e;
  --accent: #e94560;
  --text-light: #f8f9fa;
  --text-dark: #1a1a2e;
  --bg-dark: #0f0f1a;
  --bg-card: #16213e;
  --bg-card2: #1a1a2e;
}

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

body { font-family: 'Inter', 'Segoe UI', sans-serif; line-height: 1.7; transition: background 0.3s, color 0.3s; }
body.dark { background: var(--bg-dark); color: var(--text-light); }
body.light { background: #f8f9fa; color: var(--text-dark); }

/* Scroll Progress Bar */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--primary),var(--accent)); z-index: 9999; transition: width 0.1s; }

/* Sticky Header */
header { position: fixed; top: 3px; left: 0; right: 0; z-index: 1000; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all 0.3s; }
.dark header { background: rgba(15,15,26,0.92); border-bottom: 1px solid rgba(212,175,55,0.2); }
.light header { background: rgba(248,249,250,0.92); border-bottom: 1px solid rgba(212,175,55,0.3); }
header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

/* Logo */
.logo { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 2px; }

/* Nav */
nav a { position: relative; font-weight: 500; transition: color 0.2s; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; }
.dark nav a { color: #cbd5e1; }
.dark nav a:hover, .dark nav a.active { color: var(--primary); }
.light nav a { color: #475569; }
.light nav a:hover, .light nav a.active { color: var(--primary-dark); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.dark .hero { background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%); }
.light .hero { background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #f0e6ff 100%); }

/* Floating shapes */
.shape { position: absolute; border-radius: 50%; animation: float 6s ease-in-out infinite; opacity: 0.12; }
.shape-1 { width: 300px; height: 300px; background: var(--primary); top: 10%; right: 5%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--accent); bottom: 15%; left: 5%; animation-delay: 2s; }
.shape-3 { width: 150px; height: 150px; background: #4f46e5; top: 50%; right: 25%; animation-delay: 4s; }
.shape-4 { width: 80px; height: 80px; background: var(--primary); top: 30%; left: 20%; animation-delay: 1s; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes countUp { from { opacity:0; } to { opacity:1; } }
@keyframes pulse-ring { 0% { transform:scale(1); opacity:0.7; } 100% { transform:scale(1.5); opacity:0; } }
@keyframes gradientShift { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }

/* Animated gradient text */
.gradient-text { background: linear-gradient(135deg,var(--primary) 0%,var(--accent) 50%,#4f46e5 100%); background-size: 200% 200%; animation: gradientShift 4s ease infinite; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: #0f0f1a; font-weight: 700; border-radius: 50px; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 20px rgba(212,175,55,0.4); border: none; cursor: pointer; font-size: 1rem; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,175,55,0.6); }

.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; background: transparent; font-weight: 600; border-radius: 50px; text-decoration: none; transition: all 0.3s; border: 2px solid var(--primary); cursor: pointer; font-size: 1rem; }
.dark .btn-secondary { color: var(--primary); }
.light .btn-secondary { color: var(--primary-dark); }
.btn-secondary:hover { background: var(--primary); color: #0f0f1a; }

/* Cards */
.card { border-radius: 16px; transition: all 0.3s; overflow: hidden; }
.dark .card { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.1); }
.light .card { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.card:hover { transform: translateY(-6px); }
.dark .card:hover { border-color: rgba(212,175,55,0.4); box-shadow: 0 20px 40px rgba(212,175,55,0.1); }
.light .card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

/* Stat counters */
.stat-number { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Section divider */
.section-divider { height: 2px; background: linear-gradient(90deg,transparent,var(--primary),transparent); margin: 0 auto; max-width: 200px; }

/* Section headings */
.section-tag { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.dark .section-tag { background: rgba(212,175,55,0.15); color: var(--primary); }
.light .section-tag { background: rgba(212,175,55,0.15); color: var(--primary-dark); }

/* Testimonial Slider */
.testimonial-track { display: flex; gap: 24px; transition: transform 0.5s ease; }
.testimonial-card { flex: 0 0 calc(33.333% - 16px); border-radius: 16px; padding: 32px; position: relative; }
.dark .testimonial-card { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.1); }
.light .testimonial-card { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.stars { color: var(--primary); letter-spacing: 4px; }
.quote-icon { font-size: 4rem; line-height: 1; opacity: 0.2; color: var(--primary); position: absolute; top: 16px; right: 24px; font-family: Georgia, serif; }
@media (max-width: 768px) { .testimonial-card { flex: 0 0 calc(100% - 0px); } }
@media (min-width: 769px) and (max-width: 1024px) { .testimonial-card { flex: 0 0 calc(50% - 12px); } }

/* FAQ Accordion */
.faq-item { border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.dark .faq-item { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.1); }
.light .faq-item { background: #fff; border: 1px solid #e2e8f0; }
.faq-question { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; transition: all 0.2s; }
.dark .faq-question:hover { color: var(--primary); }
.light .faq-question:hover { color: var(--primary-dark); }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s; color: var(--primary); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-answer-inner { padding: 0 24px 20px; opacity: 0.8; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; }

/* Mobile menu */
#mobile-menu { transform: translateY(-100%); transition: transform 0.3s ease; }
#mobile-menu.open { transform: translateY(0); }
.dark #mobile-menu { background: rgba(15,15,26,0.97); }
.light #mobile-menu { background: rgba(248,249,250,0.97); }

/* Back to top */
#back-to-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: #0f0f1a; border: none; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 999; opacity: 0; transform: translateY(20px); transition: all 0.3s; box-shadow: 0 4px 20px rgba(212,175,55,0.4); }
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(212,175,55,0.6); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Dark mode toggle */
#dark-toggle { background: none; border: 2px solid var(--primary); border-radius: 50px; padding: 6px 14px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 6px; }
.dark #dark-toggle { color: var(--primary); }
.light #dark-toggle { color: var(--primary-dark); }
#dark-toggle:hover { background: var(--primary); color: #0f0f1a; }

/* Footer */
footer { border-top: 1px solid rgba(212,175,55,0.2); }
.dark footer { background: #0a0a14; }
.light footer { background: #1a1a2e; color: var(--text-light); }
.footer-link { opacity: 0.7; transition: opacity 0.2s; text-decoration: none; }
.footer-link:hover { opacity: 1; color: var(--primary); }
.dark .footer-link { color: #94a3b8; }
.light footer .footer-link { color: #94a3b8; }

/* Blog search */
#blog-search { border-radius: 50px; padding: 14px 24px; font-size: 1rem; width: 100%; max-width: 500px; border: 2px solid transparent; transition: all 0.3s; outline: none; }
.dark #blog-search { background: var(--bg-card); color: var(--text-light); border-color: rgba(212,175,55,0.2); }
.dark #blog-search:focus { border-color: var(--primary); }
.light #blog-search { background: #fff; color: var(--text-dark); border-color: #e2e8f0; }
.light #blog-search:focus { border-color: var(--primary); }

/* Article TOC */
.toc { border-radius: 12px; padding: 24px; position: sticky; top: 80px; }
.dark .toc { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.15); }
.light .toc { background: #f8f9fa; border: 1px solid #e2e8f0; }
.toc a { display: block; padding: 6px 0; font-size: 0.9rem; text-decoration: none; opacity: 0.75; transition: opacity 0.2s; border-left: 2px solid transparent; padding-left: 12px; margin-bottom: 4px; }
.toc a:hover, .toc a.active { opacity: 1; border-left-color: var(--primary); }
.dark .toc a { color: #cbd5e1; }
.light .toc a { color: #475569; }
.dark .toc a.active { color: var(--primary); }
.light .toc a.active { color: var(--primary-dark); }

/* Article content */
.article-content h2 { font-size: 1.6rem; font-weight: 700; margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.dark .article-content h2, .dark .article-content h3 { color: var(--primary); }
.light .article-content h2 { color: #1a1a2e; }
.light .article-content h3 { color: #334155; }
.article-content p { margin-bottom: 1.2rem; opacity: 0.9; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-content li { margin-bottom: 0.5rem; opacity: 0.9; }
.article-content strong { color: var(--primary); }

/* Social share */
.social-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.share-fb { background: #1877f2; color: #fff; }
.share-tw { background: #1da1f2; color: #fff; }
.share-wa { background: #25d366; color: #fff; }
.share-copy { background: var(--primary); color: #0f0f1a; }
.social-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* Newsletter */
.newsletter-form input { border-radius: 50px 0 0 50px; padding: 14px 20px; border: none; outline: none; font-size: 1rem; }
.dark .newsletter-form input { background: rgba(255,255,255,0.1); color: var(--text-light); }
.light .newsletter-form input { background: rgba(255,255,255,0.2); color: var(--text-dark); }
.newsletter-form button { border-radius: 0 50px 50px 0; padding: 14px 24px; background: var(--primary); color: #0f0f1a; font-weight: 700; border: none; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: var(--primary-dark); }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; }
.breadcrumb a { text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 1; color: var(--primary); }
.breadcrumb span { opacity: 0.4; }

/* Contact form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 18px; border-radius: 12px; font-size: 1rem; outline: none; transition: border-color 0.2s; font-family: inherit; }
.dark .form-group input, .dark .form-group textarea { background: var(--bg-card); color: var(--text-light); border: 1px solid rgba(212,175,55,0.2); }
.dark .form-group input:focus, .dark .form-group textarea:focus { border-color: var(--primary); }
.light .form-group input, .light .form-group textarea { background: #fff; color: var(--text-dark); border: 1px solid #e2e8f0; }
.light .form-group input:focus, .light .form-group textarea:focus { border-color: var(--primary); }

/* Portfolio filter */
.filter-btn { padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.dark .filter-btn { background: var(--bg-card); color: #94a3b8; border-color: rgba(212,175,55,0.2); }
.light .filter-btn { background: #fff; color: #475569; border-color: #e2e8f0; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #0f0f1a; border-color: var(--primary); }

/* Progress bar for skills */
.progress-bar { height: 8px; border-radius: 50px; overflow: hidden; }
.dark .progress-bar { background: rgba(255,255,255,0.1); }
.light .progress-bar { background: #e2e8f0; }
.progress-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg,var(--primary),var(--accent)); transition: width 1.5s ease; }

/* Table responsive */
.table-wrapper { overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 16px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
td { padding: 14px 16px; }
.dark th { background: rgba(212,175,55,0.1); color: var(--primary); }
.dark td { border-top: 1px solid rgba(255,255,255,0.05); }
.dark tr:hover td { background: rgba(255,255,255,0.02); }
.light th { background: #f1f5f9; color: #475569; }
.light td { border-top: 1px solid #e2e8f0; }

/* Badge */
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-gold { background: rgba(212,175,55,0.15); color: var(--primary); }
.badge-accent { background: rgba(233,69,96,0.15); color: var(--accent); }
.badge-blue { background: rgba(79,70,229,0.15); color: #818cf8; }
.badge-green { background: rgba(16,185,129,0.15); color: #34d399; }

/* Map placeholder */
.map-container { border-radius: 16px; overflow: hidden; border: 1px solid rgba(212,175,55,0.2); }

/* Service card icon */
.service-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; }
.dark .service-icon { background: rgba(212,175,55,0.1); }
.light .service-icon { background: rgba(212,175,55,0.12); }

/* Timeline */
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: -32px; width: 2px; background: linear-gradient(to bottom,var(--primary),transparent); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #0f0f1a; font-weight: 700; }

/* Smooth scroll active section */
section { scroll-margin-top: 80px; }

/* Responsive */
@media (max-width: 640px) {
  .stat-number { font-size: 2rem; }
  .hero h1 { font-size: 2rem !important; }
  .hero h2 { font-size: 1.1rem !important; }
}

/* Light mode adjustments */
.light .text-gray-300 { color: #475569; }
.light .text-gray-400 { color: #64748b; }
.light .text-gray-200 { color: #374151; }
.light .section-title { color: #1a1a2e; }

/* Selection */
::selection { background: var(--primary); color: #0f0f1a; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
