/* ============================================================
   1. Root Variables (Light & Dark Themes)
============================================================ */

:root {
  --bg: #fff;
  --card: #f8f8f8;
  --text: #333;
  --muted: #777;
  --accent: #0066cc;
  --header-bg: var(--accent);
  --header-text: #E8FAFA;
  --text2: #30068F;
  --text3: #000000;
  --text4e: #30068F;
  --radius: 8px;
  --gap: 1rem;
  --nav-font-size: 0.95rem;
}

[data-theme="dark"] {
  --bg: #2a2a2a;
  --card: #3D3A3D;
  --text: #eaeaea;
  --muted: #bbb;
  --accent: #66aaff;
  --header-bg: #111;
  --header-text: #fff;
  --text2: #E8FAFA;
  --text3: #E8FAFA;
  --text4e: #4ECDED;
}

/* ============================================================
   2. Resets & Global Styles
============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

main {
  text-align: justify;
  color: var(--text);
}

/* ============================================================
   3. Header
============================================================ */

header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 1.2rem 0;
  position: relative;
  transition: background 0.3s, color 0.3s;
}

header .center-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  transform: translateX(-5%);
}

header .center-header h1 {
  margin: 0;
  font-size: 2rem;
}

header .center-header .lead {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: var(--header-text);
}

/* ============================================================
   4. Navigation
============================================================ */

nav.top-nav {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}

nav.top-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-size: var(--nav-font-size);
}

nav.top-nav a:hover {
  text-decoration: underline;
}

/* ============================================================
   5. About Section (Photo + Text)
============================================================ */

.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-text {
  flex: 2;
}

.about-photo {
  flex: 1;
  text-align: right;
}

.about-photo img {
  max-width: 200px;   /* adjust size as needed */
  height: auto;
  border-radius: 12px; /* makes corners rounded */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }
  .about-photo {
    text-align: center;
  }
}

/* ============================================================
   6. Top Right Buttons
============================================================ */

.top-right-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
}

.btn {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   7. Layout Containers
============================================================ */

.container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: block;
}

.container.left-shift {
  max-width: 900px;
  margin: 0 0 0 16rem;
  padding: 2rem 1rem;
  display: block;
}

@media (max-width: 880px) {
  .container.left-shift {
    margin-left: 0;
    padding: 1rem;
  }
}

/* ============================================================
   8. Card Styling
============================================================ */

.card {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: var(--gap);
  text-align: justify;
  transition: background 0.3s, color 0.3s;
}

.card ul,
.card ol {
  margin-left: 1.5rem;
  padding-left: 1rem;
  text-align: left;
}

.card li {
  margin-bottom: 0.5rem;
  text-align: justify;
}

/* Centered (Two-Column) Card Layout */

.card.centered {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: space-between;
}

.card.centered h2 {
  flex-basis: 100%;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text2);
  text-align: center;
}

.card-content {
  flex: 1 1 45%;
  min-width: 250px;
}
.card-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ============================================================
   9. Links (Theme Aware)
============================================================ */

.download-icon,
.cv-link,
a[href^="mailto:"],
.phone {
  color: var(--text4e);
  text-decoration: none;
  transition: color 0.3s;
}

.download-icon {
  margin-left: 10px;
  font-size: 1rem;
}

.phone {
  font-weight: bold;
}

.download-icon:hover,
.cv-link:hover,
a[href^="mailto:"]:hover,
.phone:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   10. Footer
============================================================ */

footer {
  background-color: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  padding: 1rem 0;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

/* ============================================================
   11. Responsive & Mobile Nav
============================================================ */

@media (max-width: 880px) {
  header .center-header {
    text-align: center;
    transform: translateX(0);
  }

  .top-right-buttons {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }

  nav.top-nav {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .card-content {
    flex: 1 1 100%;
  }

  .card.centered {
    gap: 1rem;
    padding: 1rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Hamburger Menu */

.hamburger-btn {
  display: none;
}

@media (max-width: 600px) {
  .hamburger-btn {
    display: inline-block;
    margin-left: 0.5rem;
    background: var(--card);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
  }

  nav.top-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    transition: max-height 0.3s ease;
    overflow: hidden;
  }

  nav.top-nav.active {
    display: flex;
  }
}
