/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* Color Variables & Styling Tokens */
:root {
  /* Color Palette - Slide Inspired Warm Sand Aesthetic */
  --bg-primary: #f1efec;
  --bg-secondary: #e7dfd8;
  --bg-tertiary: #dcd3ca;
  --text-dark: #121416;
  --text-muted: #5e666e;
  --text-white: #ffffff;
  
  /* Project Accent Colors */
  --accent-primary: #121416;
  --accent-smartart: #e85a71;
  --accent-smartart-hover: #d1465c;
  --accent-nhs: #005eb8;
  --accent-nhs-red: #d93838;
  --accent-school: #3182ce;
  --accent-deck: #c26d5c;

  /* Fonts */
  --font-header: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Borders & Shadows */
  --border-light: 1px solid rgba(18, 20, 22, 0.08);
  --border-dark: 1px solid rgba(18, 20, 22, 0.9);
  --shadow-sm: 0 2px 4px rgba(18, 20, 22, 0.04);
  --shadow-md: 0 10px 30px rgba(18, 20, 22, 0.08);
  --shadow-lg: 0 20px 40px rgba(18, 20, 22, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transition */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; font-weight: 600; }
p { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--bg-primary);
  border: 1px solid var(--text-dark);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(18, 20, 22, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(18, 20, 22, 0.05);
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

/* Floating Navigation Bar */
.navbar {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(241, 239, 236, 0.8);
  backdrop-filter: blur(16px);
  border: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-inner {
  box-shadow: var(--shadow-md);
  background: rgba(231, 223, 216, 0.95);
  padding: 8px 24px;
}

.logo {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-smooth);
}

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

.nav-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 50px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  padding: 6px 16px;
  background-color: var(--bg-secondary);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: var(--border-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Decorative Blur Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.4;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #ecd5d8;
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: #d4e0e9;
  bottom: -200px;
  left: -200px;
  animation-duration: 25s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* Section Header styling */
.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 18px;
}

/* About Section (The Dual Mindset) */
.about {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.mindset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.mindset-card {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: var(--radius-md);
  border: var(--border-light);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.mindset-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--text-dark);
}

.mindset-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.mindset-card h3 {
  margin-bottom: 16px;
}

.mindset-points {
  margin-top: 24px;
  list-style: none;
}

.mindset-points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.mindset-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-dark);
}

/* Interactive Portfolio Section */
.portfolio {
  padding: 120px 0;
  background-color: var(--bg-primary);
}

/* Case study tab system */
.case-study-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(18, 20, 22, 0.1);
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.case-study-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-header);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 30px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-dark);
  background-color: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--bg-primary);
  background-color: var(--text-dark);
}

/* Case study layout */
.case-study-content {
  display: none;
  animation: fadeIn 0.6s var(--transition-smooth);
}

.case-study-content.active {
  display: block;
}

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

.cs-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

/* Case Study details (Left Side) */
.cs-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs-title-area h2 {
  font-size: 2.75rem;
  margin-top: 8px;
  margin-bottom: 16px;
}

.cs-meta {
  display: flex;
  gap: 32px;
  border-top: var(--border-light);
  border-bottom: var(--border-light);
  padding: 16px 0;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.meta-val {
  font-weight: 600;
  font-size: 1rem;
}

/* Content blocks */
.cs-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-section h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--text-dark);
  padding-left: 12px;
}

/* Custom highlights for projects */
.problem-card, .solution-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: var(--border-light);
  margin-top: 16px;
}

.problem-card {
  background-color: rgba(18, 20, 22, 0.03);
}

.solution-card {
  background-color: var(--bg-secondary);
}

/* NHS app highlight styles */
.nhs-red-alert {
  border: 1px solid var(--accent-nhs-red);
  background-color: rgba(217, 56, 56, 0.05);
  border-left: 6px solid var(--accent-nhs-red);
}

.nhs-red-alert h5 {
  color: var(--accent-nhs-red);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Interactive slide viewport (Right Side) */
.cs-viewport {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deck-container {
  aspect-ratio: 10 / 14;
  max-height: 85vh;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 0;
  justify-content: center;
}

.deck-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Slide content templates styling */
.slide-bg-sand {
  background-color: #f1efec;
  color: #121416;
}

.slide-header {
  display: none;
}

.slide-body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f1efec;
  border-radius: 0;
}

.slide-title {
  font-family: var(--font-header);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.slide-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.slide-number {
  display: none;
}

/* Asymmetrical Layout grid simulation in presentation slide */
.slide-asym-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
  align-items: center;
}

.asym-left {
  padding-right: 16px;
}

.asym-right-image {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border: var(--border-light);
}

/* Slide controls */
.deck-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deck-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  background: var(--bg-secondary);
  border: var(--border-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

.arrow-btn:hover {
  background: var(--text-dark);
  color: var(--bg-primary);
}

.deck-pagination {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Interactive Timeline / Experience */
.experience {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.timeline {
  max-width: 800px;
  margin: 50px auto 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(18, 20, 22, 0.15);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--text-dark);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--text-dark);
  transform: scale(1.2);
}

.timeline-date {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.timeline-content {
  background-color: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.timeline-subtitle {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: block;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background-color: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-title-area h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 4px;
}

.contact-item h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.95rem;
}

/* Floating label form */
.contact-form {
  background-color: var(--bg-secondary);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-control {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px;
  background: var(--bg-primary);
  border: var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-smooth);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--text-dark);
  box-shadow: 0 0 0 2px rgba(18, 20, 22, 0.05);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-secondary);
  padding: 2px 8px;
  color: var(--text-dark);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer styling */
.footer {
  background-color: var(--text-dark);
  color: var(--bg-primary);
  padding: 60px 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.footer-logo span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-socials a {
  opacity: 0.7;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-copy {
  opacity: 0.6;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(241, 239, 236, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* Responsive CSS */
@media screen and (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .cs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-viewport {
    position: static;
  }
  .deck-container {
    max-width: 700px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media screen and (max-width: 768px) {
  .navbar-inner {
    border-radius: 0;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
    padding: 16px 24px;
  }
  
  .navbar {
    top: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    border-bottom: var(--border-light);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .hero {
    padding-top: 120px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

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

  .hero-actions {
    justify-content: center;
  }

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

  .contact-form {
    padding: 32px;
  }
  
  .timeline::before {
    left: 15px;
  }
  .timeline-dot {
    left: 4px;
  }
  .timeline-item {
    padding-left: 40px;
  }
}

/* Animations for Scroll Observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
