
:root {
  --brand-green: #00a055;
  --brand-green-hover: #00c46a;

  --brand-bg: #0d1117;             /* Main background */
  --brand-bg-secondary: #161b22;   /* Section/Card background */
  --brand-bg-tertiary: #21262d;    /* Hover/Elevated */
  --brand-navbar: #06090f;         /* Navbar background (darker than main) */
  --brand-border: #21262d;         /* Navbar border */
  --brand-text: #c9d1d9;           /* Main text */
  --brand-muted: #8b949e;          /* Secondary text */
  --border-color: #30363d;         /* Subtle outlines */

  --primary: var(--brand-green);
  --primary-hover: var(--brand-green-hover);
  --primary-focus: rgba(0, 196, 106, 0.25);
}

/* ============================
   Base + Typography
   ============================ */

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Offset for fixed navbar */
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.7;
  font-weight: 400;
  padding-top: 80px; /* Space for fixed navbar */
}

/* Container styles with more spacing between items */
.main-container {
  max-width: 1400px; /* Increased from 1200px for more space */
  margin: 0 auto;
  padding: 0 3rem; /* Increased padding for more space */
  width: 100%;
  box-sizing: border-box;
}

/* Override Pico CSS container if it exists */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .main-container,
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .main-container,
  .container {
    padding: 0 1rem;
  }
}

h1, h2, h3 {
  color: var(--brand-text);
  margin-bottom: 0.5rem;
}

/* Section styling */
section {
  width: 100%;
  margin: 0 auto;
}

section h2 {
  position: relative;
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
}
section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background-color: var(--brand-green);
  border-radius: 2px;
}

p, a, li {
  font-size: 1.1rem;
}

/* ============================
   Navbar
   ============================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: var(--brand-navbar);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
  opacity: 1 !important; /* ensure no accidental transparency */
  padding: 1rem 0; /* Increased navbar padding */
  min-height: 70px; /* Increased navbar height */
  box-shadow: none; /* Remove default shadow */
}

/* Gradient shadow effect - only below navbar, left to right fade */
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: linear-gradient(
    to right,
    rgba(0, 160, 85, 0.4) 0%,
    rgba(0, 160, 85, 0.3) 20%,
    rgba(0, 160, 85, 0.2) 40%,
    rgba(0, 160, 85, 0.1) 60%,
    rgba(0, 160, 85, 0.05) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Additional glow effect with gradient - only below */
header::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(
    to right,
    rgba(0, 160, 85, 0.2) 0%,
    rgba(0, 160, 85, 0.15) 15%,
    rgba(0, 160, 85, 0.1) 30%,
    rgba(0, 160, 85, 0.05) 50%,
    transparent 100%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* Hide shadow effects on mobile to remove line 
@media (max-width: 767px) {
  header::before,
  header::after {
    display: none;
  }
  
  header {
    border-bottom: 1px solid var(--brand-border);
  }
}
*/

/* Hide navbar on scroll down, show on scroll up */
header.navbar-hidden {
  transform: translateY(-100%);
}

header.navbar-visible {
  transform: translateY(0);
}

/* remove any blur / transparency */
header,
header * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* Mobile Menu Button */
.mobile-menu-button {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: var(--brand-bg-secondary) !important; /* Lighter black background */
  border: 1.5px solid var(--brand-bg-tertiary);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 6px;
  z-index: 60;
  transition: all 0.2s ease;
}

.mobile-menu-button:hover {
  background-color: var(--brand-bg-secondary) !important;
/*  border-color: var(--brand-green-hover) !important; */
}

.mobile-menu-button[aria-expanded="true"] {
  background-color: var(--brand-bg-tertiary);
  border-color: var(--brand-green);
}

.hamburger-line {
  width: 18px; /* Smaller width */
  height: 2px; /* Smaller height */
  background-color: var(--brand-green);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: var(--brand-green-hover);
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: var(--brand-green-hover);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--brand-navbar);
    border-bottom: none; /* Remove border to avoid double line */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 49;
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-menu li {
    width: 100%;
    list-style: none;
  }
  
  .nav-link {
    color: var(--brand-text);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-green);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--brand-green-hover);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
}

/* Navbar container */
.navbar-container {
  max-width: 1400px; /* Match main container */
  margin: 0 auto;
  padding: 0 3rem; /* Match main container padding */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }
}

/* Logo text in navbar */
.logo-text {
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--brand-green);
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  line-height: 1;
}

.logo-text:hover {
  color: var(--brand-green-hover);
  text-shadow: 0 0 8px rgba(0, 160, 85, 0.5);
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.25rem;
    letter-spacing: 1.5px;
  }
}

/* Hero profile image wrapper */
.hero-profile-image-wrapper {
  position: relative;
  display: inline-block;
}

/* Gradient shadow effect using pseudo-element - top left (high) to bottom right (zero) */
/* Hidden by default, only visible on hover */
.hero-profile-image-wrapper::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  border-radius: 50%;
  background: 
    radial-gradient(
      ellipse 180% 180% at 10% 10%,
      rgba(0, 160, 85, 0.5) 0%,
      rgba(0, 160, 85, 0.4) 15%,
      rgba(0, 160, 85, 0.3) 30%,
      rgba(0, 160, 85, 0.2) 50%,
      rgba(0, 160, 85, 0.1) 70%,
      rgba(0, 160, 85, 0.05) 85%,
      transparent 100%
    );
  pointer-events: none;
  z-index: -1;
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Hero profile image */
.hero-profile-image {
  height: 250px;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-border);
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
  /* Subtle default shadow for depth */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-profile-image:hover {
  border-color: var(--brand-green);
  box-shadow: 0 4px 20px #00c4694f;
  transform: scale(1.05);
}

/* Show shadow effect on hover */
.hero-profile-image-wrapper:hover::before {
  opacity: 1;
  filter: blur(30px);
}

/* ============================
   Mobile Responsive Styles
   ============================ */

@media (max-width: 768px) {
  /* Base adjustments */
  html {
    font-size: 16px;
    scroll-padding-top: 70px;
  }

  body {
    padding-top: 70px;
  }

  html {
    scroll-padding-top: 80px;
  }

  /* Header adjustments */
  header {
    padding: 0.75rem 0;
    min-height: 60px;
  }

  .navbar-container {
    padding: 0 1rem;
  }

  /* Hero section */
  .hero-profile-image {
    height: 180px;
    width: 180px;
    margin: 0 auto;
  }

  .hero-profile-image-wrapper::before {
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    filter: blur(20px);
  }

  .hero-profile-image-wrapper:hover::before {
    filter: blur(25px);
  }

  /* Section headings */
  section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  section h2::after {
    width: 50px;
  }

  /* About section */
  .about-card {
    padding: 1.5rem;
  }

  .about-label {
    font-size: 0.8rem;
  }

  .about-value {
    font-size: 1rem;
  }

  /* Skills section */
  .skills-container {
    gap: 0.75rem;
  }

  .skill-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before {
    left: 0.375rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    left: -1.25rem;
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-description {
    font-size: 0.95rem;
  }

  /* Project cards */
  .project-card {
    padding: 1.25rem;
  }

  .project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .project-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  /* Achievement cards */
  .achievement-card {
    padding: 1.5rem;
  }

  .achievement-icon {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.75rem;
  }

  .achievement-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .achievement-description {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-title {
    font-size: 1.25rem;
  }

  .footer-subtitle {
    font-size: 0.9rem;
  }

  .contact-list {
    gap: 0.75rem;
  }

  .contact-label {
    font-size: 0.8rem;
  }

  .contact-link,
  .contact-text {
    font-size: 0.95rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    font-size: 0.95rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p, a, li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero-profile-image {
    height: 150px;
    width: 150px;
  }

  .hero-profile-image-wrapper::before {
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    filter: blur(18px);
  }

  .hero-profile-image-wrapper:hover::before {
    filter: blur(22px);
  }

  section h2 {
    font-size: 1.5rem;
  }

  .about-card {
    padding: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .achievement-card {
    padding: 1.25rem;
  }
}

/* nav links with smooth underline animation */
.nav-link {
  color: var(--brand-text);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-green);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-green-hover);
}

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

/* contact button */
header .bg-brand {
  background-color: var(--brand-green);
  color: var(--brand-text);
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
header .bg-brand:hover {
  background-color: var(--brand-green-hover);
}

/* ============================
   Buttons
   ============================ */
button,
[role="button"],
a[role="button"] {
  background-color: var(--brand-green) !important;
  color: var(--brand-text) !important;
  border: 1px solid var(--brand-green);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}
button:hover,
[role="button"]:hover,
a[role="button"]:hover {
  background-color: var(--brand-green-hover) !important;
  box-shadow: 0 0 6px rgba(0, 181, 78, 0.3);
}

/* ============================
   Project Cards
   ============================ */
.project-card {
  background-color: var(--brand-bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.project-card:hover {
  background-color: var(--brand-bg-tertiary);
  border-color: var(--brand-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 160, 85, 0.2);
}

/* ============================
   About Section
   ============================ */
.about-card {
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: var(--brand-green) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 160, 85, 0.2);
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-label {
  font-size: 0.9rem;
  color: var(--brand-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-value {
  font-size: 1.1rem;
  color: var(--brand-text);
  font-weight: 600;
}

/* ============================
   Skills Section
   ============================ */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--brand-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--brand-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-badge:hover {
  background-color: var(--brand-bg-tertiary);
  border-color: var(--brand-green);
  color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 160, 85, 0.2);
}

/* ============================
   Timeline (Experiences)
   ============================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-green), var(--brand-border));
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand-green);
  border: 3px solid var(--brand-bg);
  box-shadow: 0 0 0 2px var(--brand-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px var(--brand-green), 0 0 10px rgba(0, 160, 85, 0.5);
}

.timeline-content {
  background-color: var(--brand-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  background-color: var(--brand-bg-tertiary);
  border-color: var(--brand-green);
  transform: translateX(5px);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================
   Achievements Section
   ============================ */
.achievement-card {
  background-color: var(--brand-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.achievement-card:hover {
  background-color: var(--brand-bg-tertiary);
  border-color: var(--brand-green);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 160, 85, 0.1);
  border: 1px solid var(--brand-green);
  border-radius: 6px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
  background-color: rgba(0, 160, 85, 0.2);
  transform: scale(1.05);
}

.achievement-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
}

.achievement-description {
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================
   Hero Section Text Color
   ============================ */
.text-brand-green {
  color: var(--brand-green) !important;
}

/* ============================
   Footer
   ============================ */
footer {
  background-color: var(--brand-bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: var(--brand-muted);
  font-size: 0.95rem;
  margin: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.contact-link {
  color: var(--brand-green);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--brand-green-hover);
  text-decoration: underline;
}

.contact-text {
  color: var(--brand-text);
  font-size: 1rem;
}

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

.social-link {
  color: var(--brand-text);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-green);
  transition: width 0.3s ease;
}

.social-link:hover {
  color: var(--brand-green);
}

.social-link:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-copyright {
  color: var(--brand-muted);
  font-size: 0.85rem;
}
