/* Academic Art Deco - Multi-Theme Stylesheet */
/* Themes: Gilded Gatsby, Dark Academia, Ivory Institution, Copper & Ink */

@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Josefin+Sans:wght@300;400;500;600&display=swap');

/* ==================== THEME DEFINITIONS ==================== */

/* Theme 1: Gilded Gatsby - Black & Gold, Geometric Elegance */
[data-theme="gatsby"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --text-muted: #888888;
  --accent-primary: #d4af37;
  --accent-secondary: #c9a227;
  --accent-tertiary: #8b7355;
  --border-color: #d4af37;
  --border-subtle: rgba(212, 175, 55, 0.3);
  --shadow-color: rgba(212, 175, 55, 0.2);
  --font-heading: 'Poiret One', cursive;
  --font-body: 'Josefin Sans', sans-serif;
  --heading-weight: 400;
  --letter-spacing-heading: 4px;
  --border-style: 2px solid var(--border-color);
  --card-border-radius: 0;
  --geometric-decoration: true;
}

/* Theme 2: Dark Academia - Forest Green, Leather, Scholarly */
[data-theme="academia"] {
  --bg-primary: #1a1f1a;
  --bg-secondary: #232923;
  --bg-card: #2a322a;
  --text-primary: #e8e4d9;
  --text-secondary: #c4bfad;
  --text-muted: #8a8577;
  --accent-primary: #8b4513;
  --accent-secondary: #654321;
  --accent-tertiary: #556b2f;
  --border-color: #5c4a32;
  --border-subtle: rgba(92, 74, 50, 0.4);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Libre Baskerville', serif;
  --heading-weight: 600;
  --letter-spacing-heading: 2px;
  --border-style: 1px solid var(--border-color);
  --card-border-radius: 4px;
  --geometric-decoration: false;
}

/* Theme 3: Ivory Institution - Cream, Navy & Gold, Prestigious */
[data-theme="ivory"] {
  --bg-primary: #f5f2eb;
  --bg-secondary: #ebe7dc;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #2d2d44;
  --text-muted: #5c5c7a;
  --accent-primary: #1a1a6e;
  --accent-secondary: #c9a227;
  --accent-tertiary: #8b0000;
  --border-color: #1a1a6e;
  --border-subtle: rgba(26, 26, 110, 0.2);
  --shadow-color: rgba(26, 26, 46, 0.1);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Cormorant Garamond', serif;
  --heading-weight: 600;
  --letter-spacing-heading: 3px;
  --border-style: 1px solid var(--border-color);
  --card-border-radius: 2px;
  --geometric-decoration: false;
}

/* Theme 4: Copper & Ink - Warm, Vintage Blueprint */
[data-theme="copper"] {
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ebe3;
  --bg-card: #fffef9;
  --text-primary: #2c2c2c;
  --text-secondary: #4a4a4a;
  --text-muted: #777777;
  --accent-primary: #b87333;
  --accent-secondary: #8b5a2b;
  --accent-tertiary: #cd7f32;
  --border-color: #b87333;
  --border-subtle: rgba(184, 115, 51, 0.3);
  --shadow-color: rgba(184, 115, 51, 0.15);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Libre Baskerville', serif;
  --heading-weight: 700;
  --letter-spacing-heading: 1px;
  --border-style: 2px solid var(--border-color);
  --card-border-radius: 0;
  --geometric-decoration: true;
}

/* ==================== BASE RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ==================== LAYOUT ==================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 1rem;
  border: var(--border-style);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.theme-toggle-container.collapsed {
  padding: 0.5rem;
}

.theme-toggle-container.collapsed .theme-options {
  display: none;
}

.toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.toggle-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle-container.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.theme-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

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

.theme-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* ==================== NAVIGATION ==================== */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: var(--border-style);
  background: var(--bg-secondary);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--heading-weight);
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: var(--letter-spacing-heading);
  transition: color 0.3s ease;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--heading-weight);
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--letter-spacing-heading);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  text-transform: uppercase;
}

h2 {
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

/* ==================== CARDS / PANELS ==================== */
.card {
  background: var(--bg-card);
  border: var(--border-style);
  border-radius: var(--card-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.card:hover {
  box-shadow: 0 8px 30px var(--shadow-color);
}

.card--secondary {
  border-color: var(--accent-secondary);
}

.card--secondary::before {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-tertiary));
}

/* ==================== GEOMETRIC DECORATIONS (Gatsby & Copper) ==================== */
[data-theme="gatsby"] .geometric-line,
[data-theme="copper"] .geometric-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

[data-theme="gatsby"] .geometric-line::before,
[data-theme="gatsby"] .geometric-line::after,
[data-theme="copper"] .geometric-line::before,
[data-theme="copper"] .geometric-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

[data-theme="gatsby"] .geometric-line span,
[data-theme="copper"] .geometric-line span {
  padding: 0 1.5rem;
  color: var(--accent-primary);
  font-size: 1.5rem;
}

/* Diamond pattern for Gatsby */
[data-theme="gatsby"] .diamond {
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  transform: rotate(45deg);
  display: inline-block;
  margin: 0 0.5rem;
}

/* ==================== PROFILE SECTION ==================== */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.profile-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.profile-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 0 8px var(--bg-secondary), 0 8px 30px var(--shadow-color);
  object-fit: cover;
  object-position: center top;
  transition: all 0.4s ease;
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 8px var(--bg-secondary), 0 12px 40px var(--shadow-color);
}

.profile-title {
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-location {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ==================== TWO COLUMN LAYOUT ==================== */
.two-column {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.main-content {
  min-height: 60vh;
}

/* ==================== SIDEBAR NAVIGATION ==================== */
.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.sidebar-nav li:hover {
  background: var(--bg-secondary);
  border-left-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sidebar-nav li.active {
  background: var(--bg-secondary);
  border-left-color: var(--accent-secondary);
  color: var(--accent-primary);
  font-weight: 600;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.tab {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent-primary);
}

.tab.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== TIMELINE ==================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item.current::before {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px var(--shadow-color);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--heading-weight);
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.timeline-role {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== DATA FIELDS ==================== */
.data-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.data-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.data-value {
  color: var(--text-primary);
  text-align: right;
}

/* ==================== BUTTONS ==================== */
.btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--heading-weight);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.875rem 2rem;
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn--filled {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn--filled:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: var(--border-style);
  border-radius: var(--card-border-radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

/* ==================== PLACEHOLDER IMAGE ==================== */
.placeholder-image {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ==================== FOOTER ==================== */
.site-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: var(--border-style);
  text-align: center;
  background: var(--bg-secondary);
}

.site-footer p {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin: 0;
}

/* ==================== CONTACT LINKS ==================== */
.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.contact-link:hover {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .theme-toggle-container {
    top: auto;
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 600px) {
  .nav-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .profile-image {
    width: 160px;
    height: 160px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .theme-toggle-container,
  .nav-header {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
