:root {
    /* Primary Color Scheme - Light Mode Default */
    --bg-color: #ffffff;
    --text-color: #1d1c1a;
    --accent-color: #2D5016;
    /* Hunter Green */
    --accent-text: #ffffff;
    --card-bg: #f5f5f5;

    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Six Caps', sans-serif;
    /* The tall condensed font */
    --font-body: 'Public Sans', sans-serif;
}

/* Dark Mode Variables */
/* Manual Theme Overrides */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1d1c1a;
    --accent-color: #2D5016;
    --card-bg: #f5f5f5;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #3e6b23;
    --card-bg: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;

    /* Hide scrollbar for all browsers */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 900;
    /* Updated to 900 Black */
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #2d5016;
}

/* The Six Caps "I've always been curious" style */
.caps-heading {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 0.9;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #2d5016;
}

.section-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
    margin-bottom: 2rem;
}

/* Floating Pill Navigation */
.pill-nav {
    position: fixed;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .pill-nav {
    background: rgba(207, 207, 207, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pill-nav {
        background: rgba(180, 180, 180, 0.9);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
}

.pill-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    text-transform: uppercase;
    padding: clamp(0.35rem, 0.8vw, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    white-space: nowrap;
}

.pill-nav a:hover {
    color: var(--accent-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
}

#theme-toggle svg {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    margin-bottom: 3rem;
    width: 300px;
    height: 300px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.hero-tagline {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

/* Split Layout (About) */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.text-col {
    flex: 2;
    min-width: 300px;
}

.header-col {
    flex: 1;
    min-width: 250px;
}

.visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 200px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Spinning Logo Animation - Scroll-Driven */
.spinning-logo-container {
    width: 200px;
    height: 200px;
}

.spinning-logo-container svg {
    width: 100%;
    height: 100%;
    color: #2D5016;
    opacity: 0;
    transform: rotate(0deg);
    animation: logo-appear linear forwards, logo-spin-on-scroll linear;
    animation-timeline: view(), view();
    animation-range: entry 0% entry 100%, entry 0% exit 100%;
}

@keyframes logo-appear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logo-spin-on-scroll {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(720deg); /* Two full rotations */
    }
}

/* Fallback for browsers without scroll-timeline support */
@supports not (animation-timeline: view()) {
    .spinning-logo-container svg {
        opacity: 1;
        animation: spin-fallback 15s linear infinite;
    }

    @keyframes spin-fallback {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}

/* Projects Grid */
.projects-section {
    background: var(--card-bg);
    padding: 1rem 0;
}

.projects-heading {
    font-size: 7rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.project-item {
    background: var(--bg-color);
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-color);
    opacity: 0.8;
}

.project-item h3 {
    font-family: var(--font-body);
    /* Changed to Public Sans as observed */
    font-weight: 600;
    /* Bold but not black */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

/* Project Images */
.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 0;
}

.project-image img.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-image-overlay {
    opacity: 100;
}

/* Modals */
dialog.project-modal {
    width: 90%;
    max-width: 1000px;
    border: none;
    border-radius: 8px;
    padding: 0;
    margin: auto;
    background: var(--card-bg);
    /* Always white per observation */
    color: var(--text-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    padding: 4rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.modal-title {
    font-family: var(--font-heading);
    /* Six Caps */
    font-size: clamp(4rem, 8vw, 9rem);
    font-weight: 800;
    /* BOLD as observed on live site */
    line-height: 0.85;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.modal-subtitle {
    font-family: var(--font-primary);
    /* Montserrat */
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    /* Hunter Green */
    margin-bottom: 3rem;
}

.modal-body .summary-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Modal Internal Grid */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.grid-2-col h5 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.grid-2-col h5 img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.grid-2-col ul {
    list-style: none;
}

.grid-2-col li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.grid-2-col li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Service Category Color Coding */
.grid-2-col > div {
    padding-left: 1.2rem;
    transition: border-color 0.3s ease;
}

.category-security {
    border-left: 3px solid #e74c3c;
}

.category-google {
    border-left: 3px solid #49bf00;
}

.category-microsoft {
    border-left: 3px solid #00a4ef;
}

.category-automation {
    border-left: 3px solid #9b59b6;
}

.category-ai {
    border-left: 3px solid #ffff00;
}

.category-infrastructure {
    border-left: 3px solid #1abc9c;
}

.category-strategy {
    border-left: 3px solid var(--accent-color);
}

.category-specialized {
    border-left: 3px solid #95a5a6;
}

.category-software {
    border-left: 3px solid #f39c12;
}

/* Capabilities Section - Hunter Green Background */
.capabilities-section {
    background-color: var(--accent-color);
    color: var(--accent-text);
    padding: 1rem 0;
}
.capabilities-section .section-heading {
    font-size: 7rem;
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.capabilities-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.capability-link {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    margin: 0;
}

.capability-link:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.cap-col h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cap-group {
    margin-bottom: 2.5rem;
}

.cap-group h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.cap-list,
.cert-list {
    list-style: none;
}

.cap-list li,
.cert-list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
}

/* Footer */
.footer-section {
    background-color: #2d2d2d;;
    color: var(--accent-text);
    padding: 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-linkedin {
    color: var(--accent-text);
    width: 60px;
    height: 60px;
    display: block;
    transition: opacity 0.3s;
}

.footer-linkedin:hover {
    opacity: 0.7;
}

.footer-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-cta-button {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.footer-cta-button .caps-heading {
    margin-bottom: 0;
    color: var(--accent-text);
}

.footer-cta-button:hover .caps-heading {
    color: #2D5016;
}

.footer-cta-button:hover .footer-icon {
    transform: translateX(0);
}

.footer-cta-button:hover .footer-icon-hover {
    transform: translateX(0);
}

.footer-button-icon-wrap {
    aspect-ratio: 1;
    width: clamp(3.5rem, 6.429vw + 2.214rem, 8rem);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-text);
}

.footer-cta-button:hover .footer-button-icon-wrap {
    color: #2D5016;
}

.footer-icon {
    transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    transform: translateX(0);
}

.footer-icon-hover {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        width: 100%;
    }
}

/* Active Section Highlighting */
.pill-nav a.active {
    background-color: var(--accent-color);
    color: white;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .pill-nav {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
        justify-content: space-between;
    }

    .pill-nav a {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .pill-nav a {
        font-size: 0.6rem;
        padding: 0.35rem 0.6rem;
    }
}


/* Logo SVG Animation - Draw on Load, Fade on Scroll */

/* Set up all logo paths for stroke animation */
.logo-circle,
.logo-transistor,
.logo-arrow {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0;
}

/* Filled paths (r, 2, engineering) need fill animation instead */
.logo-r,
.logo-2,
.logo-engineering {
    opacity: 0;
}

/* Sequential draw animation on page load */
@keyframes draw-stroke {
    from {
        stroke-dashoffset: 2000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animate each element in sequence */
.logo-circle {
    animation: draw-stroke 1.2s ease-out forwards, fade-in 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

.logo-transistor {
    animation: draw-stroke 1.2s ease-out forwards, fade-in 1.2s ease-out forwards;
    animation-delay: 0.8s;
}

.logo-arrow {
    animation: draw-stroke 1.2s ease-out forwards, fade-in 1.2s ease-out forwards;
    animation-delay: 1s;
}

.logo-r {
    animation: fade-in 1.2s ease-out forwards;
    animation-delay: 1.5s;
}

.logo-2 {
    animation: fade-in 1.2s ease-out forwards;
    animation-delay: 2s;
}

.logo-engineering {
    animation: fade-in 1.2s ease-out forwards;
    animation-delay: 3s;
}

/* Fade out logo wrapper on scroll */
.logo-wrapper {
    animation: fade-on-scroll linear forwards;
    animation-timeline: scroll();
    animation-range: 0vh 30vh;
}

@keyframes fade-on-scroll {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Fallback for browsers that don't support animation-timeline */
@supports not (animation-timeline: scroll()) {
    .logo-wrapper {
        /* No scroll animation, just keep it visible */
        opacity: 1;
    }
}

.help-trigger {
    anchor-name: --help;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
}

[popover] {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #333;
    color: white;
    font-size: 14px;
    max-width: 220px;

    position-anchor: --help;
    position-area: bottom right;

    position-try-fallbacks: flip-block, flip-inline;
}

/* Ways of Working Section */
.ways-section {
    background-color: var(--card-bg);
    padding: 1rem 0;
    color: var(--text-color);
}

.ways-section .section-heading {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--accent-color);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;

}

.service-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    perspective: 1000px;
    position: relative;
    min-height: 450px;
    padding: 20rem 0;

}

.service-card {
    width: clamp(280px, 28vw, 400px);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: absolute;
}

.service-card:nth-child(1) {
    transform: rotate(8deg) translateX(-250px) translateY(35px);
    z-index: 1;
}

.service-card:nth-child(2) {
    transform: rotate(-4deg) translateY(50px);
    z-index: 2;
}

.service-card:nth-child(3) {
    transform: rotate(0deg) translateX(250px);
    z-index: 1;
}

.service-card:nth-child(1):hover {
    transform: rotate(0deg) translateX(-250px) scale(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.service-card:nth-child(2):hover {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.service-card:nth-child(3):hover {
    transform: rotate(0deg) translateX(250px) scale(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.service-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Service Image Modal */
.service-modal {
    border: none;
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0;
}

.service-modal::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.service-modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.service-modal .close-btn:hover {
    background: white;
}

/* Wave Transitions */
.waves-section {
    background-color: #f5f5f5;
    padding: 1rem 0;
}


.layered-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;

}

/* Mobile optimizations */
@media (max-width: 768px) {
    .service-cards-container {
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
        padding: 1rem 0;
    }

    .service-card {
        width: 90%;
        max-width: 400px;
        position: relative;
    }

    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        transform: none;
        position: relative;
    }

    .service-card:hover {
        transform: scale(1.02);
    }

    .service-modal {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Jeep hover image */
.jeep-hover {
    position: relative;
    cursor: pointer;
    color: #2D5016;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2D5016;
}

.jeep-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background-image: url('images/jeep.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.jeep-hover:hover::after {
    opacity: 1;
}

/* Grandpa hover image */
.grandpa-hover {
    position: relative;
    cursor: pointer;
    color: #2D5016;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2D5016;
}

.grandpa-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-5%);
    width: 300px;
    height: 300px;
    background-image: url('images/grandpa.jpeg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.grandpa-hover:hover::after {
    opacity: 1;
}

/* Lamp hover image */
.lamp-hover {
    position: relative;
    cursor: pointer;
    color: #2D5016;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2D5016;
}

.lamp-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background-image: url('images/lamp.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.lamp-hover:hover::after {
    opacity: 1;
}

/* Pfizer hover image */
.pfizer-hover {
    position: relative;
    cursor: pointer;
    color: #2D5016;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2D5016;
}

.pfizer-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-85%);
    width: 300px;
    height: 200px;
    background-image: url('images/pfizer.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.pfizer-hover:hover::after {
    opacity: 1;
}
/* Electrical hover image */
.electrical-hover {
    position: relative;
    cursor: pointer;
    color: #2D5016;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2D5016;
}

.electrical-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-70%);
    width: 300px;
    height: 200px;
    background-image: url('images/electrical.JPG');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.electrical-hover:hover::after {
    opacity: 1;
}
/* NMG hover image */
.nmg-hover {
    position: relative;
    cursor: pointer;
    color: #2D5016;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2D5016;
}

.nmg-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-10%);
    width: 300px;
    height: 200px;
    background-image: url('images/newmind_team2.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.nmg-hover:hover::after {
    opacity: 1;
}

/* Ryan hover image */
.ryan-hover {
    position: relative;
    cursor: pointer;
    color: #2d2d2d;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #2d2d2d;
}

.ryan-hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background-image: url('images/ryan_headshot1.png');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-top: -250px;
}

.ryan-hover:hover::after {
    opacity: 1;
}
