/* Advanced single-page profile layout */
:root {
  --bg: #f5f7fb;
  --bg-dark: #0f172a;
  --card: #ffffff;
  --text: #0b1220;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1100px;
  --space: 1.5rem;
  --space-lg: 3.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--space);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav-link {
  transition: color 0.3s ease;
}

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

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Page Container with Sidebar */
.page-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3rem;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 280px;
  min-width: 280px;
  position: sticky;
  top: 5rem;
  padding: var(--space);
}

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

.sidebar-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid var(--border);
}

.sidebar-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.sidebar-title {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-weight: 600;
}

.sidebar-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  text-align: left;
}

.sidebar-social {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.05);
  font-size: 1.1rem;
}

.sidebar-link:hover {
  color: var(--accent);
  background: rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

/* Main layout */
.main-content {
  flex: 1;
  min-width: 0;
  padding: var(--space) var(--space) var(--space-lg);
}

/* Achievements */
.achievements-section {
  padding: 0 0 var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.achievement-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: var(--accent);
}

.achievement-card-wide,
.achievement-card-full {
  grid-column: 1 / -1;
}

/* Highlighted Achievement Cards */
.achievement-highlight {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--card) 0%, rgba(79, 70, 229, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.achievement-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.achievement-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.achievement-label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.achievement-detail {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.achievement-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.achievement-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.achievement-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Conference Showcase Section */
.conference-showcase {
  background: linear-gradient(135deg, var(--card) 0%, rgba(79, 70, 229, 0.02) 100%);
}

.conference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.conference-card {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.conference-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
  transform: translateY(-4px);
}

.conference-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--border);
}

.conference-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.conference-card:hover .conference-image {
  transform: scale(1.05);
}

.conference-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.conference-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.conference-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.conference-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.conference-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.conference-links a::after {
  content: "→";
  margin-left: 0.25rem;
  transition: margin-left 0.2s ease;
}

.conference-links a:hover {
  color: #5b47db;
}

.conference-links a:hover::after {
  margin-left: 0.5rem;
}

/* Transformations Showcase Section */
.transformations-showcase {
  background: linear-gradient(135deg, var(--card) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.transformations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.transformation-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.transformation-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
}

.transformation-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.transformation-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.transformation-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Section headings */
.section-head { margin-bottom: 2rem; }

.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.section-subtitle { margin: 0; color: var(--text-secondary); }

.block-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}

.cta-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
}

.content-section,
.focus-section,
.featured-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

/* Focus */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.focus-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.focus-card h3 { margin-top: 0; }
.focus-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.focus-card li { margin-bottom: 0.6rem; color: var(--text-secondary); }
.focus-card.muted { background: #f1f5f9; }

/* Featured experience */
.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.featured-card-header { display: flex; gap: 0.75rem; align-items: center; }
.featured-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.featured-card-title { margin: 0; font-size: 1rem; }
.featured-card-meta { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.featured-card-desc { margin: 1rem 0 0.75rem; color: var(--text-secondary); }
.see-all-wrap { margin-top: 1.5rem; }
.see-all-link { color: var(--accent); font-weight: 600; }

/* Experience list */
.exp-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.exp-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.exp-company-logo {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exp-company-logo img { width: 100%; height: 100%; object-fit: contain; }
.exp-logo-fallback { display: none; font-weight: 700; color: var(--text-muted); }
.exp-logo-fallback.show { display: block; }
.exp-role { margin: 0 0 0.2rem; font-size: 1.1rem; }
.exp-company { margin: 0 0 0.2rem; color: var(--text-secondary); }
.exp-duration, .exp-location { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.exp-bullets { margin: 0.75rem 0 0 1rem; color: var(--text-secondary); }
.exp-desc { margin-top: 0.75rem; color: var(--text-secondary); }
.exp-skills { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

/* Collapsible experience */
.exp-collapsible {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.exp-summary {
  list-style: none;
  cursor: pointer;
}

.exp-summary::-webkit-details-marker {
  display: none;
}

.exp-summary::after {
  content: "▾";
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: auto;
  transition: transform 0.2s ease;
}

.exp-collapsible[open] .exp-summary::after {
  transform: rotate(180deg);
}

.exp-summary .exp-header {
  margin-bottom: 0;
}

/* Details toggle text */
.details-toggle-text {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.details-toggle-text:hover {
  background: rgba(79, 70, 229, 0.2);
  transform: translateX(4px);
}

.details-toggle-text::after {
  content: " →";
  transition: transform 0.3s ease;
  display: inline-block;
}

.exp-collapsible[open] .details-toggle-text::after {
  transform: rotate(90deg);
}

.exp-body {
  padding-left: 3.75rem;
  padding-top: 1rem;
}

.role-subsection {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.role-subsection:first-child {
  border-top: none;
  padding-top: 0;
}

.role-subsection h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.role-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.about-copy { 
  max-width: 800px;
  margin: 0 auto;
}

.about-copy p { color: var(--text-secondary); }
.tagline {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: 12px;
  color: var(--text);
}

/* Skills Section */
.skills-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-group {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.skill-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

/* Colored skill groups - Base styles */
.skill-group-purple,
.skill-group-blue,
.skill-group-teal,
.skill-group-green {
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.skill-group-purple::before,
.skill-group-blue::before,
.skill-group-teal::before,
.skill-group-green::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.skill-group-purple .skill-group-title,
.skill-group-blue .skill-group-title,
.skill-group-teal .skill-group-title,
.skill-group-green .skill-group-title {
  font-size: 1.1rem;
}

.skill-group-purple .skill-tags li,
.skill-group-blue .skill-tags li,
.skill-group-teal .skill-tags li,
.skill-group-green .skill-tags li {
  border: 1.5px solid;
  color: var(--text);
  font-weight: 500;
}

.skill-group-purple .skill-tags li:hover,
.skill-group-blue .skill-tags li:hover,
.skill-group-teal .skill-tags li:hover,
.skill-group-green .skill-tags li:hover {
  transform: translateY(-2px);
}

/* Purple - Leadership & Management */
.skill-group-purple {
  background: linear-gradient(135deg, var(--card) 0%, rgba(79, 70, 229, 0.03) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.skill-group-purple::before {
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
}

.skill-group-purple .skill-group-title {
  color: #4f46e5;
}

.skill-group-purple .skill-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(79, 70, 229, 0.05) 100%);
  border-color: #4f46e5;
}

.skill-group-purple .skill-tags li:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.skill-group-purple:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Blue - Enterprise & Architecture */
.skill-group-blue {
  background: linear-gradient(135deg, var(--card) 0%, rgba(59, 130, 246, 0.03) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.skill-group-blue::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.skill-group-blue .skill-group-title {
  color: #3b82f6;
}

.skill-group-blue .skill-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: #3b82f6;
}

.skill-group-blue .skill-tags li:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.skill-group-blue:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Teal - Cloud, Data & Integration */
.skill-group-teal {
  background: linear-gradient(135deg, var(--card) 0%, rgba(20, 184, 166, 0.03) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.skill-group-teal::before {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
}

.skill-group-teal .skill-group-title {
  color: #14b8a6;
}

.skill-group-teal .skill-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(20, 184, 166, 0.05) 100%);
  border-color: #14b8a6;
}

.skill-group-teal .skill-tags li:hover {
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.skill-group-teal:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Green - Delivery & Ways of Working */
.skill-group-green {
  background: linear-gradient(135deg, var(--card) 0%, rgba(34, 197, 94, 0.03) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.skill-group-green::before {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.skill-group-green .skill-group-title {
  color: #22c55e;
}

.skill-group-green .skill-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: #22c55e;
}

.skill-group-green .skill-tags li:hover {
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.skill-group-green:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Products, Application & Technology Section */
.products-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.products-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-group {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.product-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.product-group-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.product-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.product-tags li {
  background: #fff;
  border: 1.5px solid;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.product-tags li:hover {
  transform: translateY(-2px);
}

/* Data & AI Platforms - Orange */
.product-group-data {
  background: linear-gradient(135deg, var(--card) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.product-group-data::before {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.product-group-data .product-group-title {
  color: #f97316;
}

.product-group-data .product-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(249, 115, 22, 0.05) 100%);
  border-color: #f97316;
}

.product-group-data .product-tags li:hover {
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* PLM & ALM Tools - Indigo */
.product-group-plm {
  background: linear-gradient(135deg, var(--card) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.product-group-plm::before {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.product-group-plm .product-group-title {
  color: #6366f1;
}

.product-group-plm .product-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: #6366f1;
}

.product-group-plm .product-tags li:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Enterprise Applications - Rose */
.product-group-enterprise {
  background: linear-gradient(135deg, var(--card) 0%, rgba(244, 63, 94, 0.03) 100%);
}

.product-group-enterprise::before {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.product-group-enterprise .product-group-title {
  color: #f43f5e;
}

.product-group-enterprise .product-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(244, 63, 94, 0.05) 100%);
  border-color: #f43f5e;
}

.product-group-enterprise .product-tags li:hover {
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

/* Integration & DevOps - Cyan */
.product-group-integration {
  background: linear-gradient(135deg, var(--card) 0%, rgba(6, 182, 212, 0.03) 100%);
}

.product-group-integration::before {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.product-group-integration .product-group-title {
  color: #06b6d4;
}

.product-group-integration .product-tags li {
  background: linear-gradient(135deg, #fff 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: #06b6d4;
}

.product-group-integration .product-tags li:hover {
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* Domain Section */
.domain-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
}

.domain-card {
  background: linear-gradient(135deg, var(--card) 0%, rgba(249, 115, 22, 0.03) 100%);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: var(--accent);
}

.domain-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.domain-icon-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
}

.domain-logo {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.domain-card:hover .domain-logo {
  transform: scale(1.1);
}

.domain-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.skill-group-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.skill-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.skill-tags li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tags li:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Company Badge */
.company-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.domain-card:hover .company-badge {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  transform: scale(1.05);
}

/* Highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.highlight-card h3 { margin-top: 0; }
.highlight-meta { color: var(--text-muted); margin: 0.25rem 0 0.75rem; }
.highlight-desc { color: var(--text-secondary); margin: 0.5rem 0 0; }
.highlight-list { 
  list-style: none; 
  padding: 0; 
  margin: 0.75rem 0 0; 
  color: var(--text-secondary); 
}

.highlight-list li { 
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.highlight-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Numbered List for Certifications */
.numbered-list {
  list-style: none;
  counter-reset: item 40;
  padding-left: 0;
}

.numbered-list li {
  padding-left: 2rem;
}

.numbered-list li::before {
  content: counter(item) ".";
  counter-increment: item -1;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
}

.highlight-subtitle { margin-top: 1.5rem; }

/* Publications */
.publication-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.publication-item h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.publication-item p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Hobbies */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hobby-card {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.hobby-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hobby-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hobby-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.85rem;
}

/* Photo Gallery Section */
.gallery-section .photoframe-container {
  width: 100%;
  margin-top: 2rem;
}

/* Rotating Photo Frame */
.photoframe-container {
  width: 100%;
}

.photoframe {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.photoframe-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f9fa;
}

.photoframe-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.photoframe-image.active {
  opacity: 1;
  z-index: 2;
}

.photoframe-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  z-index: 10;
  pointer-events: none;
}

.photoframe-btn {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.photoframe:hover .photoframe-btn {
  opacity: 1;
}

.photoframe-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.photoframe-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
}

.photoframe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photoframe-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.photoframe-dot:hover {
  background: var(--accent);
  opacity: 0.7;
}

/* Fullscreen Button */
.photoframe-fullscreen-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.photoframe-fullscreen-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

/* Fullscreen Overlay */
.photoframe-fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.photoframe-fullscreen-overlay.active {
  display: flex;
}

.photoframe-fullscreen-content {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photoframe-fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.photoframe-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.photoframe-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.1);
}

.photoframe-fullscreen-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
  pointer-events: none;
}

.photoframe-fullscreen-controls .photoframe-btn {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 50px;
  height: 50px;
  opacity: 1;
}

.photoframe-fullscreen-controls .photoframe-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

/* Prevent image downloading */
.photoframe-image,
.photoframe-fullscreen-image {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

@media (max-width: 968px) {
  .hobbies-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .photoframe {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hobbies-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hobby-card {
    padding: 1rem;
  }
  
  .hobby-icon {
    font-size: 1.75rem;
  }
  
  .hobby-title {
    font-size: 0.95rem;
  }
  
  .hobby-description {
    font-size: 0.8rem;
  }
  
  .photoframe {
    padding: 1.5rem;
  }
  
  .photoframe-inner {
    aspect-ratio: 4/3;
  }
  
  .photoframe-btn {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
    opacity: 1;
  }
  
  .photoframe-fullscreen-btn {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
  
  .photoframe-close-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  
  .photoframe-fullscreen-controls {
    padding: 0 1rem;
  }
  
  .photoframe-fullscreen-controls .photoframe-btn {
    width: 40px;
    height: 40px;
  }
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-link {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0b1120;
  color: #cbd5f5;
  padding: 2.5rem 0;
  margin-top: var(--space-lg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
  text-align: center;
}

.footer-nav,
.footer-social { margin-bottom: 1rem; }
.footer-nav a,
.footer-social a { margin: 0 0.75rem; font-size: 0.9rem; color: inherit; }
.footer-copy { margin: 0; font-size: 0.85rem; color: #94a3b8; }

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-container {
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar {
    width: 100%;
    position: static;
    padding: var(--space) var(--space) 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
  }

  .sidebar-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .sidebar-description,
  .sidebar-social {
    text-align: center;
  }

  .main-content {
    padding: 0 var(--space) var(--space-lg);
  }

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

  .achievement-list {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

/* Collapsible Sections */
.collapsible-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.collapsible-heading:hover {
  color: var(--accent);
}

.section-toggle {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.section-toggle:hover {
  background: #5b47db;
  transform: scale(1.1);
}

.section-toggle .toggle-icon {
  display: block;
  line-height: 1;
}

/* Collapsed state */
section.collapsed .section-head ~ * {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

section:not(.collapsed) .section-head ~ * {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .header-inner { 
    flex-direction: column; 
    align-items: flex-start; 
  }

  .sidebar-photo {
    width: 120px;
    height: 120px;
  }

  .sidebar-name {
    font-size: 1.5rem;
  }
  
  .achievements-grid,
  .focus-grid,
  .featured-cards,
  .highlight-grid,
  .skills-section,
  .products-section-grid {
    grid-template-columns: 1fr;
  }

  .achievement-card-wide,
  .achievement-card-full {
    grid-column: 1;
  }

  .achievement-list {
    grid-template-columns: 1fr;
  }

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

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

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