@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600&display=swap");

body {
  background-size: cover;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 70px 0 0 0;
  color: #333;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Navbar */
:root {
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --text-dark: #2c3e50;
  --text-light: #666;
  --bg-transparent: rgba(255, 255, 255, 0.95);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-transparent);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: var(--hover-shadow);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  font-weight: 700;
  color: black;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--text-dark);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

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

/* Mobile navigation */
@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-transparent);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(163, 186, 230, 0.1);
  }
}

/* Header styles */
header {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8em;
  color: #2c3e50;
  margin: 0 0 10px 0;
}

header p {
  font-size: 1.2em;
  color: #666;
  margin: 0;
}

/* Projects container */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 40px;
}

/* Project card styles */
.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 25px;
}

.project-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  color: #2c3e50;
  margin: 0 0 10px 0;
}

.project-tech {
  color: var(--primary-color);
  font-weight: 500;
  margin: 0 0 15px 0;
}

.project-description {
  color: #666;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.github-btn {
  background: #2c3e50;
  color: white;
}

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

.demo-btn:hover {
  background: var(--primary-dark);
}

/* Footer styles */
footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 40px;
}

footer a {
  margin: 0 10px;
  color: inherit;
  text-decoration: none;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  header {
    padding: 40px 20px;
  }

  header h1 {
    font-size: 2em;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 20px;
  }

  .project-content h2 {
    font-size: 1.5em;
  }

  .project-links {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

/* Project card improvements */
.project-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}
