/* AT NORD AS | Codralia.shop - Unique Premium Neon-Nordic Blog Style */
/* Completely original design: Asymmetric creative layout, dark neon palette, generous spacing, soft glows, masonry-inspired grid */

:root {
  --bg-primary: #0B1120;
  --bg-secondary: #1E293B;
  --bg-card: #1E293B;
  --bg-modal: #0F172A;
  --accent-cyan: #67F6FF;
  --accent-magenta: #E879F9;
  --accent-green: #4ADE80;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #334155;
  --shadow-soft: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
  --shadow-neon: 0 0 20px rgb(103 246 255 / 0.15);
  --radius: 16px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Layout & Spacing - Unique asymmetric generous spacing */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 4rem 0;
}

/* Header & Navigation - Classic with overlay mobile variant */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Overlay Navigation for mobile - unique variant */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.98);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.overlay-nav.active {
  display: flex;
}

.overlay-nav .close-btn {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 2rem;
}

.overlay-nav a {
  font-size: 1.35rem;
  padding: 1rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section - Asymmetric Split Layout */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: 2rem;
}

.hero-text {
  max-width: 620px;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text .subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  height: 520px;
  background: linear-gradient(145deg, #1E293B 0%, #0B1120 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.neon-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--accent-cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px);
  background-size: 55px 55px;
  opacity: 0.07;
}

.neon-orbs {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

.orb1 {
  width: 280px;
  height: 280px;
  background: var(--accent-cyan);
  top: 15%;
  right: 10%;
  opacity: 0.12;
  animation-delay: 0s;
}

.orb2 {
  width: 180px;
  height: 180px;
  background: var(--accent-magenta);
  bottom: 20%;
  left: 15%;
  opacity: 0.1;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.05); }
}

/* Buttons - Pill + Neon unique system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #0B1120;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  background: var(--accent-magenta);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgb(232 121 249 / 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: #0B1120;
  border-color: var(--accent-cyan);
}

/* Asymmetric Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.highlight-box {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  position: relative;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-magenta));
  border-radius: 2px;
}

/* Blog / Articles Section - Masonry-inspired asymmetric grid */
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft), var(--shadow-neon);
  border-color: var(--accent-cyan);
}

.card-accent {
  height: 5px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-magenta));
}

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

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(103, 246, 255, 0.1);
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  width: fit-content;
}

.card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.read-more {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 0.6rem;
  color: var(--accent-magenta);
}

/* Modal - Clean premium */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-modal);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  max-width: 820px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.modal-header {
  padding: 2rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-close {
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent-magenta);
}

.modal-body {
  padding: 2.25rem;
  color: var(--text-secondary);
}

.modal-body h3 {
  color: var(--text-primary);
  margin: 1.75rem 0 0.85rem;
}

.modal-body ul, .modal-body ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* Contact Section - Asymmetric split */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2.75rem;
  border: 1px solid var(--border-color);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.address {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.address strong {
  color: var(--text-primary);
}

/* Form - Unique clean style */
.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #0B1120;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(103, 246, 255, 0.1);
}

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

/* Footer */
footer {
  background: #020617;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.legal {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal a {
  color: var(--text-muted);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* Responsive - Fully adaptive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero-visual {
    height: 380px;
    order: -1;
  }
  
  .intro-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .modal-content {
    max-height: 85dvh;
  }
}

/* Utility */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
}

/* SEO friendly hidden but accessible */
.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;
}