/* Design #045 - SMOKE ANIMATION Website */
/* ACN Agency */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --charcoal: #0a0a0a;
  --smoke-gray: #4a4a4a;
  --white: #ffffff;
  --smoke-dark: #1a1a1a;
  --smoke-light: #2a2a2a;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Body & Background */
body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Smoke Canvas Background */
#smoke-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Content Layer */
.content-layer {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 100%);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}

.hero-content {
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--smoke-gray);
  margin-bottom: 2rem;
  border: 1px solid var(--smoke-gray);
  padding: 0.5rem 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero h1 span {
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--smoke-gray);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.hero-cta:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* Page Header */
.page-header {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--smoke-gray);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Section Styles */
.section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

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

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  background: rgba(74, 74, 74, 0.15);
  border-color: rgba(74, 74, 74, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.card p {
  color: var(--smoke-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(74, 74, 74, 0.05);
  border: 1px solid rgba(74, 74, 74, 0.15);
  transition: var(--transition-smooth);
}

.service-card:hover {
  background: rgba(74, 74, 74, 0.1);
  transform: translateY(-5px);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--smoke-gray);
  font-size: 0.9rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--smoke-dark);
  border: 1px solid rgba(74, 74, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.5;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.gallery-item:hover {
  opacity: 0.8;
  border-color: var(--smoke-gray);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(74, 74, 74, 0.2);
  border-bottom: 1px solid rgba(74, 74, 74, 0.2);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--smoke-gray);
}

/* Features List */
.features-list {
  list-style: none;
}

.features-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(74, 74, 74, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.features-list li::before {
  content: '→';
  color: var(--smoke-gray);
}

.features-list h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.features-list p {
  color: var(--smoke-gray);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--smoke-gray);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--smoke-gray);
}

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

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--white);
  color: var(--charcoal);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background: var(--smoke-gray);
  color: var(--white);
}

/* Footer */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(74, 74, 74, 0.2);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--smoke-gray);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-links a {
  color: var(--smoke-gray);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

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

/* Docs Styles */
.docs-toc {
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  padding: 2rem;
  margin-bottom: 3rem;
}

.docs-toc h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.docs-toc ul {
  list-style: none;
}

.docs-toc li {
  margin-bottom: 0.5rem;
}

.docs-toc a {
  color: var(--smoke-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.docs-toc a:hover {
  color: var(--white);
}

.docs-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 74, 74, 0.2);
}

.docs-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.docs-content p {
  color: var(--smoke-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.docs-content ul,
.docs-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--smoke-gray);
}

.docs-content li {
  margin-bottom: 0.5rem;
}

.docs-content code {
  background: rgba(74, 74, 74, 0.2);
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
}

.docs-content pre {
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: rgba(74, 74, 74, 0.05);
  border: 1px solid rgba(74, 74, 74, 0.15);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--smoke-gray);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats {
    flex-wrap: wrap;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(74, 74, 74, 0.2);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
}