/* ========================================
   AivioIRL - Static Site Styles
   ======================================== */

:root {
  --bg: #050807;
  --fg: #ffffff;
  --accent: #34d399;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: 
    radial-gradient(1200px 600px at 80% -10%, rgba(52, 211, 153, 0.08), transparent 60%),
    radial-gradient(800px 400px at 20% 110%, rgba(52, 211, 153, 0.06), transparent 60%),
    var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

/* Glass morphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Accent color */
.accent {
  color: var(--accent);
  font-weight: 600;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-accent {
  background: var(--accent);
  color: #000 !important;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.35), 0 0 4px rgba(52, 211, 153, 0.6) inset;
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ========================================
   Header
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.nav a:hover {
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  transition: all 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid var(--glass-border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-muted);
  font-size: 16px;
}

@media (max-width: 1023px) {
  .desktop-nav, .desktop-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 800px;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.25);
}

.hero-desc {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.15), transparent 60%);
  pointer-events: none;
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 40px 40px, 40px 40px; }
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 80px 0;
}

.section-header {
  display: inline-block;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
}

.section-header p {
  margin-top: 8px;
  color: var(--text-muted);
}

/* ========================================
   Services
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.service-card {
  position: relative;
  padding: 20px;
  padding-bottom: 56px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-emoji {
  font-size: 32px;
}

.service-title {
  margin-top: 12px;
  font-weight: 600;
  font-size: 16px;
}

.service-desc {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.service-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.service-link svg {
  transition: transform 0.2s;
}

.service-card:hover .service-link svg {
  transform: translateX(3px);
}

/* ========================================
   Cases
   ======================================== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.case-card {
  display: block;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
}

.case-video {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.case-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.3s;
}

.case-card:hover .case-play {
  opacity: 0;
}

.case-title {
  padding: 16px 16px 8px;
  font-weight: 600;
  font-size: 18px;
}

.case-desc {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   Process
   ======================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.process-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.process-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
}

.process-title {
  font-weight: 600;
  font-size: 16px;
}

.process-desc {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   Why
   ======================================== */

.why-box {
  padding: 32px;
  position: relative;
}

.why-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.1), transparent 70%);
  pointer-events: none;
}

.why-box h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
}

.why-intro {
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.85);
}

.why-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
  position: relative;
}

.why-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(52, 211, 153, 0.4), transparent);
}

.why-item:last-child .why-dot::after {
  display: none;
}

.why-title {
  font-weight: 600;
  font-size: clamp(16px, 2vw, 20px);
}

.why-desc {
  margin-top: 4px;
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ========================================
   Contact
   ======================================== */

.contact-box {
  max-width: 600px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  text-align: center;
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.contact-form button {
  width: 100%;
  margin-top: 8px;
}

.contact-alt {
  margin-top: 32px;
  text-align: center;
}

.contact-alt p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 24px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
}

.footer-legal {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.footer-item {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-item a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-item a:hover {
  color: #fff;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========================================
   Animations
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 80px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .why-box {
    padding: 24px;
  }
  
  .footer-grid {
    padding: 32px 24px;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   Inner Pages (Cases, Services)
   ======================================== */

.page-content {
  min-height: calc(100vh - 200px);
  padding: 40px 0 80px;
}

.page-header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Cases Page */
.cases-page-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  transition: transform 0.3s ease;
}

.case-card-large:hover {
  transform: translateY(-4px);
}

.case-video-large {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.case-video-large video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-video-large .case-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s;
}

.case-card-large:hover .case-play {
  opacity: 0;
}

.case-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-info h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-link-text {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .case-card-large {
    grid-template-columns: 1fr;
  }
}

/* Services Page */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.service-card-large {
  display: flex;
  gap: 20px;
  padding: 24px;
  transition: transform 0.3s ease;
}

.service-card-large:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.service-card-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-card-content ul {
  list-style: none;
  margin-bottom: 16px;
}

.service-card-content li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.service-card-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-link-text {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid var(--glass-border);
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Single Case/Service Page */
.case-detail {
  max-width: 900px;
  margin: 0 auto;
}

.case-detail-video {
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.case-detail-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-detail h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.case-detail-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.case-detail-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.case-detail-content h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.case-detail-content p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* Service Detail */
.service-detail {
  max-width: 900px;
  margin: 0 auto;
}

.service-detail-media {
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.service-detail-media video,
.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.feature-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
}

.feature-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 32px;
}

.legal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.legal-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section a:hover {
  color: #fff;
}

.legal-section strong {
  color: #fff;
  font-weight: 600;
}
