@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('./variables.css');
@import url('./components.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text-primary); background: var(--bg-primary); transition: background 0.3s, color 0.3s; overflow-x: hidden; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3rem); } h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: color 0.2s; } a:hover { color: var(--primary); }
img, svg { max-width: 100%; height: auto; display: block; }

/* FIXED CONTAINER - PREVENTS EDGE TOUCHING */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }

/* UTILITIES */
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.grid { display: grid; gap: 1.5rem; } .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; }
.text-center { text-align: center; } .text-primary { color: var(--primary); } .font-bold { font-weight: 700; } .w-full { width: 100%; } .hidden { display: none !important; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }

/* PRELOADER */
#preloader { position: fixed; inset: 0; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s; }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner { width: 40px; height: 40px; border: 4px solid var(--bg-tertiary); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* NAVIGATION & MOBILE MENU */
.nav-link { font-weight: 500; color: var(--text-secondary); } .nav-link:hover, .nav-link.active { color: var(--primary); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh; background: var(--bg-secondary); z-index: 1000; padding: 1.5rem; box-shadow: var(--shadow-lg); transition: right 0.3s ease; overflow-y: auto; border-left: 1px solid var(--border-primary); }
.mobile-menu.active { right: 0; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; backdrop-filter: blur(4px); }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-link { display: flex; align-items: center; gap: 12px; padding: 1rem; border-radius: 8px; color: var(--text-secondary); font-weight: 500; transition: all 0.2s; }
.mobile-nav-link:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* FORM VALIDATION & SPINNERS */
.form-input.error { border-color: var(--danger) !important; background: #FEF2F2; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE BREAKPOINTS */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .md\:flex { display: flex !important; } .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
  .lg\:flex { display: flex !important; } .lg\:hidden { display: none !important; }
}
