Website / Navbar.css
Gokul08r's picture
Upload 31 files
e927672 verified
Raw
History Blame Contribute Delete
10.4 kB
/* ══════════════════════════════════════════
Navbar.css β€” Galaxy Nav + Full Mobile Fix
══════════════════════════════════════════ */
.navbar {
position: fixed; top: 0; left: 0; right: 0; z-index: 900;
padding: 16px 0;
transition: all 0.45s cubic-bezier(0.4,0,0.2,1);
}
.navbar.scrolled {
padding: 10px 0;
background: var(--nav-bg);
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
border-bottom: 1px solid rgba(124,58,237,0.2);
box-shadow: 0 2px 40px rgba(124,58,237,0.15), 0 0 1px rgba(0,255,238,0.3);
}
/* ── Inner ── */
.nav-inner {
max-width: 1200px; margin: 0 auto;
padding: 0 24px;
display: flex; align-items: center; gap: 12px;
width: 100%;
}
/* ── Logo ── */
.nav-logo {
display: flex; align-items: center; gap: 10px;
background: none; border: none; cursor: pointer; padding: 0;
flex-shrink: 0; min-width: 0;
}
.nav-mark {
width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
background: linear-gradient(135deg, #7c3aed, #00ffee);
background-size: 200% 200%;
display: flex; align-items: center; justify-content: center;
font-family: 'Orbitron', monospace; font-weight: 900; font-size: 18px; color: #fff;
box-shadow: 0 0 20px rgba(124,58,237,0.6), 0 0 40px rgba(0,255,238,0.2);
animation: markPulse 3s ease-in-out infinite;
}
@keyframes markPulse {
0%,100% { box-shadow: 0 0 20px rgba(124,58,237,0.5), 0 0 40px rgba(0,255,238,0.15); }
50% { box-shadow: 0 0 30px rgba(124,58,237,0.9), 0 0 60px rgba(0,255,238,0.35); }
}
.nav-logo > span {
font-family: 'Orbitron', monospace; font-weight: 700; font-size: 16px;
color: var(--text-primary); letter-spacing: 0.05em;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ── Desktop Nav Links ── */
.nav-links {
display: flex; align-items: center; gap: 2px;
margin-left: auto; flex-wrap: nowrap;
}
.nav-link {
padding: 7px 12px; background: none; border: none;
font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600;
letter-spacing: 0.08em; text-transform: uppercase;
color: var(--text-secondary); border-radius: 100px; cursor: pointer;
transition: all 0.28s; position: relative; white-space: nowrap;
}
.nav-link::after {
content: ''; position: absolute; bottom: 2px; left: 50%;
transform: translateX(-50%);
width: 0; height: 2px;
background: var(--grad-aurora); border-radius: 2px;
transition: width 0.3s var(--ease-back);
box-shadow: 0 0 8px var(--neon-cyan);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }
.nav-link.active {
color: var(--neon-cyan);
text-shadow: 0 0 10px var(--neon-cyan);
background: rgba(0,255,238,0.06);
}
.nav-link.active::after { width: 60%; }
/* ── Desktop Right ── */
.nav-right {
display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-cta { padding: 9px 20px; font-size: 10px; letter-spacing: 0.15em; }
/* ── Mobile Right (shows on mobile) ── */
.nav-mobile-right {
display: none;
align-items: center; gap: 10px;
margin-left: auto; flex-shrink: 0;
}
/* ── Hamburger ── */
.nav-ham {
display: flex; flex-direction: column; gap: 5px;
background: rgba(124,58,237,0.08);
border: 1px solid rgba(124,58,237,0.2);
border-radius: 10px;
cursor: pointer; padding: 8px;
transition: background 0.2s, border-color 0.2s;
}
.nav-ham:hover {
background: rgba(124,58,237,0.15);
border-color: rgba(0,255,238,0.3);
}
.nav-ham span {
display: block; width: 20px; height: 2px;
background: var(--text-primary); border-radius: 2px;
transition: all 0.3s; transform-origin: center;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--neon-cyan); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--neon-cyan); }
/* ── Overlay backdrop ── */
.nav-overlay {
position: fixed; inset: 0; background: rgba(2,0,8,0.65);
z-index: 898; backdrop-filter: blur(6px);
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* ── Mobile Drawer ── */
.nav-drawer {
display: none; /* shown only when screen ≀900px */
flex-direction: column;
gap: 4px;
position: absolute; top: 100%; left: 0; right: 0;
background: var(--nav-bg);
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
border-bottom: 1px solid rgba(124,58,237,0.2);
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
/* collapsed */
max-height: 0;
overflow: hidden;
padding: 0 16px;
transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1),
padding 0.45s cubic-bezier(0.4,0,0.2,1);
z-index: 899;
}
.nav-drawer.open {
max-height: 520px;
padding: 16px 16px 24px;
}
.nav-drawer-link {
padding: 14px 16px; background: none; border: none;
font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 600;
letter-spacing: 0.08em; text-transform: uppercase;
color: var(--text-secondary); border-radius: 12px;
cursor: pointer; text-align: left; width: 100%;
transition: all 0.2s;
position: relative;
}
.nav-drawer-link::before {
content: ''; position: absolute; left: 0; top: 50%;
transform: translateY(-50%);
width: 3px; height: 0; border-radius: 2px;
background: var(--neon-cyan);
transition: height 0.2s;
}
.nav-drawer-link:hover,
.nav-drawer-link.active {
color: var(--neon-cyan);
background: rgba(0,255,238,0.06);
text-shadow: 0 0 10px var(--neon-cyan);
padding-left: 22px;
}
.nav-drawer-link:hover::before,
.nav-drawer-link.active::before { height: 60%; }
.nav-drawer-cta {
margin-top: 12px; width: 100%;
justify-content: center;
padding: 15px; font-size: 11px; letter-spacing: 0.15em;
}
/* ══════════════════════════════
HIRE ME MODAL
β€” fully adaptive, scrollable
══════════════════════════════ */
.hire-overlay {
position: fixed; inset: 0;
background: rgba(2,0,8,0.88);
backdrop-filter: blur(20px);
z-index: 9999;
display: flex; align-items: center; justify-content: center;
padding: 16px;
animation: fadeIn 0.25s ease;
overflow-y: auto; /* let overlay scroll on tiny screens */
}
.hire-modal {
position: relative;
width: 100%;
max-width: 500px;
/* adaptive height β€” never taller than viewport */
max-height: calc(100dvh - 32px);
overflow-y: auto;
border-radius: clamp(16px, 4vw, 28px);
padding: clamp(20px, 5vw, 42px) clamp(18px, 5vw, 40px);
background: var(--bg-card);
border: 1px solid rgba(124,58,237,0.3);
animation: slideUp 0.35s cubic-bezier(0.19,1,0.22,1);
box-shadow: 0 0 60px rgba(124,58,237,0.3), 0 20px 60px rgba(0,0,0,0.6);
/* scrollbar thin */
scrollbar-width: thin;
scrollbar-color: rgba(124,58,237,0.4) transparent;
}
.hire-modal::-webkit-scrollbar { width: 4px; }
.hire-modal::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 4px; }
.hire-modal::before {
content: ''; position: absolute; inset: 0; border-radius: inherit;
background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(0,255,238,0.03));
pointer-events: none;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(40px) scale(0.95); }
to { opacity: 1; transform: none; }
}
.hire-close {
position: sticky; /* stays visible while scrolling modal */
top: 0; float: right;
margin-bottom: -38px; /* overlap header */
width: 38px; height: 38px;
background: rgba(124,58,237,0.12);
border: 1px solid rgba(124,58,237,0.28); border-radius: 12px;
color: var(--text-primary); font-size: 18px;
display: flex; align-items: center; justify-content: center;
cursor: pointer; transition: all 0.2s; z-index: 2;
}
.hire-close:hover {
background: rgba(255,0,80,0.15);
border-color: rgba(255,0,80,0.4); color: #ff5090;
}
.hire-header { text-align: center; margin-bottom: 24px; padding-top: 8px; }
.hire-emoji {
font-size: clamp(36px, 8vw, 48px);
margin-bottom: 10px; display: block;
animation: emojiFloat 2s ease-in-out infinite;
}
@keyframes emojiFloat {
0%,100% { transform: translateY(0) rotate(-3deg); }
50% { transform: translateY(-8px) rotate(3deg); }
}
.hire-header h2 {
font-family: 'Orbitron', monospace;
font-size: clamp(16px, 4vw, 22px);
font-weight: 900;
background: var(--grad-aurora);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
margin-bottom: 8px;
}
.hire-header p { font-size: clamp(12px, 3vw, 14px); color: var(--text-secondary); }
.hire-form { display: flex; flex-direction: column; gap: 14px; }
.hire-success {
display: flex; flex-direction: column; align-items: center;
gap: 14px; padding: 20px 0; text-align: center;
}
.hire-success svg { font-size: 52px; color: var(--neon-green); filter: drop-shadow(0 0 12px var(--neon-green)); }
.hire-success h3 {
font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 800;
color: var(--text-primary);
}
.hire-success p { font-size: 14px; color: var(--text-secondary); }
/* ══════════════════════
RESPONSIVE BREAKPOINTS
══════════════════════ */
/* Tablet / mobile: switch to hamburger */
@media (max-width: 900px) {
.nav-links, .nav-right { display: none !important; }
.nav-mobile-right { display: flex; }
.nav-drawer { display: flex; } /* flex, controlled by max-height */
.nav-inner { padding: 0 16px; }
}
/* Small phones */
@media (max-width: 480px) {
.nav-inner { padding: 0 12px; gap: 8px; }
.nav-logo > span { display: none; } /* hide "Gokul" text, keep mark */
.hire-overlay { padding: 10px; align-items: flex-end; }
.hire-modal {
border-radius: 20px 20px 0 0;
max-height: 95dvh;
padding: 22px 18px 28px;
}
}
/* Landscape phones β€” allow modal to be more compact */
@media (max-height: 600px) and (orientation: landscape) {
.hire-overlay { align-items: flex-start; padding-top: 8px; }
.hire-modal { max-height: 96dvh; }
.hire-emoji { display: none; }
.hire-header { margin-bottom: 14px; }
}