* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}
.header {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  top: 0;
  z-index: 1000;
}
.d-flex {
  display: flex;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-center {
  justify-content: center;
}
.align-items-center {
  align-items: center;
}
.logo {
  padding: 10px;
  width: 75px;
}
.logo img {
  width: 100%;
  height: auto;
}
/* Menu anchors */
.menu-anchors {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}
.menu-anchors li {
  font-size: 24px;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}
.menu-anchors li:hover {
  color: #ffd700;
}
/* Sections */
.home-page, .about-page, .skills-page, .portfolio-page, .contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 20px;
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}
.col-md-6 {
  flex: 0 0 auto;
  width: 50%;
  padding: 15px;
}
@media (max-width: 768px) {
  .col-md-6 {
    width: 100%;
  }
}
/* Homepage */
.home-page {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.home-page h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.home-page p {
  font-size: 1.2rem;
  line-height: 1.6;
}
.home-page img {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* About page */
.about-page {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}
.about-img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Skills page */
.skills-page {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.skill-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}
.skill-item:hover {
  transform: translateY(-10px);
}
.skill-item i {
  font-size: 3rem;
  margin-bottom: 20px;
}
/* Portfolio page */
.portfolio-page {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  position: relative;
  overflow: hidden;
}

.portfolio-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portfolio-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.portfolio-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
}

.portfolio-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.header-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto;
  border-radius: 2px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid rgba(102, 126, 234, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.project-card:nth-child(2) {
  animation-delay: 0.1s;
}

.project-card:nth-child(3) {
  animation-delay: 0.2s;
}

.project-card:nth-child(4) {
  animation-delay: 0.3s;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
  z-index: 10;
}

.project-card:hover::before {
  left: 100%;
}

.card-img-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.project-card:hover .card-img {
  transform: scale(1.1) rotate(2deg);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.overlay-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.card-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.card-text {
  padding: 0;
  background: none;
  text-align: left;
}

.card-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
  transition: color 0.3s;
}

.project-card:hover .card-text h3 {
  color: #667eea;
}

.card-text p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  color: #667eea;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s;
}

.badge:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-view-project {
  flex: 1;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-view-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: #fff;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Contact page */
.contact-page {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}
.form-group textarea {
  height: 100px;
  resize: vertical;
}
button[type="submit"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s;
}
button[type="submit"]:hover {
  transform: translateY(-2px);
}
.contact-info {
  margin-top: 30px;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.contact-item i {
  margin-right: 10px;
  color: #667eea;
}
