/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-color: #00d4bd; /* Teal accent */
  --secondary-color: #1f2937; /* Dark Grey */
  --bg-color: #0f172a; /* Deep Blue/Black */
  --text-color: #e2e8f0; /* Off-white */
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* --- HEADER & NAV --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid #334155;
}

.hamburger {
  display: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a:hover {
  color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-image {
  flex: 0 0 auto;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 212, 189, 0.3);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.btn {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--bg-color);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-color);
}

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

/* --- SECTIONS COMMON --- */
section {
  padding: 5rem 10%;
}

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

.section-title span {
  border-bottom: 3px solid var(--primary-color);
}

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

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.tag {
  background: var(--card-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #334155;
}

/* --- EXPERIENCE --- */
.timeline {
  border-left: 2px solid var(--primary-color);
  margin-left: 1rem;
  padding-left: 2rem;
}

.job-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
}

.job-card::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 2rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary-color);
  border-radius: 50%;
}

.job-title {
  font-size: 1.5rem;
  font-weight: bold;
}
.company {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}
.date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.job-details li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
  margin-left: 1.5rem;
}

/* --- PROJECTS --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}
.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.tech-stack {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

/* --- CONTACT --- */
.contact {
  text-align: center;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.contact-item {
  font-size: 1.2rem;
  border: 1px solid var(--text-muted);
  padding: 1rem 2rem;
  border-radius: 5px;
}
.contact-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2rem;
  background: #0b1120;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- MOBILE --- */
@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
    padding-top: 8rem;
    height: auto;
    min-height: 100vh;
  }
  .hero-content {
    align-items: center;
  }
  .profile-pic {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .line {
    width: 30px;
    height: 3px;
    margin: 5px;
    background: var(--text-color);
    transition: all 0.3s ease;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8rem;
    align-items: center;
    clip-path: circle(100px at 90% -10%);
    -webkit-clip-path: circle(100px at 90% -10%);
    transition: all 0.5s ease-out;
    pointer-events: none;
    z-index: 1000;
    transform: none;
    overflow-y: auto;
  }

  .nav-links.open {
    clip-path: circle(1200px at 90% 10%);
    -webkit-clip-path: circle(1200px at 90% 10%);
    pointer-events: all;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    opacity: 0;
  }

  .nav-links.open li {
    animation: fade 0.5s ease forwards 0.2s;
  }

  @keyframes fade {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0px);
    }
  }

  /* Hamburger Animation */
  .hamburger.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.toggle .line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

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

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 3rem 5%;
  }
}
