/* =============================
   SA DIGITAL – STYLE
   ============================= */
:root {
  --primary: #315cce;
  --primary-dark: #2448a8;
  --primary-soft: #edf2ff;
  --secondary: #64748b;
  --accent: #a7b9ef;
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-blue: #f0f4ff;
  --text: #172033;
  --text-muted: #68748a;
  --white: #ffffff;
  --border: #e5eaf2;
  --shadow: 0 12px 35px rgba(27, 43, 77, .07);
  --shadow-hover: 0 20px 45px rgba(27, 43, 77, .12);
  --radius: 16px;
  --max-width: 1120px;
  --transition: all .28s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: .9rem;
}
.section-title { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-title h2, .about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-desc { color: var(--text-muted); font-size: 1rem; max-width: 650px; margin: 0 auto; }
.accent { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.55rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 7px 18px rgba(49, 92, 206, .18); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: rgba(255,255,255,.7); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* Header and navigation */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,234,242,.85);
}
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 74px; }
.nav-logo, .footer-logo { font-size: 1.45rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.8px; }
.nav-logo span, .footer-logo span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 1.8rem; }
.nav-link { text-decoration: none; color: #4d596e; font-weight: 600; font-size: .88rem; transition: var(--transition); }
.nav-link:hover { color: var(--primary); }
.nav-contact { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 23px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 7.2rem 0 6.7rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #e9efff 0%, #f7f9fd 48%, #fff 100%);
}
.hero-content { position: relative; z-index: 2; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; background: #5a80e5; border-radius: 50%; margin: 0 .4rem .05rem 0; }
.hero-title { font-size: clamp(2.45rem, 6vw, 4.45rem); font-weight: 800; line-height: 1.1; letter-spacing: -2.4px; margin: 0 auto 1.4rem; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); max-width: 690px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem 1.8rem; margin-top: 2.2rem; color: #68748a; font-size: .82rem; font-weight: 600; }
.hero-orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { width: 230px; height: 230px; background: rgba(173,193,255,.16); top: 10%; left: -110px; }
.hero-orb-two { width: 300px; height: 300px; background: rgba(194,207,248,.17); bottom: -180px; right: -90px; }

/* About */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; padding: 1rem 1.2rem 1.2rem 0; }
.about-visual-card { min-height: 340px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, #f8faff, #edf2ff); box-shadow: var(--shadow); overflow: hidden; }
.visual-top { height: 43px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 17px; }
.visual-top span { width: 9px; height: 9px; border-radius: 50%; background: #d5ddec; }
.visual-top span:first-child { background: #f0a6a6; }
.visual-top span:nth-child(2) { background: #f0ce88; }
.visual-top span:nth-child(3) { background: #9bc9a8; }
.visual-lines { padding: 3.2rem 2.4rem 1rem; }
.visual-line { height: 13px; border-radius: 20px; background: #d7e0f7; margin-bottom: 13px; }
.visual-line.short { width: 35%; height: 9px; background: #8ca8ed; }
.visual-line.long { width: 85%; height: 22px; background: #627fc9; }
.visual-line.medium { width: 65%; }
.visual-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 2rem; }
.visual-blocks span { height: 85px; background: rgba(255,255,255,.9); border: 1px solid #dfe6f5; border-radius: 10px; }
.visual-caption { margin: 1rem 2.4rem; color: #71809d; font-size: .8rem; font-weight: 600; }
.about-badge { position: absolute; right: 0; bottom: 0; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 700; }
.about-badge strong { color: var(--primary); font-size: 1.2rem; }
.about-text > p:not(.eyebrow) { color: var(--text-muted); margin: 1rem 0; }
.about-list { list-style: none; margin: 1.4rem 0 1.6rem; }
.about-list li { margin: .65rem 0; font-size: .93rem; font-weight: 500; }
.about-list .check { color: var(--primary); margin-right: .55rem; font-weight: 800; }
.text-link { color: var(--primary); font-weight: 700; font-size: .92rem; text-decoration: none; }
.text-link span { margin-left: .3rem; transition: var(--transition); }
.text-link:hover span { margin-left: .6rem; }

/* Services, hosting */
.services { background: var(--surface); }
.hosting { background: var(--surface-blue); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1.25rem; }
.service-card {
  background: #fff; padding: 2rem 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #c6d3f5; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 1.55rem; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.08rem; margin-bottom: .55rem; letter-spacing: -.25px; }
.service-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.hosting-note { max-width: 750px; text-align: center; margin: 2rem auto 0; color: var(--text-muted); font-size: .9rem; }

/* Process */
.process { background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.process-step { border-top: 2px solid #dce5fb; padding: 1.4rem 1rem 0 0; }
.step-number { display: inline-block; color: var(--primary); font-weight: 800; font-size: .82rem; letter-spacing: 1px; margin-bottom: 1rem; }
.process-step h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.process-step p { color: var(--text-muted); font-size: .9rem; }

/* Portfolio */
.portfolio { background: #fff; }
.portfolio-filters { display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter-btn { padding: .55rem 1.15rem; border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 50px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px,1fr)); gap: 1.5rem; }
.project-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #c6d3f5; }
.project-preview { height: 190px; background: #f1f4fb; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e4e9f2; }
.preview-dot { width: 9px; height: 9px; border-radius: 50%; }
.preview-dot.red { background: #f28b82; } .preview-dot.yellow { background: #fbbc58; } .preview-dot.green { background: #81c995; }
.preview-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text-muted); padding: 1rem; }
.preview-emoji { font-size: 2.3rem; }
.preview-url { font-size: .75rem; font-weight: 600; color: #7c879b; }
.project-content { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.project-content h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.project-content p { color: var(--text-muted); font-size: .88rem; margin-bottom: 1rem; flex: 1; }
.project-tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.project-tag { font-size: .7rem; padding: .25rem .6rem; background: var(--surface); color: var(--secondary); border-radius: 20px; }
.project-links { display: flex; gap: .65rem; }
.project-links a { flex: 1; text-align: center; padding: .65rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .8rem; transition: var(--transition); }
.project-links .live { background: var(--primary); color: #fff; }
.project-links .live:hover { background: var(--primary-dark); }
.project-links .github { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.project-links .github:hover { background: #e9edf5; }
.portfolio-disclaimer { max-width: 800px; margin: 2rem auto 0; padding: 1rem 1.2rem; border-radius: 10px; background: var(--surface); color: var(--text-muted); font-size: .82rem; text-align: center; }

/* Contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; padding-top: .5rem; }
.contact-intro h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.contact-intro p, .contact-small { color: var(--text-muted); font-size: .92rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 12px; background: #e9efff; color: var(--primary); font-size: 1.2rem; }
.contact-item strong { display: block; color: var(--secondary); font-size: .78rem; margin-bottom: .1rem; }
.contact-item a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.contact-item a:hover { color: var(--primary); }
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .84rem; font-weight: 700; }
.form-group label span { color: var(--text-muted); font-weight: 400; }
.form-group input, .form-group textarea { width: 100%; padding: .82rem .9rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .9rem; color: var(--text); background: #fff; transition: var(--transition); resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,92,206,.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #a0a9b8; }
.form-message { font-size: .85rem; min-height: 1.2rem; }
.form-message.success { color: #16834a; }
.form-message.error { color: #c43b3b; }

/* Footer */
.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--border); background: #fff; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; }
.footer-text, .copyright { color: var(--text-muted); font-size: .83rem; }
.footer-social { display: flex; gap: 1.4rem; margin: .4rem 0; }
.footer-social a { color: var(--secondary); text-decoration: none; font-size: .85rem; font-weight: 600; }
.footer-social a:hover { color: var(--primary); }
.copyright { font-size: .76rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { gap: 2.5rem; }
  .process-grid { grid-template-columns: repeat(2,1fr); row-gap: 2rem; }
  .nav-menu { gap: 1rem; }
  .nav-link { font-size: .82rem; }
}
@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .nav { min-height: 68px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border);
    padding: .6rem 1.5rem 1rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: var(--transition);
  }
  .nav-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid #f0f2f6; }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-link { display: block; padding: .85rem 0; font-size: .92rem; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 5rem 0 4.8rem; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-trust { gap: .55rem 1rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .about-text { max-width: 650px; }
  .contact-grid { gap: 2rem; }
}
@media (max-width: 520px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 3.8rem 0; }
  .section-title { margin-bottom: 2.3rem; }
  .section-title h2, .about-text h2 { letter-spacing: -.7px; }
  .hero { padding: 4.2rem 0; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-cta { flex-direction: column; align-items: stretch; max-width: 290px; margin: 0 auto; }
  .hero-trust { flex-direction: column; align-items: center; }
  .about-visual-card { min-height: 280px; }
  .visual-lines { padding: 2.5rem 1.5rem .5rem; }
  .visual-caption { margin: .8rem 1.5rem; }
  .process-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .process-step { padding-top: 1rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.35rem; }
  .footer-social { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .fade-in { opacity: 1; transform: none; }
}
