/* Complete CSS extracted from Chris Binnie Cloud Security site - MOBILE SPACING FIXED */

* {
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --accent-color: #667eea;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "SF Pro Display", sans-serif;
  line-height: 1.7;
  margin: 0;
  color: var(--text-dark);
  background: var(--light-gradient);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

/* Layout Grid System - MOBILE SPACING FIXED */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

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

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

.col-md-5 {
  flex: 0 0 41.666667%;
}

.col-md-7 {
  flex: 0 0 58.333333%;
}

.col-lg-6 {
  flex: 0 0 50%;
}

.col-md-6 {
  flex: 0 0 50%;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
}

/* MOBILE SPACING FIX - Better responsive containers */
@media (max-width: 768px) {
  .col-md-5, .col-md-7, .col-lg-6, .col-md-6, .col-lg-4 {
    flex: 0 0 100%;
  }
 
  /* Increase mobile padding for better readability */
  .container, .container-fluid {
    padding: 0 24px;
  }
 
  .row {
    margin: 0 -12px;
  }
 
  .col-12 {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  /* Even more padding on very small screens */
  .container, .container-fluid {
    padding: 0 20px;
  }
}

@media (max-width: 360px) {
  /* Minimum safe padding for very narrow screens */
  .container, .container-fluid {
    padding: 0 18px;
  }
}

/* Utility Classes */
.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-5 {
  padding-top: 4rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mr-3 {
  margin-right: 1rem;
}

.mr-lg-2 {
  margin-right: 0.75rem;
}

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

.text-white {
  color: white;
}

.text-muted {
  color: var(--text-light);
}

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

.single-col-max {
  max-width: 800px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.branding .container-fluid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-text {
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  flex-shrink: 0;
}

/* MOBILE HEADER FIX */
@media (max-width: 768px) {
  .header {
    padding-top: 5px;
  }
 
  .header .container-fluid {
    padding: 0 24px;
  }
 
  .branding .container-fluid,
  .logo-wrapper,
  .site-logo {
    justify-content: center;
  }
 
  .logo-text {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

/* Hero Section - MOBILE EDGE SPACING FIXED */
.hero-section {
  background: var(--light-gradient);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.headline {
  font-size: 2.625rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Ensure all intro text is exactly the same size on all devices */
.subheadline,
.section-intro {
  font-size: 1.25rem !important;
  color: var(--text-light);
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.author-bio p {
  font-size: 1rem !important;
  color: #e2e8f0;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* CTA button container */
.cta-holder {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .cta-holder {
    justify-content: flex-start;
  }
}

/* Book Cover Image - MOBILE IMAGE SIZING FIX */
.book-cover {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: block;
  margin: 0 auto;
}

.book-cover:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* MAJOR MOBILE FIXES - Better text spacing and readability */
@media (max-width: 768px) {
  .headline {
    font-size: 2rem !important;
    line-height: 1.1;
    word-break: break-word;
    margin-bottom: 1.5rem;
    text-align: center;
  }
 
  .subheadline {
    font-size: 1.1rem !important;
    margin-bottom: 2rem;
    padding: 0;
    text-align: center;
  }
 
  h2, .section-heading {
    font-size: 1.8rem !important;
    text-align: center;
  }
 
  .py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
 
  /* Book cover mobile sizing */
  .book-cover {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
  }
 
  .col-md-5 {
    text-align: center;
    margin-bottom: 2rem;
  }
 
  .col-md-7 {
    text-align: center;
  }
 
  /* Better mobile button spacing */
  .cta-holder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
 
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: block;
  }
 
  .btn-secondary {
    margin-left: -11px;
  }
 
  /* Center the promo content */
  .promo {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 1.75rem !important;
    margin-bottom: 1rem;
  }
 
  .subheadline {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
  }
 
  h2, .section-heading {
    font-size: 1.6rem !important;
  }
 
  .book-cover {
    max-width: 260px;
    margin: 0 auto 1.5rem auto;
  }
 
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    max-width: 240px;
  }
}

@media (max-width: 360px) {
  .headline {
    font-size: 1.5rem !important;
  }
 
  .book-cover {
    max-width: 220px;
  }
 
  .subheadline {
    font-size: 0.95rem !important;
  }
}

/* Theme Backgrounds */
.theme-bg-primary {
  background: var(--dark-gradient);
  color: white;
}

.theme-bg-light-gradient {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Benefits Section - MOBILE SPACING IMPROVED */
.benefits-section {
  position: relative;
}

.benefits-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  pointer-events: none;
}

.item-inner {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.item-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.item-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.item-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--accent-color);
}

.item-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.item-desc {
  color: var(--text-light);
  line-height: 1.6;
}

/* MOBILE BENEFITS SECTION IMPROVEMENTS */
@media (max-width: 768px) {
  .item-inner {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
 
  .item-heading {
    font-size: 1.2rem;
  }
 
  .item-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}

/* Typography */
h1 {
  font-size: 2.625rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-heading {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Audience Section - MOBILE IMPROVEMENTS */
.audience-section .item-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.audience-section .media {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.audience-section .media:hover {
  transform: translateX(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.media {
  display: flex;
  align-items: flex-start;
}

.media-body {
  flex: 1;
  margin-left: 1rem;
}

.item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .audience-section .media {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
 
  .audience-section .media:hover {
    transform: none; /* Disable slide effect on mobile */
  }
 
  .item-title {
    font-size: 1.1rem;
  }
 
  .audience-section .item-desc {
    font-size: 1rem;
  }
}

/* Footer */
.footer {
  background: #F2EFED;
  color: #333333;
  margin-top: 0;
}

.footer small {
  color: #333333;
}

.theme-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.theme-link:hover {
  text-decoration: underline;
  color: #4c63d2;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Carousel Styles - MOBILE IMPROVEMENTS */
.quotes-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--box-shadow);
}

.carousel-inner {
  display: flex;
  width: 300%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  width: 33.333333%;
  flex-shrink: 0;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0 0;
  padding: 1rem 0;
  list-style: none;
}

.carousel-indicators li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicators li.active {
  background: var(--primary-gradient);
  transform: scale(1.2);
}

.quote {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  padding: 2rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@media (max-width: 768px) {
  .quote {
    padding: 1.5rem;
    font-size: 1rem;
  }
 
  .carousel-indicators {
    gap: 0.5rem;
    margin: 1rem 0 0 0;
    padding: 0.5rem 0;
  }
 
  .carousel-indicators li {
    width: 12px;
    height: 12px;
  }
}

/* Author Section Links */
.author-section a {
  color: #a7c7ff !important; /* Light blue that's visible on dark background */
  text-decoration: none;
  transition: var(--transition);
}

.author-section a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* MOBILE AUTHOR SECTION IMPROVEMENTS */
@media (max-width: 768px) {
  .author-bio {
    padding: 0;
  }
 
  .author-bio p {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
}

/* Icon replacements using emoji */
.fa-server::before { content: "🔐"; }
.fa-tools::before { content: "🔧"; }
.fa-cloud-security::before { content: "☁️"; }
.fa-kubernetes::before { content: "⚙️"; }
.fa-docker::before { content: "🐳"; }
.fa-open-source::before { content: "📈"; }
.fa-devops::before { content: "⚡"; }
.fa-developer::before { content: "💻"; }
.fa-platform::before { content: "🏗️"; }
.fa-sysadmin::before { content: "🔒"; }

/* Desktop-only typography fixes for Chrome */
@media screen and (min-width: 1024px) {
  /* Force all intro text to be exactly the same size */
  .subheadline,
  .section-intro,
  .audience-section .section-intro {
    font-size: 20px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
  }
 
  /* Keep headings proportional but not huge */
  h2,
  .section-heading {
    font-size: 28px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }
 
  .headline {
    font-size: 42px !important;
    line-height: 1.2 !important;
  }
}

/* Chrome desktop font rendering fixes */
@media screen and (min-width: 769px) {
  .section-intro {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
  }
 
  .subheadline {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
  }
 
  h2, .section-heading {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
}

/* Fix for deprecated API warning - Explicit font sizes for semantic HTML elements */
article h1, aside h1, nav h1, section h1 { font-size: 2.625rem; }
article h2, aside h2, nav h2, section h2 { font-size: 1.8rem; }
article h3, aside h3, nav h3, section h3 { font-size: 1.4rem; }
article h4, aside h4, nav h4, section h4 { font-size: 1.2rem; }
article h5, aside h5, nav h5, section h5 { font-size: 1.65rem; }
article h6, aside h6, nav h6, section h6 { font-size: 1rem; }

/* Mobile responsive sizes for semantic elements */
@media (max-width: 768px) {
  article h1, aside h1, nav h1, section h1 { font-size: 2rem; }
  article h2, aside h2, nav h2, section h2 { font-size: 1.8rem; }
  article h3, aside h3, nav h3, section h3 { font-size: 1.3rem; }
  article h4, aside h4, nav h4, section h4 { font-size: 1.1rem; }
  article h5, aside h5, nav h5, section h5 { font-size: 1.4rem; }
  article h6, aside h6, nav h6, section h6 { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  article h1, aside h1, nav h1, section h1 { font-size: 1.75rem; }
  article h2, aside h2, nav h2, section h2 { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  article h1, aside h1, nav h1, section h1 { font-size: 1.5rem; }
}