/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;900&family=Nunito:wght@400;600&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #0a0705;
  color: #d4c5a9;
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}
img.left {
  float: left;
  margin-right: 20px;
}

a {
  color: #c9a84c;
  text-decoration: none;
}

a:hover {
  color: #00e5ff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== DECORATIVE DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b87333, transparent);
}

.divider::before {
  background: linear-gradient(90deg, transparent, #b87333);
}

.divider::after {
  background: linear-gradient(90deg, #b87333, transparent);
}

.divider-gear {
  color: #b87333;
  font-size: 18px;
  line-height: 1;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #c9a84c;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ===== COPPER BORDER ===== */
.copper-border {
  border: 1px solid #b87333;
  border-radius: 2px;
  position: relative;
}

.copper-border::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 1px;
  pointer-events: none;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 7, 5, 0.95);
  border-bottom: 1px solid #b87333;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b87333;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4c5a9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: #c9a84c;
  border-bottom-color: #c9a84c;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c9a84c;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero_03.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35) saturate(0.8);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,7,5,0.1) 0%,
    rgba(10,7,5,0.4) 60%,
    rgba(10,7,5,0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

.hero-logo {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 18px rgba(184,115,51,0.6));
}

.hero-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 600;
  color: #b87333;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hero-name {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(201,168,76,0.4);
}

.hero-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: #d4c5a9;
  margin-bottom: 32px;
}

.hero-subtitle span {
  color: #9b59ff;
  text-shadow: 0 0 10px rgba(155,89,255,0.5);
}

.btn-primary {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0a0705;
  background: linear-gradient(135deg, #c9a84c, #b87333);
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00e5ff, #9b59ff);
  color: #0a0705;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background: rgba(255,255,255,0.02);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: #120e0a;
  border: 1px solid #b87333;
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(184,115,51,0.25);
  pointer-events: none;
  z-index: 1;
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1208;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b87333;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #b87333;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    45deg,
    #120e0a,
    #120e0a 10px,
    #150f0a 10px,
    #150f0a 20px
  );
}

.card-placeholder-icon {
  font-size: 2rem;
  color: #b87333;
  opacity: 0.5;
}

.card-placeholder-text {
  font-size: 0.7rem;
  color: #b87333;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-link {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9b59ff;
  border-bottom: 1px solid #9b59ff;
  padding-bottom: 2px;
}

.card-link:hover {
  color: #00e5ff;
  border-color: #00e5ff;
}

/* ===== ABOUT ===== */
.about-text {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.05rem;
  color: #c8b89a;
}

/* ===== SKILLS ===== */
.skills-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.skills-table th,
.skills-table td {
  padding: 14px 20px;
  text-align: left;
  border: 1px solid rgba(184,115,51,0.3);
  vertical-align: top;
}

.skills-table thead th {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9a84c;
  background: rgba(184,115,51,0.1);
}

.skills-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.02);
}

.skills-table tbody tr:nth-child(even) {
  background: rgba(184,115,51,0.04);
}

.skills-table td:first-child {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  color: #b87333;
  white-space: nowrap;
}

/* ===== CONTACTS ===== */
.contacts {
  background: rgba(255,255,255,0.02);
}

.contacts-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #b87333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b87333;
  font-size: 1.1rem;
  flex-shrink: 0;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  background: rgba(184,115,51,0.1);
}

.contact-label {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b87333;
  margin-bottom: 2px;
}

.contact-value {
  color: #d4c5a9;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #060403;
  border-top: 1px solid #b87333;
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(212,197,169,0.4);
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== INNER PAGE ===== */
.inner-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(184,115,51,0.4);
  margin-bottom: 60px;
}

.inner-hero-label {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9b59ff;
  margin-bottom: 12px;
}

.inner-hero-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.inner-hero-sub {
  font-size: 1.1rem;
  color: #c8b89a;
  max-width: 680px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b87333;
  margin-bottom: 32px;
}

.back-link:hover {
  color: #00e5ff;
}

/* Inner content */
.inner-content {
  max-width: 800px;
  padding-bottom: 80px;
}

.inner-content h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184,115,51,0.3);
}

.inner-content h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #b87333;
  margin: 24px 0 10px;
}

.inner-content p {
  margin-bottom: 16px;
  color: #c8b89a;
}

.inner-content ul,
.inner-content ol {
  margin: 0 0 16px 20px;
  color: #c8b89a;
}

.inner-content li {
  margin-bottom: 8px;
}

.inner-content li strong {
  color: #d4c5a9;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.feature-item {
  background: #120e0a;
  border: 1px solid rgba(184,115,51,0.4);
  padding: 16px 20px;
  position: relative;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(184,115,51,0.15);
  pointer-events: none;
}

.feature-item strong {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Scenario block */
.scenario {
  background: #0d0a07;
  border-left: 3px solid #9b59ff;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
}

.scenario p {
  margin-bottom: 8px;
}

.scenario .bot {
  color: #9b59ff;
}

.scenario .user {
  color: #00e5ff;
}

/* FAQ */
.faq-item {
  border: 1px solid rgba(184,115,51,0.3);
  padding: 20px;
  margin-bottom: 12px;
  background: #0d0a07;
}

.faq-q {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 10px;
}

/* Integration tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.tag {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a0705;
  background: #b87333;
  padding: 4px 12px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.tag.cyber {
  background: #9b59ff;
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, rgba(155,89,255,0.1), rgba(0,229,255,0.05));
  border: 1px solid #9b59ff;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(155,89,255,0.2);
  pointer-events: none;
}

.cta-box h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #9b59ff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.cta-box p {
  color: #c8b89a;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,7,5,0.98);
    border-top: 1px solid #b87333;
    padding: 16px 24px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(184,115,51,0.2);
  }

  .site-header {
    position: relative;
  }

  .burger {
    display: flex;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contacts-inner {
    flex-direction: column;
    align-items: center;
  }

  .inner-content {
    padding-bottom: 48px;
  }

  section {
    padding: 60px 0;
  }
}