/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;700&display=swap');

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

:root {
  --bg-color: #1a1a1a;
  --text-color: #e8e6e3;
  --heading-color: #e8e6e3;
  --link-color: #b8b8b8;
  --link-hover: #fff;
  --border-color: #444;
  --border-light: #333;
  --date-color: #999;
  --footer-text: #888;
  --button-bg: #2a2a2a;
  --button-hover: #3a3a3a;
}

html[data-theme="light"] {
  --bg-color: #f8f8f6;
  --text-color: #000000;
  --heading-color: #000000;
  --link-color: #333333;
  --link-hover: #666666;
  --border-color: #ddd;
  --border-light: #eee;
  --date-color: #666;
  --footer-text: #666;
  --button-bg: #f5f5f5;
  --button-hover: #e5e5e5;
}

body {
  background: var(--bg-color);
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 1em;
  line-height: 1.5em;
  margin: 0px;
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED HEADER BACKGROUND - MULTIPLE OPTIONS
   Comment/uncomment the animation you want to use
   ============================================ */

/* Common Header Styles */
.header-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: slideDown 1.5s ease-out;
}

.header-background.hidden {
  opacity: 0;
  transform: translateY(-100%);
}

/* Individual Background Images */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

/* Shimmer Effect Overlay */
.header-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.1) 50%, 
    transparent 100%
  );
  animation: shimmer 3s infinite;
  z-index: 2;
  pointer-events: none;
}

.background-overlay {
  display: none;
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

/* OPTION 1: Slide Down from Top */
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* OPTION 2: Simple Fade In */
@keyframes fadeInHeader {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* OPTION 3: Zoom In Effect */
@keyframes zoomIn {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* OPTION 4: Slide From Left */
@keyframes slideFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* OPTION 5: Blur to Focus */
@keyframes blurToFocus {
  0% {
    filter: blur(20px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}

/* Overlay Effect 1: Shimmer (CURRENT) */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Overlay Effect 2: Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

html[data-theme="light"] .header-background {
  opacity: 0.7;
}

/* Main Content Container */
#content {
  max-width: 1100px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  grid-gap: 50px;
  align-items: start;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 1;
  padding-top: 180px;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h1, h2 {
  font-family: 'Georgia', serif;
  font-weight: 400;
  color: var(--heading-color);
  line-height: 1.5em;
  margin: 0 0 0.5em 0;
}

h1 {
  color: var(--heading-color);
}

.main-title {
  text-align: center;
  margin: 0 auto 0px;
}

h3, h4, h5 {
  font-family: 'Georgia', serif;
  font-weight: 300;
  color: var(--heading-color);
  line-height: 1.4em;
  margin-top: 40px;
}

p {
  font-weight: 300;
  line-height: 1.4em;
  margin: 12px 0;
  color: var(--text-color);
}

/* Layout - Left Column (Profile) */
.left {
  padding: 0;
  text-align: center;
  float: none;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 1em;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.left p {
  font-size: 0.95em;
  margin-bottom: 1em;
  color: var(--text-color);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1.5em;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5em;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.social-links a:hover {
  background-color: var(--button-bg);
  border-color: var(--link-hover);
}

/* Layout - Right Column (Main Content) */
.right {
  margin-top: 0;
  padding-top: 0;
  float: none;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right p:first-of-type {
  margin-top: 0;
}

.entry p {
  margin-bottom: 1em;
  text-align: justify;
}

#content p {
  margin-bottom: 1em;
  text-align: justify;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover);
}

.entry a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.entry a:hover {
  color: var(--link-hover);
  border-bottom: 1px solid var(--link-hover);
}

/* Tooltips */
.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #666;
}

.tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85em;
  line-height: 1.4;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Lists */
ul {
  padding: 0 0 0 3em;
}

ol {
  padding: 0 0 0 3em;
}

li {
  line-height: 1.4em;
  padding-top: 6px;
}

.experience-list,
.projects-list {
  list-style: none;
  padding-left: 0;
}

.experience-list li,
.projects-list li {
  margin-bottom: 1.5em;
  padding-left: 0;
  padding-bottom: 1em;
}

.experience-list strong,
.projects-list strong {
  font-size: 1.1em;
  display: block;
  margin-bottom: 0.3em;
  color: var(--heading-color);
  font-weight: 700;
}

.date {
  color: var(--date-color);
  font-size: 0.9em;
  font-style: italic;
  display: block;
  margin-bottom: 0.5em;
}

/* Footer */
#footer {
  text-align: center;
  padding: 2em 0;
  border-top: 1px solid var(--border-light);
  color: var(--footer-text);
  font-size: 0.9em;
  margin-top: 2em;
  position: relative;
}

#footer p {
  margin: 0.3em 0;
}

.footer-nav {
  margin-bottom: 1.5em;
  font-size: 1.1em;
}

.footer-nav a {
  margin: 0 0.5em;
}

/* Full Width Content Layout */
#content.full-width-content {
  display: block;
  max-width: 900px;
}

#content.full-width-content .main-title {
  text-align: center;
  margin-bottom: 2em;
}

/* Experience Page Styles */
.experience-item {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  align-items: flex-start;
}

.experience-image {
  flex-shrink: 0;
  width: 220px;
}

.experience-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

.experience-content {
  flex: 1;
}

.experience-content strong {
  font-size: 1.2em;
}

.experience-content .date {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin: 8px 0 12px 0;
}

.experience-content p {
  margin: 12px 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .experience-item {
    flex-direction: column;
  }
  
  .experience-image {
    width: 100%;
    max-width: 250px;
  }
}

/* Theme Toggle Button */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--button-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#theme-toggle:hover {
  background: var(--button-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#theme-toggle:active {
  transform: scale(0.95);
}

#theme-icon {
  display: block;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  #content {
    grid-template-columns: 1fr;
    margin: 30px 20px;
    grid-gap: 30px;
  }

  .left img {
    max-width: 250px;
  }

  .tooltiptext {
    width: 200px;
    margin-left: -100px;
  }
}

@media (max-width: 480px) {
  #content {
    margin: 20px 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.2em;
    margin-top: 30px;
  }

  .left img {
    max-width: 200px;
  }
}

/* Print Styles */
@media print {
  body {
    max-width: 100%;
    padding: 0;
  }

  .social-links {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .tooltip {
    border-bottom: none;
  }

  .tooltiptext {
    display: none;
  }
}
