/*
 * Main stylesheet for Dr. Hakan Gonen's personal portfolio.
 * This file defines variables, global resets, layout styles,
 * responsive breakpoints and component styling. It is designed
 * to complement the dark, gradient aesthetic set out in the
 * project brief.
 */

:root {
  /* ========================================
   * WARM DARK PREMIUM COLOR SYSTEM
   * ======================================== */
  
  /* Background Colors */
  --bg-primary: #0F0F0F;        /* Soft black - main background */
  --bg-secondary: #1A1A1A;      /* Alternating sections */
  --bg-accent: #2A2A2A;         /* Cards, elevated elements */
  --bg-overlay: rgba(0, 0, 0, 0.85); /* Modal overlays */
  
  /* Text Colors */
  --text-primary: #F5F5F5;      /* Off-white for main text */
  --text-secondary: #B8B8B8;    /* Muted gray for secondary text */
  --text-muted: #8B8B8B;        /* Placeholder text */
  
  /* Accent Colors */
  --accent-primary: #FF6B35;    /* Warm orange */
  --accent-secondary: #4ECDC4;  /* Teal */
  --accent-tertiary: #45B7D1;   /* Blue */
  
  /* Card & Border Colors */
  --card-bg: rgba(42, 42, 42, 0.6);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover-bg: rgba(42, 42, 42, 0.8);
  
  /* Button Colors */
  --btn-primary: #FF6B35;
  --btn-primary-hover: #E55A2B;
  --btn-secondary: #4ECDC4;
  --btn-secondary-hover: #3BB5AD;
  
  /* Gradients - Used sparingly for highlights only */
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #4ECDC4 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
  --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
  
  /* Legacy gradient variables for backward compatibility */
  --hero-name-gradient: var(--gradient-primary);
  --hero-strategy-gradient: var(--gradient-secondary);
  --btn-gradient: var(--gradient-primary);
  --title-gradient: var(--gradient-primary);
  --about-gradient: var(--gradient-secondary);
  --timeline-circle-gradient: var(--gradient-primary);
  --tag-hover-gradient: var(--gradient-primary);
  --nav-hover-gradient: var(--gradient-primary);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Left and right margins of 120px on large screens */
  padding: 1rem 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.navbar .nav-logo img {
  width: 40px;
  height: 40px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  /* Reduced gap for better user experience */
  gap: 2.5rem;
}

.navbar .nav-links li a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  /* Smooth hover transition for nav links */
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out, -webkit-text-fill-color 0.4s ease-in-out;
}

.navbar .nav-links li a:hover {
  /* Use gradient text on hover */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dropdown styles for the Resources menu */
.navbar .nav-links li {
  position: relative;
}

/* Hide dropdown by default */
.navbar .nav-links li .dropdown {
  display: none;
  position: absolute;
  /* Position directly below the parent link without a gap to prevent hover loss */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  background: var(--bg-overlay);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  z-index: 1000;
}

/* Style dropdown links */
.navbar .nav-links li .dropdown li a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out, -webkit-text-fill-color 0.4s ease-in-out;
}

.navbar .nav-links li .dropdown li a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Show dropdown on hover for desktop */
/* Show dropdown when hovering over the parent menu item or the dropdown itself */
.navbar .nav-links li:hover .dropdown,
.navbar .nav-links li .dropdown:hover {
  display: block;
}

/* Responsive handling of dropdown on mobile */
@media (max-width: 768px) {
  .navbar .nav-links li .dropdown {
    position: static;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    margin-left: 1rem;
  }
  .navbar .nav-links li .dropdown li a {
    padding-left: 1rem;
  }
}

.navbar .nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--btn-primary);
  transition: width 0.3s ease;
}

.navbar .nav-links li a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 0 4rem;
  text-align: center;
  background: var(--bg-primary);
}

/* Service Design Playbook phases styling */
/* Style the phases (Discover, Define, Develop, Deliver) with custom arrows */
.playbook-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* Increase font size for prominence */
  font-size: 1.5rem;
  /* Increase spacing after the phases line to separate from the intro paragraph */
  margin-bottom: 2rem;
}

.playbook-phases span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
}

/* Custom arrow between phases
   Use Font Awesome icon and apply gradient colour. No horizontal bar. */
.playbook-arrow {
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 0.5rem;
  /* Apply the button gradient to the arrow icon text */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Align arrow vertically with text */
  vertical-align: middle;
}

/* Remove any pseudo-element from previous designs */
.playbook-arrow::after {
  display: none;
}

.hero h1 {
  /* Use Montserrat light and a larger size for the heading */
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.56rem); /* 89px max */
  /* Apply custom gradient for the main heading */
  background: var(--hero-name-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.375rem; /* 22px */
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.hero h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.375rem; /* 22px */
  /* Apply gradient to the strategy tagline */
  background: var(--hero-strategy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

/* Intro paragraph for the Service Design Playbook hero */
.playbook-intro {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Generic button style used across the site (hero, about etc.) */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: var(--btn-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}



/* Generic section layout */
section {
  /* Provide generous top and bottom padding to separate sections from the fixed navbar */
  padding: 6rem 0;
  /* Provide large left/right margins instead of fixed widths */
  margin-left: 120px;
  margin-right: 120px;
  /* Ensure anchor scrolling positions the section below the fixed navbar */
  scroll-margin-top: 90px;
}

/* Alternating section backgrounds for visual hierarchy */
section:nth-child(even) {
  background: var(--bg-secondary);
}

/* Hero section keeps primary background */
.hero {
  background: var(--bg-primary) !important;
}



/* Center the contents of the contact section vertically and horizontally */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title {
  /* Make section titles uppercase with medium weight and 32px size */
  font-size: 2rem; /* 32px */
  font-weight: 500; /* medium */
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  /* Use new gradient for section titles */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container for section title and tooltip icon */
.stages-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Remove bottom margin from the title inside the stages header to prevent double spacing */
.stages-header .section-title {
  margin-bottom: 0;
}

/* Tooltip icon styling */
.tooltip-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.tooltip-icon i {
  font-size: 1rem;
  /* Use the section title gradient for the icon */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tooltip-icon .tooltip-text {
  display: none;
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-overlay);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  /* Use a smaller, light font for the tooltip text */
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.4;
  white-space: normal;
  width: 320px;
  max-width: 90vw;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.tooltip-icon:hover .tooltip-text {
  display: block;
}

/* About section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.about-text {
  flex: 1.3;
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Add spacing above the "View My Journey" button so it doesn’t hug the tags */
.journey-btn {
  display: inline-block;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--btn-primary);
  color: #ffffff;
  border-color: var(--btn-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Position the 'More…' link away from the timeline line to avoid overlap */
/* Align the "More…" link with the timeline items.
   Use left padding instead of margin so the vertical timeline line
   does not overlap with the text. */
.timeline-more {
  margin-top: 2rem;
  padding-left: 3.5rem;
}

.timeline-more a {
  font-size: 0.95rem;
  /* Remove underline */
  text-decoration: none;
  /* Apply gradient to "More…" link */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline (Work Experience) */
.timeline {
  position: relative;
  margin-left: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 1px;
  height: 100%;
  /* White vertical line with 30% opacity */
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 3.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  /* Gradient for timeline circles */
  background: var(--gradient-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.timeline-item h4 {
  font-size: 1.3rem;
  /* Light weight and italic for role titles */
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  /* Apply gradient to company names */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-item .date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.timeline-item ul {
  padding-left: 1rem;
}

.timeline-item ul li {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.timeline-item ul li::before {
  content: '\2022';
  position: absolute;
  left: -1rem;
  color: var(--btn-primary);
  font-size: 1.2rem;
  line-height: 0;
  top: 0.5rem;
}

/* Selected Works */
.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.case-card {
  flex: 1;
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(78, 205, 196, 0.1);
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.case-card:hover::before,
.case-card:focus-within::before {
  opacity: 0.6;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
  border-color: var(--btn-primary);
}

.case-card .logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.case-card .logo-title img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.case-card .logo-title h3 {
  font-size: 1.4rem;
  font-weight: 600;
  /* Use section title gradient for case study titles */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-card .field {
  margin-top: 1.2rem;
}

.case-card .field h4 {
  font-size: 1rem;
  font-weight: 600;
  /* Apply gradient to field headings */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.case-card .field p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Metrics */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.metric-box {
  flex: 1;
  min-width: 150px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(69, 183, 209, 0.1);
}

.metric-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.metric-box:hover::before,
.metric-box:focus-within::before {
  opacity: 0.6;
}

.metric-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border-color: var(--btn-primary);
}

.metric-box .number {
  font-size: 3rem; /* 48px */
  font-weight: 500; /* medium weight */
  margin-bottom: 0.4rem;
  /* Use the new gradient for metric numbers */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-box .label {
  font-size: 1.5rem; /* 24px */
  font-weight: 200; /* extra light */
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Contact Section */
.contact-form {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.contact-form p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: center;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  background: var(--btn-primary);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.contact-form button:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Contact details styling */
.contact-details {
  /* Center align contents both horizontally and vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  /* Even spacing between lines */
  gap: 0.4rem;
}

.contact-details p {
  /* Remove margin and let flex gap handle spacing */
  margin-bottom: 0;
}

/* Name styling */
.contact-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.5rem; /* 24px */
  color: var(--text-primary);
}

/* Other details (email, phone, link) */
.contact-details p:not(.contact-name) {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem; /* 16px */
  color: var(--text-secondary);
}

.contact-details a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--btn-primary);
}

/* Testimonials section under metrics */
.testimonials {
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* Center align testimonials and allow one at a time */
  text-align: center;
  position: relative;
  display: block;
  overflow: hidden;
}

.testimonials p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

/* Hide all testimonials by default */
.testimonials .testimonial {
  display: none;
}

/* Show the active testimonial */
.testimonials .testimonial.active {
  display: block;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link:hover {
  background: var(--btn-primary);
  color: #ffffff;
  border-color: var(--btn-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.social-link i {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .navbar .nav-links {
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .navbar .nav-links {
    gap: 1.5rem;
  }
}

/* Playbook cards section */
.playbook-cards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

/* Individual playbook card */
.playbook-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);

  /* Limit the width of each card and center it */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Alternate the layout of even-numbered cards so the image appears on the left and text on the right */
.playbook-cards .playbook-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Left content area inside card */
.playbook-card .card-content {
  flex: 1 1 55%;
  min-width: 260px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playbook-card .card-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  /* Gradient for card titles */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.playbook-card .card-content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.playbook-card .card-content .learn-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  /* Use gradient for learn more link */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.playbook-card .card-content .learn-more:hover {
  transform: translateX(4px);
}

.playbook-card .card-content .learn-more i {
  font-size: 0.8rem;
}

/* Right graphic area inside card */
.playbook-card .card-graphic {
  flex: 1 1 45%;
  min-width: 220px;
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Concentric arcs for visual interest */
/* Remove decorative arcs for image-based graphics */
.playbook-card .card-graphic::before,
.playbook-card .card-graphic::after {
  display: none;
}

/* Ensure the image covers its container */
.playbook-card .card-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icon circles positioned around the graphic area */
.icon-circle {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.icon-circle i {
  font-size: 1.2rem;
}

/* ------------------------------------
 * Service Design Playbook: Accordion & Toolkit
 * These styles control the accordion used for
 * the Discover/Define/Develop/Deliver stages
 * and the toolkit explorer list with filters.
 ------------------------------------ */

/* Accordion container */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each accordion item container */
.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
}

/* Accordion header button */
.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.3s ease;
  text-align: left;
}

.accordion-title {
  text-align: left;
  flex: 1;
  margin-right: 1rem;
}

/* Chevron icon inside accordion header */
.accordion-header .chevron-icon {
  margin-left: 0.8rem;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* When accordion item is open, rotate the chevron */
.accordion-item.open .accordion-header .chevron-icon {
  transform: rotate(180deg);
}

/* Accordion content area */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

/* Expanded state for accordion content */
.accordion-item.open .accordion-content {
  max-height: 500px; /* Enough height to reveal content */
  padding: 1rem 1.5rem 1.5rem;
}

.accordion-content p {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.accordion-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.accordion-content ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Styles for the custom plus/x icons in accordion headers */
.accordion-icon i {
  font-size: 1.1rem;
  margin-left: 0.4rem;
  /* Apply gradient colouring to icons */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hide the cross icon by default (collapsed state) */
.accordion-icon .fa-xmark {
  display: none;
}

/* When accordion item is open, show the cross and hide the plus */
.accordion-item.open .accordion-icon .fa-xmark {
  display: inline-block;
}
.accordion-item.open .accordion-icon .fa-plus {
  display: none;
}

/* Pill / tag styling for stage tool lists */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.15rem;
  cursor: default;
  transition: all 0.3s ease;
}

.pill:hover {
  background: var(--btn-primary);
  color: #ffffff;
  border-color: var(--btn-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Intro paragraph styling under Service Design Stages */
.stages-intro {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Toolkit Explorer filter controls - Native Desktop + Custom Mobile */
.toolkit-filters {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 5;
}

.filter-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.filter-label:hover {
  opacity: 1;
}

/* Show desktop select ≥768px; show custom listbox <768px */
.filter-desktop { 
  display: none; 
}
.filter-mobile { 
  display: block; 
}

@media (min-width: 768px) {
  .filter-desktop { 
    display: inline-block; 
  }
  .filter-mobile { 
    display: none; 
  }
}

/* Screen reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop select (native, minimal styling) */
.filter-select {
  appearance: none;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 44px 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.filter-select:focus {
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Mobile custom listbox */
.filter-trigger {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: none;
  outline: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-trigger:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.filter-trigger:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.35);
  border-color: var(--btn-primary);
}

.filter-menu {
  position: relative; /* stacked flow below trigger */
  margin-top: 8px;
  list-style: none;
  padding: 6px;
  background: var(--bg-overlay);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  display: none;
  backdrop-filter: blur(10px);
  max-width: 400px;
  width: 100%;
}

.filter-mobile[data-open="true"] .filter-menu {
  display: block;
}

.filter-menu li {
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.filter-menu li[aria-selected="true"] {
  background: rgba(255, 107, 53, 0.2);
  color: var(--btn-primary);
  font-weight: 600;
}

.filter-menu li:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .toolkit-filters {
    margin-bottom: 2rem;
  }
  
  .filter-label {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .filter-trigger {
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    min-height: 60px;
  }
  
  .filter-menu li {
    font-size: 1rem;
    padding: 1.25rem;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .filter-trigger {
    max-width: 100%;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    min-height: 56px;
  }
  
  .filter-menu li {
    font-size: 0.95rem;
    padding: 1rem;
    min-height: 44px;
  }
  
  .filter-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .stage-filter-select {
    max-width: 280px;
  }
  
  .stage-filter-select select {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Enhanced accessibility and visual feedback */
.stage-pill[aria-pressed="true"] {
  background: var(--btn-primary);
  color: #ffffff;
  font-weight: 600;
}

/* New Pill-based Filter System for Desktop */
.filter-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--card-border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  outline: none;
}

.filter-pill:focus {
  outline: 2px solid var(--btn-primary);
  outline-offset: 2px;
}

.filter-pill:hover {
  border-color: var(--btn-primary);
  color: var(--btn-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.filter-pill.active {
  background: var(--btn-primary);
  border-color: var(--btn-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.filter-pill.active:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: #ffffff;
}

.pill-icon {
  font-size: 1rem;
  line-height: 1;
}

.pill-text {
  font-weight: 500;
  white-space: nowrap;
}

/* Hide old desktop select since we're using pills now */
.filter-select {
  display: none;
}

/* Responsive adjustments for pill filter */
@media (max-width: 768px) {
  .filter-pills {
    display: none; /* Hide pills on mobile, keep original dropdown */
  }
  
  .filter-select {
    display: block; /* Show select on mobile as fallback */
  }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  .stage-filter-pills {
    scroll-behavior: smooth;
  }
}

/* Toolkit card grid */
.toolkit-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Temporary highlight when navigating from pills */
.tool-card.highlight {
  outline: 2px solid rgba(251, 229, 172, 0.9);
  box-shadow: 0 0 0 4px rgba(251, 229, 172, 0.25), 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: outline 0.3s ease, box-shadow 0.3s ease;
}

.tool-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------
 * Modal styling for Toolkit Explorer tool details
 * The modal appears as an overlay with a dark backdrop and
 * a central content box. It uses gradient accents consistent
 * with the rest of the site and is hidden by default.
 -------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  /* Reserve space so sticky button doesn't cover text */
  padding-bottom: 3.5rem;
}

.modal-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-phase {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Icons placed before modal section headings */
.modal-content h4 i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  vertical-align: middle;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hide modal scrollbars but keep scrolling via wheel/touch */
.modal-content {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Scroll-to-top button inside modals */
/* Fixed scroll-to-top button on modal (bottom-right) */
.modal .modal-scroll-top {
  position: sticky;
  bottom: 1rem;
  /* push to right within scrolling content */
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
  z-index: 2100;
}
.modal .modal-scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  opacity: 0.9;
}
.modal .modal-scroll-top i {
  font-size: 1rem;
}

.modal-bullets {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.modal-bullets li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 300;
}

.modal-content a {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-content a:hover {
  color: var(--btn-primary);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
}

.modal-close i {
  font-size: 1.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.modal-close:hover i {
  transform: rotate(90deg);
}

/* Prevent body scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

.icon-circle:hover {
  transform: scale(1.2);
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
  .playbook-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  .playbook-card .card-content,
  .playbook-card .card-graphic {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 1rem;
  }
  .playbook-card .card-content {
    order: 2;
    text-align: center;
  }
  .playbook-card .card-content h3 {
    font-size: 1.6rem;
  }
  .playbook-card .card-content p {
    font-size: 0.95rem;
  }
  .playbook-card .card-content .learn-more {
    justify-content: center;
  }
  .playbook-card .card-graphic {
    order: 1;
    margin-bottom: 1rem;
  }
  .playbook-card .card-graphic::before,
  .playbook-card .card-graphic::after {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 2rem;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }

  .navbar.open .nav-links {
    display: flex;
  }

  .about-content {
    flex-direction: column;
  }

  /* Center align about text and tags on mobile */
  .about-text {
    text-align: center;
  }

  .tags {
    justify-content: center;
  }

  .journey-btn {
    margin-left: auto;
    margin-right: auto;
  }

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

  .timeline-item {
    padding-left: 2.5rem;
  }

  .timeline-item::before {
    left: 0;
  }

  .case-studies {
    flex-direction: column;
  }

  .case-card {
    width: 100%;
  }

  .metrics-grid {
    flex-direction: column;
    align-items: center;
  }

  /* Social links on mobile */
  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  /* Reduce horizontal padding on the navbar and sections for small screens */
  .navbar {
    padding: 1rem 1rem;
  }
  section {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.spotlight-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.05);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.spotlight-card:hover::before,
.spotlight-card:focus-within::before {
  opacity: 0.6;
}

.spotlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
  border-color: var(--btn-primary);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.spotlight-card p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments for services */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .spotlight-card {
    padding: 1.5rem;
  }
  
  .service-icon i {
    font-size: 2rem;
  }
  
  .spotlight-card h3 {
    font-size: 1.2rem;
  }
}

/* Removed StarBorder Effect - Back to original button styling */

/* Service Modal Styles */
.service-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Removed conflicting modal styles - using the main modal definition above */

/* Removed duplicate modal-content styles - using main definition above */

/* Removed conflicting modal show styles */

/* Services Modal Specific Styles */
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

/* Services modal content styling */
.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: var(--btn-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.modal-title {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.modal-body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.modal-section p {
  margin: 0;
  font-size: 1rem;
}

.modal-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.modal-section li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}
