/**
 * AM INOX — Main Stylesheet
 * v1.0.0
 * 
 * Dark glassmorphism theme with copper accents
 */

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --inox-bg: #121212;
  --inox-panel: #1a1a1a;
  --inox-text: #f5f5f5;
  --inox-muted: #888888;
  --inox-steel: #a0b0b9;
  --inox-accent: #b87333;
  --inox-accent-dark: #8f5a28;
  --inox-accent-light: #d4915a;
  
  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--inox-text);
  background-color: var(--inox-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--inox-accent);
  color: white;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem;
  color: var(--inox-muted);
}

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

a:hover {
  color: var(--inox-accent);
}

strong, b {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   GLASSMORPHISM COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  border-radius: inherit;
  pointer-events: none;
}

.glass-nav {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   FLOATING GLOW EFFECT
   ═══════════════════════════════════════════════════════════ */

.floating-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--inox-accent);
  color: white;
  box-shadow: 0 10px 40px -10px rgba(184, 115, 51, 0.5);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(184, 115, 51, 0.6);
  color: white;
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--inox-text);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 115, 51, 0.5);
  color: var(--inox-text);
}

/* Shimmer effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: 0.8s;
}

.shimmer-btn:hover::after {
  left: 100%;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--inox-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--inox-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--inox-accent);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--inox-muted);
  opacity: 0.6;
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: var(--inox-accent);
}

.form-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-blur-in {
  animation: blurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section {
  padding: 6rem 0;
  position: relative;
}

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

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════ */

.section-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--inox-accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.section-title.italic {
  font-style: italic;
}

.section-description {
  font-size: 1.125rem;
  color: var(--inox-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */

.card {
  padding: 2.5rem;
  border-radius: 2.5rem;
  transition: all var(--transition-slow);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px -15px rgba(184, 115, 51, 0.2);
}

.card-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.card:hover .card-icon {
  background: var(--inox-accent);
  border-color: var(--inox-accent);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--inox-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PROJECT/PORTFOLIO GRID
   ═══════════════════════════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 2rem;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
  filter: grayscale(50%) brightness(0.8);
}

.portfolio-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent 60%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portfolio-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.portfolio-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--inox-accent);
}

/* ═══════════════════════════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════════════════════════ */

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

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

.blog-card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--inox-muted);
  margin-bottom: 1rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--inox-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   FILTER TABS
   ═══════════════════════════════════════════════════════════ */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--inox-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--inox-accent);
  border-color: var(--inox-accent);
  color: white;
}

/* ═══════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--inox-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--inox-muted);
}

/* ═══════════════════════════════════════════════════════════
   PROSE (ARTICLE CONTENT)
   ═══════════════════════════════════════════════════════════ */

.prose {
  color: var(--inox-text);
  line-height: 1.8;
}

.prose h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--inox-muted);
}

.prose a {
  color: var(--inox-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul, .prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: var(--inox-muted);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--inox-accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
}

.prose pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--inox-panel);
  border-radius: 1rem;
  overflow-x: auto;
}

.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  padding: 0.2em 0.4em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-normal);
}

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

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */

.text-accent { color: var(--inox-accent); }
.text-muted { color: var(--inox-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.2em; }

.bg-panel { background-color: var(--inox-panel); }

.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-4xl { border-radius: 2rem; }

.shadow-glow {
  box-shadow: 0 0 60px rgba(184, 115, 51, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: var(--inox-accent);
  color: white;
  font-weight: 700;
  border-radius: 0 0 1rem 1rem;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
