/* Global Reset and Default Styles */
* {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Include padding and border in element's total size */
    text-decoration: none; /* Remove underline from links */
    font-family: "Poppins", sans-serif; /* Set default font */
}

a, button, input, textarea, select {
    border: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(0, 255, 238, 0.8);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0, 255, 238, 0.2);
}

/* CSS Variables */
:root {
    --bg-color: #080808; /* Primary background color */
    --second-bg-color: #131313; /* Secondary background color */
    --text-color: white; /* Default text color */
    --main-color: #00ffee; /* Accent color */
}

/* HTML and Body Styles */
html {
    font-size: 60%; /* Set base font size for rem units */
    overflow-x: hidden; /* Hide horizontal overflow */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color); /* Set body background */
    color: var(--text-color); /* Set default text color */
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 255, 238, 0.08), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 238, 0.05), transparent 30%),
        linear-gradient(180deg, rgba(19, 19, 19, 0.8) 0%, rgba(8, 8, 8, 0.95) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.header {
    position: fixed; /* Fix header at the top */
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem; /* Add padding */
    background: rgba(0, 0, 0, 0.45); /* Semi-transparent background */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* Add blur effect */
    border-bottom: 1px solid rgba(0, 255, 238, 0.15);
    display: flex;
    justify-content: space-between; /* Space out logo and navbar */
    align-items: center;
    z-index: 5; /* Ensure header is above other content */
}

/* Logo Styles */
.logo {
    font-size: 3rem; /* Large font size */
    color: var(--text-color); /* White text */
    font-weight: 800; /* Bold font */
    cursor: pointer; /* Pointer cursor on hover */
    transition: 0.3s ease; /* Smooth hover effect */
}

.logo:hover {
    transform: scale(1.1); /* Scale up on hover */
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

/* Navbar Styles */
.navbar a {
    font-size: 1.8rem; /* Nav link font size */
    color: var(--text-color); /* White text */
    margin-left: 4rem; /* Space between links */
    font-weight: 500; /* Medium font weight */
    transition: 0.3s ease; /* Smooth hover effect */
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color); /* Accent color on hover/active */
    border-bottom: 3px solid var(--main-color); /* Underline effect */
}

/* Menu Icon (Mobile) */
#menu-icon {
    font-size: 3.6rem; /* Large icon size */
    color: var(--main-color); /* Accent color */
    display: none; /* Hidden by default */
    cursor: pointer; /* Pointer cursor */
}

/* Section and Home Styles */
section {
    min-height: 100vh; /* Full viewport height sections */
    padding: 12rem 12% 8rem; /* Add padding */
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem; /* Space between content and image */
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}
.home-content h1 span,
.home-content h3 span,
.contact h2 span {
    color: var(--main-color);
}
.home-content h1 {
    font-size: clamp(4rem, 8vw, 7rem); /* Large heading */
    font-weight: 700; /* Bold font */
    margin-top: 1.5rem;
    line-height: 1; /* Tight line spacing */
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-img{
    border-radius:50%;
}
.home-content p {
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 760px;
    color: #d0d0d0;
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 32vw; /* Responsive image width */
    border-radius: 50%; /* Circular image */
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
    cursor: pointer; /* Pointer cursor */
    transition: 0.4s ease-in-out; /* Smooth hover effect */
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color); /* Enhanced glow on hover */
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem; /* Fixed size */
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color); /* Accent border */
    font-size: 2.5rem;
    border-radius: 50%; /* Circular shape */
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out; /* Smooth hover effect */
}

.social-icons a i {
    transition: transform 0.35s ease;
}

.social-icons a:hover {
    color: var(--text-color); /* White text on hover */
    transform: scale(1.3) translateY(-5px); /* Scale and lift effect */
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
    background-color: var(--main-color); /* Accent background on hover */
}

.social-icons a:hover i {
    transform: rotate(10deg) scale(1.08);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem; /* Button padding */
    background: var(--main-color); /* Accent background */
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.45); /* Glow effect */
    border-radius: 4rem; /* Rounded corners */
    font-size: 1.6rem; /* Button text size */
    color: black; /* Dark text */
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out; /* Smooth hover effect */
    cursor: pointer; /* Pointer cursor */
}

.btn:hover {
    transform: scale(1.05); /* Slightly scale up on hover */
    box-shadow: 0 0 30px rgba(0, 255, 238, 0.6); /* Enhanced glow effect */
}

.btn:active {
    transform: translateY(1px) scale(1.02);
}

.cta-emphasis {
    animation: ctaPulse 3.2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 14px rgba(0, 255, 238, 0.45);
    }
    50% {
        box-shadow: 0 0 22px rgba(0, 255, 238, 0.72);
    }
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between buttons */
}

.btn-group a:nth-of-type(2) {
    background-color: black; /* Dark background */
    color: var(--main-color); /* Accent text */
    border: 2px solid var(--main-color); /* Accent border */
    box-shadow: 0 0 25px transparent; /* No shadow */
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
    background-color: var(--main-color); /* Accent background */
    color: black; /* Dark text */
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: #000;
}


/* Responsive Design */
@media (max-width: 768px) {
    #menu-icon {
        display: block; /* Show menu icon on small screens */
    }

    .navbar {
        display: none; /* Hide navbar by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9); /* Dark background */
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        padding: 2rem 0;
    }

    .navbar.active {
        display: flex; /* Show navbar when active */
    }

    .home {
        flex-direction: column; /* Stack content vertically */
        gap: 5rem; /* Reduce gap */
        text-align: center; /* Center text */
    }

    .home-content {
        align-items: center; /* Center content */
    }

    .home-img img {
        width: 50vw; /* Adjust image size */
    }
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 1rem; /* Reduce gap */
    }
    .header {
        padding: 2.2rem 5%;
    }
    section {
        padding: 10rem 5% 2.5rem;
    }
}

/* Text Animation */
.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 24ch;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.25;
    overflow: hidden;
}

.text-animation span {
    display: inline;
    white-space: nowrap;
    color: var(--main-color); /* Accent color */
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 12px rgba(0, 255, 238, 0.35);
}

.text-animation span::after {
    content: "|";
    display: inline-block;
    margin-left: 0.15rem;
    color: var(--main-color);
    animation: cursorBlink 0.8s step-end infinite;
    text-shadow: 0 0 10px rgba(0, 255, 238, 0.55);
}

/* Cursor blinking effect */
@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 238, 0.35);
    }
    50% {
        text-shadow: 0 0 18px rgba(0, 255, 238, 0.6);
    }
}

/* Heading Styles */
.heading {
    font-size: clamp(3.4rem, 7vw, 6rem);
    text-align: center;
    margin: 3rem 0 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 15px; /* Scrollbar width */
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color); /* Accent color thumb */
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color); /* Dark track */
    width: 50px;
}

/* Services Section */
.services {
    background: var(--second-bg-color);
    padding: 10rem 0 8rem;
}

.services h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.services-intro {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    font-size: 1.8rem;
    line-height: 1.8;
    text-align: center;
    color: #d8d8d8;
    box-sizing: border-box;
}

.services-container {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.service-card {
    background: linear-gradient(180deg, rgba(8,8,8,0.95), rgba(19,19,19,0.98));
    border: 1px solid rgba(0, 255, 238, 0.25);
    border-radius: 3rem;
    padding: 3rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 2rem;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-card:hover {
    border-color: var(--main-color);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 238, 0.15);
}

.service-card *,
.service-card *::before,
.service-card *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.service-icon {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--main-color);
    box-shadow: 0 0 18px rgba(0, 255, 238, 0.2);
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.service-tag {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.4);
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.service-info p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-list li {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #d7d7d7;
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.service-list li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--main-color);
    font-weight: 700;
    line-height: 1.6;
}

.service-badges {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
}

.services-cta {
    text-align: center;
    margin-top: 6rem;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.services-cta p {
    font-size: 2rem;
    color: #d0d0d0;
    margin-bottom: 2rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.32);
    background: rgba(0, 255, 238, 0.08);
    color: #dffefd;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.25s ease;
}

.skill-badge i {
    color: var(--main-color);
    font-size: 1.45rem;
}

/* Projects Section */
.projects {
    background: var(--second-bg-color); /* Secondary background */
    padding: 10rem 0 8rem; /* Add padding */
}

.projects h2 {
    margin-bottom: 5rem;
    text-align: center; /* Center heading */
}

.projects-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    font-size: 1.8rem;
    line-height: 1.8;
    text-align: center;
    color: #d8d8d8;
}

.featured-project {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 255, 238, 0.25);
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.98), rgba(16, 16, 16, 0.95));
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
}

.featured-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.4);
    color: var(--main-color);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.featured-content h3 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
}

.featured-content p {
    color: #d6d6d6;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.featured-stats {
    border: 1px solid rgba(0, 255, 238, 0.2);
    border-radius: 1.6rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.35);
}

.featured-stats p {
    font-size: 1.5rem;
    color: #d6d6d6;
    margin-bottom: 1.2rem;
}

.featured-stats p:last-child {
    margin-bottom: 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    position: -webkit-sticky;
    position: sticky;
    top: 9.5rem;
    z-index: 4;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.92), rgba(19, 19, 19, 0.72));
    border-radius: 1.6rem;
    width: max-content;
    max-width: 100%;
}

.filter-btn {
    padding: 1rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-color);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.25);
}

.filter-btn.active {
    background: var(--main-color);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(0, 255, 238, 0.45);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two-column layout */
    gap: 3rem; /* Space between items */
    max-width: 1200px; /* Limit container width */
    margin: 0 auto; /* Center container */
    padding: 0 2rem; /* Add padding */
    min-width: 0;
}

.project-box {
    overflow: hidden;
    border-radius: 2rem; /* Rounded corners */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Shadow effect */
    border: 1px solid rgba(0, 255, 238, 0.25);
    background: #101010;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.4s ease;
    min-width: 0;
}

.project-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 255, 238, 0.2);
    will-change: opacity, transform;
}

.project-box img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Cover the container */
    transition: 0.4s ease-in-out; /* Smooth hover effect */
}

.project-box:hover img {
    transform: scale(1.1); /* Scale up on hover */
}

.project-info {
    padding: 2rem;
    background: #101010;
    color: white;
}

.project-tag {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.35);
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project-info h4 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #d8d8d8;
}

.project-info .btn {
    background: var(--main-color); /* Accent background */
    color: black; /* Dark text */
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 2rem; /* Rounded corners */
    transition: 0.3s ease-in-out; /* Smooth hover effect */
}

.project-info .btn:hover {
    background: white; /* White background on hover */
    color: var(--main-color); /* Accent text */
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
}

.project-box.hidden {
    display: none;
}

.project-box.is-filtering-out {
    opacity: 0;
    transform: scale(0.96);
    will-change: opacity, transform;
}

.project-box.is-filtering-in {
    animation: projectFadeIn 0.45s ease both;
    animation-delay: var(--stagger-delay, 0ms);
    will-change: opacity, transform;
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

section.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .project-box {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.js-enabled .project-box.project-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.45s ease var(--stagger-delay, 0ms),
        transform 0.45s ease var(--stagger-delay, 0ms),
        box-shadow 0.4s ease;
}

.contact{
    background-color: var(--bg-color);
    min-height: auto;
    }
    .contact h2{
    margin-bottom: 3rem;
    color: white;
    }
    .contact form{
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
    }
    .contact form.input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    }
    .contact form .input-box input,
.contact form textarea{
width: 100%;
padding: 2.5rem;
font-size: 1.8rem;
color: var(--text-color);
background: var(--second-bg-color);
border-radius: 2rem;
border: 1px solid rgba(0, 255, 238, 0.35);
margin: 1.5rem 0;
resize: none;

}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin-top: 1.2rem;
    font-size: 1.5rem;
    color: #d8d8d8;
    min-height: 2.2rem;
}

.form-status.success {
    color: var(--main-color);
}

.form-status.error {
    color: #ff6b6b;
}
.contact form .btn
{
margin-top: 2rem;
}
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
    text-align: center;
    }
    .footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
    } 
    .footer .social a
        {
        font-size: 25px;
        color: var(--main-color);
        border: 2px solid var(--main-color);
        width: 42px;
        height: 42px;
        line-height: 42px;
        display: inline-block;
        text-align: center;
        border-radius: 50%;
        margin: 0 10px;
        transition: 0.3s ease-in-out;
        }

        .footer .social a i {
            transition: transform 0.3s ease;
        }

        .footer .social a:hover
        {
        transform: scale(1.12) translateY(-6px);
        background-color: var(--main-color);
        color: black;
        box-shadow: 0 0 25px var(--main-color);
        }

        .footer .social a:hover i {
            transform: rotate(-8deg);
        }/* Contact Info Styles */
.footer .contact-info {
    margin: 20px 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

.footer .contact-info p {
    margin: 10px 0;
}

.footer .contact-info a {
    color: var(--main-color);
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.footer .contact-info a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.footer .contact-info i {
    margin-right: 10px;
    color: var(--main-color);
} 
        .footer ul{
            margin-top: 0;
            padding: 0;
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 0;
            text-align: center;
            }
            .footer ul li a{
                color: white;
                border-bottom: 3px solid transparent;
                transition: 0.3s ease-in-out;
                }
                .footer ul li a:hover{
                
                border-bottom: 3px solid var(--main-color);
                }
                .footer ul li {
                display: inline-block;
                padding: 15px;
                }
                .footer .copyright{
                margin-top: 50px;
                text-align: center;
                font-size: 16px;
                color: white;
                }
             
                @media (max-width: 1285px) {
                    html {
                        font-size: 55%;
                    }
                }
                
                @media (max-width: 991px) {
                    header {
                        padding: 2rem 3%; 
                    }
                    section {
                        padding: 10rem 3% 2rem;
                    }
                    .testimonials .wrapper {
                        grid-template-columns: repeat(1, 1fr); 
                    }
                    .contact form {
                        flex-direction: column;
                    }
                    .footer {
                        padding: 2rem 3%;
                    }
                    .featured-project {
                        grid-template-columns: 1fr;
                    }
                }
                
                @media (max-width: 895px) {
                    #menu-icon {
                        display: block;
                    }
                    .navbar {
                        position: absolute;
                        top: 100%; /* Position below the header */
                        right: 0; /* Align to the right edge */
                        width: 95%; /* Adjust width as needed */
                        padding: 1rem 3%;
                        background: rgba(0, 0, 0, 0.9); /* Dark background */
                        -webkit-backdrop-filter: blur(20px);
                        backdrop-filter: blur(20px); /* Blur effect */
                        border-bottom-left-radius: 2rem; /* Rounded corners */
                        border-left: 2px solid var(--main-color); /* Accent border */
                        border-bottom: 2px solid var(--main-color); /* Accent border */
                        display: none; /* Hidden by default */
                    }
                    .navbar.active {
                        display: block;
                    }
                    .navbar a {
                        display: block;
                        font-size: 2rem;
                        margin: 2rem 0; 
                        color: white;
                    }
                    .home {
                        flex-direction: column-reverse; /* Stack content vertically */
                       margin:5rem 4rem;
                    }
                    .home-content h3 {
                        font-size: 2.6rem;
                        min-height: 3.8rem;
                        width: 100%;
                        display: flex;
                        justify-content: center;
                    }
                    .home-content h1 {
                        font-size: 8rem;
                        margin-top: 3rem;
                    }
                    .home-content p {
                        max-width: 600px;
                        margin: 0 auto;
                    }
                    .home-img img {
                        width: 56vw;
                    }
                    .services-container {
                        grid-template-columns: 1fr;
                        padding: 0 1.5rem;
                        gap: 2rem;
                    }

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

                    .service-icon {
                        width: 5rem;
                        height: 5rem;
                        min-width: 5rem;
                        font-size: 2.4rem;
                    }
                    .projects-container {
                        grid-template-columns: 1fr;
                    }
                    .project-filters {
                        justify-content: center;
                        width: max-content;
                        max-width: 100%;
                        top: 8.6rem;
                    }
                    .text-animation {
                        font-size: 2.6rem;
                        min-width: 22ch;
                    }
                }

@media (max-width: 640px) {
    .text-animation {
        font-size: 2.3rem;
        min-width: 21ch;
    }
    .home-content h3 {
        min-height: 3.4rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.8rem;
        border-radius: 1.8rem;
        gap: 1.5rem;
    }

    .service-info h3 {
        font-size: 1.9rem;
    }

    .service-info p {
        font-size: 1.4rem;
    }

    .service-list li {
        font-size: 1.3rem;
    }

    .services-cta p {
        font-size: 1.7rem;
    }
}

@media (max-width: 420px) {
    .text-animation {
        font-size: 2rem;
        min-width: 20ch;
    }
    .home-content h3 {
        min-height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    section.scroll-reveal,
    section.scroll-reveal.in-view {
        opacity: 1;
        transform: none;
    }
}

/* Writeups Section */
.writeups {
    background: var(--second-bg-color);
    padding: 8rem 0 8rem;
}

.writeups h2 { margin-bottom: 1.5rem; text-align:center; }
.writeups-intro { max-width: 900px; margin: 0 auto 3rem; padding: 0 2rem; font-size:1.6rem; color:#d8d8d8; text-align:center; }

.writeup-filters { display:flex; justify-content:center; flex-wrap:wrap; gap:1rem; margin:0 auto 3rem; padding:0 2rem; width:max-content; background:linear-gradient(180deg, rgba(19,19,19,0.92), rgba(19,19,19,0.72)); border-radius:1.2rem; border:1px solid rgba(0,255,238,0.06); position:sticky; top:9.5rem; z-index:4; }

.writeups-container { display:grid; grid-template-columns: repeat(2,1fr); gap:2.5rem; max-width:1200px; margin:0 auto; padding:0 2rem; }

.writeup-card { background:#101010; border-radius:1.6rem; overflow:hidden; border:1px solid rgba(0,255,238,0.14); display:flex; flex-direction:column; transition: transform 0.3s ease, box-shadow 0.3s ease; }

.writeup-card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px rgba(0,0,0,0.35), 0 0 25px rgba(0,255,238,0.12); }

.writeup-card img { height:180px; width:100%; object-fit:cover; display:block; }

.writeup-info { padding:1.8rem; }

.writeup-tag { display:inline-block; margin-bottom:0.8rem; padding:0.35rem 0.9rem; border-radius:999px; border:1px solid rgba(0,255,238,0.24); color:var(--main-color); font-weight:700; font-size:1.1rem; text-transform:uppercase; }

.writeup-info h4 { font-size:2.1rem; margin:0.6rem 0 1rem; color:#fff; }

.writeup-info p { color:#d6d6d6; font-size:1.45rem; margin-bottom:1rem; line-height:1.6; }

.writeup-meta { display:flex; flex-wrap:wrap; gap:0.6rem; margin-bottom:1rem; }

.writeup-meta .meta { background:rgba(0,255,238,0.04); border:1px solid rgba(0,255,238,0.12); color:#cffff6; padding:0.4rem 0.8rem; border-radius:999px; font-size:1.2rem; }

.writeup-card .btn { align-self:start; }

.writeup-card.hidden { display:none; }

.writeup-card.is-filtering-out { opacity:0; transform:scale(0.96); }

.writeup-card.is-filtering-in { animation: projectFadeIn 0.45s ease both; animation-delay: var(--stagger-delay, 0ms); }

@media (max-width: 895px) { .writeups-container { grid-template-columns: 1fr; } .writeup-filters { top:8.6rem; } }

/* =========================================================
   v2 — Cybersecurity Research Platform Extensions
   Sections: skip link, hero refinements, metrics,
   latest research, reports, footer grid
   All additions preserve the existing neon/dark aesthetic.
   ========================================================= */

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.8rem 1.4rem;
    background: var(--main-color);
    color: #000;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 100;
    transition: top 0.25s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Generic section intro reused across new sections */
.section-intro {
    max-width: 900px;
    margin: 0 auto 4.5rem;
    padding: 0 2rem;
    font-size: 1.65rem;
    line-height: 1.8;
    text-align: center;
    color: #d4d4d4;
}

.section-head {
    text-align: center;
}

/* ---------- Hero refinements ---------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.35);
    background: rgba(0, 255, 238, 0.06);
    color: var(--main-color);
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-eyebrow i {
    font-size: 1.5rem;
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0 0.5rem;
}

.stack-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.22);
    background: rgba(0, 255, 238, 0.05);
    color: #dffefd;
    font-size: 1.25rem;
    line-height: 1;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.stack-pill:hover {
    border-color: var(--main-color);
    background: rgba(0, 255, 238, 0.12);
    transform: translateY(-2px);
}

.stack-pill i {
    color: var(--main-color);
    font-size: 1.4rem;
}

/* Sharper button hover for the secondary "Read Research" pair */
.btn-group a:nth-of-type(2):hover {
    transform: scale(1.05);
}

/* ---------- Metrics section ---------- */
.metrics {
    background: var(--bg-color);
    padding: 10rem 0 8rem;
}

.metrics .heading {
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.metric-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.95), rgba(19, 19, 19, 0.98));
    border: 1px solid rgba(0, 255, 238, 0.22);
    border-radius: 1.6rem;
    padding: 2.6rem 1.8rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top, rgba(0, 255, 238, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.metric-card:hover {
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 255, 238, 0.18);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    font-size: 3.4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(0, 255, 238, 0.45);
    display: inline-block;
}

.metric-value {
    display: block;
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: 4.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(0, 255, 238, 0.25);
}

.metric-label {
    display: block;
    font-size: 1.35rem;
    color: #cfcfcf;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ---------- Latest Research section ---------- */
.latest-research {
    background: var(--bg-color);
    padding: 10rem 0 8rem;
}

.latest-research .heading {
    margin-bottom: 1.5rem;
}

.latest-research-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.latest-card {
    position: relative;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.95), rgba(19, 19, 19, 0.98));
    border: 1px solid rgba(0, 255, 238, 0.18);
    border-radius: 1.6rem;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.latest-card:hover,
.latest-card:focus-visible {
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 255, 238, 0.18);
}

.latest-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.latest-card-tag {
    color: var(--main-color);
    border: 1px solid rgba(0, 255, 238, 0.35);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 255, 238, 0.06);
}

.latest-card-date {
    color: #9aa3a3;
}

.latest-card h3 {
    font-size: 1.95rem;
    line-height: 1.35;
    color: #fff;
    margin: 0;
}

.latest-card p {
    color: #cfcfcf;
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
}

.latest-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(0, 255, 238, 0.2);
}

.latest-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.latest-card-meta span {
    font-size: 1.1rem;
    color: #cffff6;
    background: rgba(0, 255, 238, 0.05);
    border: 1px solid rgba(0, 255, 238, 0.15);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.latest-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.latest-card-cta i {
    transition: transform 0.25s ease;
}

.latest-card:hover .latest-card-cta i {
    transform: translateX(4px);
}

.latest-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9aa3a3;
    font-size: 1.5rem;
    padding: 3rem 1rem;
}

.latest-research-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-outline i {
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.btn-outline:hover i {
    transform: translateX(4px);
}

/* ---------- Reports section ---------- */
.reports {
    background: var(--second-bg-color);
    padding: 10rem 0 8rem;
}

.reports .heading {
    margin-bottom: 1.5rem;
}

.reports-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.report-card {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(16, 16, 16, 0.95));
    border: 1px solid rgba(0, 255, 238, 0.2);
    border-radius: 1.6rem;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 255, 238, 0.18);
}

.report-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid currentColor;
    background: rgba(0, 0, 0, 0.35);
}

.report-tag--critical { color: #ff5577; }
.report-tag--high     { color: #ff9b57; }
.report-tag--medium   { color: #ffd66e; }
.report-tag--low      { color: #6effb6; }

.report-type {
    color: #9aa3a3;
}

.report-card h3 {
    font-size: 1.95rem;
    line-height: 1.35;
    color: #fff;
    margin: 0;
}

.report-card p {
    color: #cfcfcf;
    font-size: 1.4rem;
    line-height: 1.65;
    margin: 0;
}

.report-meta {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    border-top: 1px dashed rgba(0, 255, 238, 0.2);
    border-bottom: 1px dashed rgba(0, 255, 238, 0.2);
}

.report-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: #cfcfcf;
}

.report-meta li i {
    color: var(--main-color);
    font-size: 1.45rem;
}

.report-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.reports-note {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 1.5rem 2rem;
    border: 1px dashed rgba(0, 255, 238, 0.3);
    border-radius: 1.2rem;
    background: rgba(0, 255, 238, 0.03);
    text-align: center;
    color: #cfcfcf;
    font-size: 1.4rem;
    line-height: 1.7;
}

.reports-note i {
    color: var(--main-color);
    font-size: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

/* ---------- Footer redesigned for crawlability ---------- */
.footer {
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 2.6rem;
}

.footer-brand p {
    font-size: 1.4rem;
    color: #cfcfcf;
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 400px;
}

.footer-brand .social {
    display: flex;
    gap: 1rem;
    padding: 0;
    text-align: left;
}

.footer-nav h3,
.footer-contact h3 {
    color: var(--main-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.4rem;
    font-weight: 700;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-nav ul li,
.footer-contact ul li {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.4rem;
    color: #cfcfcf;
    line-height: 1.6;
}

.footer-nav ul li a {
    color: #d8d8d8;
    transition: color 0.25s ease, padding-left 0.25s ease;
    border-bottom: none;
}

.footer-nav ul li a:hover {
    color: var(--main-color);
    padding-left: 0.6rem;
    border-bottom: none;
}

.footer-contact ul li a {
    color: #d8d8d8;
    transition: color 0.25s ease;
}

.footer-contact ul li a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.footer-contact ul li i {
    color: var(--main-color);
    margin-right: 0.6rem;
    font-size: 1.6rem;
    vertical-align: middle;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2.2rem 2rem 0;
    border-top: 1px solid rgba(0, 255, 238, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: #9aa3a3;
}

.footer-bottom .copyright {
    margin: 0;
    color: #cfcfcf;
    font-size: 1.4rem;
    text-align: left;
}

.footer-meta {
    margin: 0;
    color: #9aa3a3;
}

.footer-meta a {
    color: #cfcfcf;
    margin: 0 0.3rem;
    transition: color 0.25s ease;
}

.footer-meta a:hover {
    color: var(--main-color);
}

/* ---------- Tweaks: hero stack pill colors are not too noisy on mobile ---------- */
@media (max-width: 1100px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .latest-research-container,
    .reports-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 895px) {
    .hero-eyebrow {
        align-self: center;
    }
    .hero-stack {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .metrics,
    .latest-research,
    .reports {
        padding: 8rem 0 6rem;
    }
    .metric-value {
        font-size: 3.4rem;
    }
    .metric-icon {
        font-size: 2.8rem;
    }
    .metrics-grid,
    .latest-research-container,
    .reports-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand .social,
    .footer-nav ul,
    .footer-contact ul,
    .footer-brand p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-brand .social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom .copyright {
        text-align: center;
    }
}

/* Reduce-motion safety for new effects */
@media (prefers-reduced-motion: reduce) {
    .metric-card,
    .latest-card,
    .report-card,
    .stack-pill {
        transition: none;
    }
    .metric-card::before {
        display: none;
    }
}

/* =========================================================
   Writeup article pages (used in /writeups/*.html)
   ========================================================= */

.article-page {
    padding-top: 14rem;
    padding-bottom: 8rem;
}

.article-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumbs {
    font-size: 1.3rem;
    color: #9aa3a3;
    margin-bottom: 2rem;
    font-family: "JetBrains Mono", "Poppins", monospace;
    letter-spacing: 0.04em;
}

.breadcrumbs a {
    color: var(--main-color);
    transition: opacity 0.25s ease;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumbs .sep {
    margin: 0 0.6rem;
    color: #555;
}

.article {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.95), rgba(19, 19, 19, 0.98));
    border: 1px solid rgba(0, 255, 238, 0.18);
    border-radius: 1.6rem;
    padding: 4rem 3.6rem;
}

.article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.35);
    background: rgba(0, 255, 238, 0.06);
    color: var(--main-color);
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.article h1 {
    font-size: clamp(3rem, 5vw, 4.4rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #fff;
}

.article-lead {
    font-size: 1.7rem;
    line-height: 1.7;
    color: #d4d4d4;
    margin-bottom: 2.4rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px dashed rgba(0, 255, 238, 0.2);
}

.article-meta span {
    background: rgba(0, 255, 238, 0.05);
    border: 1px solid rgba(0, 255, 238, 0.18);
    color: #cffff6;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-family: "JetBrains Mono", "Poppins", monospace;
    letter-spacing: 0.04em;
}

.article section {
    min-height: auto;
    padding: 0;
    margin-bottom: 2.6rem;
}

.article h2 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(0, 255, 238, 0.25);
    letter-spacing: 0.02em;
    text-transform: none;
    text-align: left;
}

.article h3 {
    font-size: 1.9rem;
    color: #fff;
    margin: 1.6rem 0 0.8rem;
}

.article p {
    font-size: 1.55rem;
    line-height: 1.8;
    color: #d4d4d4;
    margin-bottom: 1.4rem;
}

.article ul,
.article ol {
    margin: 0 0 1.6rem 2rem;
    padding-left: 1.4rem;
}

.article li {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #d4d4d4;
    margin-bottom: 0.6rem;
}

.article ul li::marker {
    color: var(--main-color);
}

.article ol li::marker {
    color: var(--main-color);
    font-weight: 700;
}

.article code {
    font-family: "JetBrains Mono", "Poppins", monospace;
    background: rgba(0, 255, 238, 0.08);
    border: 1px solid rgba(0, 255, 238, 0.18);
    color: #cffff6;
    padding: 0.15rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 1.4rem;
}

.article pre {
    background: #050505;
    border: 1px solid rgba(0, 255, 238, 0.2);
    border-radius: 1rem;
    padding: 1.6rem 1.8rem;
    overflow-x: auto;
    margin: 0 0 1.6rem;
    box-shadow: 0 0 20px rgba(0, 255, 238, 0.05) inset;
}

.article pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #c8f7f1;
    font-size: 1.35rem;
    line-height: 1.65;
}

.article-aside {
    margin: 2rem 0;
    padding: 1.4rem 1.8rem;
    border-left: 4px solid var(--main-color);
    background: rgba(0, 255, 238, 0.04);
    border-radius: 0.8rem;
    color: #d4d4d4;
    font-size: 1.45rem;
    line-height: 1.7;
}

.article-aside i {
    color: var(--main-color);
    margin-right: 0.4rem;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2.4rem;
    border-top: 1px dashed rgba(0, 255, 238, 0.2);
}

@media (max-width: 640px) {
    .article {
        padding: 2.6rem 1.8rem;
    }
    .article-page {
        padding-top: 12rem;
    }
}

/* =========================================================
   Writeup search + tag controls + tag landing pages
   ========================================================= */

.writeup-controls {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    grid-template-areas:
        "search tags-link"
        "filters filters";
    gap: 1.4rem 1.6rem;
    align-items: center;
}

.search-box {
    grid-area: search;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 238, 0.25);
    border-radius: 999px;
    padding: 0 1.4rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box:focus-within {
    border-color: var(--main-color);
    box-shadow: 0 0 18px rgba(0, 255, 238, 0.25);
}

.search-box > i {
    color: var(--main-color);
    font-size: 1.9rem;
    margin-right: 0.8rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-family: inherit;
    padding: 1.2rem 0;
    outline: none;
    min-width: 0;
}

.search-box input::placeholder {
    color: #7d8989;
}

.search-clear {
    background: transparent;
    border: none;
    color: #9aa3a3;
    font-size: 2rem;
    line-height: 1;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: var(--main-color);
}

.search-clear[hidden] {
    display: none;
}

.writeup-filters {
    grid-area: filters;
    position: relative;
    top: 0;
    margin: 0 auto;
}

.writeup-tags-link {
    grid-area: tags-link;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.3);
    background: rgba(0, 255, 238, 0.04);
    color: var(--main-color);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.writeup-tags-link:hover {
    background: rgba(0, 255, 238, 0.12);
    border-color: var(--main-color);
    transform: translateY(-2px);
}

.writeup-tags-link i {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .writeup-controls {
        grid-template-columns: 1fr;
        grid-template-areas:
            "search"
            "filters"
            "tags-link";
        text-align: center;
    }
    .writeup-tags-link {
        justify-content: center;
        margin: 0 auto;
    }
}

/* Tag landing pages */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-color);
    font-size: 1.45rem;
    font-weight: 500;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.tag-pill:hover,
.tag-pill:focus-visible {
    border-color: var(--main-color);
    color: var(--main-color);
    background: rgba(0, 255, 238, 0.06);
    transform: translateY(-2px);
}

.tag-pill span {
    display: inline-block;
    background: rgba(0, 255, 238, 0.12);
    color: var(--main-color);
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    min-width: 2rem;
    text-align: center;
}

/* search-hidden (search.js) — kept distinct from category .hidden so
   the two filters compose cleanly. */
.writeup-card.search-hidden {
    display: none;
}

/* =========================================================
   v3 — CLS reductions (Cumulative Layout Shift)
   Reserve container height for dynamically-rendered content
   so the writeups, latest-research, and reports grids do not
   collapse-and-grow when JS replaces their initial state.
   The `.is-loading` class is added in HTML and removed by
   script.js after the new cards paint, so filtering still
   shrinks the grid normally.
   ========================================================= */
.writeups-container.is-loading      { min-height: 1950px; }
.latest-research-container.is-loading { min-height: 360px; }
.reports-container.is-loading       { min-height: 380px; }

@media (max-width: 991px) {
    .latest-research-container.is-loading { min-height: 720px; }
    .reports-container.is-loading       { min-height: 760px; }
}

@media (max-width: 895px) {
    .writeups-container.is-loading { min-height: 3400px; }
}

@media (max-width: 768px) {
    .latest-research-container.is-loading { min-height: 1060px; }
    .reports-container.is-loading       { min-height: 1100px; }
}

/* Stop the metric counters from shifting when JetBrains Mono
   finally loads. Mono digits + tabular-nums means each digit
   has the same advance width; line-height: 1 pins the box
   height regardless of which font is currently rendering. */
.metric-value {
    min-height: 1em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   v4 — Hero terminal prompt
   Replaces the friendly "Hi, It's" greeting with a `$ whoami`
   prompt above the name, with a blinking cursor. Mono font +
   neon glow = clear cybersecurity identity without altering
   the rest of the hero layout.
   ========================================================= */
.hero-prompt {
    display: block;
    font-family: "JetBrains Mono", "Poppins", monospace;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 600;
    color: var(--main-color);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 8px rgba(0, 255, 238, 0.35);
}

.hero-prompt-sigil {
    color: #5dd9c8;
    opacity: 0.7;
    margin-right: 0.25em;
    font-weight: 500;
}

.hero-cursor {
    display: inline-block;
    margin-left: 0.1em;
    color: var(--main-color);
    animation: terminalCursorBlink 1.05s steps(1) infinite;
}

@keyframes terminalCursorBlink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cursor { animation: none; opacity: 1; }
}
