/* Modern CSS for IBM ATOM - Mobile-First Responsive Design */

:root {
  --primary-blue: #0062FF;
  --dark-bg: #1B1B1B;
  --light-text: #F3F4F3;
  --white: #FDFFFD;
  --hover-blue: #0051D5;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --dark-bg: #FFFFFF;
  --light-text: #1B1B1B;
  --white: #1B1B1B;
  --card-bg: #FFFFFF;
  --card-border: rgba(27, 27, 27, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: rgba(255, 255, 255, 0.98);
  --hero-gradient-start: rgba(0, 98, 255, 0.05);
  --hero-gradient-end: rgba(255, 255, 255, 0.9);
}

/* Dark Theme Variables (default) */
[data-theme="dark"] {
  --dark-bg: #1B1B1B;
  --light-text: #F3F4F3;
  --white: #FDFFFD;
  --card-bg: rgba(27, 27, 27, 0.85);
  --card-border: rgba(243, 244, 243, 0.2);
  --nav-bg: rgba(27, 27, 27, 0.95);
  --footer-bg: rgba(27, 27, 27, 0.98);
  --hero-gradient-start: rgba(0, 98, 255, 0.1);
  --hero-gradient-end: rgba(27, 27, 27, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--card-bg, rgba(243, 244, 243, 0.1));
  border: 1px solid var(--card-border, rgba(243, 244, 243, 0.2));
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--light-text);
  font-size: 1.25rem;
}

.theme-toggle:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: rotate(180deg) scale(1.1);
}

.theme-toggle:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Modern Navigation */
.modern-nav {
  background: var(--nav-bg, rgba(27, 27, 27, 0.95));
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--card-border, rgba(243, 244, 243, 0.1));
  transition: var(--transition);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

[data-theme="light"] .logo-img {
  filter: brightness(0) saturate(100%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: var(--light-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.burger-menu:hover .burger-line {
  background: var(--primary-blue);
}

.burger-menu:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Burger menu animation when active */
.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.fedramp-badge {
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--light-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
}

.fedramp-badge:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 98, 255, 0.3);
}

.demo-btn {
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.demo-btn:hover {
  background: var(--hover-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 98, 255, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--hero-gradient-start, rgba(0, 98, 255, 0.1)) 0%, var(--hero-gradient-end, rgba(27, 27, 27, 0.9)) 100%),
              url('_next/static/media/IBM-Watson-Cloud-Services.749656d7.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  margin-top: 60px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  animation: fadeInUp 0.8s ease-out;
  text-shadow:
    -2px -2px 0 rgba(27, 27, 27, 0.9),
    2px -2px 0 rgba(27, 27, 27, 0.9),
    -2px 2px 0 rgba(27, 27, 27, 0.9),
    2px 2px 0 rgba(27, 27, 27, 0.9),
    0 0 20px rgba(0, 98, 255, 0.5);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--light-text);
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  background: rgba(27, 27, 27, 0.75);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .hero-description {
  background: rgba(255, 255, 255, 0.9);
  color: #1B1B1B;
}

.hero-cta {
  margin-top: 2rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: #0062FF;
  color: #FFFFFF;
  border: 2px solid #0062FF;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 98, 255, 0.3);
}

.cta-button:hover {
  background: #0051D5;
  border-color: #0051D5;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 98, 255, 0.4);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Section Styling */
.section {
  padding: 4rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--white);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

[data-theme="light"] .section-title {
  color: #1B1B1B;
  text-shadow: none;
}

/* Modern Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.modern-card {
  background: var(--card-bg, rgba(243, 244, 243, 0.05));
  border: 1px solid var(--card-border, rgba(243, 244, 243, 0.1));
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-blue);
}

[data-theme="light"] .modern-card:hover {
  background: #FFFFFF;
  box-shadow: 0 20px 25px -5px rgba(0, 98, 255, 0.15), 0 10px 10px -5px rgba(0, 98, 255, 0.08);
}

[data-theme="dark"] .modern-card:hover {
  background: rgba(27, 27, 27, 0.95);
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.card-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1rem;
  color: rgba(243, 244, 243, 0.8);
  line-height: 1.7;
}

/* Why ATOM Section */
.why-atom-section {
  background: linear-gradient(135deg, var(--hero-gradient-start, rgba(0, 98, 255, 0.05)) 0%, var(--hero-gradient-end, rgba(27, 27, 27, 0.9)) 100%),
              url('_next/static/media/IBM-watsonx-Brings.29759cb3.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 1.5rem;
  margin: 4rem 0;
}

/* Partners Section */
.partners-section {
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.partners-scroll {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.partners-scroll:hover {
  animation-play-state: paused;
}

.partner-logo {
  height: 50px;
  width: auto;
  filter: grayscale(100%) brightness(2);
  transition: var(--transition);
  opacity: 0.7;
}

.partner-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

/* Modern Footer */
.modern-footer {
  background: var(--footer-bg, rgba(27, 27, 27, 0.98));
  border-top: 1px solid var(--card-border, rgba(243, 244, 243, 0.1));
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  margin-bottom: 1.5rem;
}

.footer-info {
  font-size: 0.875rem;
  color: var(--light-text);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border, rgba(243, 244, 243, 0.1));
}

.footer-bottom-left {
  font-size: 0.875rem;
  color: rgba(243, 244, 243, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-blue);
}

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

[data-theme="light"] .footer-bottom-left {
  color: rgba(27, 27, 27, 0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .logo-img {
    height: 32px;
  }

  /* Show burger menu on mobile */
  .burger-menu {
    display: flex;
  }

  /* Hide nav actions by default on mobile */
  .nav-actions {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg, rgba(27, 27, 27, 0.98));
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
    box-shadow: none;
  }

  /* Show nav actions when active */
  .nav-actions.active {
    max-height: 100vh;
    opacity: 1;
    border-bottom: 1px solid var(--card-border, rgba(243, 244, 243, 0.1));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  /* Style nav items for mobile menu */
  .nav-actions > * {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .theme-toggle {
    width: 100%;
    height: 50px;
    border-radius: 8px;
  }

  .fedramp-badge {
    font-size: 0.875rem;
    padding: 1rem;
    display: block;
  }

  .demo-btn {
    font-size: 0.875rem;
    padding: 1rem;
    display: block;
  }

  .hero-section {
    padding: 6rem 1rem 4rem;
    background-attachment: scroll;
  }

  .section {
    padding: 3rem 1rem;
  }

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

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modern-card {
    padding: 1.5rem;
  }

  .why-atom-section {
    padding: 4rem 1rem;
    background-attachment: scroll;
  }

  .partners-scroll {
    gap: 2rem;
  }

  .partner-logo {
    height: 40px;
  }

  .footer-top {
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .modern-footer {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    padding: 7rem 1.5rem 5rem;
  }
}

/* Tablet landscape and desktop */
@media (min-width: 1025px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-info {
    max-width: 60%;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .modern-nav,
  .modern-footer {
    display: none;
  }

  .hero-section,
  .why-atom-section {
    background: white;
    color: black;
  }
}

/* Made with Bob */


/* Light theme specific adjustments */
[data-theme="light"] .fedramp-badge {
  background: var(--white);
  color: var(--dark-bg);
  border-color: var(--dark-bg);
}

[data-theme="light"] .fedramp-badge:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

[data-theme="light"] .partner-logo {
  filter: grayscale(100%) brightness(0.5);
}

[data-theme="light"] .partner-logo:hover {
  filter: grayscale(0%) brightness(1);
}

[data-theme="light"] .card-title {
  color: var(--primary-blue);
}

[data-theme="light"] .card-subtitle {
  color: #1B1B1B;
}

[data-theme="light"] .card-description {
  color: rgba(27, 27, 27, 0.8);
}

[data-theme="light"] .footer-links a {
  color: #1B1B1B;
}

[data-theme="light"] .footer-info {
  color: rgba(27, 27, 27, 0.9);
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(27, 27, 27, 0.1);
}


/* Tablet landscape and desktop */
@media (min-width: 1025px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
