:root {
  --bg-color: #0a192f;
  --text-color: #8892b0;
  --heading-color: #ccd6f6;
  --accent-color: #64ffda;
  --card-bg: #112240;
  --nav-bg: rgba(10, 25, 47, 0.75);
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--heading-color);
  font-size: 1.1rem;
  font-weight: 500;
}

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

.hamburger {
  display: none;
  color: var(--heading-color);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero h1 {
  font-size: 4rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

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

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 30px;
  max-width: 600px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--heading-color);
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 4px;
  font-weight: 500;
}

.btn:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 50px;
  position: relative;
  display: flex;
  align-items: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 200px;
  height: 1px;
  background-color: #233554;
  margin-left: 20px;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-header h3 {
  color: var(--heading-color);
  font-size: 1.3rem;
}

.date {
  font-size: 0.9rem;
  font-family: monospace;
}

.degree,
.company {
  color: var(--heading-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.location {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: normal;
}

.details {
  margin-top: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 2px solid #233554;
  margin-left: 20px;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.job-description {
  margin-top: 15px;
  list-style-type: disc;
  padding-left: 20px;
}

.job-description li {
  margin-bottom: 10px;
}

/* Projects Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-7px);
}

.project-card h3 {
  color: var(--heading-color);
  margin-bottom: 10px;
}

.tech-stack {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.project-details {
  list-style-type: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-details li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.btn-small {
  font-size: 0.8rem;
  color: var(--heading-color);
  text-decoration: underline;
}

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

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

.skill-category h3 {
  color: var(--heading-color);
  margin-bottom: 15px;
  border-bottom: 1px solid #233554;
  padding-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background-color: #233554; /* Slightly lighter than bg */
  color: var(--heading-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: monospace;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.social-links-footer {
  margin-top: 15px;
}

.social-links-footer a {
  margin: 0 10px;
  font-size: 1.2rem;
  color: var(--heading-color);
}

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

/* Animations */
.animate-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    padding: 0;
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 20px 0;
  }

  .hamburger {
    display: block;
    z-index: 1002; /* Above nav-links */
  }

  .section-title::after {
    width: 100px;
  }
}

/* Scroll Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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