/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg: #050505;
    --text: #ffffff;
    --gray: #333333;
    --subtext: #888888;
    --accent: #00fff9; /* Cyan Glitch */
    --font-body: 'Manrope', sans-serif;
    --font-header: 'Syncopate', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Custom Cursor Default */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* =========================================
   2. LOADER SYSTEM
   ========================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
    pointer-events: none;
}

.loader-text {
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: blink 0.2s infinite;
}

@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* =========================================
   3. LAYOUT (DESKTOP)
   ========================================= */
.container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR STICKY */
.sidebar {
    width: 40%;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 60px;
    border-right: 1px solid var(--gray);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
}

/* MAIN FEED */
.about-feed {
    width: 60%;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
}

/* =========================================
   4. COMPONENTS (SIDEBAR)
   ========================================= */
.back-link {
    text-decoration: none;
    color: var(--subtext);
    font-family: var(--font-header);
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text);
}

.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.main-title {
    font-family: var(--font-header);
    font-size: 3vw;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.social-links a {
    display: block;
    margin-bottom: 12px;
    color: var(--subtext);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--text);
    padding-left: 10px;
}

/* =========================================
   5. PROFILE IMAGE & SCANLINE
   ========================================= */
.profile-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out, transform 0.7s ease;
}

.profile-image img:first-child {
    z-index: 1;
    opacity: 1;
    filter: grayscale(100%) contrast(120%);
}

.profile-image img:nth-child(2) {
    z-index: 2;
    opacity: 0;
    filter: grayscale(0%);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    animation: scan 3s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* =========================================
   6. CONTENT STYLES
   ========================================= */
.section-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.bio-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
    text-align: justify;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border-top: 1px solid var(--gray);
    padding-top: 40px;
    margin-bottom: 60px;
}

.spec-item h3 {
    font-family: var(--font-header);
    font-size: 0.8rem;
    color: var(--subtext);
    margin-bottom: 10px;
}

.spec-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.quote-box {
    border: 1px solid var(--gray);
    padding: 40px;
    text-align: center;
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--subtext);
}

/* =========================================
   7. CONTACT FORM STYLES
   ========================================= */
.contact-section {
    margin-bottom: 60px;
    border-top: 1px solid var(--gray);
    padding-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--subtext);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.submit-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--subtext);
    padding: 12px 24px;
    font-family: var(--font-header);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    color: var(--bg);
    background: var(--text);
    transform: translateX(5px);
}

/* =========================================
   8. POPUP NOTIFICATION
   ========================================= */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--bg);
    border: 1px solid var(--gray);
    padding: 40px;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.4s ease;
    max-width: 400px;
}

.popup-overlay.show .popup-box {
    transform: translateY(0);
}

/* =========================================
   9. CURSOR & ANIMATIONS
   ========================================= */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-hover {
    transform: scale(3);
    background: var(--text);
}

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* GLITCH EFFECT */
.glitch-wrapper { position: relative; display: inline-block; }
.glitch { position: relative; color: var(--text); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); }
.glitch:hover::before { animation: glitch-anim 0.3s infinite; left: 2px; text-shadow: -1px 0 #ff00c1; clip-path: inset(44% 0 61% 0); }
.glitch:hover::after { animation: glitch-anim2 0.3s infinite; left: -2px; text-shadow: -1px 0 #00fff9; clip-path: inset(54% 0 10% 0); }

@keyframes glitch-anim { 0% { clip-path: inset(30% 0 40% 0); } 100% { clip-path: inset(70% 0 5% 0); } }
@keyframes glitch-anim2 { 0% { clip-path: inset(10% 0 60% 0); } 100% { clip-path: inset(40% 0 20% 0); } }

/* =========================================
   10. MOBILE RESPONSIVE STYLES
   ========================================= */
@media (max-width: 900px) {
    /* CURSOR RESET */
    * { cursor: auto !important; }
    .custom-cursor { display: none !important; }

    /* LAYOUT RESET */
    .container { flex-direction: column; }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid var(--gray);
    }

    .about-feed {
        width: 100%;
        padding: 40px 20px;
    }

    /* COMPONENT RESET */
    .main-title { font-size: 8vw; }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bio-text p { text-align: left; }
    
    .popup-box { padding: 20px; width: 95%; }
}
