/* ========== Base Theme ========== */
:root {
  --bg-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.15);
  --text-color: #e0e0e0;
  --accent: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.6);
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

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

html, body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background: var(--bg-gradient);
  scroll-behavior: smooth;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

/* ========== All links ========== */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* ========== Header/Nav ========== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 2rem;
  padding: 1rem 2rem;
  background: transparent;
  transition: all 0.4s ease;
}

.navigation li a, 
.navigation .name-item p {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: color 0.3s ease;
}

.navigation li a:hover {
  color: var(--accent);
}

.navigation.scrolled {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

/* ========== Hero ========== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg-gradient);
}

.hero-title {
  font-size: 3.5rem;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #aaa;
}

.hero-line {
  margin: 1.5rem auto;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-scroll {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  animation: fade-bounce 2s infinite;
}

@keyframes fade-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ========== Sections ========== */
.section {
  padding: 6rem 10%;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--accent);
  border-radius: 2px;
}

/* ========== About ========== */
.section-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ========== Timeline (Experience, Education) ========== */
.timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.7s ease;
}

.timeline-item.show {
  transform: translateY(0);
  opacity: 1;
}

.timeline-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

/* ========== Courses/Skills Cards ========== */
.courses-grid,
.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.course-card,
.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ========== Projects Grid ========== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 1000px;
}

.project-card:hover {
  transform: scale(1.05) rotate3d(1, 1, 0, 6deg);
  box-shadow: 0 0 25px var(--accent-glow);
  border-color: var(--accent);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* ========== Languages ========== */
.languages-container {
  display: grid;
  gap: 1rem;
}

.language-item {
  display: flex;
  flex-direction: column;
}

.language-level {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.level-bar {
  background: var(--accent);
  height: 100%;
  border-radius: 4px;
}

/* ========== Footer ========== */
footer {
  padding: 3rem 10%;
  text-align: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
}

.social-links {
  margin: 1rem 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .navigation {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 5%;
  }
}
