/* ===========================
   DeVVino — style.css
   =========================== */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --accent: #0f766e;
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
span.accent, h2 span, h1 span { color: var(--primary); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-nav {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  text-decoration: none; transition: var(--transition);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-nav {
  background: var(--primary); color: #fff;
  padding: 9px 20px; font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(108,99,255,0.35);
}
.btn-nav:hover { background: var(--primary-dark); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.logo-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(30,64,175,0.25));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.logo:hover .logo-icon {
  transform: rotate(-4deg) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(30,64,175,0.45));
}
.logo-text {
  font-size: 1.5rem; font-weight: 900;
  color: #4c1d95; letter-spacing: -0.5px;
  font-style: normal;
}
.logo-text em {
  color: #4c1d95;
  font-style: normal;
}
.nav-links {
  display: flex; list-style: none; gap: 32px; align-items: center;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.burger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.5rem; cursor: pointer;
}
.lang-switcher {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  margin-left: 14px;
  outline: none;
  cursor: pointer;
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.left { text-align: left; }
.section-header p { color: var(--text-muted); margin-top: 12px; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 60px;
  max-width: 1200px; margin: 0 auto;
  gap: 60px; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.hero-content { flex: 1; }
.badge {
  display: inline-block; background: var(--bg3);
  color: var(--primary); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content p {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 520px; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  flex: 1; position: relative;
  min-height: 400px; display: flex;
  align-items: center; justify-content: center;
}
.hero-circle {
  width: 360px; height: 360px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(30,64,175,0.08) 0%, rgba(15,118,110,0.08) 100%);
  border: 1px solid var(--border);
}
.floating-card {
  position: absolute; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 20px; font-size: 0.85rem; font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.card1 { top: 60px; left: 0; }
.card2 { top: 40%; right: 0; }
.card3 { bottom: 80px; left: 10%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== SERVICES ===== */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30,64,175,0.12);
}
.service-card--featured {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.12);
}
.service-card--soon {
  opacity: 0.92;
  background: var(--bg2);
}
.service-card--soon:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.service-soon-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.service-icon { font-size: 2.5rem; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== ABOUT ===== */
.about-container { display: flex; gap: 80px; align-items: center; }
.about-text { flex: 1; }
.about-text > p { color: var(--text-muted); margin-bottom: 40px; }
.stats { display: flex; gap: 48px; }
.stat { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.stat span { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.about-visual { flex: 1; }
.tech-stack {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.tech-stack span {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 20px;
  font-size: 0.88rem; font-weight: 500;
  transition: var(--transition);
}
.tech-stack span:hover { border-color: var(--primary); color: var(--primary); }

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-item > span { font-size: 1.8rem; }
.contact-item strong { display: block; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.95rem; transition: var(--transition);
  outline: none; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.contact-form textarea { resize: vertical; }
.form-success {
  color: #4caf50; font-size: 0.9rem;
  display: none; text-align: center;
}
.form-error {
  color: #dc2626; font-size: 0.9rem;
  display: none; text-align: center;
}
.dv-honeypot {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== RECORDS ===== */
.records { background: var(--bg); }
.records-toolbar {
  display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap;
}
.records-toolbar input, .records-toolbar select {
  flex: 1; min-width: 180px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.9rem; outline: none; transition: var(--transition);
}
.records-toolbar input:focus, .records-toolbar select:focus {
  border-color: var(--primary);
}
.records-toolbar select option { background: var(--bg3); }
.records-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.record-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: relative; transition: var(--transition);
}
.record-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.record-cat {
  display: inline-block; background: rgba(108,99,255,0.15);
  color: var(--primary); border-radius: 50px;
  padding: 3px 12px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 10px; text-transform: capitalize;
}
.record-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.record-content { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.record-date { color: var(--text-muted); font-size: 0.75rem; margin-top: 12px; }
.record-actions { display: flex; gap: 8px; margin-top: 16px; }
.record-actions button {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 14px;
  font-size: 0.78rem; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.record-actions button:hover { border-color: var(--primary); color: var(--primary); }
.record-actions button.delete:hover { border-color: var(--accent); color: var(--accent); }
.no-records { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 1rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; width: 100%; max-width: 520px;
  position: relative; transform: translateY(30px);
  transition: transform 0.25s;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal input, .modal select, .modal textarea {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.92rem; outline: none; width: 100%;
  transition: var(--transition);
}
.modal input:focus, .modal textarea:focus, .modal select:focus {
  border-color: var(--primary);
}
.modal select option { background: var(--bg2); }
.modal textarea { resize: vertical; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.2rem;
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { color: var(--accent); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ===== TOAST ===== */
.dv-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dv-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CASES ===== */
.cases { background: var(--bg2); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.case-card p { color: var(--text-muted); margin: 10px 0 12px; }
.case-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq { background: var(--bg); }
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 14px 16px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}
.faq-list p {
  margin-top: 8px;
  color: var(--text-muted);
}

/* ===== TEMPLATE HUB ===== */
.template-hub {
  background: var(--bg2);
}

.template-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.template-hub-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.template-hub-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.template-hub-card .btn-primary {
  width: fit-content;
}

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; }
.footer h4 { margin-bottom: 16px; font-size: 0.95rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; color: var(--text-muted); font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-visual { min-height: 280px; }
  .hero-circle { width: 260px; height: 260px; }
  .about-container { flex-direction: column; }
  .contact-container { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .template-hub-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border); gap: 20px; }
  .nav-links.open { display: flex; }
  .lang-switcher { margin-left: auto; margin-right: 10px; }
  .burger { display: block; }
  .stats { gap: 24px; }
  .records-toolbar { flex-direction: column; }
}
