/* ===================================
   Simply Webs v3 - The Digital Singularity
   =================================== */

:root {
    /* Colors */
    --color-void: #030303;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.6);
    --color-neon-blue: #00f3ff;
    --color-neon-purple: #bc13fe;
    --color-grid: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-hud: 2rem;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor will be added later */
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--color-void);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Disable native scroll */
    overscroll-behavior: none;
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* Increased to be visible over 3D elements */
    pointer-events: none;
}

/* HUD Navigation */
.hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    /* HUD above Menu and Canvas */
    pointer-events: none;
    padding: var(--spacing-hud);
}

.hud-corner {
    position: absolute;
    pointer-events: auto;
}

.top-left {
    top: var(--spacing-hud);
    left: var(--spacing-hud);
}

.top-right {
    top: var(--spacing-hud);
    right: var(--spacing-hud);
}

.bottom-left {
    bottom: var(--spacing-hud);
    left: var(--spacing-hud);
}

.bottom-right {
    bottom: var(--spacing-hud);
    right: var(--spacing-hud);
}

/* Brand */
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-neon-blue);
    font-family: var(--font-display);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-neon-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Menu Trigger */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.menu-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
}

.hamburger {
    width: 30px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: width 0.3s var(--ease-out-expo);
}

.hamburger span:last-child {
    width: 60%;
}

.menu-trigger:hover .hamburger span:last-child {
    width: 100%;
}

/* Coordinates */
.coordinates {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
}

.scroll-line {
    flex: 1;
    height: 1px;
    background: var(--color-text-dim);
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-void);
    background: var(--color-neon-blue);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out-expo);
}

.cta-button:hover {
    background: var(--color-text);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Main Content */
#main-content {
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-hud);
}

.section-header {
    margin-bottom: 4rem;
    padding-left: 10vw;
}

.section-number {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-neon-blue);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Hero */
.hero-content {
    margin-left: 10vw;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 12vw;
    line-height: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.gradient-text {
    background: linear-gradient(to right, var(--color-neon-blue), var(--color-neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Manifesto */
.manifesto {
    position: relative;
    overflow: hidden;
}

.marquee-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) rotate(-5deg);
    white-space: nowrap;
    opacity: 0.1;
    font-family: var(--font-display);
    font-size: 10vw;
    font-weight: 800;
    pointer-events: none;
}

.marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.manifesto-text {
    font-size: clamp(2rem, 4vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.2;
}

.highlight {
    color: var(--color-neon-purple);
    font-style: italic;
}

/* Work Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 15vh;
    padding: 0 10vw;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 5vw;
    text-decoration: none;
    color: var(--color-text);
    position: relative;
}

.project-item.reverse {
    flex-direction: row-reverse;
}

.project-image-wrapper {
    flex: 1.5;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transform: perspective(1000px) rotateY(10deg);
    transition: transform 0.5s var(--ease-out-expo);
}

.project-item.reverse .project-image-wrapper {
    transform: perspective(1000px) rotateY(-10deg);
}

.project-item:hover .project-image-wrapper {
    transform: perspective(1000px) rotateY(0);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.project-item:hover .project-image {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.project-info {
    flex: 1;
    z-index: 2;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-meta span {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-grid);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.project-item:hover .project-meta span {
    border-color: var(--color-neon-blue);
    color: var(--color-neon-blue);
}

/* The Stack */
.stack-list {
    padding: 0 10vw;
    perspective: 1000px;
    /* Enable 3D space */
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-grid);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stack-item:hover {
    padding-left: 2rem;
    border-color: var(--color-neon-purple);
}

.stack-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
}

.stack-tech {
    font-family: 'Courier New', monospace;
    color: var(--color-text-dim);
}

.stack-item:hover .stack-name {
    color: var(--color-neon-purple);
    text-shadow: 2px 2px 0px rgba(188, 19, 254, 0.3);
}

/* Contact */
.contact-title {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.terminal-form {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
}

.form-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-grid);
    padding-bottom: 1rem;
}

.prompt {
    color: var(--color-neon-blue);
}

.terminal-form input {
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1.5rem;
    width: 100%;
    outline: none;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--color-neon-blue);
    color: var(--color-neon-blue);
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--color-neon-blue);
    color: var(--color-void);
}

/* Lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-neon-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    /* Cursor on top of everything */
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    /* mix-blend-mode: difference; Removed for better visibility */
}

.cursor.active {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 243, 255, 0.1);
    border-color: var(--color-neon-purple);
}

/* Swarovski Polish - High Contrast & Sharpness */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure Canvas is background */
#webgl-canvas {
    z-index: -1;
    opacity: 0.6;
    /* Slight dim to make text pop */
}

/* Typography Polish */
.hero-title {
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    letter-spacing: -0.04em;
}

.manifesto-wrapper {
    position: relative;
    padding: 2rem 0;
}

.manifesto-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    /* Restored large size */
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    position: relative;
}

.quote-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    line-height: 0;
    position: absolute;
    top: -1rem;
    left: -4rem;
    color: var(--color-neon-blue);
    opacity: 0.5;
}

.manifesto-signature {
    margin-top: 1rem;
    /* Reduced from 3rem */
    text-align: right;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--color-neon-blue);
    text-transform: uppercase;
    font-style: italic;
    /* Requested italic */
    opacity: 0.9;
}

/* Glassmorphism for HUD */
.hud {
    pointer-events: none;
}

.hud-corner {
    background: rgba(3, 3, 3, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Image Sharpness */
.project-image {
    image-rendering: -webkit-optimize-contrast;
}

/* Fallback for missing fonts */
.brand,
.section-title,
.project-title,
.stack-name {
    font-family: 'Space Grotesk', 'Arial Black', sans-serif;
}

/* Ensure content is visible above canvas */
#main-content {
    position: relative;
    z-index: 10;
    background: transparent;
    /* Ensure no background blocks canvas */
}



/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    /* Menu above Canvas */
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.menu-overlay.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.menu-bg-layer {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(20px);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.active .menu-bg-layer {
    transform: scaleY(1);
}

.menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

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

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text-dim);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.menu-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    color: var(--color-neon-blue);
    -webkit-text-stroke: 0px;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.menu-link:hover {
    -webkit-text-stroke-color: var(--color-neon-blue);
}

.menu-link:hover::before {
    width: 100%;
}

.menu-footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--color-text-dim);
    opacity: 0;
}

.menu-socials {
    display: flex;
    gap: 2rem;
}

.menu-socials a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-socials a:hover {
    color: var(--color-neon-blue);
}

.menu-info {
    display: flex;
    gap: 2rem;
}

/* Team Section */
/* Team Section */
.team {
    /* padding: 0 10vw; Removed to fix header alignment */
    margin-bottom: 10vh;
}

.profile-card {
    margin: 0 10vw;
    /* Added to maintain card layout */
    display: flex;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-grid);
    padding: 3rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.profile-card:hover {
    border-color: var(--color-neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.profile-image-wrapper {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.profile-card:hover .profile-image {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--color-text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.profile-real-name {
    font-size: 1.4rem;
    /* Larger */
    color: #fff;
    font-weight: 700;
    /* Bolder */
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* BOSS MODE */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Subtle glow */
}

.profile-separator {
    color: var(--color-neon-blue);
    font-weight: 300;
    opacity: 0.5;
    font-size: 1.2rem;
    /* Match height */
}

.profile-role {
    font-family: 'Space Grotesk', sans-serif;
    /* Changed from Courier for consistency */
    color: var(--color-neon-blue);
    font-size: 1rem;
    /* Slightly larger */
    letter-spacing: 0.15em;
    font-weight: 500;
    opacity: 1;
    /* Full visibility */
    margin-bottom: 0;
    padding-top: 2px;
    /* Optical alignment */
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-dim);
    border-bottom: 1px solid var(--color-grid);
    padding-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-grid);
    border-radius: 100px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    border-color: var(--color-neon-purple);
    color: var(--color-neon-purple);
    background: rgba(188, 19, 254, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .profile-image-wrapper {
        width: 100%;
        height: 300px;
        flex: auto;
    }

    .profile-name {
        font-size: 2rem;
    }
}

/* Cinematic Polish for CEO Avatar */
.profile-image {
    /* Cinematic Color Grading */
    filter: contrast(1.15) brightness(0.95) saturate(0.9) sepia(0.1);
    mix-blend-mode: normal;
    transition: all 0.5s ease;
    object-position: center 15%;
    /* Adjusted to show full face */
}

.profile-card:hover .profile-image {
    /* "Awakened" state on hover */
    filter: contrast(1.2) brightness(1.1) saturate(1.1) sepia(0);
    transform: scale(1.03);
}

.profile-image-wrapper::after {
    /* Vignette & Atmosphere */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(3, 3, 3, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.profile-glitch-overlay {
    /* Subtle Tech Overlay instead of hard glitch */
    background: linear-gradient(180deg,
            rgba(0, 243, 255, 0) 0%,
            rgba(0, 243, 255, 0.05) 50%,
            rgba(0, 243, 255, 0) 100%);
    background-size: 100% 200%;
    animation: scanline 3s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes scanline {
    0% {
        background-position: 0% -100%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Global Contact Component */
.contact-uplink {
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid var(--color-grid);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.uplink-title {
    color: var(--color-neon-blue);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.uplink-data {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.uplink-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
}

.uplink-item:hover {
    color: var(--color-neon-blue);
    border-color: var(--color-neon-blue);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.uplink-icon {
    font-size: 1.5rem;
}

/* Specific adjustments for About Page */
.team .contact-uplink {
    margin-top: 2rem;
    border-top: none;
    padding: 0;
    align-items: flex-start;
}

.team .uplink-data {
    justify-content: flex-start;
    gap: 1rem;
}

.team .uplink-item {
    font-size: 1rem;
    padding: 0.5rem 0;
    border: none;
}

.team .uplink-item:hover {
    background: transparent;
    box-shadow: none;
    transform: translateX(5px);
}

/* Portfolio Footer override */
.portfolio-footer .contact-uplink {
    margin-top: 0;
    border-top: none;
}

/* 3D Contact Uplink Styles */
.contact-uplink {
    perspective: 1000px;
}

.uplink-item {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.uplink-item:hover {
    transform: translateZ(20px) rotateX(10deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 243, 255, 0.2),
        inset 0 0 20px rgba(0, 243, 255, 0.1);
    border-color: var(--color-neon-blue);
    background: rgba(0, 243, 255, 0.05);
}

.uplink-item::before {
    /* Holographic Glint */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.uplink-item:hover::before {
    left: 150%;
    transition: 0.7s;
}

.uplink-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.uplink-item:hover .uplink-icon {
    transform: translateZ(30px) scale(1.2);
    color: var(--color-neon-purple);
    text-shadow: 0 0 10px var(--color-neon-purple);
}

/* Footer Specific 3D */
.portfolio-footer .uplink-item,
.contact-footer .uplink-item {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 4px;
}

/* Minimalist Contact Footer */
.contact-uplink {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    background: transparent;
    perspective: none;
    /* Remove 3D */
}

.uplink-title {
    color: var(--color-text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.uplink-data {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.uplink-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;

    /* Reset 3D properties */
    transform: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.uplink-item:hover {
    color: var(--color-neon-blue);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) !important;
}

.uplink-item::before {
    display: none;
    /* Remove holographic glint */
}

.uplink-icon {
    font-size: 1.1rem;
    color: var(--color-neon-blue);
    transition: transform 0.3s ease;
}

.uplink-item:hover .uplink-icon {
    transform: scale(1.1);
    text-shadow: none;
}

/* Footer Specific Overrides */
.portfolio-footer,
.contact-footer {
    padding: 3rem 0 !important;
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.portfolio-footer .contact-uplink,
.contact-footer .contact-uplink {
    margin-top: 0;
    border-top: none;
    padding: 0;
}

/* Copyright Footer */
.copyright-footer {
    padding: 0 0 2rem 0;
    /* Reduced top padding */
    text-align: center;
    border-top: none;
    margin-top: -1rem;
    /* Pull closer to contact */
}

.copyright-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    /* Balanced size */
    color: rgba(255, 255, 255, 0.9);
    /* Bright but not blinding */
    letter-spacing: 0.2em;
    opacity: 1;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
    /* Subtle, elegant glow */
    font-weight: normal;
}

/* Footer Enhancements */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.social-link {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    color: var(--color-neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

/* Spacing Fixes */
.section.contact {
    padding-bottom: 2rem !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
}

.contact-uplink {
    margin-bottom: 0 !important;
}

/* Contact Page Specifics */
.contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    /* Space for HUD */
}

.contact-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.hero-title.small {
    font-size: 4rem;
}

/* Holo Terminal 3D */
.holo-terminal-container {
    perspective: 1000px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.holo-terminal {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--color-neon-blue);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.holo-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%,
            rgba(0, 243, 255, 0.05) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding-bottom: 1rem;
}

.terminal-title {
    font-family: 'Courier New', monospace;
    color: var(--color-neon-blue);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.control:nth-child(1) {
    background: #ff5f56;
}

.control:nth-child(2) {
    background: #ffbd2e;
}

.control:nth-child(3) {
    background: #27c93f;
}

/* Form Styles */
.holo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    ``` padding: 0.5rem 0;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-neon-blue);
    box-shadow: 0 10px 20px -10px rgba(0, 243, 255, 0.1);
}

.submit-btn {
    margin-top: 1rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--color-neon-blue);
    color: var(--color-neon-blue);
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--color-neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--color-neon-blue);
}

.terminal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: var(--color-text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: rgba(0, 243, 255, 0.5);
opacity: 0.5;
animation: scan 3s linear infinite;
pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ===================================
   Mobile Responsiveness
   =================================== */

@media (max-width: 768px) {
    :root {
        --spacing-hud: 1rem;
    }

    .cursor {
        display: none !important;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 15vw;
        line-height: 0.9;
    }

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

    .manifesto-text {
        font-size: 1.25rem;
        padding: 0 1rem;
    }

    .stack-name {
        font-size: 1.5rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    /* Layout Adjustments */
    .section-header,
    .hero-content,
    .projects-container,
    .stack-list,
    .team {
        padding-left: 5vw;
        padding-right: 5vw;
        margin-left: 0;
        /* Reset margins */
    }

    .hero-content {
        margin-left: 0;
    }

    .section-header {
        padding-left: 5vw;
    }

    /* HUD Adjustments */
    .hud {
        padding: 1rem;
    }

    .hud-corner {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .brand {
        font-size: 1rem;
    }

    .status-text {
        display: none;
        /* Hide status text to save space */
    }

    .scroll-indicator {
        display: none;
        /* Hide scroll indicator */
    }

    .coordinates {
        display: none;
        /* Hide coordinates */
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Portfolio Adjustments */
    .projects-container {
        gap: 10vh;
    }

    .project-item,
    .project-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .project-image-wrapper {
        width: 100%;
        height: 300px;
        /* Fixed height for mobile */
        transform: none !important;
        /* Disable 3D transform on mobile */
    }

    .project-item:hover .project-image-wrapper {
        transform: none !important;
    }

    .project-info {
        width: 100%;
        text-align: left;
    }

    /* Stack Adjustments */
    .stack-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 2rem 0;
    }

    .stack-item:hover {
        padding-left: 0;
        /* Disable hover shift */
    }

    /* Team Adjustments */
    .profile-card {
        margin: 0;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .profile-image-wrapper {
        width: 100%;
        height: 250px;
        flex: none;
    }

    /* Menu Adjustments */
    .menu-link {
        font-size: 3rem;
    }

    .menu-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .menu-socials {
        gap: 1.5rem;
    }

    /* Contact Adjustments */
    .contact-title {
        font-size: 2.5rem;
    }

    .uplink-data {
        flex-direction: column;
        gap: 1rem;
    }
}