﻿/* CSS variables */
:root {
  --bg-color: #fafbfc;
  --text-color: #1a1a1a;
  --accent-color: #2563eb;
  --secondary-text: #64748b;
  --border-color: #e2e8f0;
}

body.dark-mode {
  --bg-color: #0f1419;
  --text-color: #f1f5f9;
  --accent-color: #3b82f6;
  --secondary-text: #94a3b8;
  --border-color: #1e293b;
}

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
}

/* Top row layout (hero + about) */
.top-row {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  width: 100%;
}

/* Hero section */
#hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#hero p {
  color: var(--secondary-text);
  font-size: 1.2rem;
  max-width: 600px;
  font-weight: 400;
}

/* Hero title animation */
#hero-title {
  display: inline-block;
  white-space: nowrap;
  font-size: 2.75rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

#hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  animation: slideIn 0.42s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 0.04s);
}

#name {
  display: inline-block;
  transition: background-color 0.35s ease, color 0.35s ease, padding 0.35s ease;
  padding: 0;
}

#name.highlight {
  background-color: #22c55e;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Subheading animation */
#sub {
  font-size: 1.2rem;
  color: var(--secondary-text);
  margin-top: 8px;
  white-space: nowrap;
  font-weight: 500;
}

#sub .char {
  animation-delay: calc(var(--i) * 0.03s);
}

/* Resume button */
.resume-btn {
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  display: inline-block;
}

.resume-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0.9;
}

/* About section */
#about {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.8px;
  text-align: center;
  color: var(--text-color);
}

#about p {
  line-height: 1.7;
  color: var(--secondary-text);
}

/* Skills section */
#skills {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 40px auto 0;
  width: 100%;
}

.skills-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.skills-subtitle {
  font-size: 1rem;
  color: var(--secondary-text);
  margin-bottom: 32px;
  font-weight: 400;
}

/* Marquee */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  animation: scroll 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Skill pills */
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--accent-color);
}

/* Dark mode pills */
body.dark-mode .pill {
  background: var(--bg-color);
  border-color: var(--border-color);
}

body.dark-mode .pill:hover {
  border-color: var(--accent-color);
}

/* Theme toggle */
.theme-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 24px;
  background-color: var(--text-color);
  color: var(--bg-color);
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  z-index: 100;
}

.theme-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
