/* Bogen.ai Global Styles */
/* Luxury tech aesthetic - Navy + Gold palette */

/* ===== CSS Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors - Updated to match edmundbogen.github.io */
  --navy: #1a3a52;
  --dark-navy: #0f2a3f;
  --cyan: #64b5f6;
  --white: #FFFFFF;
  --soft-gray: #f5f5f5;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #E0E0E0;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Helvetica Neue', 'Inter', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing (8px base unit) - More generous like original site */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  --spacing-xxl: 100px;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 54, 93, 0.08);
  --shadow-md: 0 4px 16px rgba(27, 54, 93, 0.12);
  --shadow-lg: 0 8px 32px rgba(27, 54, 93, 0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  background: var(--dark-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.02em;
}

h1 {
  font-size: 3rem; /* 48px */
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2.25rem; /* 36px */
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-size: 1.5rem; /* 24px */
}

h5 {
  font-size: 1.25rem; /* 20px */
}

h6 {
  font-size: 1.125rem; /* 18px */
}

p {
  margin-bottom: var(--spacing-md);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-small {
  font-size: 0.875rem;
}

.text-large {
  font-size: 1.125rem;
}

.text-navy {
  color: var(--cyan);
}

.text-cyan {
  color: var(--cyan);
}

.text-gray {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Layout Components ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-sm {
  padding: var(--spacing-xl) 0;
}

.section-lg {
  padding: 120px 0;
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

.btn-primary:hover {
  background: #4a9fd8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: #0f2a3f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-cyan:hover {
  background: var(--cyan);
  color: var(--white);
}

.btn-lg {
  padding: 18px 50px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 30px;
  font-size: 0.875rem;
}

/* ===== Cards ===== */
.card {
  background: rgba(26, 58, 82, 0.4);
  border: 1px solid rgba(100, 181, 246, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.card-highlight {
  border: 2px solid var(--cyan);
  background: rgba(26, 58, 82, 0.6);
}

.card-navy {
  background: var(--navy);
  color: var(--white);
}

.card-navy h1,
.card-navy h2,
.card-navy h3,
.card-navy h4 {
  color: var(--white);
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 42, 63, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-link.active {
  color: var(--cyan);
  font-weight: 400;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0 !important;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: rgba(100, 181, 246, 0.1);
  color: var(--cyan);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  background: none;
  border: none;
  z-index: 1002;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  pointer-events: none;
}

/* Mobile Styles */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 42, 63, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.mobile-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .btn-sm {
    display: inline-block;
    margin: 8px auto;
    padding: 10px 24px;
  }
}

/* ===== Masthead Section ===== */
.masthead {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.masthead-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #1a2332 0%, #00d4ff 100%);
  z-index: 0;
}

.masthead-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/woman-at-computer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 1;
}

.neural-network {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 2;
}

.masthead-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1920px;
  display: flex;
  align-items: center;
  padding: 80px 60px;
  gap: 40px;
}

/* Left Section - Logo & Tagline (40%) */
.masthead-left {
  flex: 0 0 40%;
  padding-right: 40px;
}

.masthead-logo {
  font-family: 'Montserrat', var(--font-sans);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ai-accent {
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.masthead-accent-line {
  width: 80px;
  height: 3px;
  background: #ff6b4a;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(255, 107, 74, 0.5);
}

.masthead-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  margin: 0;
}

/* Center Section - Visual Metaphor (35%) */
.masthead-center {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desk-transform {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.physical-side {
  opacity: 0.7;
}

.phone-icon {
  font-size: 4rem;
  filter: grayscale(100%);
}

.particles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.particle {
  font-size: 0.5rem;
  animation: float 2s ease-in-out infinite;
  animation-delay: var(--delay);
  color: var(--color);
  filter: blur(0.5px);
  text-shadow: 0 0 8px var(--color);
}

@keyframes float {
  0%, 100% { transform: translateX(0) translateY(0); opacity: 0.3; }
  50% { transform: translateX(20px) translateY(-10px); opacity: 1; }
}

.digital-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-element {
  font-size: 2.5rem;
  animation: glow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--glow-color));
}

@keyframes glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Dynamic Calendar Icon */
.calendar-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom, #8b5cf6 0%, #8b5cf6 30%, #ffffff 30%, #ffffff 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calendar-month {
  position: absolute;
  top: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.calendar-day {
  position: absolute;
  bottom: 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2332;
  line-height: 1;
}

/* Right Section - Badge Icons (25%) */
.masthead-right {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 40px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--badge-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
              0 0 20px var(--badge-color);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.badge-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3),
              0 0 30px var(--badge-color);
}

.badge-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Responsive Masthead */
@media (max-width: 1200px) {
  .masthead-container {
    flex-direction: column;
    text-align: center;
    padding: 60px 40px;
  }

  .masthead-left,
  .masthead-center,
  .masthead-right {
    flex: 1 1 100%;
    padding: 0;
  }

  .masthead-logo {
    font-size: 3rem;
  }

  .masthead-tagline {
    font-size: 1.25rem;
  }

  .masthead-accent-line {
    margin: 20px auto;
  }

  .masthead-right {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .masthead {
    min-height: auto;
  }

  .masthead-container {
    padding: 40px 20px;
  }

  .masthead-logo {
    font-size: 2.5rem;
  }

  .masthead-tagline {
    font-size: 1.125rem;
  }

  .desk-transform {
    transform: scale(0.8);
  }

  .badge-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .badge-text {
    font-size: 0.875rem;
  }
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 400;
  color: var(--white);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--white);
  background: rgba(26, 58, 82, 0.4);
  border: 1px solid rgba(100, 181, 246, 0.3);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.form-error {
  color: #D32F2F;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ===== Tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(26, 58, 82, 0.4);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.table th {
  background: rgba(26, 58, 82, 0.6);
  font-weight: 400;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: rgba(100, 181, 246, 0.1);
}

/* ===== Utility Classes ===== */
.bg-navy { background: var(--navy); color: var(--white); }
.bg-cyan { background: var(--cyan); color: var(--white); }
.bg-gray { background: rgba(26, 58, 82, 0.3); }
.bg-white { background: var(--white); color: var(--dark-gray); }

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

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ===== Footer ===== */
.footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(100, 181, 246, 0.2);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
  color: var(--cyan);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  font-weight: 400;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  :root {
    --spacing-xxl: 60px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 48px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Reset order for mobile */
  .grid > div {
    order: 0 !important;
  }

  /* Responsive profile photos on about pages */
  .text-center img[alt="Edmund Bogen"],
  .text-center img[alt="Eytan Benzeno"] {
    max-width: 300px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 10 / 9 !important;
    object-position: center top !important;
  }

  .nav-menu {
    gap: var(--spacing-md);
    font-size: 0.875rem;
  }

  .btn {
    padding: 12px 32px;
    font-size: 0.875rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .card {
    padding: var(--spacing-md);
  }

  .btn {
    width: 100%;
  }
}
