@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --text: #ededed;
  --text-muted: #a1a1a1;
  --accent: #6d5dfc;
  --accent-glow: rgba(109, 93, 252, 0.3);
  --gradient-1: linear-gradient(135deg, #6d5dfc, #a855f7);
  --gradient-2: linear-gradient(135deg, #06b6d4, #6d5dfc);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === LAYOUT === */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* === HERO === */
.hero {
  padding: 140px 0 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-text h1 span {
  color: #ffffff;
}

.hero-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.hero-email:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

/* === SECTION === */
section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 252, 0.3);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* === ABOUT === */
.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* === EXPERIENCE & EDUCATION === */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--border);
  color: var(--accent);
}

.timeline-info {
  flex: 1;
}

.timeline-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* === SKILLS === */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  color: #000000;
  transition: all var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: #e5e5e5;
}

/* === PROJECTS === */
#projects {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-img,
.project-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.project-img {
  object-fit: cover;
  object-position: top;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.project-card:hover .project-video {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.project-body {
  padding: 20px;
}

.project-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.project-body .date {
  font-size: 0.85rem;
  color: #e5e5e5;
  margin-bottom: 12px;
}

.project-body .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #2a2a2a;
  border: none;
  color: #ffffff;
  font-weight: 500;
}

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

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  border: none;
  color: #000000;
  text-decoration: none;
  transition: all var(--transition);
}

.project-links a:hover {
  background: #e5e5e5;
  color: #000000;
}

.project-links .star-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === CONTACT === */
.contact-section {
  text-align: center;
  padding: 60px 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--gradient-1);
  color: white;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* === FOOTER === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-3px);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }

  .hero-text h1 {
    font-size: 2.6rem;
  }

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

  .nav-links {
    gap: 16px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date {
    align-self: flex-start;
  }
}