/* Greyscale Sci-Fi Portfolio Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-black: #0d0d0d;
    --dark-grey: #1a1a1a;
    --medium-grey: #2d2d2d;
    --slate-grey: #404040;
    --light-grey: #7a7a7a;
    --silver: #b8b8b8;
    --off-white: #e8e8e8;
    --pure-white: #ffffff;
    --pastel-pink: #ffb3d9;
    --pastel-lavender: #d4b3ff;
    --pastel-blue: #b3d9ff;
    --pastel-mint: #b3ffcc;
    --pastel-peach: #ffd9b3;
    --pastel-yellow: #fff4b3;
    --rainbow-gradient: linear-gradient(90deg, #ffb3d9, #d4b3ff, #b3d9ff, #b3ffcc, #fff4b3, #ffd9b3);
    --rainbow-gradient-vertical: linear-gradient(180deg, #ffb3d9, #d4b3ff, #b3d9ff, #b3ffcc, #fff4b3, #ffd9b3);
    --glow-intensity: rgba(255, 179, 217, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Monaco', 'Consolas', 'Courier New', 'Lucida Console', monospace;
    background: var(--deep-black);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.vaporwave-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--deep-black);
    overflow: hidden;
}

/* Large background grid removed */

.grid-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.08) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.08) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.08) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.08) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 50px;
    }
}

.sun {
    display: none;
}

/* Data stream effect removed */

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

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 2px solid rgba(184, 184, 184, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 179, 217, 0.3);
}

/* Cyberpunk Corner Brackets */
header::before,
header::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--pastel-lavender);
    opacity: 0.5;
}

header::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

header::after {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--pure-white);
    text-shadow:
        0 0 10px var(--pure-white),
        0 0 20px var(--pure-white),
        0 0 30px var(--pure-white);
    animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 10px var(--pure-white),
            0 0 20px var(--pure-white),
            0 0 30px var(--pure-white);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '//';
    margin-right: 5px;
    color: var(--pastel-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rainbow-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--pastel-lavender);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    padding-top: 100px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 179, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.glitch-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.glitch,
.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-transform: uppercase;
}

/* Cyberpunk Glitch Effect */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--pastel-pink);
    z-index: -1;
    animation: glitchTop 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
    color: var(--pastel-blue);
    z-index: -2;
    animation: glitchBottom 3s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
    0%, 90%, 100% { transform: translate(0, 0); }
    92% { transform: translate(5px, -2px); }
    94% { transform: translate(-5px, 2px); }
    96% { transform: translate(3px, 0); }
}

@keyframes glitchBottom {
    0%, 85%, 100% { transform: translate(0, 0); }
    87% { transform: translate(-5px, 2px); }
    89% { transform: translate(5px, -2px); }
    91% { transform: translate(-3px, 0); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--silver);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

.tagline {
    font-size: 1rem;
    color: var(--light-grey);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--rainbow-gradient);
    color: var(--deep-black);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 179, 255, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 179, 255, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

/* Gallery Section */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

.gallery h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--pure-white);
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--rainbow-gradient);
    box-shadow: 0 0 15px var(--pastel-pink);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--medium-grey);
    color: var(--silver);
    border: 1px solid var(--slate-grey);
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.filter-btn::before {
    content: '//';
    margin-right: 5px;
    color: var(--pastel-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover {
    background: var(--slate-grey);
    border-color: var(--pastel-lavender);
    color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 179, 255, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--slate-grey), var(--medium-grey));
    border-color: var(--pastel-pink);
    color: var(--pure-white);
    box-shadow: 0 0 20px rgba(255, 179, 217, 0.4), inset 0 0 20px rgba(255, 179, 217, 0.1);
}

.filter-btn.active::before {
    opacity: 1;
    color: var(--pastel-pink);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rainbow-gradient);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--medium-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--slate-grey);
    transition: all 0.3s ease;
}

.gallery-item:hover .placeholder-image {
    border-color: var(--pure-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.neon-border {
    display: none;
}

.placeholder-image span {
    color: var(--silver);
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 500;
    z-index: 2;
}

.gallery-item h3 {
    font-size: 1rem;
    margin: 1rem 0 0.25rem;
    color: var(--off-white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gallery-item p {
    color: var(--light-grey);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 400;
}

/* About Section */
.about {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--pure-white);
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--rainbow-gradient);
    box-shadow: 0 0 15px var(--pastel-pink);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image .placeholder-image {
    aspect-ratio: 4/5;
    border: 1px solid var(--medium-grey);
}

.about-text {
    color: var(--silver);
}

.retro-text,
.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--silver);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--medium-grey);
    border: 1px solid var(--slate-grey);
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rainbow-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    background: var(--slate-grey);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 179, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Contact Section */
.contact {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--pure-white);
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--rainbow-gradient);
    box-shadow: 0 0 15px var(--pastel-mint);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.neon-text,
.contact-info > p {
    font-size: 1rem;
    color: var(--silver);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--dark-grey);
    border: 1px solid var(--medium-grey);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rainbow-gradient-vertical);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item:hover {
    background: var(--medium-grey);
    border-color: var(--pastel-blue);
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(179, 217, 255, 0.3);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--pastel-mint);
    min-width: 25px;
}

.contact-label {
    color: var(--off-white);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    min-width: 120px;
    text-align: left;
}

.contact-label::before {
    content: '>';
    color: var(--pastel-lavender);
    margin-right: 8px;
}

.contact-value {
    color: var(--silver);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.contact-value::before {
    content: '//';
    color: var(--pastel-blue);
    margin-right: 5px;
    opacity: 0.6;
}

/* Footer */
footer {
    background: var(--deep-black);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 2px solid var(--medium-grey);
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rainbow-gradient);
    opacity: 0.5;
}

footer p {
    color: var(--light-grey);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

footer p::before {
    content: '>';
    color: var(--pastel-pink);
    margin-right: 8px;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--slate-grey);
    letter-spacing: 1px;
}

.footer-sub::before {
    content: '//';
    color: var(--pastel-blue);
    margin-right: 5px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 120px;
    }

    .gallery {
        padding: 4rem 1rem;
    }

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

    .about {
        padding: 4rem 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact {
        padding: 3rem 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .contact-label {
        min-width: auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--dark-grey);
    border: 2px solid var(--slate-grey);
    overflow-y: auto;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--silver);
    color: var(--silver);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    border-color: var(--pure-white);
    color: var(--pure-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.modal-image-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--medium-grey);
    border: 2px solid var(--slate-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 1rem;
}

.modal-process-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.process-image {
    aspect-ratio: 1 / 1;
    background: var(--medium-grey);
    border: 2px solid var(--slate-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.process-image:hover {
    border-color: var(--pure-white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-info-section h2 {
    font-size: 2rem;
    color: var(--pure-white);
    margin: 0;
}

.modal-info-section #modal-category {
    color: var(--pastel-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.modal-description,
.modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-description h3,
.modal-details h3 {
    font-size: 1.2rem;
    color: var(--off-white);
    margin: 0;
    border-bottom: 1px solid var(--slate-grey);
    padding-bottom: 0.5rem;
}

.modal-description p {
    color: var(--silver);
    line-height: 1.8;
    margin: 0;
}

.modal-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-details li {
    color: var(--silver);
    display: flex;
    gap: 0.5rem;
}

.modal-details strong {
    color: var(--off-white);
    min-width: 80px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .modal-info-section h2 {
        font-size: 1.5rem;
    }
}

/* Text selection */
::selection {
    background: var(--pastel-lavender);
    color: var(--deep-black);
}

::-moz-selection {
    background: var(--pastel-lavender);
    color: var(--deep-black);
}
