/* ========================================
   HW Web Solutions - Main Stylesheet
   ======================================== */

:root {
  --bg-primary: #08080f;
  --bg-secondary: #0f0f1a;
  --bg-card: #13131f;
  --bg-card-hover: #1a1a2e;
  --purple: #7c3aed;
  --magenta: #d63bce;
  --gradient: linear-gradient(135deg, #7c3aed, #d63bce);
  --gradient-text: linear-gradient(135deg, #a855f7, #ec4899);
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --border: rgba(124, 58, 237, 0.2);
  --border-hover: rgba(214, 59, 206, 0.4);
  --shadow-purple: 0 0 40px rgba(124, 58, 237, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(8, 8, 15, 0);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: white; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.lang-btn {
  padding: 6px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gradient);
  color: white;
  border-radius: 50px;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: var(--transition);
  border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(214, 59, 206, 0.12) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-hover);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c084fc;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-logo {
  max-width: 420px;
  width: 90%;
  margin: 0 auto 40px;
  display: block;
  filter: drop-shadow(0 0 60px rgba(124, 58, 237, 0.4));
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a855f7;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ---- Services ---- */
#services { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 28px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* ---- Why Us ---- */
#why-us { background: var(--bg-primary); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  text-align: center;
}

.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.why-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---- Portfolio ---- */
#portfolio { background: var(--bg-secondary); }

.portfolio-placeholder {
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
}

.portfolio-placeholder .icon {
  font-size: 56px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.portfolio-placeholder h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.portfolio-placeholder p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- CTA Banner ---- */
.cta-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(214, 59, 206, 0.08));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Contact Page ---- */
.contact-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-secondary);
}

.contact-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-hero p { color: var(--text-secondary); font-size: 1.1rem; }

.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  text-decoration: none;
  transition: var(--transition);
}

.contact-detail:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-detail-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-detail-text strong {
  font-size: 0.95rem;
  color: white;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group select option { background: var(--bg-card); }

.form-submit { width: 100%; margin-top: 8px; justify-content: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  color: #a855f7;
}

.form-success .icon { font-size: 48px; margin-bottom: 16px; display: block; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- Divider ---- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .contact-form-card { order: 1; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 24px; }
  .cta-box { padding: 48px 28px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
