/* ═══════════════════════════════════════════════════════════════
   BARAK HARYATI - CYBER SECURITY PORTFOLIO
   Inspired by CSUME - Dark navy + Green accent
   ═══════════════════════════════════════════════════════════════ */

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

/* CSS Variables */
:root {
  --bg-primary: #0b1221;
  --bg-secondary: #0f172a;
  --bg-card: #131c2e;
  --bg-card-hover: #1a2540;
  --accent: #00e676;
  --accent-light: #69f0ae;
  --accent-dim: rgba(0, 230, 118, 0.1);
  --accent-glow: rgba(0, 230, 118, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #b4c6d4;
  --text-muted: #7a8ea3;
  --border: #1e2a3a;
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 4rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - Two Column Layout
   ═══════════════════════════════════════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 2rem 5rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Decorative circuit lines */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: 
    linear-gradient(135deg, transparent 40%, rgba(0, 230, 118, 0.03) 100%);
  pointer-events: none;
}

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

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.hero-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hero-title .company {
  color: var(--accent);
  font-weight: 600;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.stat-icon {
  font-size: 1rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  border-radius: 6px;
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 
    0 0 60px rgba(0, 230, 118, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.profile-image:hover {
  border-color: var(--accent);
  box-shadow: 
    0 0 100px rgba(0, 230, 118, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.5);
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════
   EXPERTISE TAGS
   ═══════════════════════════════════════════════════════════════ */

.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.expertise-item {
  padding: 0.35rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.content-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 5rem;
}

section {
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h2 span {
  color: var(--accent);
}

/* Compact Section Grid */
.compact-section {
  margin-bottom: 2rem;
}

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

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.section-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.section-card h3 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-card .status-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
}

.section-card .status-badge.highlight {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* About Card */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.9;
}

.about-card p:last-of-type {
  margin-bottom: 0;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.75rem;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

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

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.content-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.content-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONNECT SECTION
   ═══════════════════════════════════════════════════════════════ */

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

.connect-grid.compact {
  max-width: 100%;
}

.connect-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.connect-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 230, 118, 0.15);
}

.connect-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.connect-link.email svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer .accent {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .hero {
    padding: 3rem 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .profile-image {
    width: 350px;
    height: 350px;
  }

  .content-wrapper {
    padding: 4rem 2rem;
  }
}

@media (max-width: 968px) {
  .nav {
    padding: 1rem 2rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 3rem 2rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-description {
    margin: 0 auto 2rem;
  }

  .expertise-list {
    justify-content: center;
  }

  .profile-image {
    width: 280px;
    height: 280px;
  }

  .cards-grid,
  .connect-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  h2 {
    font-size: 1.75rem;
  }

  .about-card {
    padding: 1.5rem;
  }
}
