/* 
 * Sinzir Design - World Class Business UI
 * Clean, Modern, Professional
 */

:root {
  /* Brand Colors */
  --primary: #0A4D8C;
  --primary-rgb: 10, 77, 140;
  --accent: #FF7A18;
  --accent-rgb: 255, 122, 24;
  
  /* Neutral Palette */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  /* Typography */
  --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 10px 40px rgba(10, 77, 140, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 77, 140, 0.12);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  padding-block: 8px;
  box-shadow: var(--shadow-sm);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
}

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

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-name {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
  background: #083d70;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--primary);
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.05), transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(var(--accent-rgb), 0.05), transparent 40%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.display {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--primary);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 50ch;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: var(--transition);
}

.hero-media:hover img {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* --- Section Styling --- */
.section {
  padding-block: 100px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  gap: 30px;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--primary-rgb), 0.1);
}

.card.service .icon-box {
  width: 60px;
  height: 60px;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

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

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* --- Stats --- */
.stats-strip {
  background: var(--primary);
  color: #fff;
  padding-block: 60px;
  border-radius: 40px;
  margin-block: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 40px;
}

.stat-item .num {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  display: block;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  background: var(--bg-subtle);
  padding: 40px;
  border-radius: 30px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.field input, .field textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-subtle);
  padding-block: 80px 40px;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media img { max-width: 100%; transform: none !important; } /* Stop rotation on mobile to prevent overflow */
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .display { font-size: 2.5rem; }
  .cards.three { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding-block: 60px; }
  .schedule-visual { padding: 3rem 2rem !important; }
}

/* Ensure no horizontal overflow ever */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}