:root {
    --bg-dark: #050508;
    --neon-cyan: #00f3ff;
    --neon-purple: #bf00ff;
    --neon-cyan-glow: rgba(0, 243, 255, 0.5);
    --neon-purple-glow: rgba(191, 0, 255, 0.5);
    --glass-bg: rgba(15, 15, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, a, button, .project-card {
    cursor: none !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .nav-brand, .neon-text, .neon-purple {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.neon-text { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan-glow); }
.neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple-glow); }

/* Custom Pointer */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-purple);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-cursor.clicking::after {
    opacity: 1;
    transform: scale(1);
}

.custom-cursor.filled {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple-glow);
    transform: translate(-50%, -50%) scale(0.6);
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,243,255,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s;
}

/* Header Banner */
.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.hero-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Contemporary processing for low bitrate video: clean blur and darkened */
    filter: blur(8px) brightness(0.7) contrast(1.1);
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,8,0.2) 0%, var(--bg-dark) 100%);
    z-index: 2;
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Main Content */
main {
    padding-top: 100px; /* Offset for nav */
}

/* Hero Content */
.hero-content {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    position: relative;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.dre-number {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Buttons */
.btn-neon {
    padding: 15px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--neon-cyan-glow), inset 0 0 15px var(--neon-cyan-glow);
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--neon-cyan-glow), inset 0 0 10px rgba(255,255,255,0.5);
}

.btn-ghost {
    padding: 12px 30px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple-glow);
}

/* Sections */
section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: left;
    position: relative;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-cyan-glow);
    border-color: rgba(0, 243, 255, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-img-container {
    width: 100%;
    height: 250px;
    background: #111;
    overflow: hidden;
    position: relative;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.5s;
}

.placeholder-question {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(191,0,255,0.05), rgba(0,243,255,0.05));
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
}

.redfin-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c82021;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(200, 32, 33, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .redfin-badge {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-img-container img {
    opacity: 1;
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-specs {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About / Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 40px rgba(191, 0, 255, 0.4);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #000;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--neon-purple-glow) 0%, transparent 60%);
    opacity: 0.1;
    z-index: -1;
}

.about-text p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 20px;
}

.crypto-address-mock {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem !important;
    color: var(--neon-purple);
    margin-top: 40px;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* Contact */
.contact-links {
    display: flex;
    gap: 20px;
}

/* Footer */
footer {
    padding: 60px 40px 40px 40px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-accessibility {
    flex: 1;
    font-size: 0.75rem;
    opacity: 0.6;
    max-width: 320px;
    text-align: left;
    line-height: 1.6;
}

.footer-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-right {
    flex: 1;
}

.footer-marks {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.footer-marks:hover {
    opacity: 0.8;
}

.footer-marks img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-link {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-link:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 8px var(--neon-purple-glow);
}

/* Responsive */
@media (max-width: 950px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        width: 250px;
        height: 250px;
        margin: 40px auto 0;
    }
    .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body, a, button, .project-card {
        cursor: auto !important;
    }
    .custom-cursor, .cursor-glow { 
        display: none !important; 
    }
    
    .glass-nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
        position: relative;
    }
    .nav-brand { font-size: 20px; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 12px; }

    .glitch { font-size: 2.5rem; }
    .tagline { font-size: 1rem; }
    .dre-number { font-size: 0.8rem; margin-bottom: 25px; }

    main { padding-top: 120px; } /* Offset for larger mobile nav */
    .hero-content { min-height: calc(100vh - 120px); }
    section { padding: 60px 20px; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    
    .glass-panel { padding: 30px; }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-img-container { height: 200px; }

    footer {
        flex-direction: column-reverse; /* Stack accessiblity neatly below the copyright */
        gap: 50px;
    }
    .footer-accessibility {
        text-align: center;
        max-width: 100%;
        opacity: 0.5;
    }
    .footer-right {
        display: none;
    }
}
