/* ========================================
   WebKraft - Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #f97316 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(249,115,22,0.08) 100%);
  --dark: #0f0d1a;
  --dark-card: #1a1726;
  --dark-border: #2d2640;
  --text: #1e1b2e;
  --text-light: #6b6580;
  --text-muted: #9890a8;
  --bg: #faf9fc;
  --white: #ffffff;
  --surface: #f3f1f7;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(124,58,237,0.08);
  --shadow-lg: 0 12px 48px rgba(124,58,237,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-demo {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  padding: 10px 20px;
  margin-top: 8px;
}

.btn-demo:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-demo.coming-soon {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(250, 249, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

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

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switch {
  position: relative;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all var(--transition);
}

.lang-dropdown a:hover {
  background: var(--gradient-subtle);
  color: var(--primary);
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--dark-border);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Services / Packages Section --- */
.services {
  padding: 100px 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.package-card {
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.package-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
}

.package-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.package-card h3 {
  margin-bottom: 8px;
}

.package-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.package-price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.package-features {
  margin-bottom: 32px;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.package-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.package-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Process Section --- */
.process {
  padding: 100px 0;
  background: var(--surface);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 52px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--primary-light);
}

/* --- Portfolio Section --- */
.portfolio {
  padding: 100px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--surface);
  transition: all var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

a.portfolio-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: #1a5cb5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.portfolio-info {
  padding: 24px;
}

.portfolio-info h3 {
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--gradient-subtle);
  color: var(--primary);
}

/* --- Why Us Section --- */
.why-us {
  padding: 100px 0;
  background: var(--dark);
}

.why-us .section-label { margin-bottom: 12px; }
.why-us .section-title { color: var(--white); }
.why-us .section-subtitle { color: var(--text-muted); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}

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

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}

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

/* --- Maintenance Section --- */
.maintenance {
  padding: 100px 0;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.maint-card {
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.maint-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.maint-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.maint-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.maint-card h3 {
  margin-bottom: 20px;
}

.maint-features {
  text-align: left;
  margin-bottom: 28px;
}

.maint-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.maint-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: var(--gradient);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,58,237,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .packages-grid,
  .why-grid,
  .maintenance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--surface);
  }

  .nav.open { display: flex; }

  .menu-toggle { display: flex; }

  .header .btn-primary { display: none; }

  .packages-grid,
  .why-grid,
  .maintenance-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero {
    padding: calc(var(--header-height) + 40px) 0 60px;
  }

  .contact-form {
    padding: 24px;
  }

  .package-card {
    padding: 28px 20px;
  }
}
