/* --- CSS Variables & Reset --- */
:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* --- Header & Nav --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  text-align: center;
  flex-direction: column;
  padding-top: 80px;
}

.profile-img-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  transition: var(--transition);
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.8);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--bg-color);
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid var(--accent);
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.outline:hover {
  background: var(--accent);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --- Common Section Styles --- */
section {
  padding: 5rem 10%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 10px auto;
  border-radius: 2px;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* --- Experience/Projects --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  position: relative;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(10px);
  background: #253146;
}

.timeline-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.timeline-item .role {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

/* --- Education --- */
.edu-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border-bottom: 4px solid var(--accent);
}

/* --- Contact --- */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  min-width: 250px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

.contact-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem;
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    background: var(--card-bg);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 2rem;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 5%;
  }
}

/* Animation Classes */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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