:root {
    --bg-color: #fff;
    --text-color: #333;
    --tenable-color: #041E42;
    --tallpoppy-color: #e09900;
    --consulting-color: #6c757d;
    --symantec-color: #fdb813;
    --m86-color: #6a0dad;
    --angel-color: #28a745;
    --previous-color: #636363;
    --hero-bg-color: #2a3b4c; /* Dark Slate Blue/Grey for hero background (Light Mode) */
    --accent-shadow: rgba(4, 30, 66, 0.1);
    --muted-color: #6c757d;
    --divider-color: #e0e0e0;
    --card-bg: #f9f9f9;
    --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
  }
  
  [data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --tenable-color: #5b8bd0;
    --tallpoppy-color: #ffbe45;
    --consulting-color: #adb5bd;
    --symantec-color: #f7d06f;
    --m86-color: #c39be0;
    --angel-color: #63d47d;
    --previous-color: #a0a0a0;
    --hero-bg-color: #3a4c5d; /* Slightly lighter Slate Blue/Grey for hero background (Dark Mode) */
    --accent-shadow: rgba(91, 139, 208, 0.2);
    --muted-color: #adb5bd;
    --divider-color: #333;
    --card-bg: #1e1e1e;
    --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    background: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zm-25.425 0l-3.657 3.657 1.414 1.414L20.143 0h-2.83zM32.544 0l3.657 3.657-1.414 1.414L28.657 0h3.888zm-9.9 0l3.657 3.657-1.415 1.414L18.8 0h3.888zm-16.33 0l3.657 3.657-1.414 1.414L1.8 0h4.756zM56.87 0l1.415 1.414-1.414 1.414L54.627 0h2.244zM12.445 0L16.1 3.657l-1.414 1.414L8.787 0h3.657zm-8.787 0L8.97 5.313 7.556 6.727 0 0h3.66z' fill='%23041e42' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0;
    transition: var(--transition);
  }
  
  [data-theme="dark"] body {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zm-25.425 0l-3.657 3.657 1.414 1.414L20.143 0h-2.83zM32.544 0l3.657 3.657-1.414 1.414L28.657 0h3.888zm-9.9 0l3.657 3.657-1.415 1.414L18.8 0h3.888zm-16.33 0l3.657 3.657-1.414 1.414L1.8 0h4.756zM56.87 0l1.415 1.414-1.414 1.414L54.627 0h2.244zM12.445 0L16.1 3.657l-1.414 1.414L8.787 0h3.657zm-8.787 0L8.97 5.313 7.556 6.727 0 0h3.66z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  }
  
  a {
    color: var(--tenable-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid transparent;
  }
  
  a:hover {
    border-bottom: 1px solid var(--tenable-color);
    opacity: 1;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero, section {
    animation: fadeInUp 0.8s ease-out forwards;
  }
  
  section:nth-child(2) {
    animation-delay: 0.1s;
  }
  
  section:nth-child(3) {
    animation-delay: 0.2s;
  }
  
  section:nth-child(4) {
    animation-delay: 0.3s;
  }
  
  section:nth-child(5) {
    animation-delay: 0.4s;
  }
  
  .hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
    margin: 0 0 40px 0;
    position: relative;
    background-color: var(--hero-bg-color); 
    color: #f0f4f8; 
  }
  
  .hero-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
  }
  
  .hero-content {
    flex: 1;
  }
  
  .hero-image {
    flex: 1;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    line-height: 0;
  } 

  .hero-image img {
    display: block;
    width: 100%;
  }
  
  .theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--hero-bg-color); 
    border: none; 
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em; 
    cursor: pointer;
    transition: var(--transition); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: #ffffff; 
  }
  
  .tagline {
    font-size: 1.5rem;
    margin: 10px 0 20px;
    color: #ffffff; 
    font-weight: 500;
    opacity: 0.9;
  }
  
  .hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    color: #ffffff; 
    /* Reset inherited border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); 
  }
  
  .social-links a:hover {
    background-color: #ffffff;
    color: var(--hero-bg-color); 
    border-color: #ffffff;
    transform: translateY(-2px);
     /* Explicitly set border for hover */
    border-bottom: 1px solid #ffffff;
  }
  
  .social-links a i {
    font-size: 1.2rem;
  }
  
  .skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
  }
  
  .skill-tag {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: default;
  }
  
  [data-theme="dark"] .skill-tag {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }
  
  .skill-tag:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }
  
  section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
  }
  
  section:last-of-type {
    border-bottom: none;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
    color: var(--tenable-color);
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--tenable-color);
  }
  
  .masonry-experience {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
  }
  
  .masonry-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--divider-color);
  }
  
  .masonry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .masonry-card.tenable:hover {
    background-color: rgba(4, 30, 66, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.tenable:hover {
    background-color: rgba(91, 139, 208, 0.15);
  }
  
  .masonry-card.tallpoppy:hover {
    background-color: rgba(224, 153, 0, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.tallpoppy:hover {
    background-color: rgba(255, 190, 69, 0.15);
  }
  
  .masonry-card.previous:hover {
    background-color: rgba(99, 99, 99, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.previous:hover {
    background-color: rgba(160, 160, 160, 0.15);
  }
  
  .masonry-card.consulting:hover {
    background-color: rgba(108, 117, 125, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.consulting:hover {
    background-color: rgba(173, 181, 189, 0.15);
  }
  
  .masonry-card.symantec:hover {
    background-color: rgba(253, 184, 19, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.symantec:hover {
    background-color: rgba(247, 208, 111, 0.15);
  }
  
  .masonry-card.m86:hover {
    background-color: rgba(106, 13, 173, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.m86:hover {
    background-color: rgba(195, 155, 224, 0.15);
  }
  
  .masonry-card.angel:hover {
    background-color: rgba(40, 167, 69, 0.05);
  }
  
  [data-theme="dark"] .masonry-card.angel:hover {
    background-color: rgba(99, 212, 125, 0.15);
  }
  
  .masonry-header {
    padding: 20px 25px;
    min-height: 110px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .masonry-card.tenable .masonry-header {
    background-color: var(--tenable-color);
  }

  [data-theme="dark"] .masonry-card.tenable .masonry-header {
    color: #333; 
  }
  
  .masonry-card.tallpoppy .masonry-header {
    background-color: var(--tallpoppy-color);
    color: white;
  }
  
  [data-theme="dark"] .masonry-card.tallpoppy .masonry-header {
    color: #333;
  }
  
  .masonry-card.previous .masonry-header {
    background-color: var(--previous-color);
  }
  
  .masonry-card.consulting .masonry-header {
    background-color: var(--consulting-color);
  }

  [data-theme="dark"] .masonry-card.consulting .masonry-header {
    color: #333; 
  } 

  .masonry-card.symantec .masonry-header {
    background-color: var(--symantec-color);
    color: #333;
  }
  
  [data-theme="dark"] .masonry-card.symantec .masonry-header {
    color: #333;
  }
  
  .masonry-card.m86 .masonry-header {
    background-color: var(--m86-color);
  }

  [data-theme="dark"] .masonry-card.m86 .masonry-header {
    color: #333; 
  } 

  .masonry-card.angel .masonry-header {
    background-color: var(--angel-color);
  }

  [data-theme="dark"] .masonry-card.angel .masonry-header {
    color: #333; 
  }
  
  .masonry-header .bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.15;
    transform: rotate(-15deg);
  }
  
  .role-duration {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
  }
  
  .masonry-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .masonry-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
  }
  
  .masonry-card .company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
  }
  
  .masonry-card .description {
    margin-bottom: 15px;
  }
  
  .masonry-card .highlights {
    margin-top: 0;
  }
  
  .masonry-card .highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  
  .masonry-card .highlight-icon {
    margin-right: 12px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--accent-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 3px;
  }
  
  .masonry-card.tenable .highlight-icon {
    color: var(--tenable-color);
  }
  
  .masonry-card.tallpoppy .highlight-icon {
    color: var(--tallpoppy-color);
  }
  
  .masonry-card.consulting .highlight-icon {
    color: var(--consulting-color);
  }
  
  .masonry-card.symantec .highlight-icon {
    color: var(--symantec-color);
  }
  
  .masonry-card.previous .highlight-icon {
    color: var(--previous-color);
  }
  
  .masonry-card.m86 .highlight-icon {
    color: var(--m86-color);
  }
  
  .masonry-card.angel .highlight-icon {
    color: var(--angel-color);
  }
  
  .masonry-card .highlight-icon i {
    transition: var(--transition);
  }
  
  .masonry-card:hover .highlight-icon i {
    transform: scale(1.2);
  }
  
  .masonry-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--divider-color);
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
  }
  
  .masonry-footer i {
    margin-right: 8px;
  }
  
  .media-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .media-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--divider-color);
  }
  
  .media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--tenable-color);
    transform: translateY(-100%);
    transition: var(--transition);
  }
  
  .media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .media-item:hover::before {
    transform: translateY(0);
  }
  
  .media-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .media-item h3 i {
    color: var(--tenable-color);
    transition: var(--transition);
  }
  
  .media-item:hover h3 i {
    transform: scale(1.2);
  }
  
  .media-item p {
    margin-bottom: 20px;
    flex-grow: 1;
  }
  
  .media-item a {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 600;
    color: var(--tenable-color);
    display: inline-flex; 
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
    border-bottom: none; 
  }

  .media-item a:hover {
    text-decoration: underline;
    text-underline-offset: 3px; 
    border-bottom: none; 
  }

  .media-item a i {
    margin-left: 8px;
  }
  
  .testimonials-section {
    position: relative;
    padding: 60px 0;
    margin: 0;
    background: transparent;
  }
  
  .testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }
  
  .testimonial-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--divider-color);
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .testimonial-content {
    padding: 25px;
    flex-grow: 1;
  }
  
  .testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0;
  }
  
  .testimonial-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--divider-color);
    margin-top: auto;
  }
  
  .testimonial-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 3px;
  }
  
  .testimonial-title {
    font-size: 0.9rem;
    color: var(--muted-color);
  }
    
  .impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
  }
  
  .impact-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--divider-color);
  }
  
  .impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--tenable-color);
    transform: translateX(-100%);
    transition: var(--transition);
  }
  
  .impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .impact-card:hover::before {
    transform: translateX(0);
  }
  
  .impact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .impact-card h3 i {
    color: var(--tenable-color);
    transition: var(--transition);
  }
  
  .impact-card:hover h3 i {
    transform: scale(1.2);
  }
  
  .impact-card p:not(:last-child),
  .personal-card p:not(:last-child) {
    margin-bottom: 15px;
  }
  
  .personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .personal-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--divider-color);
    padding-bottom: 25px;
  }
  
  .personal-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: var(--tenable-color);
    transform: translateY(100%);
    transition: var(--transition);
  }
  
  .personal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .personal-card:hover::after {
    transform: translateY(0);
  }
  
  .personal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 25px;
  }
  
  .personal-card h3 i {
    color: var(--tenable-color);
    transition: var(--transition);
  }
  
  .personal-card:hover h3 i {
    transform: scale(1.2);
  }
  
  .personal-card p {
    padding-left: 25px;
    padding-right: 25px;
  }
  
  .personal-card p:last-child {
    margin-bottom: 0;
  }
  
  .personal-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin-bottom: 20px;
  }
  
  .contact-section {
    text-align: center;
    padding: 60px 0;
    background: var(--hero-bg-color);
    border-radius: 0;
    margin: 60px 0 0 0;
    border-top: 1px solid var(--divider-color);
    border-bottom: none;
  }
  
  .contact-inner-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px; 
  }
  
  .contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
  }
  
  .contact-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .contact-section .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .contact-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  }
  
  .contact-section .social-links a:hover {
    background-color: #ffffff;
    color: var(--hero-bg-color);
    opacity: 1;
    transform: translateY(-2px);
    border-color: #ffffff;
    border-bottom-color: #ffffff;
  }
  
  .contact-section .social-links a i {
    font-size: inherit;
    margin: 0;
  }
  
  footer {
    padding: 40px 0;
    margin-top: 0;
    text-align: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (max-width: 900px) {
    .hero {
      flex-direction: column-reverse;
      gap: 30px;
    }
  
    .hero-image {
      max-width: 300px;
    }
  
    .masonry-experience {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2.5rem;
    }
  
    .tagline {
      font-size: 1.2rem;
    }
  
    .section-title {
      font-size: 1.8rem;
    }
  
    .contact-section h2 {
      font-size: 2rem;
    }
  
    .impact-grid,
    .personal-grid,
    .testimonials-container {
      grid-template-columns: 1fr;
    }
  
    .media-highlights {
      grid-template-columns: 1fr;
    }
  
    .contact-section .social-links {
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }
  
    .skill-cloud {
      justify-content: flex-start;
    }
  }
  
  @media (max-width: 480px) {
    .hero h1 {
      font-size: 2rem;
    }
  
    .tagline {
      font-size: 1rem;
    }
  
    section {
      padding: 40px 0;
    }
  
    .contact-section {
      padding: 40px 15px;
    }
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
