/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --text: #e0e0e0;
  --text-muted: #7a7a7a;
  --accent: #ff6b35;
  --accent-soft: #ff8c61;
  --border: #1f1f1f;
}

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

body {
  font-family: "Source Serif 4", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;

/*Remvoe scroll bar*/
   overflow-y: scroll; /* keeps content from jumping */
   scrollbar-width: none; /* Firefox */
   -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: "Archivo", sans-serif;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: var(--accent);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: var(--accent);
}

/* ============================================
   MAIN CONTAINER & SECTIONS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}

.page-section {
  display: none;
  animation: fadeIn 0.6s ease;
}

.page-section.active {
  display: block;
}

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

h2 {
  font-family: "Archivo", sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

/* ============================================
   HOME PAGE (HERO & STATS)
   ============================================ */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 80px; /* Reduced to sit closer to stats bar */
  align-items: start;
}

.hero-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: slideInLeft 0.8s ease;
}

/* Hero Image Class (New) */
.hero-img-class {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.hero-content {
  padding-top: 40px;
  animation: slideInRight 0.8s ease 0.2s both;
}

.hero-label {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Archivo", sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-link {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.hero-link:hover,
.hero-link.highlighted {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* --- Consultant Profile Stats Bar (UPDATED SIZE) --- */
.profile-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 35px 40px; /* Slightly more padding to frame the larger text */
  margin: 40px 0 60px 0;
  width: 100%;
  align-items: start; /* Ensures top alignment */
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Space between the orange label and white text */
  text-align: left;
}

.stat-label {
  font-family: "Archivo", sans-serif;
  font-size: 12px; /* Increased from 10px */
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700; /* Made bolder */
}

.stat-value {
  font-size: 19px; /* Increased from 14px to 19px */
  font-weight: 600;
  color: #fff;
  line-height: 1.35; /* Tighter line height for stacked text */
}

/* --- Current Work Section --- */
.current-work {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.current-work::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.section-label {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 20px;
}

.work-title {
  font-family: "Archivo", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.work-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

/* ============================================
   HOBBIES SECTION
   ============================================ */
.hobbies-heading {
  margin-top: 80px;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
}

.hobby-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hobby-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.hobby-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.hobby-media.placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.hobby-content {
  padding: 28px;
}

.hobby-title {
  font-family: "Archivo", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.hobby-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.highlight-red {
  color: #ff4d4d;
  font-style: italic;
  font-weight: bold;
}

/* ============================================
   PROJECTS & EXPERIENCE
   ============================================ */
.project-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.project-item:last-child {
  border-bottom: none;
}

.project-meta-left {
  position: sticky;
  top: 120px;
}

.project-date {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-type {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  display: inline-block;
}

.project-content {
  padding-top: 0;
}

.project-title {
  font-family: "Archivo", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.project-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.project-link {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Skills Box & Tags */
.skills-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.skills-label {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.skills-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-tag {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* ============================================
   BLOG & LEADERSHIP
   ============================================ */
.latest-blog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 100px;
}

.blog-label-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-label-section h2 {
  font-family: "Archivo", sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.blog-label-section p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 40px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-preview-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.blog-category-tag {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
}

.blog-preview-title {
  font-family: "Archivo", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-preview-date {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-preview-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

/* Blog Page Specifics */
.blog-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: "Archivo", sans-serif;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 28px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.blog-post {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 32px;
  transition: all 0.3s ease;
  scroll-margin-top: 100px;
}

.blog-post:hover {
  border-color: var(--accent);
}

/* Leadership Styles */
.leadership-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.leadership-item:hover {
  border-color: var(--accent);
}

.leadership-header {
  margin-bottom: 24px;
}

.leadership-title {
  font-family: "Archivo", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.leadership-date {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.achievement-box {
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 17px;
  color: #fff;
  font-weight: 500;
}

.leadership-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.leadership-photo {
  aspect-ratio: 16/10;
  background: #0f0f0f;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   CONTACT & RESUME & FOOTER
   ============================================ */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 64px;
  color: var(--text);
}

.email-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 64px 48px;
  margin-bottom: 32px;
}

.email-label {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.email-address {
  font-family: "Archivo", sans-serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 32px;
  font-weight: 600;
}

.email-btn,
.resume-btn {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  background: var(--accent);
  color: #000;
  padding: 16px 48px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.email-btn:hover,
.resume-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.resume-container {
  text-align: center;
  padding: 80px 0;
}

.resume-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
  margin-top: 100px;
}

footer p {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.latin-quote {
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  margin-top: 12px;
}

/* ============================================
   RESPONSIVE (Unified)
   ============================================ */
@media (max-width: 1024px) {
  .home-hero,
  .about-grid,
  .latest-blog {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    padding-top: 0;
  }
  .hero-title {
    font-size: 48px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-meta-left {
    position: static;
  }

  .hobbies-grid {
    grid-template-columns: 1fr;
  }
  .about-sidebar {
    position: static;
  }

  /* New Profile Bar Tablet Layout */
  .profile-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding-top: 60px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.mobile-active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 20px 40px;
    font-size: 16px;
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-container {
    padding: 24px 24px;
    flex-direction: row;
    gap: 0;
  }

  .container {
    padding: 100px 24px 80px;
  }

  /* Hero Section - Make photo smaller */
  .hero-photo {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  .photo-circle {
    width: 100%;
    height: 100%;
  }

  .hero-content {
    text-align: center;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-title {
    font-size: 36px;
  }

  h2 {
    font-size: 36px;
    margin-bottom: 48px;
  }

  .current-work,
  .blog-post,
  .leadership-item,
  .email-card {
    padding: 32px 24px;
  }

  .leadership-photos {
    grid-template-columns: 1fr;
  }
  .blog-filters {
    gap: 12px;
  }
  .filter-btn {
    padding: 10px 20px;
    font-size: 11px;
  }

  /* New Profile Bar Mobile Layout */
  .profile-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}
/* --- Navigation Resume Button (Outlined Orange) --- */
.nav-links .resume-btn-nav {
  color: var(--accent) !important; /* Orange Text */
  border: 1px solid var(--accent); /* Orange Border */
  padding: 8px 20px; /* Padding to look like a button */
  border-radius: 4px; /* Slight rounded corners */
  transition: all 0.3s ease;
  margin-left: 10px; /* Spacing from other links */
}

/* Remove the underline hover effect for this specific button */
.nav-links .resume-btn-nav::after {
  display: none;
}

/* Hover Effect: Fills with orange, text turns black */
.nav-links .resume-btn-nav:hover {
  background: var(--accent);
  color: #000 !important;
}

/* --- Hero Section Resume Button (Solid Orange) --- */
.resume-btn-hero {
  background-color: var(--accent);
  color: #000 !important; /* Black text for contrast */
  border-color: var(--accent);
  font-weight: 700;
}

.resume-btn-hero:hover {
  background-color: transparent; /* Hollow on hover */
  color: var(--accent) !important; /* Orange text on hover */
}
/* Updated hero photo with floating effect */
.hero-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: transparent;
  border: none;
  overflow: visible;
  animation: slideInLeft 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-circle {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;

  box-shadow:
    0 0 60px rgba(255, 255, 255, 0.2),
    0 0 120px rgba(255, 255, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.photo-circle::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a7a7a 0%, #a0a0a0 50%, #7a7a7a 100%);

  z-index: -1;
}
