/* =========================================
   EVANGELOS KOTSIS — PORTFOLIO
   Dark Cybersecurity Theme
   ========================================= */

:root {
  --bg:         #090d12;
  --bg-card:    #0f1620;
  --bg-dark:    #070b0f;
  --border:     #1a2535;
  --accent:     #00c8ff;
  --accent2:    #0070e0;
  --accent-dim: rgba(0, 200, 255, 0.12);
  --text:       #c8d8e8;
  --text-muted: #5a7080;
  --text-head:  #e8f4ff;
  --white:      #ffffff;
  --mono:       'Share Tech Mono', monospace;
  --sans:       'DM Sans', sans-serif;
  --display:    'Syne', sans-serif;
  --radius:     10px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* ---- UTILITIES ---- */
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.accent-text { color: var(--accent); }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 64px;
  background: rgba(9, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-head);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

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

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* glow blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 112, 224, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-tag {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-head);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-certs {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.hero-certs .sep {
  margin: 0 10px;
  color: var(--border);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: #33d4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.3);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.btn-large {
  font-size: 0.9rem;
  padding: 16px 40px;
}

/* =========================================
   TERMINAL
   ========================================= */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
}

.terminal-box {
  width: 100%;
  max-width: 480px;
  background: #0a0f16;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.05),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #0c1219;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 24px;
  font-size: 0.82rem;
  color: #7ec8e3;
  line-height: 1.9;
  min-height: 220px;
}

.terminal-body .cmd { color: var(--accent); }
.terminal-body .val { color: #98e4c0; }
.terminal-body .cmt { color: #3a5060; }
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-dark);
  max-width: 100%;
  padding: 100px 0;
}

.section-dark > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 60px;
  padding-right: 60px;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: -0.02em;
}

/* =========================================
   SKILLS GRID
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.skill-card:hover {
  border-color: rgba(0, 200, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.skill-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 12px;
  position: relative;
}

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

/* CERTS */
.certs-section {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.certs-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.certs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  transition: all var(--transition);
}

.cert-badge:hover {
  border-color: rgba(0, 200, 255, 0.3);
}

.cert-badge.upcoming {
  opacity: 0.6;
  border-style: dashed;
}

.cert-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.cert-logo.az   { background: rgba(0, 120, 212, 0.2); color: #0078d4; border: 1px solid rgba(0,120,212,0.3); }
.cert-logo.sc   { background: rgba(0, 200, 100, 0.15); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.cert-logo.goog { background: rgba(255, 180, 0, 0.15); color: #ffb400; border: 1px solid rgba(255,180,0,0.3); }
.cert-logo.jamf { background: rgba(0, 174, 239, 0.15); color: #00aeef; border: 1px solid rgba(0,174,239,0.3); }
.cert-logo.next { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,200,255,0.2); }

a.cert-badge {
  text-decoration: none;
  cursor: pointer;
}

a.cert-badge:hover {
  border-color: rgba(0, 200, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.1);
}

.cert-verify {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 6px;
  transition: color var(--transition);
}

a.cert-badge:hover .cert-verify {
  color: var(--accent);
}

.cert-name {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-head);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-pill {
  display: inline-block;
  background: rgba(0, 200, 255, 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(0,200,255,0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: normal;
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 92px;
  padding-right: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 56px;
  padding-left: 32px;
}

.timeline-dot {
  position: absolute;
  left: -8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
  border: 3px solid var(--bg-dark);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: rgba(0,200,255,0.2);
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.timeline-role {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--mono);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,200,255,0.15);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

/* =========================================
   PROJECTS
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: rgba(0,200,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.project-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(0,200,255,0.15);
  background: linear-gradient(135deg, #0f1620 0%, #0c1925 100%);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-status {
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,200,255,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.project-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-wrapper {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 30px 60px;
    text-align: center;
  }

  .hero-visual { display: none; }

  .hero-cta { justify-content: center; }

  .nav { padding: 0 24px; }
  .nav-links { display: none; }

  .section { padding: 70px 30px; }
  .section-dark > * { padding-left: 30px; padding-right: 30px; }

  .skills-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }

  .timeline { padding-left: 50px; padding-right: 30px; }
  .timeline::before { left: 30px; }

  .certs-list { flex-direction: column; }

  .footer { padding: 24px 30px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
