/* modern.css — Polished & Professional Portfolio Theme */

:root {
  /* Sophisticated color palette */
  --bg-primary: #0a0e27;
  --bg-secondary: #141937;
  --bg-card: #1a1f3a;
  --text-primary: #e8eaf0;
  --text-secondary: #a8b2d1;
  --accent: #64ffda;
  --accent-dim: #4db8a8;
  --border: rgba(100, 255, 218, 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  background-image:
    radial-gradient(at 0% 0%, rgba(100, 255, 218, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(100, 100, 255, 0.05) 0px, transparent 50%);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  text-align: left;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.marquee h1 {
  color: var(--text-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-xs);
  line-height: 1.1;
}

h2.subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 800px;
  margin: 0;
}

/* Main content grid - asymmetric layout */
main.site-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--spacing-md);
}

/* Section cards - sharp, minimal */
section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--spacing-lg);
  position: relative;
}

/* Grid positioning - creative asymmetric layout */
.about {
  grid-column: 1 / 8;
  grid-row: 1;
}

#skills {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  border-left: 3px solid var(--accent);
}

#experience {
  grid-column: 1 / 8;
  grid-row: 2 / 4;
  border-top: 3px solid var(--accent);
}

#education {
  grid-column: 8 / 13;
  grid-row: 3;
}

.contact {
  grid-column: 1 / 7;
  grid-row: 4;
}

.resume {
  grid-column: 7 / 13;
  grid-row: 4;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
}

/* Section headers with icons */
h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

h3 img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(88%) sepia(8%) saturate(418%) hue-rotate(189deg) brightness(98%) contrast(92%);
  opacity: 0.8;
}

/* Typography */
h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

/* Links - only interactive elements get hover */
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--text-primary);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

#skills ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

#skills li {
  color: var(--text-secondary);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

#skills li:hover {
  background: var(--bg-primary);
  border-left-color: var(--accent);
  transform: translateX(4px);
}

#education ul,
.experience ul {
  margin-top: var(--spacing-sm);
}

#education li,
.experience li {
  color: var(--text-secondary);
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
}

#education li::before,
.experience li::before {
  content: '▹';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Experience articles */
.experience article {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.experience article:last-child {
  margin-bottom: 0;
}

.experience article:hover {
  border-color: var(--accent);
  background: var(--bg-primary);
}

.experience article time {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.experience article ul {
  margin-top: var(--spacing-sm);
}

/* Text utilities */
.text-grey {
  color: var(--text-secondary);
}

em {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

footer .copyright {
  display: block;
  margin-bottom: var(--spacing-sm);
}

footer .silly-note {
  display: inline-block;
  margin-top: 150vh;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Version switcher button */
#version-switcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  border-radius: 2px;
  border: 2px solid var(--accent);
  background: var(--bg-card);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-sm);
  line-height: 1.2;
  z-index: 100;
}

#version-switcher:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

#version-switcher:active {
  transform: scale(0.95);
}

/* Responsive design */
@media (max-width: 1024px) {
  main.site-content {
    grid-template-columns: repeat(8, 1fr);
  }

  .about {
    grid-column: 1 / 6;
    grid-row: 1;
  }

  #skills {
    grid-column: 6 / 9;
    grid-row: 1 / 3;
  }

  #experience {
    grid-column: 1 / 6;
    grid-row: 2 / 4;
  }

  #education {
    grid-column: 6 / 9;
    grid-row: 3;
  }

  .contact {
    grid-column: 1 / 5;
    grid-row: 4;
  }

  .resume {
    grid-column: 5 / 9;
    grid-row: 4;
  }
}

@media (max-width: 768px) {
  header {
    text-align: center;
  }

  main.site-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .about,
  #skills,
  #experience,
  #education,
  .contact,
  .resume {
    grid-column: 1;
    grid-row: auto;
    border-left: 3px solid var(--accent) !important;
    border-top: none !important;
  }

  #skills ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  h2.subtitle {
    font-size: 1rem;
  }

  #version-switcher {
    width: 60px;
    height: 60px;
    font-size: 0.65rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Smooth fade-in on page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.6s ease-out backwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
