/* Zarra Technology - Clean & Simple Design System */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--muted);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Color Palette */
:root {
  --background: #050816;
  --foreground: #f8fafc;
  --surface: rgba(15, 23, 42, 0.75);
  --surface-strong: rgba(15, 23, 42, 0.9);
  --border: rgba(255, 255, 255, 0.1);
  --muted: #94a3b8;
  --brand: #6366f1;
  --brand-strong: #4f46e5;
  --accent: #22d3ee;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --hero-glow: radial-gradient(circle at top, rgba(99,102,241,0.25), transparent 55%);
  --card-border-gradient: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(34,211,238,0.2));
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.35);
  --shadow-card: 0 20px 60px rgba(2, 6, 23, 0.35);

  --primary: var(--brand);
  --primary-dark: var(--brand-strong);
  --text: var(--foreground);
  --text-light: var(--muted);
  --bg: var(--background);
  --white: #ffffff;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Header */
header {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--primary);
}

nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:not(.btn):hover::after {
  width: 100%;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: var(--foreground);
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

/* Hero Section - Dribbble Style */
.hero {
  background: var(--background);
  background-image: var(--hero-glow);
  color: var(--foreground);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 0; }
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section */
section {
  padding: 80px 0;
}

.bg-gray {
  background: var(--surface-strong);
}

@media (min-width: 768px) {
  section { padding: 80px 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-header h2 { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .section-header h2 { font-size: 2.5rem; }
}

.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid - Dribbble Style */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .grid-3 { gap: 2.5rem; }
}

/* Card - Dribbble Style */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(99, 102, 241, 0.35);
}

.card-image {
  width: 100%;
  height: 220px;
  background: var(--card-border-gradient);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

/* Portfolio */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

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

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Testimonial */
.testimonial {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid var(--border);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.testimonial p {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--muted);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--surface-strong);
  color: var(--foreground);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid > * {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

/* Animations - Dribbble Style */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Utility Classes */
.bg-white {
  background: #ffffff;
}

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

.mt-4 {
  margin-top: 2rem;
}

/* Utilities */
.text-center { text-align: center; }
.bg-gray { background: var(--surface-strong); }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}
