/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-pink: #e7818f;
  --secondary-pink: #f8bbd9;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-color: #e5e5e5;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-small: 8px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

.text-center {
  text-align: center;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Section Styles */
.section {
  padding: 120px 0;
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.section-header {
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--secondary-pink), var(--primary-pink));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -30px;
  right: -30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
  transform: translateY(-50%);
  z-index: -1;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
}

.divider-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--primary-pink), var(--secondary-pink));
  border-radius: 2px;
}

.divider-icon {
  margin: 0 20px;
  color: var(--primary-pink);
  font-size: 16px;
  background: var(--white);
  padding: 12px;
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

/* Project Card Styles */
.project-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-pink);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-pink), var(--secondary-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: 1;
}

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

/* Project Image */
.project-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--light-gray);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
          135deg,
          rgba(231, 129, 143, 0.9) 0%,
          rgba(248, 187, 217, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.project-category {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  align-self: flex-start;
}

.project-links {
  display: flex;
  gap: 12px;
  align-self: flex-end;
}

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-pink);
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.project-link:hover {
  background: var(--primary-pink);
  color: var(--white);
  transform: translateY(-4px);
}

/* Project Content */
.project-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-description {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tag {
  background: linear-gradient(135deg, var(--light-gray), #f0f0f0);
  color: var(--text-gray);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.tech-tag:hover {
  background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
  color: var(--white);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
}

/* Coming Soon Card */
.project-placeholder {
  background: linear-gradient(135deg, var(--light-gray), var(--white));
  border: 2px dashed var(--border-color);
  justify-content: center;
  align-items: center;
}

.coming-soon {
  text-align: center;
  padding: 60px 32px;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-pink), var(--primary-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--white);
  font-size: 32px;
}

.project-placeholder .project-title {
  color: var(--text-gray);
}

.project-placeholder .project-description {
  color: var(--text-light);
}

/* View More Section */
.view-more-section {
  text-align: center;
  margin-top: 60px;
}

.view-more-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
  color: var(--white);
  border: none;
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.view-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.view-more-btn:hover::before {
  left: 100%;
}

.view-more-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.view-more-btn:active {
  transform: translateY(-2px);
}

.btn-icon {
  transition: var(--transition);
}

.view-more-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-image {
    height: 240px;
  }

  .project-content {
    padding: 24px;
  }

  .section-header {
    margin-bottom: 60px;
  }

  .view-more-section {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .section-subtitle {
    font-size: 1.1rem;
  }

  .project-overlay {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(
            135deg,
            rgba(231, 129, 143, 0.8) 0%,
            rgba(248, 187, 217, 0.7) 100%
    );
  }

  .view-more-btn {
    padding: 16px 28px;
    font-size: 14px;
  }
}

/* Animation Classes */
.animated {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Loading States */
.project-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Focus States for Accessibility */
.project-link:focus,
.view-more-btn:focus {
  outline: 2px solid var(--primary-pink);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}