/* ===================== ROOT ===================== */
:root{
  --bg-dark: #05050a;
  --bg-card: #0f0f16;
  --primary: #a259ff;
  --accent: #0abaff;
  --text: #ffffff;
  --muted: #bdb8d6;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(16,8,40,0.45);
}

/* LIGHT THEME OVERRIDES */
:root[data-theme='light'] {
  --bg-dark: #ffffff;
  --bg-card: #f6f7fb;
  --text: #0b0b12;
  --muted: #5b5b6a;
}

/* apply theme based on html[data-theme] */
html[data-theme='dark'] { color-scheme: dark; }
html[data-theme='light'] { color-scheme: light; }

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Poppins", system-ui, Arial, sans-serif;
  background:var(--bg-dark);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* container */
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* base sections */
.section { padding:80px 0; text-align:center; }
.section-title { font-size:32px; color:var(--primary); margin-bottom:28px; font-weight:600; }

/* header */
header { position:fixed; top:0; left:0; right:0; background:rgba(6,6,8,0.55); backdrop-filter:blur(8px); z-index:60; border-bottom:1px solid rgba(255,255,255,0.03); }
.nav-container { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; }
.logo-wrap { display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.site-logo { height:22px; width:auto; display:block; }
.logo-text { font-weight:700; font-size:18px; color:var(--text); }
.controls { display:flex; align-items:center; gap:8px; }

/* nav default (desktop) */
.nav { display:flex; gap:24px; align-items:center; }
.nav a { color:var(--text); text-decoration:none; font-size:15px; padding:6px 8px; border-radius:8px; transition:all .18s; }
.nav a:hover { color:var(--primary); background: rgba(162,89,255,0.06); }

/* menu toggle (hamburger) */
.menu-toggle { display:none; background:none; border:none; color:var(--text); font-size:22px; padding:6px; cursor:pointer; border-radius:8px; }

/* hero */
.hero { min-height:78vh; display:flex; align-items:center; justify-content:center; padding:40px 0; background-image:url('https://images.unsplash.com/photo-1531497865144-0464ef8fb9a9?auto=format&fit=crop&w=1600&q=80'); background-size:cover; background-position:center; }
.hero-inner { max-width:980px; text-align:center; padding:60px 20px; background: linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.28)); border-radius:14px; box-shadow:var(--shadow); }
.hero-inner h1 { font-size:44px; margin:0 0 12px; line-height:1.05; }
.lead { color:var(--muted); margin-bottom:18px; }

/* glass button */
.btn-glass { display:inline-block; padding:10px 16px; border-radius:10px; color:var(--text); border:1px solid rgba(255,255,255,0.06); background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); backdrop-filter: blur(6px); text-decoration:none; transition: transform .18s, box-shadow .18s; }
.btn-glass:hover { transform:translateY(-4px); box-shadow:0 12px 36px rgba(162,89,255,0.18); }

/* grid & cards */
.grid { display:flex; flex-wrap:wrap; gap:22px; justify-content:center; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:var(--radius); padding:20px; width:300px; box-shadow:var(--shadow); text-align:left; }
.card h3 { margin:0 0 8px; font-size:16px; }
.card p { color:var(--muted); font-size:14px; line-height:1.45; }

/* portfolio */
.portfolio-grid { display:flex; flex-wrap:wrap; gap:22px; justify-content:center; }
.portfolio-card { width:340px; border-radius:14px; background:var(--bg-card); overflow:hidden; cursor:pointer; transition: transform .22s, box-shadow .22s; box-shadow:0 10px 30px rgba(12,10,18,0.6); }
.portfolio-card img { display:block; width:100%; height:200px; object-fit:cover; }
.card-body { padding:14px 16px; }
.portfolio-card h3 { font-size:16px; margin:0 0 6px; }
.portfolio-card p { font-size:13px; color:var(--muted); }
.portfolio-card:hover { transform:translateY(-8px); box-shadow:0 20px 48px rgba(16,8,40,0.6); }

/* about/team/contact */
.about-text { max-width:720px; margin:0 auto; color:var(--muted); font-size:14px; line-height:1.6; }
.team-card { text-align:center; }
.team-card img { width:140px; height:140px; border-radius:50%; margin:0 auto 12px; object-fit:cover; }
.team-card h3 { margin:6px 0 6px; font-size:18px; }
.team-card p { color:var(--muted); font-size:13px; }

/* contact form */
.contact-form { max-width:640px; margin:0 auto; }
.contact-form input, .contact-form textarea { width:100%; padding:12px; border-radius:10px; border:none; background:#0d0d12; color:var(--text); margin-bottom:12px; resize:vertical; }
.contact-form button { display:block; margin:8px auto 0; }

/* feedback messages */
.feedback { padding:12px 14px; border-radius:10px; font-weight:600; }
.feedback.success { background: linear-gradient(90deg,#28c76f,#06d6a0); color:#041014; }
.feedback.error { background: linear-gradient(90deg,#ff6b6b,#ff9a9e); color:#2b0707; }

/* whatsapp button */
.btn-wp { background:#25D366; color:#04280b; padding:10px 12px; border-radius:8px; font-weight:700; border:none; cursor:pointer; }

/* modal */
.modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(6,6,8,0.72); z-index:2000; padding:20px; }
.modal.open { display:flex; }
.modal-panel { width:92%; max-width:820px; background:var(--bg-card); padding:18px; border-radius:12px; position:relative; box-shadow:0 20px 60px rgba(8,6,20,0.7); text-align:center; }
.modal-panel img { width:100%; height:420px; object-fit:cover; border-radius:10px; margin-bottom:12px; }
.modal-close { position:absolute; right:14px; top:12px; border:none; background:transparent; color:var(--text); font-size:20px; cursor:pointer; }

/* loading overlay */
.loading-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.55); display:none; align-items:center; justify-content:center; z-index:3000; }
.loading-overlay.show { display:flex; }
.spinner { width:64px; height:64px; border-radius:50%; border:6px solid rgba(255,255,255,0.12); border-top-color:var(--accent); animation:spin .9s linear infinite; box-shadow:0 8px 30px rgba(10,186,255,0.15); }
@keyframes spin { to { transform:rotate(360deg); } }

/* small utilities */
.logo-wrap { display:flex; align-items:center; gap:8px; text-decoration:none; }
.site-logo { height:22px; width:auto; }
.logo-text { font-size:18px; font-weight:700; }

/* prevent page scroll when menu open (will be toggled by JS via class) */
html.menu-open, body.menu-open { overflow:hidden; width:100%; }

/* ===================== RESPONSIVE ===================== */
@media (max-width:900px){
  .menu-toggle { display:block; }
  .nav { display:none; position:fixed; top:78px; right:20px; width:78%; max-width:340px; background:var(--bg-card); flex-direction:column; padding:18px; border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,0.6); z-index:9999; }
  .nav.show { display:flex; }
  .nav a { display:block; padding:10px 6px; }
  .portfolio-card { width:90%; }
  .card { width:90%; }
  .hero-inner { padding:28px; }
  .modal-panel { padding:16px; }
  .modal-panel img { max-height:60vh; object-fit:contain; }
}
@media (max-width:520px){
  .hero-inner h1 { font-size:28px; }
  .section { padding:60px 16px; }
}
