@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --dark: #212529;
  --light: #f8f9fa;
  --text: #505050;
  --light-blue: #eef5ff;
}

body {
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

#toggleButton {
  margin-right: 20px !important;
}

.case-container {
  color: white;
  padding: 80px 0 120px;
  position: relative;
  /* overflow: hidden; */
}

.case-container::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: white;
  transform: skewY(-3deg);
  z-index: 1;
}

.dark-mode .case-container::after {
  background: #000616;
}

.header-content {
  position: relative;
  z-index: 2;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.main-content {
  padding: 50px 0;
  position: relative;
  z-index: 2;
}

h2 {
  /* color: var(--dark); */
  margin: 40px 0 20px;
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
}

h3 {
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

p {
  margin-bottom: 8px;
}

.list-style-none {
  padding-left: 8px;
}
.list-style-none li {
  list-style: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  background: white;
  color: black;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

.feature-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.tech-stack {
  background-color: var(--light-blue);
  color: var(--dark);
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.tech-item {
  background: white;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.timeline {
  margin: 50px 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 4px;
  height: 100%;
  background-color: var(--light-blue);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--light);
}

.timeline-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background-color: var(--light-blue);
  color: var(--dark);
}
.stat-card {
  background-color: var(--light-blue);
  color: var(--dark);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.challenges-list,
.lessons-list {
  margin: 20px 0;
}

.challenges-list li,
.lessons-list li {
  margin-bottom: 15px;
}

.lessons-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--light-blue), var(--light-blue));
  color: black;
  position: relative;
}

.lessons-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: white;
  transform: skewY(-3deg);
}

.lessons-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: white;
  transform: skewY(3deg);
}

.lessons-container {
  position: relative;
  z-index: 1;
}

.lessons-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.lesson-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.lesson-card:hover {
  transform: scale(1.05);
}

.lesson-icon {
  width: 70px;
  height: 70px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.lesson-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
  color: var(--text);
}

.lesson-description {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
}

.conclusion-section {
  padding-top: 20px;
  background-color: white;
  /* background-color: var(--light-blue); */
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.conclusion-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.conclusion-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.highlight {
  font-weight: 600;
}

.conclusion-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  margin-top: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.conclusion-cta:hover {
  background: #15b9a3;
  transform: translateY(-5px);
}

.quote-box {
  background: var(--light-blue);
  padding: 40px;
  border-radius: 10px;
  position: relative;
  margin: 60px 0;
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 100px;
  color: rgba(92, 143, 219, 0.1);
  font-family: Georgia, serif;
}

.quote-text {
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-weight: 600;
  text-align: right;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}

footer p {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 0;
  }

  header::after {
    bottom: -70px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 7px;
  }

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

  .tech-stack {
    padding: 20px;
  }

  .lesson-title {
    font-size: 1.3rem;
  }

  .conclusion-text {
    font-size: 1.1rem;
  }

  .quote-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .impact-container {
    grid-template-columns: 1fr;
  }

  .lessons-list {
    grid-template-columns: 1fr;
  }
}

/* //! new codes */

.cs-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.cs-portfolio-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.cs-portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.cs-portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-portfolio-card:hover::before {
  opacity: 1;
}

.cs-content-section {
  flex: 1;
  max-width: 400px;
}

.cs-category-tag {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.cs-category-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
}

.cs-project-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-project-description {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cs-explore-btn::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cs-portfolio-card:hover .cs-explore-btn::after {
  transform: translateX(4px);
}

.cs-image-section {
  flex: 1;
  position: relative;
  height: 220px;
  min-width: 280px;
}

.cs-device-mockup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  height: 100%;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.cs-portfolio-card:hover .cs-device-mockup {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.cs-portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  transition: transform 0.3s ease;
}

.cs-portfolio-card:hover .cs-portfolio-image {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cs-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-portfolio-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
    gap: 30px;
  }

  .cs-content-section {
    max-width: 100%;
    order: 2;
  }

  .cs-image-section {
    order: 1;
    width: 100%;
    height: 200px;
    min-width: auto;
  }

  .cs-device-mockup {
    transform: none;
    height: 100%;
  }

  .cs-portfolio-card:hover .cs-device-mockup {
    transform: scale(1.02);
  }

  .cs-project-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .cs-portfolio-card {
    padding: 24px;
    border-radius: 20px;
  }

  .cs-project-title {
    font-size: 22px;
  }

  .cs-image-section {
    height: 180px;
  }
}

/* Loading animation */
.cs-portfolio-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

/* Staggered animation for cards */
.cs-portfolio-card:nth-child(1) {
  animation-delay: 0.1s;
}
.cs-portfolio-card:nth-child(2) {
  animation-delay: 0.2s;
}
.cs-portfolio-card:nth-child(3) {
  animation-delay: 0.3s;
}
.cs-portfolio-card:nth-child(4) {
  animation-delay: 0.4s;
}
.cs-portfolio-card:nth-child(5) {
  animation-delay: 0.5s;
}
.cs-portfolio-card:nth-child(n + 6) {
  animation-delay: 0.6s;
}

/* 🌙 Dark Mode Enhancements */
.dark-mode .case-container::after {
  background: #0a0a12;
}

/* Feature Cards */
.dark-mode .feature-card {
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.dark-mode .feature-card:hover {
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.dark-mode .feature-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.dark-mode .feature-title {
  color: #ffffff;
}

/* Tech Stack */
.dark-mode .tech-stack {
  background: #0f172a;
  color: #e2e8f0;
}

.dark-mode .tech-stack h2 {
  color: white !important;
}

.dark-mode .tech-item {
  background: #1e293b;
  color: #f1f5f9;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* Timeline */
.dark-mode .timeline::before {
  background-color: #1e293b;
}

.dark-mode .timeline-marker {
  border-color: #3b82f6;
}

/* Stats */
.dark-mode .stat-card {
  background-color: #111827;
  color: #f9fafb;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

/* Lessons Section */
.dark-mode .lessons-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f9fafb;
}

.dark-mode .lessons-section::before,
.dark-mode .lessons-section::after {
  background: #000;
}

.dark-mode .lesson-card {
  background: #111827;
  color: #e5e7eb;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.dark-mode .lessons-section h2 {
  color: white !important;
}

.dark-mode .lesson-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.dark-mode .lesson-title {
  color: #ffffff;
}

/* Conclusion Section */
.dark-mode .conclusion-section {
  background-color: #0f172a;
  color: #f1f5f9;
  padding-bottom: 5px;
}

.dark-mode .quote-box {
  background: #111827;
  color: #e5e7eb;
}

.dark-mode .quote-box::before {
  color: rgba(99, 102, 241, 0.15);
}

/* Portfolio Cards */
.dark-mode .cs-portfolio-card {
  background: rgba(17, 24, 39, 0.95);
  color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.dark-mode .cs-category-tag {
  color: #9ca3af;
}

.dark-mode .cs-project-title {
  color: #ffffff;
}

.dark-mode .cs-project-description {
  color: #9ca3af;
}

.dark-mode .cs-explore-btn {
  color: #60a5fa;
}

.dark-mode .cs-device-mockup {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.dark-mode .cs-portfolio-image {
  background: #0f172a;
}

/* Footer */
.dark-mode footer {
  background-color: #000616;
  color: #e5e7eb;
}

.dark-mode footer p {
  opacity: 0.7;
}

/* Add a subtle neon glow to hover states */
.dark-mode a:hover,
.dark-mode .cs-explore-btn:hover {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(147, 197, 253, 0.6);
}
