/* --- VARIABLES & BASE STYLES --- */
:root {
    --color-black: #050505;
    --color-red: #d30a2c;
    --color-red-dark: #a10822;
    --color-text: #e0e0e0;
    --color-text-dark: #888;
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.7;
    cursor: auto;
    overflow-x: hidden;
    text-align: left;
}

/* Class to prevent scrolling when mobile menu is open */
body.mobile-menu-active {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --- 3D BACKGROUND CANVAS --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


/* --- SITE HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000; /* Increased z-index */
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(211, 10, 44, 0.2);
    transition: top 0.3s ease-in-out;
}
.header-container {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo {
    display: flex;
    align-items: center;
}
.site-header .logo img {
    height: 140px; /* Slightly larger logo */
}

/* --- Main Navigation (Desktop) --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10rem; /* Adjusted gap for new item */
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem; /* Adjusted gap */
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-primary); /* Using primary font for consistency */
    text-transform: uppercase;
    font-size: 1rem; /* Adjusted font size */
    font-weight: 700; /* Bolder font */
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--color-red);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}
.social-icons a {
    color: var(--color-text);
    font-size: 1.1rem; /* Slightly larger icons */
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: var(--color-red);
    transform: scale(1.2);
}

/* --- Mobile Navigation Toggle --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001; /* Above the header */
    transition: color 0.3s ease;
}
.mobile-nav-toggle:hover {
    color: var(--color-red);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
}
#about-hero, #services-hero, #packages-hero, #portfolio-hero {
    min-height: 70vh;
}
.hero-content {
    text-align: center;
}
.hero-slogan {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    position: relative;
}
.hero-slogan:last-child span {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem;
    color: var(--color-text);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CONTENT & SERVICES --- */
.content-section {
    padding: 6rem 0;
}
#contact-page.content-section, #philosophy, #detailed-services, #pricing, #portfolio-grid-section, #team-founder, #team-members {
    padding-top: 4rem; /* Reduced padding to bring it closer to the filter bar */
}
#philosophy {
    padding-bottom: 6rem;
}
#featured-work {
    padding-bottom: 6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--color-red);
}
.text-center { text-align: center; }
.text-center .hero-subtitle { margin-left: auto; margin-right: auto; }
.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.text-block h3 {
    font-size: 1.5rem;
    color: var(--color-red);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.visual-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    border: 1px solid rgba(211, 10, 44, 0.3);
    box-shadow: 0 0 30px rgba(211, 10, 44, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(211, 10, 44, 0.2);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(211, 10, 44, 0.2), transparent 40%);
    transform: scale(0);
    transition: transform 0.5s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(211, 10, 44, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.service-card:hover::before {
    transform: scale(1);
}
.service-icon {
    font-size: 3rem;
    color: var(--color-red);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1);
}
.service-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

/* --- PORTFOLIO FILTER BUTTONS (Reverted Design) --- */
.portfolio-filter-section {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid rgba(211, 10, 44, 0.4);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

.filter-btn.active {
    background-color: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(211, 10, 44, 0.5);
}


/* --- PORTFOLIO STYLES --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
.portfolio-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(211, 10, 44, 0.2);
    border-radius: 8px;
    overflow: hidden;
    /* Updated transition for filtering */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: var(--color-red);
}

/* This class will be used by JS to hide/show items */
.portfolio-card.hidden {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.portfolio-thumbnail {
    position: relative;
}
.portfolio-thumbnail img {
    width: 100%;
    display: block;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    background-color: rgba(211, 10, 44, 0.8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
}
.portfolio-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.play-icon i {
    margin-left: 5px; /* Nudge icon to be visually centered */
}
.portfolio-info {
    padding: 1.5rem;
}
.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.25rem;
}
.portfolio-client {
    color: var(--color-red);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.portfolio-description {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.portfolio-tags span {
    background-color: #222;
    color: var(--color-text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* --- VIDEO MODAL STYLES --- */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.video-modal.is-visible {
    display: flex;
}
.video-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
}
.video-modal-close {
    position: absolute;
    top: -15px;
    right: 15px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}
.video-modal-close:hover,
.video-modal-close:focus {
    color: var(--color-red);
    text-decoration: none;
}
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-red);
}


/* --- CONTACT FORM STYLES --- */
.contact-form {
    max-width: 800px;
    margin: 3rem auto 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.cyber-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}
.cyber-input {
    width: 100%;
    background: #111;
    border: 1px solid rgba(211, 10, 44, 0.3);
    color: #e0e0e0;
    padding: 15px 20px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0; /* Sharp edges */
}
.cyber-input:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 15px rgba(211, 10, 44, 0.5);
}
.cyber-input-wrapper::before, .cyber-input-wrapper::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--color-red);
    border-style: solid;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.cyber-input-wrapper::before {
    top: -5px;
    left: -5px;
    border-width: 2px 0 0 2px;
}
.cyber-input-wrapper::after {
    bottom: -5px;
    right: -5px;
    border-width: 0 2px 2px 0;
}
.cyber-input-wrapper:focus-within::before,
.cyber-input-wrapper:focus-within::after,
.cyber-input-wrapper:hover::before,
.cyber-input-wrapper:hover::after {
    opacity: 1;
}
textarea.cyber-input {
    min-height: 150px;
    resize: vertical;
}

/* --- ABOUT PAGE STYLES --- */
.component-section {
    padding: 4rem 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.circuit-panel {
    position: relative;
    background-color: #111;
    border: 1px solid #444;
    padding: 2.5rem;
    overflow: hidden;
}
.circuit-panel-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}
.circuit-panel .trace {
    stroke: var(--color-red);
    stroke-width: 1;
    fill: none;
}
.circuit-panel .node {
    fill: var(--color-red);
}
.circuit-panel-content {
    position: relative;
    z-index: 1;
}
.circuit-panel-content .section-title {
    font-size: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.team-card {
    background-color: #111;
    border: 1px solid rgba(211, 10, 44, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.team-card-img-wrapper {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    position: relative;
}
.team-card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(211, 10, 44, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.team-card:hover .team-card-img-wrapper::after {
    opacity: 1;
}
.team-card img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}
.team-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.team-card-info {
    padding: 1.5rem;
}
.team-member-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.team-member-title {
    color: var(--color-red);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.team-member-bio {
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

/* --- FOUNDER CARD STYLES --- */
.founder-card {
    grid-column: 1 / -1; /* Make it span the full width of the grid */
    justify-self: center; /* Center the card within the grid row */
    max-width: 960px; /* Set a max-width to reduce its size */
    width: 100%; /* Ensure it's responsive up to its max-width */
    display: grid;
    grid-template-columns: 1fr 2fr; /* Image on left, info on right */
    gap: 2.5rem;
    text-align: left;
    border-color: var(--color-red);
    box-shadow: 0 0 25px rgba(211, 10, 44, 0.3), 0 0 40px rgba(211, 10, 44, 0.2) inset;
    position: relative;
    background: #080808; /* Slightly different background */
}

.founder-card .team-card-img-wrapper {
    clip-path: none; /* Override the default clip-path */
    height: 100%;
    position: relative;
}

.founder-card .team-card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(211, 10, 44, 0.3), rgba(211, 10, 44, 0.1));
    opacity: 1;
}

.founder-card .team-card-img-wrapper img {
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
}

.founder-card:hover .team-card-img-wrapper img {
    filter: grayscale(0%);
}

.founder-card .team-card-info {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-card .team-member-name {
    font-size: 2.5rem;
    color: var(--color-red);
}

.founder-card .team-member-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.founder-card .team-member-bio {
    font-size: 1rem;
    color: var(--color-text);
    max-width: 90%;
    margin-bottom: 2rem;
}

.founder-socials {
    display: flex;
    gap: 1.5rem;
}

.founder-socials a {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder-socials a:hover {
    color: var(--color-red);
    transform: translateY(-3px) scale(1.05);
}

/* Stunning glare effect */
.founder-card .founder-card-glare {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 1;
}

.founder-card:hover .founder-card-glare {
    left: 150%;
}

/* --- SERVICES PAGE STYLES --- */
.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}
.service-detail-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(211, 10, 44, 0.2);
    transition: all 0.4s ease;
}
.service-detail-card:hover {
    border-color: var(--color-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(211, 10, 44, 0.1);
}
.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #111;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(211, 10, 44, 0.2);
}
.service-detail-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
}
.service-detail-body {
    padding: 2rem;
}
.service-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}
.service-features li {
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.service-features .fa-check-circle {
    color: var(--color-red);
}

/* --- PRICING PAGE STYLES --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.pricing-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(211, 10, 44, 0.2);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    border-color: var(--color-red);
    transform: scale(1.05);
    z-index: 10;
}
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-red);
    box-shadow: 0 15px 50px rgba(211, 10, 44, 0.15);
}
.featured-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--color-red);
    color: var(--color-black);
    padding: 5px 30px;
    font-family: var(--font-display);
    font-weight: bold;
    transform: rotate(45deg);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.pricing-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(211, 10, 44, 0.2);
}
.package-name {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
}
.package-description {
    color: var(--color-text-dark);
    margin-top: 0.5rem;
    min-height: 40px;
}
.package-price {
    margin-top: 1.5rem;
}
.price-tag {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-red);
    font-weight: bold;
}
.pricing-body {
    padding: 2rem;
    flex-grow: 1;
}
.package-features {
    list-style: none;
    padding: 0;
    text-align: left;
}
.package-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.package-features .fa-check { color: var(--color-red); }
.package-features .fa-times { color: #444; }
.pricing-footer {
    padding: 2rem;
    border-top: 1px solid rgba(211, 10, 44, 0.2);
}


/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 4rem 0 2rem;
    color: var(--color-text-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

/* --- ANIMATIONS --- */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}
.hero-subtitle { animation-delay: 0.6s; }
.cyber-button { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- PARTNERS SECTION --- */
.partners-grid {
    display: grid;
    /* Adjusted minmax to accommodate larger logo cards */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    margin: 3rem 0 0 0;
}

.partner-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Increased width and height for the logo card */
    width: 200px;
    height: 120px;
    background-color: #0a0a0a; /* Themed background color */
    border: 1px solid rgba(211, 10, 44, 0.3); /* Themed border */
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures logo fits without distortion */
    filter: none; /* Logos are full color by default */
    transition: all 0.3s ease;
}

.partner-logo-wrapper:hover {
    border-color: var(--color-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(211, 10, 44, 0.15);
}

.partner-logo-wrapper:hover .partner-logo {
    transform: scale(1.1);
}


/* --- PARTNERS TOOLTIP STYLES --- */
.partner-logo-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%; /* Adjusted for new wrapper size */
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--color-red);
    color: var(--color-black);
    padding: 10px 15px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    width: max-content;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.partner-logo-wrapper::before {
    content: '';
    position: absolute;
    bottom: 115%; /* Match the ::after pseudo-element */
    left: 50%;
    transform: translateX(-50%) translateY(100%) scale(0.9);
    border: 8px solid transparent;
    border-top-color: var(--color-red);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 11;
}

/* Show on hover for desktop */
.partner-logo-wrapper:hover::after,
.partner-logo-wrapper:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Show on click for touch devices (toggled with JS) */
.partner-logo-wrapper.show-tooltip::after,
.partner-logo-wrapper.show-tooltip::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    /* Show the mobile toggle button */
    .mobile-nav-toggle {
        display: block;
    }

    /* Transform the main-nav into a slide-out panel */
    .main-nav {
        position: fixed;
        top: 0;
        /* Start off-screen to the left for LTR */
        left: -100%; 
        width: min(75vw, 350px); /* Responsive width with a max value */
        height: 100vh;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(15px);
        border-right: 1px solid rgba(211, 10, 44, 0.3);
        
        /* Layout for items inside the mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4rem; /* Space between nav links and social icons */
        
        transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999; /* Below the toggle button */
    }

    /* When the menu is open, slide it into view */
    .main-nav.is-open {
        left: 0;
    }

    /* Style the list of links for vertical layout */
    .main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem; /* Even larger font for easy tapping */
    }

    /* Make social icons visible and styled for the mobile menu */
    .social-icons {
        display: flex;
        gap: 2.5rem;
    }
    .social-icons a {
        font-size: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
    
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .founder-card .team-card-img-wrapper {
         /* Re-apply a simpler clip-path for the stacked view */
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }
    .founder-card .team-member-bio {
        margin-left: auto;
        margin-right: auto;
    }
    .founder-socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .content-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .visual-block {
        margin-top: 2rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .hero-slogan {
        font-size: 2.8rem;
    }
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }
    .partner-logo-wrapper {
        width: 140px;
        height: 80px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .detailed-services-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body { cursor: auto; }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .partner-logo-wrapper {
        padding: 0.5rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
/* --- 7. Cyber Data Route --- */
.cyber-route-display {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.cyber-route-display svg {
    width: 100%;
    height: auto;
}
.cyber-route-display .route-path {
    stroke: rgba(211, 10, 44, 0.3);
    stroke-width: 2;
    fill: none;
}
.cyber-route-display .route-flow {
    stroke: #d30a2c;
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 10 20;
    animation: route-flow-animation 1.5s linear infinite;
    filter: drop-shadow(0 0 3px #d30a2c);
}
@keyframes route-flow-animation {
    to { stroke-dashoffset: -30; }
}
.cyber-route-display .node {
    fill: #d30a2c;
    stroke: #ff5577;
    stroke-width: 2;
}
.cyber-route-display .node-label {
    fill: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-anchor: middle;
}
