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

:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --dark-color: #1d3557;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-color: #333;
  --gray-text: #666;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  --border-radius: 15px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .bg-white {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--card-shadow);
  padding: 3rem !important;
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-weight: 300;
  color: var(--secondary-color);
}

.hero h5 {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

/* Section Headings */
h3,
h4 {
  font-weight: 700;
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: block;
  width: 100%;
}

/* Separator Line */
hr {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border: none;
  margin: 0 auto 40px auto;
  opacity: 1;
}

/* About Section */
.about {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  max-width: 900px;
}

/* Skills Section */
.skill-category-title {
  font-weight: 600;
  color: var(--dark-color);
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  font-size: 1.2rem;
}

.skill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
}

.skill-tag {
  background: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  color: var(--dark-color);
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.skill-tag i {
  margin-right: 8px;
  color: var(--secondary-color);
}

/* Project Cards (Refined) */
.card {
  border: none;
  border-radius: var(--border-radius);
  transition: all 0.4s ease;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  height: 100%;
  background: var(--white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.img-hover-container {
  overflow: hidden;
  height: 180px;
  border-bottom: 1px solid #f0f0f0;
}

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

.card:hover .img-hover-container img {
  transform: scale(1.08);
  /* Smoother zoom */
}

.img-details {
  padding: 18px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 180px);
}

.img-details h5 {
  color: var(--dark-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.img-details p {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 15px;
  line-height: 1.5;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  margin: 3px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-btn i {
  margin-left: 6px;
}

.btn-hosted {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.btn-hosted:hover {
  background-color: #d32f2f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

.btn-github {
  background-color: #f1f3f5;
  color: var(--dark-color);
}

.btn-github:hover {
  background-color: var(--dark-color);
  color: white;
  transform: translateY(-2px);
}

/* Education / Courses Cards */
.education-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  transition: transform 0.3s;
  border-left: 5px solid var(--secondary-color);
}

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

.education-card h5 {
  color: var(--dark-color);
  margin-bottom: 5px;
}

.education-card p {
  margin-bottom: 5px;
  color: var(--gray-text);
}

/* Contact Form */
.contact-form .form-control {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #eee;
  background-color: #fcfcfc;
  margin-bottom: 10px;
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
  border-color: var(--primary-color);
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--gray-text);
}

.contact-info i {
  color: var(--primary-color);
  width: 25px;
  margin-right: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  transition: all 0.3s ease;
}

.contact-form .btn-primary {
  width: 100%;
}

.btn-primary:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.hero .btn {
  padding: 12px 35px;
  font-size: 1rem;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-danger {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}