@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

:root {
    --primary: #00f3ff;
    --primary-dim: rgba(0, 243, 255, 0.3);
    --bg: #020406;
    --text-main: #e0f7fa;
    --heart: #00f3ff;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    cursor: crosshair;
}

/* CANVAS & OVERLAYS */
#network-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; filter: drop-shadow(0 0 5px var(--primary)); 
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    pointer-events: none; z-index: 0;
}

.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px; pointer-events: none; z-index: 1;
}

/* UI COMPONENTS */
header {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    border-bottom: 1px solid var(--primary-dim);
}

.logo {
    font-family: 'Orbitron', sans-serif; font-weight: 900;
    font-size: 1.8rem; color: var(--primary);
    text-shadow: 0 0 15px var(--primary); letter-spacing: 2px;
}

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

nav a {
    color: #fff; text-decoration: none; text-transform: uppercase;
    font-weight: 700; font-size: 1rem; letter-spacing: 1.5px;
    transition: 0.3s; position: relative;
}

nav a.active { color: var(--primary); }

nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary); transition: 0.3s;
}

nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover { color: var(--primary); }

.btn-glow {
    padding: 15px 40px; background: transparent;
    border: 1px solid var(--primary); color: var(--primary);
    font-family: 'Orbitron', sans-serif; font-size: 1rem;
    letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; position: relative; overflow: hidden;
    transition: 0.3s; box-shadow: 0 0 10px var(--primary-dim);
}

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

/* ==========================================
USER PROFILE & DROPDOWN STYLES
========================================== */
#auth-container {
    position: relative;
    display: flex;
    align-items: center;
}

#user-profile-menu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    transition: 0.3s;
    object-fit: cover;
    margin-top: -8px;
}

#profile-pic:hover {
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.05);
}

#dropdown-content {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(2, 4, 6, 0.95);
    border: 1px solid var(--primary);
    border-radius: 4px;
    width: 200px;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    z-index: 100;
}

#dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.dropdown-header {
    padding: 15px;
    background: rgba(0, 243, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

#dropdown-content hr {
    border: none;
    border-top: 1px solid var(--primary-dim);
    margin: 0;
}

#dropdown-content a {
    padding: 12px 15px;
    color: #e0f7fa;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    text-transform: none;
    letter-spacing: 1px;
}

#dropdown-content a::after { display: none; }

#dropdown-content a:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding-left: 20px;
}

#dropdown-logout { color: #ff5f56 !important; }
#dropdown-logout:hover { 
    background: rgba(255, 95, 86, 0.1) !important; 
    color: #ff5f56 !important; 
}

/* SECTIONS */
.home-header {
    padding: 150px 20px 50px; text-align: center; align-items: center;
    position: relative; flex-direction: column; justify-content: center;
    display: flex; z-index: 2;
}

.status-bar {
    display: inline-block; border: 1px solid var(--primary); padding: 5px 15px; margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif; font-size: 0.7rem; color: var(--primary);
    background: rgba(0, 243, 255, 0.05); box-shadow: 0 0 10px var(--primary-dim); letter-spacing: 2px;
}

h1 {
    font-family: 'Orbitron', sans-serif; font-size: 4.5rem; line-height: 1.1; margin-bottom: 15px;
    text-transform: none; color: #fff; text-shadow: 0 0 20px var(--primary-dim);
}

p.subtitle { font-size: 1.2rem; max-width: 600px; color: #aab; margin-bottom: 40px; }

.services {
    padding: 100px 5%; position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px;
}

.card {
    background: rgba(10, 15, 20, 0.6); border: 1px solid rgba(0, 243, 255, 0.1);
    -webkit-backdrop-filter: blur(10px); padding: 40px; backdrop-filter: blur(10px);
    transition: 0.4s; position: relative;
}

.card:hover { border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent 95%, var(--primary) 100%); opacity: 0; transition: 0.4s;
}
.card:hover::before { opacity: 0.3; }

.card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.card h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 10px; color: #fff; }
.card p { color: #889; line-height: 1.6; }

footer { text-align: center; padding: 40px; background: #000; border-top: 1px solid #111; position: relative; z-index: 2; color: #555; }

/* SOCIAL MEDIA BOXES */
.social-container {
    display: flex; justify-content: center; gap: 20px; margin: 0px 0 30px 0; flex-wrap: wrap; position: relative; z-index: 10;
}

.social-box {
    display: flex; align-items: center; justify-content: center; width: 70px; height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; text-decoration: none;
    color: #fff; font-size: 1.5rem; transition: all 0.3s ease;
}

.social-box:hover {
    border-color: var(--primary); box-shadow: 0 0 15px var(--primary-dim);
    transform: translateY(-5px); background: rgba(0, 243, 255, 0.05); color: var(--primary); 
}

/* TERMINAL STYLES */
.terminal-box {
    width: 100%; max-width: 650px; background: rgba(0, 20, 25, 0.9); border: 1px solid var(--primary);
    border-radius: 5px; box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); margin-top: 30px;
    text-align: left; font-family: 'Fira Code', 'Courier New', monospace; overflow: hidden;
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); position: relative; z-index: 10;
}

.terminal-header {
    background: rgba(0, 243, 255, 0.1); padding: 8px 15px; border-bottom: 1px solid var(--primary-dim); display: flex; align-items: center; gap: 10px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-title { margin-left: 10px; font-size: 0.8rem; color: var(--primary); opacity: 0.7; }

.terminal-content { padding: 20px; color: #e0f7fa; font-size: 0.95rem; line-height: 1.6; min-height: 180px; white-space: pre-wrap; position: relative; }
.terminal-line { display: block; margin-bottom: 5px; word-wrap: break-word; }
.prompt-user { color: #27c93f; } .output-text { color: #aab; opacity: 0.9; }

.cursor { display: inline-block; width: 8px; height: 16px; background: var(--primary); animation: blink 1s infinite; vertical-align: text-bottom; margin-left: 1px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* TERMINAL LIKE BUTTON */
.terminal-like { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.terminal-like-btn { background: transparent; border: none; color: rgba(255, 255, 255, 0.3); font-size: 1rem; cursor: pointer; transition: 0.3s; outline: none; }
.terminal-like-btn:hover { color: var(--heart); transform: scale(1.1); text-shadow: 0 0 10px rgba(255, 42, 95, 0.5); }
.terminal-like-btn.liked { color: var(--heart); text-shadow: 0 0 10px rgba(255, 42, 95, 0.5); }
.terminal-like-count { font-family: 'Fira Code', monospace; font-size: 0.85rem; color: #aab; }

/* LIVE SCROLLING LIKES FEED */
.live-likes-feed {
    position: absolute;
    bottom: 15px;
    right: 20px;
    height: 100px;
    width: 150px;
    overflow: hidden;
    text-align: right;
    pointer-events: none; 
    mask-image: linear-gradient(to top, transparent, black 5%, black 0%, transparent);
    -webkit-mask-image: linear-gradient(to top, transparent, black 5%, black 0%, transparent);
}

.likes-marquee {
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: scrollUp 5s linear infinite;
}

.likes-marquee span {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.7;
}

.likes-marquee span i {
    color: var(--heart);
    font-size: 0.6rem;
    margin-right: 5px;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

@media(max-width: 768px) {
    header { flex-direction: column; padding: 15px; gap: 15px; }
    .logo { font-size: 1.4rem; } nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; } 
    nav a { font-size: 0.8rem; } .hero { padding-top: 150px; } .terminal-box { width: 95%; }
    h1 { font-size: 2.5rem; } .live-likes-feed { bottom: 10px; right: 10px; font-size: 0.65rem; }
}