/* =============================================
   AIYAN PORTFOLIO — STYLE.CSS
   Inspired by Tristan Hendricks' minimalist design
   ============================================= */

/* ---- VARIABLES & THEME ---- */
:root {
  --bg: #f5f5f3;
  --bg-secondary: #ebebeb;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(245, 245, 243, 0.85);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover-bg: rgba(255, 255, 255, 0.9);
  --beam-color-1: rgba(200, 210, 230, 0.5);
  --beam-color-2: rgba(180, 195, 220, 0.3);
  --tag-bg: rgba(0, 0, 0, 0.06);
  --tag-text: #333;
  --footer-text: #777;
  --transition: 0.2s ease;
  --font-mono: 'Geist Mono', 'Courier New', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-secondary: #141414;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --border: rgba(255, 255, 255, 0.07);
  --nav-bg: rgba(10, 10, 10, 0.85);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-hover-bg: rgba(255, 255, 255, 0.08);
  --beam-color-1: rgba(50, 60, 90, 0.6);
  --beam-color-2: rgba(30, 40, 70, 0.4);
  --tag-bg: rgba(255, 255, 255, 0.08);
  --tag-text: #ccc;
  --footer-text: #555;
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- BEAM BACKGROUND ---- */
.beam-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.beam-1 {
  width: 70vw;
  height: 120vh;
  top: -20%;
  right: -10%;
  background: linear-gradient(135deg,
      var(--beam-color-1) 0%,
      transparent 60%);
  transform: rotate(-25deg);
  transform-origin: top right;
  animation: beamFloat1 12s ease-in-out infinite alternate;
}

.beam-2 {
  width: 50vw;
  height: 100vh;
  top: 10%;
  right: 5%;
  background: linear-gradient(150deg,
      var(--beam-color-2) 0%,
      transparent 55%);
  transform: rotate(-15deg);
  transform-origin: top center;
  animation: beamFloat2 16s ease-in-out infinite alternate;
}

@keyframes beamFloat1 {
  0% {
    transform: rotate(-25deg) translateY(0);
    opacity: 0.5;
  }

  100% {
    transform: rotate(-20deg) translateY(-3%);
    opacity: 0.7;
  }
}

@keyframes beamFloat2 {
  0% {
    transform: rotate(-15deg) translateX(0);
    opacity: 0.3;
  }

  100% {
    transform: rotate(-10deg) translateX(2%);
    opacity: 0.5;
  }
}

/* ---- NAVIGATION ---- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 20px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s ease;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition);
}

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

.nav-link.active {
  font-weight: 600;
}

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

.theme-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--tag-bg);
}

/* ---- MAIN CONTENT ---- */
#main-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  min-height: 100vh;
}

/* ---- SECTIONS ---- */
.section {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 120px;
  animation: fadeInSection 0.3s ease;
}

.section.active-section {
  display: flex;
  gap: 60px;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-col {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-col {
  flex-grow: 1;
  min-width: 0;
}

/* ---- HEADER ---- */
.site-header {
  margin-bottom: 40px;
}

.name {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 420px;
}

/* ---- SOCIAL LINKS ---- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
  position: relative;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-secondary);
  transition: width var(--transition);
}

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

.social-link:hover::after {
  width: 100%;
}

/* ---- SECTION BLOCKS ---- */
.section-block {
  margin-bottom: 36px;
}

.block-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ---- PHILOSOPHY LIST ---- */
.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.philosophy-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- EXPERIENCE ---- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experience-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ---- SKILLS GRID ---- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  transition: background var(--transition);
}

.skill-tag:hover {
  background: var(--card-hover-bg);
}

/* ---- ART SECTION ---- */
.art-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.art-card {
  cursor: pointer;
  transition: transform var(--transition);
  outline: none;
}

.art-card:hover {
  transform: translateY(-2px);
}

.art-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.art-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.art-1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.art-2 {
  background: linear-gradient(135deg, #2d1b69, #11998e, #38ef7d);
}

.art-3 {
  background: linear-gradient(135deg, #642b73, #c6426e);
}

.art-4 {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.art-5 {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.art-6 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.art-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.art-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- PROJECTS SECTION ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.project-card {
  cursor: pointer;
  transition: transform var(--transition);
  outline: none;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 10px;
}

.project-preview {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  transition: border-color var(--transition);
}

.project-card:hover .project-preview {
  border-color: rgba(100, 130, 200, 0.3);
}

.preview-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.preview-nav {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 8px;
}

.preview-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preview-headline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.accent-text {
  color: #60a5fa;
}

/* Project preview backgrounds */
.proj-1 {
  background: linear-gradient(135deg, #0d1117, #1e293b, #334155);
}

.proj-2 {
  background: linear-gradient(135deg, #ffecd2, #fcb69f, #ff9a9e);
}

.proj-3 {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.proj-4 {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3a, #2d2d6b);
}

.proj-5 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.proj-6 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-info {
  padding: 0 2px;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- ABOUT SECTION ---- */
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.facts-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ---- OTHER LINKS ---- */
.other-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  width: fit-content;
}

.other-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition);
}

.other-link:hover {
  color: var(--text-primary);
}

.other-link:hover::after {
  width: 100%;
}

/* ---- CONTACT ---- */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
  width: fit-content;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.contact-email:hover {
  color: var(--accent-hover);
}

.contact-email:hover::after {
  width: 100%;
}

/* ---- FOOTER CLOCK ---- */
.site-footer {
  position: fixed;
  bottom: 24px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 50;
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--footer-text);
}

.footer-dot {
  font-size: 0.6rem;
  color: var(--footer-text);
}

.live-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--footer-text);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  #main-nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .section {
    padding: 30px 20px 100px;
  }

  .section.active-section {
    display: block;
    /* stacked layout on mobile */
  }

  .sidebar-col {
    width: 100%;
    position: static;
    margin-bottom: 30px;
  }

  .content-col {
    width: 100%;
  }

  .art-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .site-footer {
    position: static;
    margin-top: 40px;
    margin-left: 20px;
    padding-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---- PROJECT & ART CARD BADGE LINKS ---- */
.project-links,
.art-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-link-btn,
.art-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
}

.project-link-btn:hover,
.art-link-btn:hover {
  color: var(--text-primary);
  background: var(--card-hover-bg);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.project-link-btn:active,
.art-link-btn:active {
  transform: translateY(0);
}

/* ---- UTILITY ---- */
::selection {
  background: var(--accent);
  color: white;
}