/* ============================================
   ZINYAW TECH — Core Design System v1.0
   Single source of truth for all pages
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #FF6A00;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #FF8C00;
  --accent-light: #FFB366;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-dark: #ffffff;
  --text: #fafafa;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #FF8C00;
  --warning: #FF6A00;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #FF6A00 0%, #FF8C00 50%, #FF8C00 100%);
  --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #FFF5EB 100%);
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(255,106,0,0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 64px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-dark); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.7; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,106,0,0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.section-header p { margin-top: 12px; font-size: 1.05rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap { gap: 24px; }
.gap-lg { gap: 40px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,106,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,106,0,0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* --- Cards --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
}
.card:hover .card-icon {
  background: var(--gradient);
  color: #fff;
  transform: scale(1.05);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: #fff;
}
.card-glass p { color: rgba(255,255,255,0.7); }
.card-glass h3 { color: #fff; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo { height: 36px; }
.site-logo img { height: 100%; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(255,106,0,0.06);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
  padding-top: var(--header-h);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,106,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,140,0,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(168,85,247,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: 0.6;
  pointer-events: none;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* --- Service Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0 auto 20px;
  transition: all 0.3s var(--ease);
}
.service-card:hover .icon {
  background: var(--gradient);
  color: #fff;
  transform: scale(1.1) rotate(-3deg);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); }
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
}
.service-card:hover .learn-more { opacity: 1; transform: translateY(0); }

/* --- Footer --- */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,106,0,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,106,0,0.4); }
}
.float { animation: float 6s ease-in-out infinite; }

/* --- Gallery / Portfolio --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}
.gallery-item:hover .overlay { opacity: 1; }

/* --- Testimonials / Slider --- */
.slider-container { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s var(--ease); }
.slider-slide { min-width: 100%; padding: 0 20px; }
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.testimonial-card .quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* --- Contact / Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s var(--ease);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* --- Badges & Tags --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-subtle);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.mobile-menu a:hover { background: var(--gradient-subtle); color: var(--primary); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat { flex: 1; min-width: 100px; }
  .section-header { margin-bottom: 32px; }
  .card { padding: 24px; }
  .service-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 28px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* --- Selection --- */
::selection { background: rgba(255,106,0,0.2); color: var(--text); }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .hamburger, .mobile-menu { display: none; }
  .hero { min-height: auto; padding: 40px 0; background: #fff; }
  .section { padding: 20px 0; }
}
