/* ============================================
   CRYPTIC GLITCH — Neon Cyberpunk Theme
   Colors: #000411 bg, #00CBCC teal, #FF0080 pink, #8B5CF6 purple
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000411;
    --bg-alt: #000a1a;
    --bg-card: #0a0f2c;
    --bg-card-hover: #0f1540;
    --teal: #00CBCC;
    --pink: #FF0080;
    --purple: #8B5CF6;
    --white: #f0f0f5;
    --gray: #8892b0;
    --gray-light: #ccd6f6;
    --font-display: 'Audiowide', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow-teal: 0 0 20px rgba(0, 203, 204, 0.3);
    --glow-pink: 0 0 20px rgba(255, 0, 128, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--pink); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 12px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal), var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-text { color: var(--teal); }

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
    background: transparent;
}

.nav.scrolled {
    background: rgba(0, 4, 17, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 203, 204, 0.1);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.nav-logo-img { width: 40px; height: 40px; border-radius: 8px; }

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    text-decoration: none;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 203, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 203, 204, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--teal);
    top: -200px;
    right: -200px;
    opacity: 0.15;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--pink);
    bottom: -150px;
    left: -150px;
    opacity: 0.12;
}

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

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 32px;
    border-radius: 24px;
    filter: drop-shadow(0 0 40px rgba(0, 203, 204, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.hero-title-line { display: block; }

.hero-title-accent {
    background: linear-gradient(135deg, var(--teal), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--gray-light);
    margin-bottom: 28px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-neon {
    border: 1px solid var(--teal);
    color: var(--teal);
    box-shadow: var(--glow-teal);
}

.badge-pink {
    border: 1px solid var(--pink);
    color: var(--pink);
    box-shadow: var(--glow-pink);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--teal), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--purple));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 203, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 203, 204, 0.5);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 1px solid rgba(0, 203, 204, 0.4);
}

.btn-outline:hover {
    background: rgba(0, 203, 204, 0.1);
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

/* --- Project Cards --- */
.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 203, 204, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 64px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    border-color: rgba(0, 203, 204, 0.25);
    box-shadow: 0 8px 40px rgba(0, 203, 204, 0.08);
}

.project-hero {
    position: relative;
    overflow: hidden;
    max-height: 400px;
}

.project-hero-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--bg-card);
    transition: transform 0.5s;
}

.project-card:hover .project-hero-img { transform: scale(1.03); }

.project-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0, 4, 17, 0.9), transparent);
}

.project-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 0, 128, 0.15);
    border: 1px solid var(--pink);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pink);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-info { padding: 32px; }

.project-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.project-desc {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 800px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--teal);
    border: 1px solid rgba(0, 203, 204, 0.3);
    letter-spacing: 0.5px;
}

.project-code {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 203, 204, 0.06);
    border: 1px solid rgba(0, 203, 204, 0.2);
    border-radius: var(--radius-sm);
}

.code-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--teal);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 203, 204, 0.4);
}

/* --- Trailer Embed --- */
.project-trailer {
    padding: 4px;
}

.project-trailer video {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4px;
    padding: 0 4px 4px;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* --- More Projects Grid --- */
.more-projects-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 32px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.project-mini {
    background: var(--bg-card);
    border: 1px solid rgba(0, 203, 204, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.project-mini:hover {
    border-color: rgba(0, 203, 204, 0.3);
    transform: translateY(-4px);
}

.mini-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.project-mini:hover .mini-thumb { transform: scale(1.03); }

.mini-info { padding: 20px; }

.mini-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.mini-desc {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.mini-tags .tag { font-size: 0.7rem; padding: 3px 10px; }

.project-mini .project-code { width: 100%; }
.project-mini .code-value { font-size: 0.95rem; letter-spacing: 2px; }

/* --- About --- */
.about-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 16px;
    line-height: 1.7;
    font-weight: 400;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    filter: drop-shadow(0 0 60px rgba(0, 203, 204, 0.2));
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 203, 204, 0.1);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover {
    border-color: rgba(0, 203, 204, 0.3);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.team-avatar-pink {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.25);
}

.team-avatar-teal {
    background: linear-gradient(135deg, var(--teal), #0066ff);
    box-shadow: 0 0 30px rgba(0, 203, 204, 0.25);
}

.team-avatar-purple {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.team-initial { color: var(--white); }

.team-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.team-role {
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 203, 204, 0.3);
    transition: all 0.3s;
}

.team-social:hover {
    background: rgba(0, 203, 204, 0.1);
    border-color: var(--teal);
}

.icon-x {
    width: 18px;
    height: 18px;
    fill: var(--gray-light);
}

.team-social:hover .icon-x { fill: var(--teal); }

/* --- Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 203, 204, 0.04);
    border: 1px solid rgba(0, 203, 204, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136, 146, 176, 0.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 203, 204, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300CBCC' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option { background: var(--bg); color: var(--white); }

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

.btn-submit { align-self: flex-start; }

.contact-socials h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-links { display: flex; flex-direction: column; gap: 12px; }

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 203, 204, 0.1);
    border-radius: var(--radius-sm);
    color: var(--gray-light);
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--teal);
    background: rgba(0, 203, 204, 0.06);
    color: var(--teal);
    transform: translateX(4px);
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(0, 203, 204, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo { width: 32px; height: 32px; border-radius: 6px; }

.footer-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 4, 17, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover { color: var(--teal); }

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 4, 17, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right 0.3s;
        border-left: 1px solid rgba(0, 203, 204, 0.1);
    }

    .nav-links.open { right: 0; }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .stats-row { justify-content: center; }

    .about-visual { order: -1; }
    .about-logo { width: 200px; height: 200px; }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .gallery-img { height: 150px; }
}

@media (max-width: 640px) {
    .section { padding: 72px 0; }

    .hero { padding: 100px 20px 60px; }
    .hero-logo { width: 130px; height: 130px; }

    .hero-badges { flex-direction: column; align-items: center; }

    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 280px; }

    .hero-scroll { display: none; }

    .form-row { grid-template-columns: 1fr; }

    .project-info { padding: 20px; }
    .project-hero-img { height: 220px; }

    .project-gallery { grid-template-columns: 1fr 1fr; }
    .gallery-img { height: 120px; }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .btn-submit { align-self: stretch; }
}
