:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #0ea5e9;
  --accent: #0284c7;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: var(--primary);
}

h3 {
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.container {
  padding: 0 2rem;
}

.subtitle {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Hero Section for index.html */
.hero {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-text {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* Challenge Grid for index.html */
.challenge-grid-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.challenge-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.challenge-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Prevent all card text from underlining on hover */
.challenge-card * {
  text-decoration: none !important;
}

.challenge-card:hover * {
  text-decoration: none !important;
}

.challenge-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.challenge-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-light);
}

.challenge-problem strong,
.challenge-solution strong,
.challenge-outcome strong {
  color: var(--text-dark);
  font-weight: 600;
}

.challenge-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

/* Only underline the "View Case Details" link on hover */
.challenge-card:hover .challenge-link {
  text-decoration: underline !important;
}

/* Primary CTA */
.primary-cta {
  text-align: center;
  margin: 4rem auto;
  padding: 0 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  /* Changed from white to light blue for visibility */
  color: #5dade2 !important;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  /* Changed hover text color to white */
  color: #ffffff !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Back to Overview Link */
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Portfolio page sections */
.section {
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.section p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.visualization {
  margin: 2.5rem 0;
  text-align: center;
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visualization:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.visualization img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.caption {
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-lighter);
  font-size: 0.95rem;
}

.skills-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.skills-column {
  flex: 1 1 45%;
  min-width: 300px;
}

.highlight-box {
  background-color: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.highlight-box:hover {
  transform: translateX(5px);
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--primary-dark);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.campaign-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.campaign-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.campaign-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.campaign-header h3 {
  margin: 0;
  color: white;
  font-size: 1.0rem;
}

.campaign-client {
  font-style: italic;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.campaign-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.campaign-results {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
  background-color: rgba(14, 165, 233, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.campaign-strategy {
  margin-top: 1.5rem;
  flex-grow: 1;
}

.campaign-image {
  margin-top: 1.5rem;
  text-align: center;
}

.campaign-image img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-block;
  background-color: rgba(14, 165, 233, 0.15);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.73rem;
  margin-right: 0.3rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: rgba(14, 165, 233, 0.25);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.industry-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  background-color: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.industry-title {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.industry-title::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.industry-description {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.stat-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: rgba(14, 165, 233, 0.05);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.stat-box:hover {
  background-color: rgba(14, 165, 233, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 1rem;
  min-width: 40px;
  text-align: center;
  line-height: 1;
  align-self: center;
}

.stat-label {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-light);
  padding-top: 0.25rem;
  padding-left: 0.5rem;
}

a:link {
  color: var(--accent);
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: var(--primary);
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: var(--secondary);
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: var(--secondary);
  background-color: transparent;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .campaign-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .challenge-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .campaign-card,
  .industry-card {
    min-width: 100%;
  }
}

/* Animation effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeIn 0.6s ease-out forwards;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}
.section:nth-child(3) {
  animation-delay: 0.4s;
}
.section:nth-child(4) {
  animation-delay: 0.6s;
}
.section:nth-child(5) {
  animation-delay: 0.8s;
}