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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: #000000;
    min-height: 100vh;
    font-weight: 300;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Animated dot grid background - same for all pages */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    --dot-size: 1.5px;
    --dot-space: 15px;
    background-color: #000;
    background-image:
        /* Dots */
        radial-gradient(
            circle at center,
            transparent 0,
            transparent var(--dot-size),
            #000 var(--dot-size)
        ),
        /* Enhanced color gradients like home page */
        radial-gradient(circle at 50% 50%, rgba(16, 235, 255, 0.20), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(185, 26, 238, 0.20), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.15), transparent 50%);
    background-size:
        var(--dot-space) var(--dot-space),
        200% 200%,
        200% 200%,
        200% 200%;
    background-position:
        0 0,
        -100% -100%,
        200% 200%,
        -200% 100%;
    animation: dotMove 15s linear infinite;
    z-index: 0;
}

/* Mobile responsive dot grid */
@media (max-width: 768px) {
    body::before {
        --dot-size: 2px;
        --dot-space: 15px;
    }
}

@media (max-width: 480px) {
    body::before {
        --dot-size: 1.5px;
        --dot-space: 12px;
        background-image:
            radial-gradient(
                circle at center,
                transparent 0,
                transparent var(--dot-size),
                #000 var(--dot-size)
            ),
            radial-gradient(circle at 50% 50%, rgba(16, 235, 255, 0.20), transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(185, 26, 238, 0.20), transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.15), transparent 50%);
    }
}

@keyframes sineWaveMove {
    0% {
        background-position:
            0 0,
            0% 0%,
            -50% -50%,
            50% 50%;
    }
    100% {
        background-position:
            0 0,
            -200% 100%,
            150% -100%,
            -150% 200%;
    }
}

@keyframes dotMove {
    0% {
        background-position:
            0 0,
            -100% -100%,
            200% 200%,
            -200% 100%;
    }
    25% {
        background-position:
            0 0,
            0% 0%,
            100% 100%,
            -100% 0%;
    }
    50% {
        background-position:
            0 0,
            100% 100%,
            0% 0%,
            0% -100%;
    }
    75% {
        background-position:
            0 0,
            200% 0%,
            -100% -100%,
            100% -200%;
    }
    100% {
        background-position:
            0 0,
            300% 100%,
            -200% -200%,
            200% -300%;
    }
}

/* Much darker background for all pages except index - minimizes shader distraction */
body:not(.home-page) {
    background: #000;
    /* Black background to match the dot grid */
}

/* Reduce shader visibility on non-index pages */
body:not(.home-page) .shader-canvas {
    opacity: 0.25 !important;
    /* Lower opacity to make shader subtle but still visible */
}


.logo-container {
    display: flex;
    align-items: center;
    height: 10vh;
    margin-top: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Enhanced header with morphing background */
header {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 65%,
        transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
    padding-bottom: 2px;
}

header.scrolled {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.75) 25%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 65%,
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0 0.1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    text-transform: lowercase;
    line-height: 1;
    position: relative;
}

.logo .company-name {
    color: #ffffff;
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    align-self: flex-start;
}

.logo .company-subtitle {
    color: #35e4f4;
    font-size: 0.75rem;
    font-weight: 200;
    opacity: 0.85;
    letter-spacing: 0.3em;
    font-family: 'Raleway', system-ui, sans-serif;
    text-transform: uppercase;
    margin: 0.15em 0 0 0;
    padding: 0;
    position: relative;
    right: -3em;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo:hover .company-name {
    color: #60a5fa;
}

.logo:hover .company-subtitle {
    opacity: 1;
}

/* Enhanced navigation with better hover effects */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    font-weight: 200;
    font-size: 0.95rem;
    font-family: 'Raleway', system-ui, sans-serif;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transform: translateY(0);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, rgba(16, 235, 255, 0.15), rgba(185, 26, 238, 0.15));
    border-radius: 12px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    transform: scale(0.9);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #10ebff, #b91aee);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links a:hover {
    color: #10ebff;
    transform: translateY(-2px);
    background: rgba(16, 235, 255, 0.05);
}

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

/* Navbar Portfolio Dropdown */
.nav-links li {
    position: relative;
}

.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
    background: transparent;
}

.has-dropdown:hover .nav-dropdown,
.nav-dropdown:hover,
.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #9ca3af !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    font-family: 'Raleway', system-ui, sans-serif;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(16, 235, 255, 0.1);
}

.nav-dropdown-link:last-child {
    border-bottom: none;
}

.nav-dropdown-link.nav-dropdown-parent {
    background: rgba(16, 235, 255, 0.05);
    color: rgba(16, 235, 255, 0.9) !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(16, 235, 255, 0.2);
}

.nav-dropdown-link.nav-dropdown-parent:hover {
    background: rgba(16, 235, 255, 0.1);
    color: rgba(16, 235, 255, 1) !important;
}

.nav-dropdown-link:hover {
    background: rgba(16, 235, 255, 0.1);
    color: #10ebff !important;
    padding-left: 2rem;
}

.nav-dropdown-link::after {
    display: none !important;
}

.nav-dropdown-link::before {
    display: none !important;
}

.nav-links a.active {
    color: #10ebff;
    background: rgba(16, 235, 255, 0.08);
    transform: translateY(0);
}

.nav-links a.active::before {
    opacity: 0.6;
    transform: scale(1);
}

.nav-links a.active::after {
    width: 80%;
}

/* Enhanced hero section with staggered animations */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
    z-index: 1;
    animation: pulseGradient 8s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@font-face { 
    font-family: 'Enclave'; 
    src: url("/fonts/Enclave.ttf") format("truetype"); 
}

@keyframes waveLeftToRight {
    0% {
        background: linear-gradient(90deg, 
            #51d2f6 0%, 
            #3fc7f4 5%, 
            #4b5563 10%, 
            #6b7280 15%, 
            #9ca3af 20%, 
            #d1d5db 25%, 
            #b91aee 27%, 
            #5c5cab 29%, 
            #10ebff 31%, 
            #f3f4f6 33%, 
            #e5e7eb 35%, 
            #d1d5db 37%, 
            #6b7280 40%, 
            #4b5563 45%, 
            #374151 50%, 
            #10ebff 55%, 
            #9ca3af 60%, 
            #b91aee 65%, 
            #5c5cab 70%, 
            #10ebff 73%, 
            #ffffff 75%, 
            #f3f4f6 77%, 
            #9ca3af 84%, 
            #b91aee 89%, 
            #5c5cab 94%, 
            #10ebff 100%);
        background-size: 300% 100%;
        background-position: 100% 0;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
    100% {
        background: linear-gradient(90deg, 
            #51d2f6 0%, 
            #3fc7f4 5%, 
            #4b5563 10%, 
            #6b7280 15%, 
            #9ca3af 20%, 
            #d1d5db 25%, 
            #e5e7eb 27%, 
            #f3f4f6 29%, 
            #ffffff 31%, 
            #f3f4f6 33%, 
            #e5e7eb 35%, 
            #d1d5db 37%, 
            #6b7280 40%, 
            #4b5563 45%, 
            hsl(217, 19%, 27%) 50%, 
            #1f2937 55%, 
            #111827 60%, 
            #374151 65%, 
            #1f2937 70%, 
            #4b5563 73%, 
            #6b7280 75%, 
            #d1d5db  77%, 
            #e5e7eb 79%, 
            #d1d5db 81%, 
            #9ca3af 84%, 
            #b91aee 89%, 
            #5c5cab 94%, 
            #10ebff 100%);
        background-size: 300% 100%;
        background-position: -200% 0;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
}

.hero h1 {
    font-size: 6.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: -0.025em;
    font-family: 'Enclave', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    animation: waveLeftToRight 45s linear infinite;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards, waveLeftToRight 45s linear infinite;
}

.hero .tagline {
    font-size: 1.3rem;
    color: #35e4f4;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0;
    font-family: 'Raleway', system-ui, sans-serif;
    transform: translateY(20px);
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: #9ca3af;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    max-width: 650px;
    line-height: 1.65;
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.mobile-break {
    display: none;
}

/* Enhanced CTA button with sophisticated dark blue accent */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(17, 17, 17, 0.6);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    font-family: 'Raleway', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
    will-change: transform;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: transform 0.3s ease;
    transform: translateX(0);
    will-change: transform;
}

.cta-button:hover::before {
    transform: translateX(200%);
}

.cta-button:hover {
    background: rgba(17, 17, 17, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 8px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Enhanced sections with reveal animations */
.section {
    padding: 1rem 0;
    position: relative;
    z-index: auto;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

/* First section on landing pages needs more top padding to avoid navbar overlap */
/* Also make it immediately visible */
main > .section:first-child {
    padding-top: 8rem;
    opacity: 1;
    transform: translateY(0);
}

/* Hero section doesn't need extra padding */
.hero {
    padding-top: 1rem;
}

.section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.section h1 {
    font-size: 4.5rem;
    align-content: center;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 200;
    letter-spacing: -0.025em;
    font-family: 'Enclave', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    animation: waveLeftToRight 45s linear infinite;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 200;
    letter-spacing: -0.025em;
    font-family: 'Enclave', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    animation: waveLeftToRight 45s linear infinite;
    margin-bottom: 5rem !important;
    letter-spacing: 2px;
    position: relative;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
    margin-top: 3rem !important;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10ebff, #b91aee);
    opacity: 0;
    animation: expandLine 0.8s ease 0.5s forwards;
}

.section.reveal h2::after {
    animation: expandLine 0.8s ease 0.5s forwards;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Enhanced about section */
.about-content {
    margin-bottom: 4rem;
    min-height: 60vh; /* Ensure minimum height */
    padding-bottom: 8rem; /* Add substantial padding at the bottom */
}

.team-story {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

/* Specific padding for standalone about page */
#about.section {
    padding-bottom: 10rem; /* Extra padding for about page */
}

.team-story .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 2rem;
    line-height: 1.65;
    font-family: 'Raleway', system-ui, sans-serif;
}

.team-story p {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 200;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-story p:last-child {
    margin-bottom: 0;
}

.section.reveal .team-story p {
    opacity: 1;
    transform: translateY(0);
}

.section.reveal .team-story p:nth-child(1) { transition-delay: 0.2s; }
.section.reveal .team-story p:nth-child(2) { transition-delay: 0.4s; }
.section.reveal .team-story p:nth-child(3) { transition-delay: 0.6s; }

/* Enhanced team section */
.team-content {
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    justify-items: stretch;
}

@media (max-width: 968px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    width: 100%;
}

.team-member:hover {
    background: rgba(0, 0, 0, 0.4);
}

.member-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(16, 235, 255, 0.3);
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #d1d5db;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.5);
    color: #0077b5;
}

.social-link.twitter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.team-member:hover .member-photo img {
    border-color: rgba(16, 235, 255, 0.6);
    box-shadow: 0 0 20px rgba(16, 235, 255, 0.3);
}

.member-info {
    width: 100%;
    text-align: center;
}

.member-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Raleway', system-ui, sans-serif;
    letter-spacing: -0.01em;
    text-align: center;
}

.member-title {
    color: #35e4f4;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Raleway', system-ui, sans-serif;
    text-align: center;
}

.member-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.65;
    font-family: 'Raleway', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #10ebff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    font-family: 'Raleway', system-ui, sans-serif;
}

.expertise-tag:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

/* Enhanced service cards with sophisticated hover effects */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(17, 17, 17, 0.25);
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    transform: translateY(20px);
    opacity: 0;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
}

.service-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) {
    transition-delay: 0.05s;
}

.service-card:nth-child(2) {
    transition-delay: 0.15s;
}

.service-card:nth-child(3) {
    transition-delay: 0.25s;
}

.service-card:nth-child(4) {
    transition-delay: 0.35s;
}

.service-card:nth-child(5) {
    transition-delay: 0.45s;
}

.service-card:nth-child(6) {
    transition-delay: 0.55s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #10ebff 0%, #b91aee 100%);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    z-index: -2;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 2px;
}


.service-card:hover::before {
    opacity: 0.4;
}

.service-card:hover {
    background: rgba(17, 17, 17, 0.35);
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.25);
}

.service-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Raleway', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.65;
    font-family: 'Raleway', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.service-features li {
    color: #9ca3af;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-features li::before {
    content: "✓";
    color: #10ebff;
    position: absolute;
    left: 0;
    opacity: 0.7;
}

/* Enhanced CVE section */
.cve-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.cve-content .lead {
    text-align: left;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    margin: 0 auto 2rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.reveal .cve-content .lead {
    opacity: 1;
    transform: translateY(0);
}

.cve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    justify-items: center;
}

.cve-header {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cve-header h3 {
    font-size: 1.8rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cve-id {
    font-weight: 300;
    color: rgba(16, 235, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin-bottom: 1rem;
    display: block;
}

.cve-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.cve-details {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 30px;
}

/* Minimalist contact section */
.contact {
    background: #000000;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 2rem auto;
    position: relative;
    border: none;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact p {
    text-align: left;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(200, 200, 200, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-family: 'Raleway', system-ui, sans-serif;
}

/* Contact Form Styles */
.contact-form {
    max-width: 650px;
    margin: 3rem auto 0;
    text-align: left;
    background: #000000;
    padding: 2rem;
    border: none;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Raleway', system-ui, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 300;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.5);
    background: transparent;
    transform: translateY(-2px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310ebff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background: rgba(10, 10, 20, 0.98);
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.form-submit .cta-button {
    display: inline-block;
    padding: 0.75rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Raleway', system-ui, sans-serif;
}

.form-submit .cta-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 1);
}

.contact-item:hover {
    color: #60a5fa;
}

/* Enhanced footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    margin-top: 8rem;
    text-align: center;
    border-top: none;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

footer p {
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 400;
}

/* Mobile hamburger enhancements */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    gap: 5px;
    position: relative;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #10ebff, #b91aee);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger:hover .hamburger-line {
    background: linear-gradient(90deg, #b91aee, #ff1493);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: linear-gradient(90deg, #10ebff, #b91aee);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: linear-gradient(90deg, #10ebff, #b91aee);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(59, 130, 246, 0.2);
    z-index: 1001;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #10ebff, #b91aee);
    width: 0%;
    transition: width 0.1s ease;
}

/* WebGL Shader Canvas */
.shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

/* Hide uiverse container when shader canvas is active */
body:has(.shader-canvas) .uiverse-container {
    display: none;
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
    .shader-active .uiverse-container {
        display: none;
    }
}

/* Uiverse.io Smart Termite Component - Fallback */
.uiverse-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    --dot-size: 2px;
    --spacing: 12px;
    background-color: transparent;
    background-image: 
        radial-gradient(circle at 50% 50%, currentColor var(--dot-size), transparent var(--dot-size));
    background-size: var(--spacing) var(--spacing);
    color: #10ebff;
    filter: brightness(1.5);
    mask: 
        radial-gradient(ellipse 900px 400px at 30% 40%, 
            rgba(255,255,255,0.7), 
            rgba(255,255,255,0.45) 25%, 
            rgba(255,255,255,0.25) 45%, 
            rgba(255,255,255,0.12) 65%, 
            rgba(255,255,255,0.04) 80%, 
            transparent 90%),
        radial-gradient(ellipse 700px 350px at 70% 60%, 
            rgba(255,255,255,0.6), 
            rgba(255,255,255,0.35) 30%, 
            rgba(255,255,255,0.18) 50%, 
            rgba(255,255,255,0.08) 70%, 
            rgba(255,255,255,0.02) 83%, 
            transparent 92%),
        radial-gradient(ellipse 500px 200px at 50% 80%, 
            rgba(255,255,255,0.4), 
            rgba(255,255,255,0.2) 35%, 
            rgba(255,255,255,0.08) 60%, 
            rgba(255,255,255,0.02) 78%, 
            transparent 88%);
    -webkit-mask: 
        radial-gradient(ellipse 900px 400px at 30% 40%, 
            rgba(255,255,255,0.7), 
            rgba(255,255,255,0.45) 25%, 
            rgba(255,255,255,0.25) 45%, 
            rgba(255,255,255,0.12) 65%, 
            rgba(255,255,255,0.04) 80%, 
            transparent 90%),
        radial-gradient(ellipse 700px 350px at 70% 60%, 
            rgba(255,255,255,0.6), 
            rgba(255,255,255,0.35) 30%, 
            rgba(255,255,255,0.18) 50%, 
            rgba(255,255,255,0.08) 70%, 
            rgba(255,255,255,0.02) 83%, 
            transparent 92%),
        radial-gradient(ellipse 500px 200px at 50% 80%, 
            rgba(255,255,255,0.4), 
            rgba(255,255,255,0.2) 35%, 
            rgba(255,255,255,0.08) 60%, 
            rgba(255,255,255,0.02) 78%, 
            transparent 88%);
    animation: 
        liquidWave 120s cubic-bezier(0.4, 0, 0.6, 1) infinite,
        colorTransition 80s ease-in-out infinite;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* Service detail sections */
.service-detail {
    margin-bottom: 4rem;
    padding: 3rem 0;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Force services page sections to be visible immediately */
#service-details.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding-top: 5rem;
    margin-top: 3rem;
    position: relative;
}

/* Separator line before service details section - matches service-detail separators */
#service-details.section::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.service-detail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.service-detail:last-child::after {
    display: none;
}

.service-detail h3 {
    color: #10ebff;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    font-family: 'Raleway', system-ui, sans-serif;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
}

.service-detail h3::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10ebff 0%, #b91aee 100%);
    border-radius: 1px;
}

.service-detail h4 {
    color: #10ebff;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 2.5rem 0 1.5rem 0;
    font-family: 'Raleway', system-ui, sans-serif;
}

.service-detail p {
    color: #e5e7eb;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: 'Raleway', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    text-align: left;
}

.service-detail ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.service-detail ul li {
    color: #e5e7eb;
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    line-height: 1.7;
    font-family: 'Raleway', system-ui, sans-serif;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(27, 27, 27, 0.6) 100%);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    list-style: none !important;
    list-style-type: none !important;
}

.service-detail ul li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #10ebff 0%, #b91aee 100%);
    transition: all 0.3s ease;
}

.service-detail ul li:hover {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(27, 27, 27, 0.7) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(8px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(16, 235, 255, 0.2);
}

.service-detail ul li:hover::after {
    width: 6px;
    box-shadow: 0 0 10px rgba(16, 235, 255, 0.5);
}


.service-detail ul li strong {
    color: #ffffff;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
}

/* Portfolio page styles */
.section-intro {
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Raleway', system-ui, sans-serif;
}

/* Enhanced portfolio section styling */
.portfolio-section {
    position: relative;
    margin-bottom: 0.5rem;
}

/* Divider removed between portfolio sections
.portfolio-section::after {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}
*/

.portfolio-section:first-child::after {
    display: none;
}

.publications-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.publications-content .lead {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Center single grant item */
#grants-funding .publications-grid {
    display: flex;
    justify-content: center;
}

#grants-funding .publication-item {
    max-width: 500px;
}

/* Add padding after grants section - last section in portfolio */
#grants-funding {
    padding-bottom: 8rem;
}

.publication-item {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    padding: 3rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    cursor: pointer;
    border: 1px solid transparent;
}

.publication-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(16, 235, 255, 0.02) 70%,
        rgba(185, 26, 238, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.publication-item:hover {
    background: rgba(0, 0, 0, 0.97);
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.03);
}

.publication-item:hover::after {
    opacity: 1;
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.protocol-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(16, 235, 255, 0.2);
}

.publication-header h3 {
    font-size: 1.8rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-shadow: 0 0 30px rgba(16, 235, 255, 0.3);
}

.publication-date {
    color: #35e4f4;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    font-family: 'Raleway', system-ui, sans-serif;
}

.publication-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    text-align: justify;
}

.publication-tags {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.publication-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.paper-link {
    color: #10ebff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.paper-link:hover {
    color: #35e4f4;
    transform: translateX(3px);
}

.general-tags, .severity-tags, .testing-tags, .project-tags, .tool-tags, .paper-tags, .grant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.severity-tags, .testing-tags, .project-tags, .tool-tags, .paper-tags, .grant-tags {
    margin-top: 0.25rem;
}

/* Portfolio Navigation Dropdown */
.portfolio-navigation {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 75px;
    z-index: 90;
    padding: 1rem 0;
    margin-top: -2rem;
}

.portfolio-nav-dropdown {
    position: relative;
    display: inline-block;
}

.portfolio-nav-button {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Raleway', system-ui, sans-serif;
}

.portfolio-nav-button:hover {
    background: rgba(16, 235, 255, 0.2);
    border-color: rgba(16, 235, 255, 0.5);
    transform: translateY(-2px);
}

.nav-arrow {
    transition: transform 0.3s ease;
}

.portfolio-nav-button.active .nav-arrow {
    transform: rotate(180deg);
}

.portfolio-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
    display: block;
}

.portfolio-nav-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.portfolio-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Raleway', system-ui, sans-serif;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(16, 235, 255, 0.1);
}

.portfolio-nav-link:last-child {
    border-bottom: none;
}

.portfolio-nav-link:hover {
    background: rgba(16, 235, 255, 0.1);
    color: #10ebff;
    padding-left: 2rem;
}

/* Fallback: Show menu on hover if JavaScript fails */
.portfolio-nav-dropdown:hover .portfolio-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tag {
    background: rgba(59, 130, 246, 0.15);
    color: #10ebff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-family: 'Raleway', system-ui, sans-serif;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Testing Campaign specific tags - Updated to match site color scheme */
.tag.test-count {
    background: rgba(16, 235, 255, 0.15);
    color: #10ebff;
    border: 1px solid rgba(16, 235, 255, 0.3);
    font-weight: 600;
}

.tag.test-count:hover {
    background: rgba(16, 235, 255, 0.25);
    border-color: rgba(16, 235, 255, 0.5);
}

.tag.fuzzing {
    background: rgba(185, 26, 238, 0.15);
    color: #b91aee;
    border: 1px solid rgba(185, 26, 238, 0.3);
    font-weight: 500;
}

.tag.fuzzing:hover {
    background: rgba(185, 26, 238, 0.25);
    border-color: rgba(185, 26, 238, 0.5);
}

.tag.formal-verification {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 500;
}

.tag.formal-verification:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.tag.invariant-testing {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
    font-weight: 500;
}

.tag.invariant-testing:hover {
    background: rgba(156, 163, 175, 0.25);
    border-color: rgba(156, 163, 175, 0.5);
}

/* Audit findings severity tags - Updated to match site color scheme */
.tag.critical {
    background: rgba(185, 26, 238, 0.15);
    color: #b91aee;
    border: 1px solid rgba(185, 26, 238, 0.3);
    font-weight: 600;
}

.tag.critical:hover {
    background: rgba(185, 26, 238, 0.25);
    border-color: rgba(185, 26, 238, 0.5);
}

.tag.high {
    background: rgba(16, 235, 255, 0.15);
    color: #10ebff;
    border: 1px solid rgba(16, 235, 255, 0.3);
    font-weight: 600;
}

.tag.high:hover {
    background: rgba(16, 235, 255, 0.25);
    border-color: rgba(16, 235, 255, 0.5);
}

.tag.medium {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 500;
}

.tag.medium:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.tag.low {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.tag.low:hover {
    background: rgba(156, 163, 175, 0.25);
    border-color: rgba(156, 163, 175, 0.5);
}

/* Mobile responsive for publications */
@media (max-width: 768px) {
    /* Mobile header styles */
    header {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0) 50%,
            transparent 100%);
        padding-bottom: 0;
    }

    nav {
        padding: 0.1rem 0 0.05rem 0;
    }

    .logo-container img {
        width: 180px;
        height: auto;
    }

    .publications-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }

    .protocol-logo {
        width: 48px;
        height: 48px;
        padding: 7px;
    }

    .portfolio-navigation {
        padding: 0.75rem 0;
    }

    .portfolio-nav-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .portfolio-nav-menu {
        min-width: 180px;
    }

    /* Enhanced mobile dropdown styles */
    .has-dropdown {
        position: static;
    }

    .nav-dropdown {
        position: fixed;
        top: 40px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        margin-top: 0;
        width: 160px;
        border-radius: 0;
        border: none;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
        max-height: 340px;
        overflow-y: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        padding: 0.5rem 0;
    }

    /* Disable hover on mobile, only use show class */
    .has-dropdown:hover .nav-dropdown,
    .nav-dropdown:hover {
        opacity: 0;
        visibility: hidden;
    }

    .nav-dropdown.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Mobile dropdown link styles */
    .nav-dropdown-link {
        display: flex;
        align-items: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        font-weight: 300;
        position: relative;
        overflow: hidden;
        transition: all 0.2s ease;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown-link::before {
        display: none;
    }

    .nav-dropdown-link:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown-link:hover {
        background: rgba(255, 255, 255, 0.03);
        transform: none;
        padding-left: 1rem;
    }

    .nav-dropdown-link:first-child {
        margin-top: 0;
    }

    .nav-dropdown-link:last-child {
        margin-bottom: 0;
    }

    /* Add smooth scroll behavior for dropdown */
    .nav-dropdown::-webkit-scrollbar {
        width: 4px;
    }

    .nav-dropdown::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-dropdown::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 0;
    }

    .nav-dropdown::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Extra small screens - Enhanced mobile dropdown */
@media (max-width: 480px) {
    /* Make dropdown more compact on very small screens */
    .nav-dropdown {
        width: 150px;
        max-width: 85vw;
        border-radius: 0;
    }

    .nav-dropdown-link {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .publications-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .publication-item {
        padding: 1.5rem;
    }
    
    .publication-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .publication-header h3 {
        font-size: 1.2rem;
    }
    
    .protocol-logo {
        width: 44px;
        height: 44px;
        padding: 6px;
        margin-top: 0.25rem;
    }
}

/* Mobile responsive for service details */
@media (max-width: 768px) {
    .service-detail {
        margin-bottom: 3rem;
        padding: 1.5rem 0;
        max-width: 100%;
        opacity: 1 !important;
        transform: translateY(0) !important;
        display: block !important;
        visibility: visible !important;
        background: none;
        border-radius: 0;
        border: none;
    }
    
    .service-detail h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        letter-spacing: 0.5px;
    }
    
    .service-detail h3::after {
        bottom: -15px;
        width: 50px;
    }
    
    .service-detail h4 {
        font-size: 1.2rem;
        margin: 2rem 0 1rem 0;
    }
    
    .service-detail p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .service-detail ul li {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
}

/* Remove conflicting transparency rules */

@keyframes liquidWave {
    0% {
        mask-position: 
            -300px -150px,
            130vw 120vh,
            50vw -100px;
        -webkit-mask-position: 
            -300px -150px,
            130vw 120vh,
            50vw -100px;
    }
    16.7% {
        mask-position: 
            20vw 10vh,
            100vw 90vh,
            80vw 20vh;
        -webkit-mask-position: 
            20vw 10vh,
            100vw 90vh,
            80vw 20vh;
    }
    33.3% {
        mask-position: 
            60vw 30vh,
            70vw 70vh,
            30vw 60vh;
        -webkit-mask-position: 
            60vw 30vh,
            70vw 70vh,
            30vw 60vh;
    }
    50% {
        mask-position: 
            90vw 50vh,
            40vw 50vh,
            10vw 80vh;
        -webkit-mask-position: 
            90vw 50vh,
            40vw 50vh,
            10vw 80vh;
    }
    66.7% {
        mask-position: 
            70vw 75vh,
            10vw 30vh,
            60vw 40vh;
        -webkit-mask-position: 
            70vw 75vh,
            10vw 30vh,
            60vw 40vh;
    }
    83.3% {
        mask-position: 
            40vw 90vh,
            -100px 20vh,
            90vw 70vh;
        -webkit-mask-position: 
            40vw 90vh,
            -100px 20vh,
            90vw 70vh;
    }
    100% {
        mask-position: 
            -300px -150px,
            130vw 120vh,
            50vw -100px;
        -webkit-mask-position: 
            -300px -150px,
            130vw 120vh,
            50vw -100px;
    }
}

@keyframes colorTransition {
    0% {
        color: #10ebff; /* Blue */
    }
    25% {
        color: #35e4f4; /* Cyan */
    }
    50% {
        color: #ffffff; /* White */
    }
    75% {
        color: #ff69b4; /* Pink */
    }
    100% {
        color: #10ebff; /* Back to blue */
    }
}

/* Blog styles */
.blog-posts {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    background: transparent;
    position: relative;
}

.blog-post-preview {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 3rem 0;
    margin: 0;
    max-width: none;
    backdrop-filter: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.blog-post-preview.reveal {
    opacity: 1;
    transform: translateY(0);
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.blog-post-preview:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(10px);
    padding-left: 1rem;
}

.blog-post-preview h3 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 400;
    font-family: 'Raleway', system-ui, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
    transition: all 0.3s ease;
}

.blog-post-preview h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-post-preview h3 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10ebff, #b91aee);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-preview:hover h3 a {
    color: #10ebff;
}

.blog-post-preview:hover h3 a::after {
    width: 100%;
}

.blog-post-date {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: 'Raleway', system-ui, sans-serif;
    display: inline-block;
    transition: color 0.3s ease;
}

.blog-post-meta {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: 'Raleway', system-ui, sans-serif;
    text-align: left;
    transition: color 0.3s ease;
}

.blog-post-preview:hover .blog-post-meta,
.blog-post-preview:hover .blog-post-date {
    color: #35e4f4;
}

.blog-post-excerpt {
    display: none;
}

.read-more {
    display: none;
}

/* Enhanced blog post container */
.blog-post-content {
    position: relative;
    overflow: visible;
    background: transparent;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Enhanced blog post title */
.blog-post-content h1 {
    background: linear-gradient(90deg, #ffffff 0%, #10ebff 50%, #ffffff 100%) !important;
    background-size: 200% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    animation: shimmerTitle 3s ease-in-out infinite !important;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-top: 80px;
}

@keyframes shimmerTitle {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced post meta */
.post-meta {
    color: #35e4f4 !important;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.post-meta::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10ebff, #b91aee);
    opacity: 0;
    animation: expandLine 0.8s ease 1.5s forwards;
}

/* Back to blog button */
.back-to-blog {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.15);
    color: #10ebff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    font-family: 'Raleway', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.back-to-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.back-to-blog:hover::before {
    left: 100%;
}

.back-to-blog:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.2),
        0 0 20px rgba(16, 235, 255, 0.1);
    border-color: rgba(16, 235, 255, 0.5);
    color: #ffffff;
}

/* Post page styles removed to allow dots to show */

/* Post content styles */
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
    color: #d1d5db;
    line-height: 1.7;
}

/* Add better spacing for content headings (not section titles) */
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6,
article h1:not(.section h1), article h2:not(.section h2), article h3, article h4, article h5, article h6 {
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

/* Exception for first heading in content areas */
.post-content h1:first-child, .post-content h2:first-child,
article h1:first-child:not(.section h1), article h2:first-child:not(.section h2) {
    margin-top: 0 !important;
}

/* Better spacing for post content headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 3.5rem !important;
    margin-bottom: 1.5rem !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 400;
}

.post-content h1 { font-size: 2.5rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.75rem; }
.post-content h4 { font-size: 1.5rem; }

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.post-content a {
    color: #10ebff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #35e4f4;
}

/* Enhanced code blocks */
.post-content p code,
.post-content li code,
.post-content td code,
.post-content h1 code,
.post-content h2 code,
.post-content h3 code,
.post-content h4 code,
.post-content h5 code,
.post-content h6 code {
    background: rgba(16, 235, 255, 0.1) !important;
    border: 1px solid rgba(16, 235, 255, 0.2) !important;
    color: #10ebff !important;
    transition: all 0.3s ease;
}

.post-content p code:hover,
.post-content li code:hover {
    background: rgba(16, 235, 255, 0.15) !important;
    border-color: rgba(16, 235, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(16, 235, 255, 0.2);
}

.post-content pre {
    transition: all 0.3s ease;
}

.post-content pre:hover {
    border-color: rgba(16, 235, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(16, 235, 255, 0.1);
}

.post-content .highlight {
    transition: all 0.3s ease;
}

.post-content .highlight:hover {
    border-color: rgba(16, 235, 255, 0.4) !important;
    box-shadow: 0 8px 25px rgba(16, 235, 255, 0.1);
}

/* Enhanced lists with better bullets */
.post-content ul li::before {
    content: "→" !important;
    color: #10ebff !important;
    transition: all 0.3s ease;
}

.post-content ul li:hover::before {
    color: #35e4f4 !important;
    transform: translateX(3px);
}

.post-content ol li::before {
    color: #10ebff !important;
}

/* Inline code (backticks in markdown) */
.post-content p code,
.post-content li code,
.post-content td code,
.post-content h1 code,
.post-content h2 code,
.post-content h3 code,
.post-content h4 code,
.post-content h5 code,
.post-content h6 code {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.7em;
    color: rgba(59, 130, 246, 0.9);
    white-space: nowrap;
}

/* Regular code blocks (triple backticks without language) */
.post-content pre {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.5rem;
    line-height: 1.6;
    white-space: pre;
    word-wrap: normal;
    text-align: left !important; /* Force left alignment */
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e5e7eb;
    font-size: inherit;
    white-space: pre;
    word-wrap: normal;
    text-align: left !important; /* Force left alignment */
}

/* Rouge Syntax Highlighting Container - This is what Jekyll generates */
.post-content .highlight {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    text-align: left !important; /* Force left alignment for entire highlight block */
}

/* Rouge pre element - Jekyll wraps code in highlight > pre */
.post-content .highlight pre {
    background: none;
    border: none;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    text-align: left !important; /* Force left alignment */
}

/* Rouge code element */
.post-content .highlight code {
    background: none;
    border: none;
    padding: 0;
    color: #e5e7eb;
    font-size: inherit;
    display: block;
    white-space: pre;
    word-wrap: normal;
    text-align: left !important; /* Force left alignment */
}

/* Rouge table-based line numbers - Jekyll sometimes uses tables for line numbers */
.post-content .highlight table {
    margin: 0;
    border: none;
    background: none;
    border-radius: 0;
    width: 100%;
    border-collapse: collapse;
    text-align: left !important; /* Force left alignment for tables */
}

.post-content .highlight table td {
    padding: 0;
    border: none;
    background: none;
    text-align: left !important; /* Force left alignment for table cells */
}

.post-content .highlight table .gutter {
    width: 40px;
    padding-right: 1rem;
    text-align: right; /* Line numbers should be right-aligned */
    user-select: none;
    border-right: 1px solid rgba(59, 130, 246, 0.2);
}

.post-content .highlight table .code {
    padding-left: 1rem;
    text-align: left !important; /* Force left alignment for code content */
}

/* Line numbers styling */
.post-content .highlight .lineno,
.post-content .highlight .gutter .lineno {
    color: rgba(59, 130, 246, 0.5);
    font-weight: normal;
    user-select: none;
    display: inline-block;
    margin-right: 0.5rem;
    text-align: right; /* Line numbers right-aligned */
}

/* Override any potential centering from parent elements */
.post-content .highlight *,
.post-content pre *,
.post-content code {
    text-align: left !important;
}

/* Jekyll/Rouge language detection */
.post-content .highlight[class*="language-"]::before,
.post-content .highlight .language-label {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 0.9);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom-left-radius: 4px;
    z-index: 10;
}

/* Specific language labels - Rouge adds these classes */
.post-content .highlight.language-javascript::before { content: "JavaScript"; }
.post-content .highlight.language-js::before { content: "JavaScript"; }
.post-content .highlight.language-python::before { content: "Python"; }
.post-content .highlight.language-py::before { content: "Python"; }
.post-content .highlight.language-c::before { content: "C"; }
.post-content .highlight.language-cpp::before { content: "C++"; }
.post-content .highlight.language-java::before { content: "Java"; }
.post-content .highlight.language-html::before { content: "HTML"; }
.post-content .highlight.language-css::before { content: "CSS"; }
.post-content .highlight.language-scss::before { content: "SCSS"; }
.post-content .highlight.language-sass::before { content: "Sass"; }
.post-content .highlight.language-php::before { content: "PHP"; }
.post-content .highlight.language-ruby::before { content: "Ruby"; }
.post-content .highlight.language-go::before { content: "Go"; }
.post-content .highlight.language-rust::before { content: "Rust"; }
.post-content .highlight.language-sql::before { content: "SQL"; }
.post-content .highlight.language-bash::before { content: "Bash"; }
.post-content .highlight.language-shell::before { content: "Shell"; }
.post-content .highlight.language-yaml::before { content: "YAML"; }
.post-content .highlight.language-yml::before { content: "YAML"; }
.post-content .highlight.language-json::before { content: "JSON"; }
.post-content .highlight.language-xml::before { content: "XML"; }
.post-content .highlight.language-markdown::before { content: "Markdown"; }
.post-content .highlight.language-md::before { content: "Markdown"; }

/* Rouge Syntax Highlighting Colors - Dark Theme */
.highlight .c     { color: #6b7280; font-style: italic } /* Comment */
.highlight .err   { color: #ef4444; } /* Error */
.highlight .k     { color: #8b5cf6; font-weight: bold } /* Keyword */
.highlight .o     { color: #f59e0b; } /* Operator */
.highlight .cm    { color: #6b7280; font-style: italic } /* Comment.Multiline */
.highlight .cp    { color: #10b981; font-weight: bold } /* Comment.Preproc */
.highlight .c1    { color: #6b7280; font-style: italic } /* Comment.Single */
.highlight .cs    { color: #6b7280; font-style: italic } /* Comment.Special */
.highlight .gd    { color: #ef4444; } /* Generic.Deleted */
.highlight .ge    { font-style: italic } /* Generic.Emph */
.highlight .gi    { color: #10b981; } /* Generic.Inserted */
.highlight .gs    { font-weight: bold } /* Generic.Strong */
.highlight .gu    { color: #a855f7; } /* Generic.Subheading */
.highlight .kc    { color: #8b5cf6; font-weight: bold } /* Keyword.Constant */
.highlight .kd    { color: #8b5cf6; font-weight: bold } /* Keyword.Declaration */
.highlight .kn    { color: #8b5cf6; font-weight: bold } /* Keyword.Namespace */
.highlight .kp    { color: #8b5cf6; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr    { color: #8b5cf6; font-weight: bold } /* Keyword.Reserved */
.highlight .kt    { color: #06b6d4; font-weight: bold } /* Keyword.Type */
.highlight .m     { color: #f59e0b; } /* Literal.Number */
.highlight .s     { color: #10b981; } /* Literal.String */
.highlight .na    { color: #3b82f6; } /* Name.Attribute */
.highlight .nb    { color: #06b6d4; } /* Name.Builtin */
.highlight .nc    { color: #f59e0b; } /* Name.Class */
.highlight .no    { color: #ef4444; } /* Name.Constant */
.highlight .nd    { color: #a855f7; } /* Name.Decorator */
.highlight .ni    { color: #ec4899; } /* Name.Entity */
.highlight .ne    { color: #ef4444; font-weight: bold } /* Name.Exception */
.highlight .nl    { color: #f59e0b; } /* Name.Label */
.highlight .nn    { color: #06b6d4; } /* Name.Namespace */
.highlight .nt    { color: #3b82f6; } /* Name.Tag */
.highlight .nv    { color: #ec4899; } /* Name.Variable */
.highlight .ow    { color: #8b5cf6; font-weight: bold } /* Operator.Word */
.highlight .w     { color: #6b7280; } /* Text.Whitespace */
.highlight .mf    { color: #f59e0b; } /* Literal.Number.Float */
.highlight .mh    { color: #f59e0b; } /* Literal.Number.Hex */
.highlight .mi    { color: #f59e0b; } /* Literal.Number.Integer */
.highlight .mo    { color: #f59e0b; } /* Literal.Number.Oct */
.highlight .sb    { color: #10b981; } /* Literal.String.Backtick */
.highlight .sc    { color: #10b981; } /* Literal.String.Char */
.highlight .sd    { color: #10b981; } /* Literal.String.Doc */
.highlight .s2    { color: #10b981; } /* Literal.String.Double */
.highlight .se    { color: #f59e0b; } /* Literal.String.Escape */
.highlight .sh    { color: #10b981; } /* Literal.String.Heredoc */
.highlight .si    { color: #f59e0b; } /* Literal.String.Interpol */
.highlight .sx    { color: #10b981; } /* Literal.String.Other */
.highlight .sr    { color: #10b981; } /* Literal.String.Regex */
.highlight .s1    { color: #10b981; } /* Literal.String.Single */
.highlight .ss    { color: #ec4899; } /* Literal.String.Symbol */
.highlight .bp    { color: #06b6d4; } /* Name.Builtin.Pseudo */
.highlight .vc    { color: #ec4899; } /* Name.Variable.Class */
.highlight .vg    { color: #ec4899; } /* Name.Variable.Global */
.highlight .vi    { color: #ec4899; } /* Name.Variable.Instance */
.highlight .il    { color: #f59e0b; } /* Literal.Number.Integer.Long */

/* Remove ALL default list styling with maximum specificity */
.post-content ul,
.post-content ol,
.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.post-content ul li,
.post-content ol li,
.blog-post-content ul li,
.blog-post-content ol li {
    margin: 0 0 0.5rem 0 !important;
    padding: 0 0 0 1rem !important;
    color: #d1d5db !important;
    position: relative !important;
    list-style: none !important;
    text-indent: 0 !important;
}

/* Custom bullets - positioned exactly where we want them */
.post-content ul li::before,
.blog-post-content ul li::before {
    content: "•" !important;
    color: rgba(59, 130, 246, 0.8) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1rem !important;
    text-align: left !important;
    font-size: 1em !important;
    line-height: inherit !important;
}

/* Custom numbers for ordered lists */
.post-content ol,
.blog-post-content ol {
    counter-reset: custom-counter !important;
}

.post-content ol li,
.blog-post-content ol li {
    counter-increment: custom-counter !important;
}

.post-content ol li::before,
.blog-post-content ol li::before {
    content: counter(custom-counter) "." !important;
    color: rgba(59, 130, 246, 0.8) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1rem !important;
    text-align: left !important;
    font-size: 1em !important;
    line-height: inherit !important;
}

/* Override any potential conflicting styles */
.post-content ul li::marker,
.post-content ol li::marker,
.blog-post-content ul li::marker,
.blog-post-content ol li::marker {
    display: none !important;
}

/* Nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul,
.blog-post-content ul ul,
.blog-post-content ol ol,
.blog-post-content ul ol,
.blog-post-content ol ul {
    margin: 0.5rem 0 !important;
    padding-left: 1rem !important;
}

/* Grid layout is defined earlier in the file */
.cve-grid .publication-item:nth-child(4):last-child {
    grid-column: 2 / 3; /* Center the 4th item if it's the last one */
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .cve-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Nuclear option - override ALL code styling on mobile */
    * code,
    * pre,
    * .highlight,
    * .language-plaintext,
    * .highlighter-rouge {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    .logo-container {
        display: flex;
        align-items: center;
        height: 10vh;
        margin-top: 15px;
        width: auto;
    }

    .logo-container img {
        width: 150px;
        height: auto;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 1.5rem 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        max-height: 100vh;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links li a {
        font-size: 0.9rem;
        padding: 0.75rem 0;
        display: block;
        width: auto;
        text-align: center;
        border-radius: 0;
        transition: all 0.2s ease;
        color: rgba(255, 255, 255, 0.5);
        background: transparent;
        border: none;
        position: relative;
        letter-spacing: 0.05em;
        font-weight: 300;
        text-transform: none;
    }

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

    .nav-links li a::before {
        display: none;
    }

    .nav-links li a:hover {
        color: rgba(255, 255, 255, 0.9);
        background: transparent;
        transform: none;
    }

    .nav-links li a.active {
        color: rgba(255, 255, 255, 0.9);
        background: transparent;
    }

    .hero {
        min-height: 100vh;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
        line-height: 1.1;
        margin-bottom: 2rem;
        word-spacing: 0.2em;
    }

    .hero .tagline {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
        padding: 0 2rem;
        font-weight: 500;
    }

    .hero .subtitle {
        font-size: 0.75rem;
        line-height: 1.75;
        margin-bottom: 2.5rem;
        padding: 0 2rem;
        max-width: 100%;
        font-weight: 300;
    }

    .mobile-break {
        display: inline;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .section {
        padding: 0.5rem 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }

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

    .services-grid,
    .cve-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }

    .member-photo {
        margin-bottom: 1rem;
        gap: 0.8rem;
    }

    .member-photo img {
        width: 100px;
        height: 100px;
    }
    
    .cve-grid .publication-item:nth-child(4):last-child {
        grid-column: 1; /* Reset on mobile */
    }

    .service-card {
        padding: 1.5rem;
        border: none;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    .team-story {
        text-align: left;
        padding: 0 10px;
    }

    .team-story p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cve-content {
        margin: 0 auto;
        max-width: 100%;
    }

    .cve-content .lead {
        font-size: 0.95rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .contact {
        padding: 3rem 1.5rem 4rem;
        margin: 2rem auto;
        background: #000000;
        border: none;
        max-width: 90%;
        text-align: center;
    }

    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-header .section-subtitle {
        padding-bottom: 2rem;
    }

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

    .contact-info .cta-button {
        width: auto;
        text-align: center;
    }

    /* Mobile form adjustments */
    .contact-form {
        margin: 2rem auto 0;
        padding: 0 1rem;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-submit .cta-button {
        padding: 0.75rem 2.5rem;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .blog-posts {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .blog-post-preview {
        padding: 2rem 0;
        text-align: left;
    }
    
    .blog-post-preview h3 {
        font-size: 2rem;
        text-align: left;
    }
    
    .blog-post-meta {
        text-align: left;
    }

    footer {
        padding: 1.5rem 0;
    }

    footer img {
        width: 200px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.05em;
        margin-bottom: 1.75rem;
    }

    .hero .tagline {
        font-size: 0.8rem;
        line-height: 1.65;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
        font-weight: 500;
    }

    .hero .subtitle {
        font-size: 0.7rem;
        line-height: 1.85;
        padding: 0 1.5rem;
        max-width: 100%;
        margin-bottom: 2.5rem;
        font-weight: 300;
    }

    .hero-actions {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.25rem 0.5rem;
        font-size: 0.5rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }
    
    .blog-post-preview h3 {
        font-size: 1.6rem;
    }

    .blog-post-preview {
        padding: 1.5rem 0;
    }

    .service-card {
        padding: 1.2rem;
        border: none;
    }

    .contact {
        margin: 2rem auto;
        padding: 2.5rem 1rem 3rem;
        max-width: 95%;
    }
}

/* Minimalist Hero Buttons */
.hero-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.cta-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #000000;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 300;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

.cta-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 300;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
}

.cta-secondary:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: row;
        gap: 0.5rem;
        margin: 2rem auto 0;
        justify-content: center;
    }

    .cta-primary,
    .cta-secondary {
        width: auto;
        padding: 0.5rem 1rem;
        text-align: center;
        font-size: 0.7rem;
    }
}

/* Home Page Minimalist Sections */
.home-services-preview {
    padding: 8rem 0;
    position: relative;
}

.home-section-title {
    font-size: 3rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Enclave', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.home-section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.home-service-card {
    background: rgba(0, 0, 0, 0.95);
    padding: 3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.home-service-card:hover {
    background: rgba(0, 0, 0, 0.85);
}

.home-service-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.home-service-card h3 {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-family: 'Enclave', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.home-service-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.home-service-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.3s ease;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.home-service-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Home Stats Section */
.home-stats-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-stat-value {
    font-size: 2.5rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.home-stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Clean Minimalist Services Page */
#services {
    padding: 8rem 0;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

#services .section-header {
    text-align: center;
    margin-bottom: 6rem;
}

#services .section-title,
#team .section-title,
#about .section-title,
.blog-posts ~ .section-header .section-title,
.section-header .section-title {
    font-size: 4rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Mobile responsive titles */
@media (max-width: 768px) {
    #services .section-title,
    #team .section-title,
    #about .section-title,
    .blog-posts ~ .section-header .section-title,
    .section-header .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    #services .section-title,
    #team .section-title,
    #about .section-title,
    .blog-posts ~ .section-header .section-title,
    .section-header .section-title {
        font-size: 2rem;
    }
}

#services .section-subtitle,
#team .section-subtitle,
#about .section-subtitle,
.section-header .section-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid - Proper 3 Column Layout */
.services-grid.sophisticated {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.1);
}

.service-card-sophisticated {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    padding: 3rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card-sophisticated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(16, 235, 255, 0.02) 70%,
        rgba(185, 26, 238, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card-sophisticated:hover {
    background: rgba(0, 0, 0, 0.97);
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.03);
}

.service-card-sophisticated:hover::after {
    opacity: 1;
}

.service-card-sophisticated .service-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 1024px) {
    .services-grid.sophisticated {
        grid-template-columns: 1fr;
        gap: 2rem;
        background: transparent;
    }

    .service-card-sophisticated {
        border: none;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        background: transparent;
    }

    .home-service-card {
        border: none;
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.service-card-sophisticated .service-number {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    margin-bottom: 2rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: 0.1em;
}

.service-card-sophisticated .service-title {
    font-size: 1.8rem;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.3;
    min-height: 2.5rem;
    padding-bottom: 0.5rem;
}

.service-card-sophisticated .service-summary {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
    height: 100px;
}

.service-card-sophisticated .service-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 150px;
}

.service-card-sophisticated .service-features-list li {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 300;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    text-align: justify;
}

.service-card-sophisticated .service-features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
}

.service-card-sophisticated .service-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-sophisticated .service-features-list {
    flex-grow: 1;
}

.service-card-sophisticated .service-stats {
    display: flex;
    gap: 3rem;
    margin-top: auto;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-sophisticated .stat {
    flex: 1;
}

.service-card-sophisticated .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.service-card-sophisticated .stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.service-card-sophisticated .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.3s ease;
    padding: 2.5rem 0 0 0;
    margin-top: 0;
}

.service-card-sophisticated:hover .service-title {
    color: rgba(255, 255, 255, 1);
}

.service-card-sophisticated:hover .service-summary {
    color: rgba(255, 255, 255, 0.7);
}

.service-card-sophisticated .service-link:hover {
    color: rgba(16, 235, 255, 0.9);
    gap: 1rem;
}

.service-card-sophisticated .service-link svg {
    transition: transform 0.3s ease;
}

.service-card-sophisticated .service-link:hover svg {
    transform: translateX(3px);
}

/* Product Icon Styles */
.product-icon {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card-sophisticated:hover .product-icon {
    color: rgba(16, 235, 255, 0.6);
}

/* Product Tags Styles */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: auto;
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.service-card-sophisticated:hover .product-tag {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Service Landing Page Minimal Styles */
.service-hero-minimal {
    padding: 10rem 0 6rem;
    background: transparent;
    position: relative;
}

.service-hero-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Animated gradient for service page titles */
.service-gradient-text {
    background: linear-gradient(90deg, #10ebff 0%, #b91aee 25%, #10ebff 50%, #b91aee 75%, #10ebff 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: gradientShift 20s ease-in-out infinite;
}

.hero-content-minimal {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-minimal {
    font-size: 4rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.hero-description-minimal {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-actions-minimal {
    display: flex;
    gap: 2rem;
}

.cta-minimal-primary,
.cta-minimal-secondary {
    padding: 0.75rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
}

.cta-minimal-primary {
    background: #000000;
}

.cta-minimal-secondary {
    background: transparent;
}

.cta-minimal-primary:hover {
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cta-minimal-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cta-minimal-secondary {
    color: rgba(255, 255, 255, 0.5);
    border: none;
}

.section-minimal {
    padding: 4rem 0;
    background: transparent;
    position: relative;
}

.section-minimal + .section-minimal {
    padding-top: 2rem;
}

/* Smooth gradient overlay for sections */
.section-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: -1;
}

.section-minimal.section-first {
    background: transparent;
    padding-top: 2rem;
}

.section-minimal:nth-of-type(odd)::before {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.05) 100%);
}

.section-minimal:nth-of-type(even)::before {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0) 100%);
}

.section-title-minimal {
    font-size: 2.5rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.section-subtitle-minimal {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 4rem;
}

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

.card-minimal {
    padding: 2rem;
    background: #000000;
    border: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    cursor: pointer;
}

.card-minimal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-minimal .card-number {
    display: block;
    font-size: 2rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.card-minimal h3 {
    font-size: 1.3rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.card-minimal p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.timeline-minimal {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 4rem;
}

.timeline-item-minimal {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item-minimal::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-number {
    position: absolute;
    left: -3.25rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.5);
}

.timeline-content-minimal h3 {
    font-size: 1.5rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.timeline-content-minimal p {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.timeline-duration-minimal {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

.deliverables-grid-minimal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.deliverable-item-minimal {
    padding: 1.5rem;
    background: #000000;
    border: none;
    border-radius: 4px;
}

.deliverable-item-minimal h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-family: 'Raleway', sans-serif;
}

.deliverable-item-minimal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.deliverable-stats-minimal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-minimal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.cta-section-minimal {
    text-align: center;
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.cta-section-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

.cta-buttons-minimal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive adjustments for minimalist styles */
@media (max-width: 768px) {
    .hero-title-minimal {
        font-size: 2.5rem;
    }

    .section-title-minimal {
        font-size: 2rem;
    }

    #services {
        padding: 4rem 0;
    }

    #services .section-title {
        font-size: 2.5rem;
    }

    #services .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .services-grid.sophisticated {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 1rem;
        background: transparent;
    }

    .service-card-sophisticated {
        padding: 2rem;
        border: none;
    }

    .service-card-sophisticated .service-number {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }

    .service-card-sophisticated .service-title {
        font-size: 1.5rem;
        min-height: auto;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .service-card-sophisticated .service-summary {
        font-size: 0.9rem;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .service-card-sophisticated .service-features-list {
        height: auto;
        margin: 1.5rem 0;
        gap: 0.5rem;
    }

    .service-card-sophisticated .service-features-list li {
        font-size: 0.85rem;
    }

    .service-card-sophisticated .service-stats {
        gap: 2rem;
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }

    .service-card-sophisticated .stat-value {
        font-size: 1.2rem;
    }

    .service-card-sophisticated .stat-label {
        font-size: 0.7rem;
    }

    .service-card-sophisticated .service-link {
        font-size: 0.85rem;
        margin-top: 1.5rem;
    }
}

    .hero-actions-minimal,
    .cta-buttons-minimal {
        flex-direction: column;
        align-items: center;
    }

    .cta-minimal-primary,
    .cta-minimal-secondary {
        width: 100%;
        max-width: 300px;
    }

    .timeline-minimal {
        padding-left: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title-minimal {
        font-size: 2rem;
    }

    .section-title-minimal {
        font-size: 1.75rem;
    }

    #services {
        padding: 3rem 0;
    }

    #services .section-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    #services .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .services-grid.sophisticated {
        margin: 1rem 0.5rem;
        gap: 1.5rem;
    }

    .service-card-sophisticated {
        padding: 1.5rem;
    }

    .service-card-sophisticated .service-title {
        font-size: 1.3rem;
    }

    .service-card-sophisticated .service-summary {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .service-card-sophisticated .service-features-list li {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .service-card-sophisticated .service-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .service-card-sophisticated .stat-value {
        font-size: 1rem;
    }

    /* Product page mobile styles */
    .product-tags {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .product-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .product-icon {
        margin-bottom: 1rem;
    }
}

/* Static Analyzer Product Page Mobile Responsive */
@media (max-width: 768px) {
    /* Two column layout for overview section */
    .static-analyzer-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* How it works - stack in 2x2 grid on mobile */
    .static-analyzer-how-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .static-analyzer-how-grid > div {
        padding: 1.5rem !important;
    }

    .static-analyzer-how-grid h4 {
        font-size: 1rem !important;
    }

    .static-analyzer-how-grid p {
        font-size: 0.85rem !important;
    }

    .static-analyzer-how-grid > div > div:first-child {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    /* Features grid - stack to single column */
    .static-analyzer-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1px !important;
    }

    .static-analyzer-features-grid > div {
        padding: 2rem !important;
    }

    /* Technical specs - stack to single column */
    .static-analyzer-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        background: transparent !important;
    }

    .static-analyzer-specs-grid > div {
        padding: 2rem !important;
    }

    /* Section padding adjustments */
    .static-analyzer-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Section headers */
    .static-analyzer-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
}

/* FINAL MOBILE CODE OVERRIDE - Load last to ensure it works */
@media (max-width: 768px) and (min-width: 1px) {
    code[class*="language-"],
    .language-plaintext,
    .highlighter-rouge,
    pre[class*="highlight"],
    div[class*="highlight"],
    span[class*="highlight"],
    code,
    pre,
    .highlight,
    .highlight code,
    .highlight pre {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
}

/* Team Page Minimalist Styles */
.team-grid-minimal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.team-card-minimal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 235, 255, 0.5), transparent);
    animation: shimmerTitle 3s ease-in-out infinite;
}

.team-card-minimal:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.team-header-minimal {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-photo-minimal {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-info-minimal {
    flex: 1;
}

.team-info-minimal h3 {
    font-size: 1.8rem;
    font-weight: 200;
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: rgba(16, 235, 255, 0.8);
    font-weight: 300;
    margin-bottom: 1rem;
}

.team-social-minimal {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.team-social-minimal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.team-social-minimal a:hover {
    border-color: rgba(16, 235, 255, 0.5);
    color: rgba(16, 235, 255, 0.8);
    background: rgba(16, 235, 255, 0.05);
}

.team-highlights-minimal {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.highlight-item {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(185, 26, 238, 0.1), rgba(255, 20, 147, 0.1));
    border: 1px solid rgba(185, 26, 238, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.team-content-minimal {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.8;
}

.team-content-minimal p {
    margin-bottom: 1rem;
}

.team-content-minimal p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .team-header-minimal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-photo-minimal {
        width: 100px;
        height: 100px;
    }

    .team-social-minimal {
        justify-content: center;
    }

    .team-highlights-minimal {
        justify-content: center;
    }

    .team-card-minimal {
        padding: 1.5rem;
    }

    .deliverables-grid-minimal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .deliverable-item-minimal {
        padding: 1.25rem;
    }
}