/*
Theme Name:   AZ Portfolio
Theme URI:    https://andriidev.com
Description:  Child theme for Hello Elementor — Андрій Залужний Portfolio
Author:       Andrii Zaluzhnyi
Author URI:   https://andriidev.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  az-portfolio
*/

/* ─── CSS VARIABLES ─── */
:root {
  --bg:      #0c0c0e;
  --surface: #111114;
  --border:  #1e1e24;
  --text:    #e8e8ec;
  --muted:   #6b6b78;
  --accent:  #5cffb0;
  --accent2: #3de8ff;
  --font-h:  'Syne', sans-serif;
  --font-m:  'DM Mono', monospace;
  --radius:  4px;
  --transition: .2s ease;
}

/* ─── BASE ─── */
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-m) !important;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -1px;
  line-height: 1.1;
}

p, .elementor-text-editor, li {
  font-family: var(--font-m) !important;
  color: var(--muted);
  line-height: 1.8;
}

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

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .45;
}

/* ─── HEADER / NAV ─── */
#site-header,
.site-header,
header.elementor-section {
  background: rgba(12,12,14,.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Elementor Nav Menu */
.elementor-nav-menu .elementor-item,
.elementor-nav-menu a {
  font-family: var(--font-m) !important;
  font-size: 11px !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted) !important;
  transition: color var(--transition) !important;
}
.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu a:hover,
.elementor-nav-menu .elementor-item.elementor-item-active {
  color: var(--accent) !important;
}

/* ─── SECTIONS ─── */
.elementor-section {
  border-top: 1px solid var(--border);
}

/* ─── BUTTONS ─── */
.elementor-button,
.elementor-button-wrapper .elementor-button {
  font-family: var(--font-m) !important;
  font-size: 12px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius) !important;
  transition: all var(--transition) !important;
}

.elementor-button.btn-primary,
.elementor-button-primary {
  background: var(--accent) !important;
  color: #0c0c0e !important;
  border: none !important;
}
.elementor-button.btn-primary:hover {
  background: var(--accent2) !important;
  transform: translateY(-2px);
}

.elementor-button.btn-outline,
.elementor-button-outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.elementor-button.btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-2px);
}

/* ─── CARDS / BOXES ─── */
.elementor-widget-image-box .elementor-image-box-wrapper,
.az-card,
.elementor-widget-posts .elementor-post,
.elementor-posts--skin-cards .elementor-post {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  transition: background var(--transition), border-color var(--transition) !important;
}

.az-card:hover,
.elementor-widget-posts .elementor-post:hover {
  background: #16161a !important;
  border-color: rgba(92,255,176,.25) !important;
}

/* ─── SKILL PROGRESS BARS ─── */
.elementor-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent2)) !important;
  border-radius: 1px !important;
}
.elementor-progress-wrapper {
  background: var(--border) !important;
  border-radius: 1px !important;
  height: 2px !important;
}
.elementor-progress-text,
.elementor-progress-percentage {
  font-family: var(--font-m) !important;
  font-size: 11px !important;
  color: var(--muted) !important;
}

/* ─── ICON BOX ─── */
.elementor-icon-box-title {
  font-family: var(--font-h) !important;
  color: var(--text) !important;
}
.elementor-icon-box-description {
  color: var(--muted) !important;
  font-family: var(--font-m) !important;
}
.elementor-icon { color: var(--accent) !important; }

/* ─── GRID / PORTFOLIO ─── */
.az-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.az-project-card {
  background: var(--surface);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  text-decoration: none;
  display: block;
}
.az-project-card:hover { background: #13131a; }

.az-project-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.az-project-name {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.az-project-url {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  word-break: break-all;
}
.az-project-card:hover .az-project-url { color: var(--accent); }

.az-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.az-tag {
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
}
.az-project-card:hover .az-tag {
  border-color: rgba(92,255,176,.3);
  color: var(--accent);
}

.az-arrow {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 18px;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}
.az-project-card:hover .az-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ─── STATS ─── */
.az-stat-num {
  font-family: var(--font-h);
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -3px;
  line-height: 1;
}
.az-stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ─── BLOG ─── */
.elementor-posts--skin-cards .elementor-post__card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}
.elementor-post__title a {
  font-family: var(--font-h) !important;
  color: var(--text) !important;
}
.elementor-post__title a:hover { color: var(--accent) !important; }
.elementor-post__excerpt p { color: var(--muted) !important; }
.elementor-post-date, .elementor-post__meta-data {
  color: var(--muted) !important;
  font-size: 11px !important;
}
.elementor-post__read-more {
  color: var(--accent) !important;
  font-size: 11px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Single post */
.single-post .entry-content,
.single-post .elementor-text-editor {
  font-family: var(--font-m) !important;
  color: var(--muted) !important;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto;
}
.single-post .entry-title,
.single-post h1 {
  font-family: var(--font-h) !important;
  font-size: clamp(28px, 5vw, 56px) !important;
  letter-spacing: -2px !important;
}

/* ─── CONTACT FORM (CF7 / WPForms) ─── */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-field input,
.wpforms-field textarea {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  font-family: var(--font-m) !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  width: 100% !important;
  transition: border-color var(--transition) !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  outline: none !important;
  border-color: var(--accent) !important;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--muted) !important;
}
.wpcf7-submit,
.wpforms-submit {
  background: var(--accent) !important;
  color: #0c0c0e !important;
  border: none !important;
  font-family: var(--font-m) !important;
  font-size: 12px !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 32px !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition) !important;
}
.wpcf7-submit:hover,
.wpforms-submit:hover {
  background: var(--accent2) !important;
  transform: translateY(-2px);
}

/* ─── SECTION LABEL UTILITY ─── */
.az-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* ─── DIVIDER ─── */
.elementor-divider-separator {
  border-color: var(--border) !important;
}

/* ─── FOOTER ─── */
#site-footer,
footer.elementor-section {
  background: var(--bg) !important;
  border-top: 1px solid var(--border) !important;
}
footer p, footer span, footer a {
  color: var(--muted) !important;
  font-size: 11px !important;
  letter-spacing: .06em;
}
footer a:hover { color: var(--accent) !important; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .az-projects-grid {
    grid-template-columns: 1fr;
  }
  h1, .elementor-heading-title { letter-spacing: -1px !important; }
}
