/* ==========================================
   MAIN STYLES - dharambhushan.com
   Professional AWS-inspired design
   ========================================== */

/* CSS Variables for theming */
:root {
  /* AWS-inspired color palette */
  --aws-orange: #f90;
  --aws-dark-blue: #232f3e;
  --aws-light-blue: #527fff;

  /* Professional color system */
  --color-primary: var(--aws-orange);
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-background: #fff;
  --color-surface: #f5f5f5;
  --color-border: #e0e0e0;

  /* Typography */
  --font-primary:
    -apple-system, blinkmacsystemfont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    sans-serif;
  --font-mono: 'SF Mono', monaco, 'Cascadia Code', 'Roboto Mono', monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 70px;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px rgb(0 0 0 / 7%);
  --shadow-lg: 0 10px 15px rgb(0 0 0 / 10%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

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

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

a:hover {
  color: var(--aws-dark-blue);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo a {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
  white-space: nowrap;
  font-size: var(--text-sm);
}

.nav-menu a:hover {
  background-color: var(--color-surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

#home {
  position: relative;
}

#home canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Neural Network Full-Page Background */
.neural-network-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.neural-network-background canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(255 153 0 / 3%) 0%, rgb(82 127 255 / 3%) 100%);
  z-index: 0;
  overflow: hidden;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgb(255 153 0 / 3%) 2px,
      rgb(255 153 0 / 3%) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgb(82 127 255 / 3%) 2px,
      rgb(82 127 255 / 3%) 4px
    );
  background-size: 80px 80px;
  animation: meshMove 20s linear infinite;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(255 153 0 / 10%) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgb(82 127 255 / 10%) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgb(255 153 0 / 8%) 0%, transparent 40%);
  animation: neuralPulse 8s ease-in-out infinite;
}

@keyframes meshMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(40px, 40px) rotate(360deg);
  }
}

@keyframes neuralPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr 400px;
  gap: var(--space-xl);
  align-items: start;
}

.hero-timeline-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.timeline-compact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.timeline-sidebar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.timeline-item-compact {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item-compact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-year {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.timeline-org {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.certifications-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.certifications-badge:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.hero-content {
  flex: 1;
}

.hero-right {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  width: 400px;
  flex-shrink: 0;
}

.hero-skills {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.skills-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  text-align: center;
}

.skills-category-compact {
  margin-bottom: var(--space-lg);
}

.skills-category-compact:last-child {
  margin-bottom: 0;
}

.category-title-compact {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.tags-compact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.certifications-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cert-badge-compact {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: white;
  text-align: center;
  border-radius: calc(var(--border-radius) / 2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.cert-badge-compact:hover {
  background: #e68a00;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  color: white;
}

.hero-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.hero-location {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.location-icon {
  font-size: var(--text-lg);
}

.hero-headline {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.3;
  max-width: 600px;
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  margin-bottom: var(--space-xl);
}

.hero-cta .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
}

.hero-contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.contact-email,
.contact-linkedin {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.contact-email:hover,
.contact-linkedin:hover {
  color: var(--color-primary);
}

.separator {
  color: var(--color-border);
}

/* Education Section */
.hero-education {
  margin-top: var(--space-lg);
}

.education-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.education-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.education-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.education-degree {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.education-school {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.education-year {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

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

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-tertiary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: var(--color-surface);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.footer-content p {
  margin: 0;
  color: var(--color-text-secondary);
}

.footer-aka {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: var(--space-lg);
}

/* ==========================================
   PAGE HERO
   ========================================== */

.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.page-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.page-description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================
   ADDITIONAL SECTIONS
   ========================================== */

.section-description {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.summary-lead {
  font-size: var(--text-xl);
  text-align: center;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.leadership-metrics,
.skills-content {
  display: grid;
  gap: var(--space-lg);
}

.metric-card,
.skills-category {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.metric-title,
.category-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.metric-description {
  color: var(--color-text-secondary);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.cert-badge {
  padding: var(--space-sm);
  background: var(--color-primary);
  color: white;
  text-align: center;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 600;
}

.contact-intro {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.contact-icon {
  font-size: var(--text-2xl);
}

.contact-text {
  font-size: var(--text-lg);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (width <= 768px) {
  :root {
    --header-height: 60px;
    --space-3xl: 4rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-background);
    padding: var(--space-lg);
    gap: var(--space-sm);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-timeline-sidebar {
    position: static;
    order: 1;
    text-align: center;
  }

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

  .hero-left {
    text-align: center;
    order: 2;
  }

  .hero-right {
    position: static;
    order: 3;
    width: 100%;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .timeline-compact {
    margin-top: var(--space-md);
  }

  .hero-headline {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-location,
  .hero-contact {
    justify-content: center;
  }

  .hero-cta {
    flex-wrap: wrap;
  }

  .hero-cta .btn {
    flex: 1 1 45%;
  }

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

@media (width <= 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }
}
