:root {
  --primary-dark: #111111;
  --secondary-dark: #2a2a2a;
  --accent-gold: #c9a24d;
  --bg-light: #ffffff;
  --border-light: #e6e6e6;
 --nav-bg: #fafafa;
 /* --nav-bg: #E0E0E0;*/
  --page-bg: #ffffff;
  --shadow-soft: rgba(0, 0, 0, 0.04)
}

html {
  scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--page-bg);
    color: black;
    padding-top: 80px;
}

html, body {
    height: 100%;
    margin: 0;
}

.page-content {
    flex: 1;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand img {
  height: 42px;
  width: auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--nav-bg);
  box-shadow: 0 2px 8px var(--shadow-soft);
  border-bottom: 1px solid rgba(201, 162, 77, 0.25);
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-links a:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 500;
  position: relative;
}

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

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


.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
}

/* Hamburger button visible on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 2000; /* make sure it’s above the menu */
  }

  .nav-links {
    display: none;       /* hidden by default */
    flex-direction: column;
    position: fixed;     /* fixed so it overlays content */
    top: 60px;           /* below navbar */
    left: 0;
    width: 100%;
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1500;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 0;
  }
}

.nav-links a.active {
  color: var(--accent-gold);
  font-weight: 600;
}

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



.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero img {
    width: 160px;
    border-radius: 50%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0b2c5d;
    color: white;
    margin-top: 20px;
}

.content {
    padding: 60px 40px;
}

.card {
    background: #f5f5f5;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #0b2c5d;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-in;
}

.slide-up {
    animation: slideUp 1s ease-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

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


/* CV PAGE*/

.cv-container {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
    line-height: 1.7;
}

.cv-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cv-tagline {
    font-weight: 600;
    margin-top: 0.5rem;
}

.cv-subtitle {
    color: #666;
}

.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-meta {
    font-style: italic;
    color: #555;
}

.cv-year {
    font-size: 0.9rem;
    color: #777;
}

ul {
    padding-left: 1.2rem;
}

.simple-list {
    list-style: disc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cv-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.cv-row h3,
.cv-row .cv-meta {
    margin: 0;
}

.cv-year {
    white-space: nowrap;
    font-weight: 500;
    color: #555;
}



.cv-downloads {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-card {
    flex: 1;
    min-width: 220px;
}

.download-card p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Buttons */

.btn.download {
    display: inline-block;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.7rem 1rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn.download .icon {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

/* Hover effect */
.btn.download:hover {
    background: #162a45;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn.download:hover .icon {
    transform: translateY(3px);
}

/* Click ripple */
.btn.download::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn.download:active::after {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .cv-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    .cv-downloads {
        flex-direction: column;
    }

    .download-card {
        width: 100%;
    }

}

@media (max-width: 850px) {
    .skills-grid {
        display: block;
    }

    .skills-grid > div {
        margin-bottom: 1.5rem;
    }

    .skills-grid h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .skills-grid p {
        margin: 0;
        color: #444;
    }
}

@media (max-width: 850px) {
    .skills-grid > div {
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .skills-grid > div:last-child {
        border-bottom: none;
    }
}

@media (max-width: 850px) {

    .cv-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .cv-year {
        font-size: 0.9rem;
        color: #666;
    }
}

/* Research Section */
/* PAGE HEADER */


.page-header {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* FILTERS */
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters button {
    padding: 8px 14px;
    border: 1px solid #0a1f44;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.filters button.active {
    background: #0a1f44;
    color: #fff;
}

/* GRID */
.writings-grid {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* CARD */
.writing-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
}

.writing-card.featured {
    border-left: 5px solid #0a1f44;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #0a1f44;
}

.year {
    font-size: 0.8rem;
    color: #666;
}

.recognition {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 10px;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0a1f44;
}

.chapter-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #222;
}

.description {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

/* BUTTON */
.btn.small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 12px;
    background: #0a1f44;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 600px) {
    .writing-card p {
        font-size: 0.9rem;
    }
}


/* Data Analytics Section */
.analytics-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 3rem 1.5rem 2rem;
}

.analytics-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.analytics-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.analytics-header .subtitle {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.75rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.analytics-header .helper-text {
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.section-divider span {
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
}



body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background: #f8f9fa;
}

header {
  background: #ffffff;
  padding: 2rem;
  border-bottom: 1px solid #ddd;
}

main {
  padding: 2rem;
}

.project {
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.project h2 {
  margin-top: 0;
}


.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.deliverables a {
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  background: #1f2933;
  color: #ffffff;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.deliverables a:hover {
  background: #111827;
}



a {
  color: #0056b3;
  text-decoration: none;
}


.project {
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.overview {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.toggle {
  background: #0056b3;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.details {
  margin-top: 1.5rem;
  display: none;
}

.details.open {
  display: block;
}

.video-wrapper {
  margin-top: 1.5rem;
}

video {
  width: 70%;
  max-height: 400px;
  border-radius: 6px;
}

.future-projects-note {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.note-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #f3f4f6; /* subtle light gray */
  color: #374151;       /* dark gray for readability */
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px dashed #9ca3af; /* subtle dashed border for “future” effect */
}

.note-icon {
  font-size: 1.2rem; /* slightly larger hourglass icon */
}

@media (min-width: 768px) {
  .details {
  display: none;
  margin-top: 1.5rem;
}

.details.open {
  display: block;
}

.details-text {
    grid-column: 1 / 2;
  }
}
@media (min-width: 768px) {
  .details.open {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

/*Footer*/
.site-footer {
  /*background: #fafafa;*/
  background: var(--nav-bg);
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--secondary-dark);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links .icon {
  width: 22px;
  height: 22px;
  display: block;
}

.social-links a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--secondary-dark);
}

.footer-signature {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.footer-signature:hover {
  color: var(--accent-gold);
}

.icon-email svg,
.icon-email .icon {
  fill: #555;
}

.icon-linkedin .icon {
  fill: #0A66C2;
}

.icon-x .icon {
  fill: #000000;
}

.social-links a:hover .icon {
  transform: translateY(-2px);
  opacity: 0.85;
}

.social-links a:hover .icon {
  fill: var(--accent-gold);
  transform: translateY(-2px);
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none; 
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: var(--accent-gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1001;
  transition: opacity 0.3s ease;
}

#back-to-top:hover {
  opacity: 0.85;
}
