/* ==========================================================================
   Glassmorphism Portfolio — hovanes.io
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Background */
  --bg-dark: #0a0a1a;
  --bg-mid: #0f1028;
  --bg-accent: #1a1040;

  /* Accent */
  --accent-primary: #4f7fff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #4f7fff, #7c3aed);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-blur: 16px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-gap: 6rem;
  --card-padding: 2rem;
  --card-radius: 16px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
  background: var(--bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

p:last-child {
  margin-bottom: 0;
}

/* --- Background Layer --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid), var(--bg-accent));
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.bg-blob--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  left: -100px;
}

.bg-blob--2 {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
}

.bg-blob--3 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, -60px) scale(1.1); }
  66%      { transform: translate(-40px, 40px) scale(0.9); }
}

/* --- Glass Nav --- */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-base);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-nav nav {
  display: flex;
  gap: 2rem;
}

.glass-nav nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition-base);
  position: relative;
}

.glass-nav nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.glass-nav nav a:hover,
.glass-nav nav a.active {
  color: var(--text-primary);
}

.glass-nav nav a:hover::after,
.glass-nav nav a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Hamburger animation when open */
.nav--open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav--open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav--open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(79, 127, 255, 0.2);
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.hero__location {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero__social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.hero__social a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(79, 127, 255, 0.3);
  transform: translateY(-3px);
}

.hero__contact {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__contact a {
  color: var(--text-secondary);
}

.hero__contact a:hover {
  color: var(--accent-primary);
}

/* --- Sections --- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem var(--section-gap);
}

.section__title {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.glass-card h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.glass-card ul {
  padding-left: 0;
}

.glass-card ul li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
}

.glass-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* --- About Grid --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* --- Timeline (Experience) --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 5px);
  top: var(--card-padding);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--accent-primary);
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.timeline__company {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.timeline__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(79, 127, 255, 0.1);
  border: 1px solid rgba(79, 127, 255, 0.2);
}

/* --- Education Grid --- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.edu__degree {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.edu-grid .timeline__date {
  display: inline-block;
  margin-top: 0.75rem;
}

/* --- Skills --- */
.skills__icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  text-align: center;
  margin-top: 0.5rem;
}

.skill-item {
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.skill-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(79, 127, 255, 0.15);
  transform: translateY(-2px);
}

.skill-item i {
  font-size: 2.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills__workflow {
  padding-left: 0;
}

.skills__workflow li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.skills__workflow li::before {
  display: none;
}

.skills__workflow li i {
  color: var(--accent-primary);
  margin-right: 0.75rem;
  font-size: 0.85rem;
}

/* --- Awards --- */
.awards__list {
  padding-left: 0;
}

.awards__list li {
  padding: 0.65rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.awards__list li:last-child {
  border-bottom: none;
}

.awards__list li::before {
  display: none;
}

.awards__list li i {
  color: #f59e0b;
  margin-right: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--glass-border);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* --- Responsive --- */

/* Tablet+ */
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 0 3rem var(--section-gap);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .glass-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav--open nav {
    max-height: 400px;
    padding: 1rem 0;
  }

  .glass-nav nav a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .glass-nav nav a::after {
    display: none;
  }

  .hero__avatar {
    width: 120px;
    height: 120px;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline__header {
    flex-direction: column;
  }

  .timeline__item::before {
    left: calc(-1.5rem - 5px);
  }

  :root {
    --card-padding: 1.5rem;
    --section-gap: 4rem;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .section {
    max-width: 1000px;
    padding: 0 4rem var(--section-gap);
  }
}
