/* VARIABLES & RESET */

   :root {
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --text-main: #e0e0e0;
    --text-dim: #888888;
    
   
    --pink-primary: #ff80ab;       
    --pink-dim: #b05a7a;           
    --pink-glow: rgba(255, 128, 171, 0.4);
    --accent-green: #00e676;      
    
    --font-head: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ANIMATIONS & LOADER */

#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#splash-screen h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--pink-primary);
    text-shadow: 0 0 20px var(--pink-glow);
    animation: scaleUp 2s ease-in-out forwards;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes scaleUp {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

/* NAVIGATION */

.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.logo {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--pink-primary);
    letter-spacing: -1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--pink-primary);
}

.cyber-link {
    font-family: var(--font-head);
    opacity: 0.5;
}

/* LAYOUT & SECTIONS */

#app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section-padding {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 4rem; 
    margin-bottom: 3rem; 
    text-align: center;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.pink-glow {
    color: var(--pink-primary);
    text-shadow: 0 0 30px var(--pink-glow);
}

/* HERO & HOME */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(25,20,25,1) 0%, rgba(10,10,10,1) 70%);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.subtitle {
    font-family: var(--font-head);
    color: var(--pink-dim);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--pink-primary);
    color: #000;
    box-shadow: 0 0 15px var(--pink-glow);
}

.btn-primary:hover {
    background-color: #fff;
    box-shadow: 0 0 25px var(--pink-glow);
}

.btn-secondary {
    border: 1px solid var(--pink-dim);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--pink-primary);
    color: var(--pink-primary);
}

/* BLOG CONTROLS */

.blog-controls {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.search-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px; 
    height: 55px; 
}

#searchInput {
    width: 100%;
    height: 100%;
    padding: 0 20px 0 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--pink-primary);
    box-shadow: 0 0 20px var(--pink-glow);
    background: rgba(0, 0, 0, 0.6);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pink-dim);
    font-size: 1.2rem;
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.custom-dropdown, .filter-tag {
    height: 42px; 
}

.custom-dropdown {
    position: relative;
    width: 160px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    z-index: 50;
}

.dropdown-trigger {
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0 15px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    border-color: var(--pink-primary);
    background: rgba(0, 0, 0, 0.5);
}

.arrow-icon {
    font-size: 0.7rem;
    color: var(--pink-primary);
}

.dropdown-options {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    list-style: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-options li {
    padding: 10px 15px;
    cursor: pointer;
    color: #888;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-options li:hover, .dropdown-options li.active-option {
    background: var(--pink-primary);
    color: #000;
}

.tags-container {
    display: flex;
    gap: 10px;
}

.filter-tag {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    padding: 0 20px; 
    display: flex;
    align-items: center;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.filter-tag:hover, .filter-tag.active {
    border-color: var(--pink-primary);
    color: var(--pink-primary);
    box-shadow: 0 0 10px rgba(255, 128, 171, 0.2);
}

/* BLOG CARDS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 
                0 0 20px rgba(255, 128, 171, 0.1);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: var(--font-head);
}

.tag {
    background: rgba(255, 128, 171, 0.1);
    color: var(--pink-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 128, 171, 0.2);
}

.post-description {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-links {
    margin-top: auto;
}

.read-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--pink-dim);
    color: var(--pink-primary);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-btn:hover {
    background: var(--pink-primary);
    color: #000;
    box-shadow: 0 0 15px var(--pink-glow);
    transform: translateY(-2px);
}

/* SOCIALS & EMPTY STATES */

.empty-state-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.empty-icon {
    font-size: 4rem;
    color: #333;
    margin-bottom: 1rem;
    animation: float 3s infinite ease-in-out;
}

.social-hub {
    margin-bottom: 2rem;
}

.icon-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--pink-primary);
    color: #000;
    box-shadow: 0 0 20px var(--pink-glow);
    transform: translateY(-5px);
}


/* FOOTER */


.glass-footer {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px; height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .glass-footer { flex-direction: column; gap: 1rem; text-align: center; }
    .status-indicator { justify-content: center; }
    .filters-row { flex-direction: column; width: 100%; }
    .custom-dropdown { width: 100%; }
    .tags-container { flex-wrap: wrap; justify-content: center; }
}

/* BLOG ARTICLE VIEW UPDATES */

.meta-row {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 128, 171, 0.1);
    border-color: var(--pink-primary);
    color: var(--pink-primary);
    transform: translateX(-5px); 
}

.back-btn i {
    font-size: 0.8rem;
}

/* BLOG SEARCH ANIMATION */

@keyframes popIn {
    0% { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* DASHBOARD */

.terminal-body #app-container {
    justify-content: center; 
    align-items: center;
}

.terminal-container {
    width: 100%;
    max-width: 700px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    margin-top: 4rem;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 0.8rem;
}

.terminal-content {
    padding: 2rem;
    min-height: 300px;
    color: #ccc;
    font-size: 0.95rem;
}

.sys-msg {
    margin-bottom: 5px;
}

.sys-msg.success {
    color: var(--accent-green);
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    position: relative;
}

.prompt {
    color: var(--pink-primary);
    margin-right: 10px;
}

#passwordInput {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
    flex-grow: 1;
    caret-color: transparent;
}

#cursor {
    width: 10px;
    height: 18px;
    background: var(--pink-primary);
    animation: blink 1s step-end infinite;
    display: inline-block;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#error-msg {
    color: #ff3333;
    margin-top: 1rem;
    font-weight: bold;
}

/* SOCIALS ICONS */

.socials-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
}

.social-card i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.social-card:hover i {
    transform: scale(1.2);
}

.social-card.github:hover { 
    box-shadow: 0 0 20px rgba(128, 0, 128, 0.3); 
    color: #fff;
}
.social-card.twitter:hover { 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); 
}
.social-card.linkedin:hover { 
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.4); 
    color: #0077b5;
}
.social-card.discord:hover { 
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); 
    color: #5865F2;
}
.social-card.email:hover { 
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.3);
    color: #00fa9a;
}

/* MOBILE OPTIMIZATION */

.hamburger {
    display: none;
}

.mobile-menu {
    display: none; 
}

.glass-nav {
    position: relative; 
}

@media (max-width: 768px) {

    body, html {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .glass-nav {
        position: fixed !important; 
        top: 0;
        left: 0;
        width: 100% !important;
        height: 60px; 
        padding: 0 20px !important;
        background: #000 !important;
        z-index: 10001; 
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid #111;
    }

    .desktop-menu { display: none !important; }

    main, .container, .hero-section {
        margin-top: 60px !important; 
        padding-top: 20px !important;
        padding-bottom: 10px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto !important;
        gap: 10px !important; 
    }

    h1, .hero-text {
        margin-bottom: 5px !important;
        line-height: 1.1 !important;
    }
    
    p, .subtitle {
        margin-top: 5px !important;
        margin-bottom: 15px !important;
    }

    footer, .footer-section {
        margin-top: 0 !important;
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }

    .hamburger {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        color: #ff80ab;
        transition: transform 0.3s ease;
    }
    
    .hamburger.open {
        transform: rotate(90deg);
        color: white;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed !important; 
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid #ff80ab;
        z-index: 10000;
        
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu.open {
        max-height: 100vh; 
        opacity: 1;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .mobile-menu a {
        display: block;
        color: white;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-menu a:hover, .mobile-menu a:active {
        background-color: #ff80ab;
        color: #000000;
        padding-left: 25px;
        font-weight: bold;
        letter-spacing: 1px;
    }
}

/* MOBILE LOADING SCREEN */
    
    #splash-screen {
        position: fixed !important;
        top: 0; left: 0;
        width: 100% !important;
        height: 100vh !important;
        background-color: #000 !important;
        z-index: 2147483647 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        
        transition: opacity 0.8s ease-out, visibility 0.8s !important;
        opacity: 1; 
    }

    #splash-screen h1 {
        font-size: 10vw !important; 
        width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        margin: 0 !important;
        
        animation: scaleUp 2s ease-in-out forwards !important; 
    }

    #splash-screen.hidden {
        opacity: 0 !important; 
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }

@media (min-width: 769px) {
    
    #splash-screen h1 {
        font-size: 4rem !important; 
        animation: scaleUp 2s ease-in-out forwards !important;
        transform: none !important; 
        white-space: normal !important;
        width: auto !important;
    }

    #splash-screen {
        z-index: 9999 !important; 
        background-color: #000 !important;
    }
}

/* MOBILE BLOG TAGS */
    
    .tags-container {
        display: none !important;
    }

    .mobile-only-dropdown {
        z-index: 9999 !important; 
        position: relative !important;
        cursor: pointer !important; 
    }
    
    .mobile-only-dropdown .dropdown-options {
        z-index: 10000 !important;
        background-color: #000 !important;
    }

    .filters-row {
        display: flex !important;
        flex-direction: row !important; 
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 2rem !important;
    }

    .custom-dropdown {
        flex: 1 !important;
        width: 50% !important;
        margin: 0 !important; 
    }

    .dropdown-trigger {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
    }

    @media (min-width: 769px) {
        .mobile-only-dropdown {
            display: none !important;
        }
    }

@media (min-width: 769px) {

    .mobile-only-dropdown {
        display: none !important;
    }

    .tags-container {
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    #customSort.custom-dropdown {
        width: 160px !important; 
        flex: none !important; 
        min-width: auto !important;
    }

    .filters-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    #customSort .dropdown-trigger {
        justify-content: space-between !important;
        width: 100% !important;
    }
}

    .section-title {
        font-size: 13vw !important; 
        
        white-space: nowrap !important; 
        
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .section-title br {
        display: none !important; 
    }

    .section-title {
        font-size: 4rem !important; 
        line-height: 1.1 !important; 
        white-space: normal !important; 
        margin-bottom: 3rem !important;
        width: auto !important;
    }
    
    .section-title br {
        display: inline !important;
    }


@media (max-width: 768px) {
    .section-title {
        font-size: 13vw !important; 
        white-space: nowrap !important; 
        width: 100% !important;
        text-align: center !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-title br {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .section-title {
        font-size: 4rem !important; 
        white-space: normal !important; 
        width: auto !important;
        line-height: 1.1 !important;
        margin-bottom: 3rem !important;
    }

    .section-title br {
        display: inline !important;
    }
}

    .icon-row {
        flex-wrap: wrap !important;
        gap: 15px !important;
        justify-content: center !important;
        padding: 0 40px !important; 
    }

    .social-btn {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 5px !important;
    }

    article.section-padding {
        margin-top: 4.5rem !important; 
        
        padding-top: 1rem !important; 
        
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    article header {
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important; 
        padding-bottom: 1rem !important; 
    }