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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    overflow-x: hidden;
    position: relative;
    background: #ffffff;
    background-attachment: fixed;
}

/* Particle Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: #333333;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

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

/* Sections */
section {
    min-height: 100vh;
    padding: 100px 2rem 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.about-title {
    text-align: left; /* overrides just About Me */
    margin-left: 2rem; /* match the box's padding */
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000000;
    position: relative;
    background: transparent;
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: #000000;
    font-weight: 200;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: #666666;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cta-button:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* About Section (Grid Version) */
#about {
  display: grid;
  grid-template-columns: 250px 1fr; /* profile image + text column */
  column-gap: 4rem;
  align-items: start;
}

.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* controls dynamic spacing between title and frosted box */
}


#about .section-title {
  grid-column: auto;           /* force title into text column */
  text-align: left;
  margin-bottom: 2rem;
}

.about-content {
  grid-column: 1 / -1;      /* content spans both columns below title */
  display: grid;
  grid-template-columns: 250px 1fr;
  column-gap: 4rem;
  align-items: center;
}

.about-content-box {
    background: rgba(255, 255, 255, 0.025);  /* semi-transparent white */
    backdrop-filter: blur(4px);             /* frosted glass effect */
    -webkit-backdrop-filter: blur(4px);     /* Safari support */
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);  /* subtle border */
    border-radius: 0;
    transition: all 0.3s ease;
}

.about-content-box .about-text p {
    font-size: 1.1rem;       /* original size */
    margin-bottom: 1.5rem;   /* original paragraph spacing */
    color: #444444;          /* original text color */
    font-weight: 300;        /* original weight */
    line-height: 1.7;        /* original line height */
    text-align: left;        /* or center for mobile */
}


.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-image: url('../images/headshot_3.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #000000;
  margin: 0; /* remove auto-centering */
  /* filter: grayscale(100%); */ /* optional */
}

.about-text {
  text-align: left;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.about-text.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #000000;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: left;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444444;
  font-weight: 300;
  line-height: 1.7;
  text-align: left;
}

/* Mobile fallback */
@media (max-width: 768px) {
  #about {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  #about .section-title {
    grid-column: 1;
    text-align: center;
  }

  .about-content {
    grid-column: 1;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .profile-image {
    margin: 0 auto;   /* ✅ keep image centered */
  }

  .about-text {
    text-align: center;
  }
}



/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.025);  /* semi-transparent white */
    backdrop-filter: blur(4px);             /* frosted glass effect */
    -webkit-backdrop-filter: blur(4px);     /* Safari support */
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);  /* subtle border */
    border-radius: 0;
    transition: all 0.3s ease;
}

.skill-category h4 {
    margin-bottom: 1.5rem;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.skill-bar {
    margin-bottom: 1rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #333333;
    font-weight: 400;
    font-size: 0.9rem;
}

.skill-progress {
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: #000000;
    width: 0%;
    transition: width 1.5s ease;
    border-radius: 0;
}

/* Experience Section */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: #000000;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 2px solid #ffffff;
    z-index: 10;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    text-align: left;
    padding-left: 2rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.025);  /* semi-transparent white */
    backdrop-filter: blur(4px);             /* frosted glass effect */
    -webkit-backdrop-filter: blur(4px);     /* Safari support */
    padding: 2rem;
    border: 0.5px solid rgba(0, 0, 0, 1);  /* subtle border */
    border-radius: 0;
    transition: all 0.3s ease;
}


.job-title {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.company {
    color: #666666;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.date {
    color: #999999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content p,
.timeline-content li {
    color: #444444;
    font-weight: 300;
    line-height: 1.6;
}

.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-content.expanded .job-details {
    max-height: 200px;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    background: rgba(255, 255, 255, 0.025);  /* semi-transparent white */
    backdrop-filter: blur(4px);             /* frosted glass effect */
    -webkit-backdrop-filter: blur(4px);     /* Safari support */
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);  /* subtle border */
    border-radius: 0;
    transition: all 0.3s ease;
}

.contact-info h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-item div {
    color: #444444;
    font-weight: 300;
}

.contact-item strong {
    color: #000000;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        margin-left: 60px;
        text-align: left;
        padding-left: 1rem;
        padding-right: 1rem;
    }
  
    .timeline-item::before {
        left: 20px;   /* align dots with the line */
        transform: translateX(-50%); /* remove desktop centering offset */
    }



    .contact-content {
        justify-content: center;
    }

    section {
        padding: 80px 1rem 30px;
    }
}

/* Make ALL elements allow mouse events to pass through to canvas below */
*, *::before, *::after {
    pointer-events: none;
}

/* But make interactive elements clickable again */
a, button, .timeline-content, .nav-links a, .cta-button, .navbar, input, textarea, select, .menu-toggle {
    pointer-events: auto;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

/* Show hamburger and hide links on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px; /* height of navbar */
    right: 2rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

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