Portfolio / style.css
Nausad's picture
Upload 8 files
6ad7b31 verified
Raw History Blame Contribute Delete
18.4 kB
/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #fffdf6;
--bg2: #fefbeb;
--surface: rgba(255, 255, 255, 0.65);
--border: rgba(15, 23, 42, 0.1);
--purple: #f59e0b; /* Sunshine Amber */
--cyan: #0ea5e9; /* Sky Blue */
--pink: #f43f5e;
--text: #0f172a;
--muted: #475569;
--gradient: linear-gradient(135deg, #f59e0b, #0ea5e9);
--font: 'Outfit', sans-serif;
--mono: 'JetBrains Mono', monospace;
}
html { scroll-behavior: smooth; }
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
overflow-x: hidden;
cursor: none;
}
/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }
/* ===== CURSOR ===== */
#cursor {
position: fixed; top: 0; left: 0; width: 12px; height: 12px;
background: var(--purple); border-radius: 50%; pointer-events: none;
z-index: 9999; transform: translate(-50%,-50%);
transition: transform 0.1s, background 0.3s, width 0.3s, height 0.3s;
will-change: top, left, transform;
}
#cursorTrail {
position: fixed; top: 0; left: 0; width: 36px; height: 36px;
border: 1.5px solid var(--purple); border-radius: 50%; pointer-events: none;
z-index: 9998; transform: translate(-50%,-50%);
transition: top 0.12s ease-out, left 0.12s ease-out, width 0.15s, height 0.15s; opacity: 0.5;
will-change: top, left, width, height;
}
body:hover #cursor { opacity: 1; }
/* ===== CANVAS ===== */
#particleCanvas {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
z-index: 0; pointer-events: none;
will-change: transform;
transform: translateZ(0);
}
/* ===== SECTIONS ===== */
.section {
position: relative; z-index: 1;
padding: 100px 5% 80px;
max-width: 1200px; margin: 0 auto;
}
/* ===== GLASS CARD ===== */
.glass-card {
background: var(--surface);
border: 1px solid var(--border);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: 16px;
box-shadow: 0 10px 30px rgba(15,23,42,0.03);
transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
will-change: transform;
transform: translateZ(0);
}
.glass-card:hover {
transform: translateY(-4px) translateZ(0);
border-color: rgba(245,158,11,0.4);
box-shadow: 0 20px 60px rgba(245,158,11,0.15);
}
/* ===== GRADIENT TEXT ===== */
.gradient-text {
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ===== SECTION LABELS ===== */
.section-label {
font-family: var(--mono);
font-size: 0.85rem;
color: var(--cyan);
letter-spacing: 2px;
margin-bottom: 12px;
font-weight: 700;
}
.section-title {
font-size: clamp(2rem, 5vw, 3.2rem);
font-weight: 800;
margin-bottom: 60px;
line-height: 1.1;
}
/* ===== BUTTONS ===== */
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 14px 28px; border-radius: 10px;
font-family: var(--font); font-size: 0.95rem; font-weight: 600;
text-decoration: none; cursor: pointer; border: none;
transition: all 0.3s; position: relative; overflow: hidden;
}
.btn::before {
content: ''; position: absolute; inset: 0;
background: rgba(255,255,255,0.2);
transform: translateX(-100%); transition: transform 0.3s;
}
.btn:hover::before { transform: translateX(0); }
.btn-primary {
background: var(--gradient);
color: #fff;
box-shadow: 0 10px 25px rgba(245,158,11,0.3);
}
.btn-primary:hover { box-shadow: 0 15px 35px rgba(245,158,11,0.4); transform: translateY(-2px); }
.btn-secondary {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border);
box-shadow: 0 5px 15px rgba(15,23,42,0.02);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); background: #fff; }
.w-full { width: 100%; justify-content: center; }
/* ===== NAVBAR ===== */
#navbar {
position: fixed; top: 0; left: 0; right: 0;
display: flex; align-items: center; justify-content: space-between;
padding: 20px 5%; z-index: 1000;
transition: all 0.4s;
}
#navbar.scrolled {
background: rgba(255,253,246,0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
padding: 14px 5%;
box-shadow: 0 10px 30px rgba(15,23,42,0.03);
}
.nav-logo {
font-size: 1.4rem; font-weight: 800; color: var(--text);
font-family: var(--mono);
}
.logo-bracket { color: var(--purple); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-link {
color: var(--muted); text-decoration: none; font-weight: 600;
font-size: 0.95rem; transition: color 0.3s; position: relative;
}
.nav-link::after {
content: ''; position: absolute; bottom: -4px; left: 0;
width: 0; height: 2px; background: var(--gradient);
transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { display: inline-flex; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 99px; transition: all 0.3s; }
/* ===== HERO ===== */
.hero {
min-height: 100vh;
display: grid; grid-template-columns: 1fr 1fr;
align-items: center; gap: 60px;
padding: 120px 5% 80px;
position: relative; overflow: hidden;
}
.hero-bg-grid {
position: absolute; inset: 0;
background-image: linear-gradient(rgba(245,158,11,0.08) 1px, transparent 1px),
linear-gradient(90deg, rgba(245,158,11,0.08) 1px, transparent 1px);
background-size: 50px 50px;
}
.hero-glow {
position: absolute; border-radius: 50%;
filter: blur(100px); pointer-events: none;
}
.glow-1 { width: 500px; height: 500px; background: rgba(245,158,11,0.25); top: -100px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: rgba(14,165,233,0.2); bottom: -100px; right: 0; }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
border-radius: 99px; padding: 8px 16px; font-size: 0.85rem; font-weight: 700;
color: #d97706; margin-bottom: 24px;
}
.badge-dot {
width: 8px; height: 8px; background: #10b981;
border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.hero-title {
font-size: clamp(2.4rem, 6vw, 4rem);
font-weight: 900; line-height: 1.1; margin-bottom: 20px;
}
.hero-typewriter {
font-size: clamp(1.2rem, 3vw, 1.6rem);
font-weight: 700; margin-bottom: 20px; color: var(--muted);
min-height: 2.2rem;
}
.typewriter-text { color: var(--cyan); }
.typewriter-cursor {
color: var(--cyan); animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-desc {
color: var(--muted); line-height: 1.8; margin-bottom: 32px;
max-width: 500px; font-size: 1.05rem; font-weight: 500;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
display: flex; align-items: center; gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
font-size: 2.2rem; font-weight: 900;
background: var(--gradient);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-plus { font-size: 1.2rem; font-weight: 800; color: var(--purple); }
.stat-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
/* ===== HERO VISUAL ===== */
.hero-visual {
position: relative; display: flex;
align-items: center; justify-content: center; z-index: 1;
}
.avatar-container {
position: relative; width: 280px; height: 280px;
background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(14,165,233,0.15));
border: 1px solid rgba(245,158,11,0.3);
border-radius: 50%; display: flex; align-items: center; justify-content: center;
overflow: visible; box-shadow: 0 20px 50px rgba(245,158,11,0.15);
}
.profile-img {
width: 100%; height: 100%; object-fit: cover;
border-radius: 50%; position: absolute; inset: 0;
box-shadow: inset 0 0 20px rgba(245,158,11,0.2);
}
.avatar-ring {
position: absolute; border-radius: 50%; border: 1px solid rgba(245,158,11,0.25);
animation: spin linear infinite;
}
.ring-1 { width: 320px; height: 320px; animation-duration: 20s; border-style: dashed; }
.ring-2 { width: 380px; height: 380px; animation-duration: 30s; animation-direction: reverse; }
.ring-3 { width: 440px; height: 440px; animation-duration: 40s; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.floating-badge {
position: absolute;
background: var(--surface); border: 1px solid var(--border);
backdrop-filter: blur(12px); border-radius: 12px;
padding: 10px 16px; font-size: 0.85rem; font-weight: 700;
display: flex; align-items: center; gap: 8px;
box-shadow: 0 10px 25px rgba(15,23,42,0.05);
animation: float 3s ease-in-out infinite;
}
.badge-ai { top: 10px; right: -20px; animation-delay: 0s; }
.badge-ml { bottom: 30px; right: -30px; animation-delay: 1s; }
.badge-web { bottom: 10px; left: -20px; animation-delay: 2s; }
@keyframes float {
0%,100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.scroll-indicator {
position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
display: flex; flex-direction: column; align-items: center; gap: 8px;
color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
animation: float 2s ease-in-out infinite;
}
.scroll-dot {
width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
animation: pulse 2s infinite;
}
/* ===== ABOUT ===== */
#about { border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--muted); line-height: 1.9; margin-bottom: 16px; font-size: 1.05rem; }
.about-text strong { color: var(--text); font-weight: 700; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tag {
background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
border-radius: 99px; padding: 6px 16px; font-size: 0.85rem; font-weight: 700; color: #d97706;
transition: all 0.3s;
}
.tag:hover { background: rgba(245,158,11,0.25); transform: translateY(-2px); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
padding: 22px; display: flex; align-items: center; gap: 16px;
}
.info-card-icon { font-size: 2rem; flex-shrink: 0; }
.info-card-title { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.info-card-value { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.info-card-sub { font-size: 0.8rem; font-weight: 600; color: var(--cyan); margin-top: 2px; }
/* ===== SKILLS ===== */
#skills { border-top: 1px solid var(--border); }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 60px; }
.skill-category { padding: 30px; }
.skill-cat-header { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.skill-cat-icon { font-size: 1.6rem; }
.skill-cat-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.skill-item { margin-bottom: 20px; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.skill-bar { height: 8px; background: rgba(15,23,42,0.08); border-radius: 99px; overflow: hidden; }
.skill-fill {
height: 100%; width: 0; border-radius: 99px;
background: var(--gradient);
transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
box-shadow: 0 0 12px rgba(245,158,11,0.4);
}
/* ===== MARQUEE ===== */
.marquee-wrapper { overflow: hidden; position: relative; }
.marquee-wrapper::before, .marquee-wrapper::after {
content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
display: flex; gap: 16px; width: max-content;
animation: marquee 25s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
padding: 12px 26px; border-radius: 99px;
border: 1px solid var(--border); background: var(--surface);
font-size: 0.9rem; font-weight: 700; white-space: nowrap;
color: var(--muted); transition: all 0.3s;
box-shadow: 0 5px 15px rgba(15,23,42,0.02);
}
.marquee-item:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-2px); background: #fff; }
/* ===== PROJECTS ===== */
#projects { border-top: 1px solid var(--border); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 40px; }
.project-card { overflow: hidden; }
.project-img-wrap { position: relative; overflow: hidden; }
.project-img {
height: 200px; display: flex; align-items: center; justify-content: center;
transition: transform 0.4s;
}
.project-emoji { font-size: 4.5rem; filter: drop-shadow(0 0 20px rgba(255,255,255,0.4)); }
.project-card:hover .project-img { transform: scale(1.05); }
.project-overlay {
position: absolute; inset: 0;
background: rgba(255,253,246,0.85); backdrop-filter: blur(8px);
display: flex; align-items: center; justify-content: center; gap: 20px;
opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link-btn {
width: 48px; height: 48px; border-radius: 50%;
background: #fff; border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
color: var(--text); text-decoration: none;
box-shadow: 0 10px 25px rgba(15,23,42,0.05);
transition: all 0.3s;
}
.project-link-btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-2px); }
.project-body { padding: 24px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ptag {
font-size: 0.75rem; font-weight: 700;
padding: 6px 12px; border-radius: 99px;
background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.25);
color: #0284c7;
}
.project-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.project-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; font-weight: 500; }
.projects-cta { text-align: center; }
/* ===== CONTACT ===== */
#contact { border-top: 1px solid var(--border); position: relative; }
.contact-glow {
position: absolute; width: 600px; height: 600px;
background: radial-gradient(circle, rgba(245,158,11,0.18), transparent 70%);
top: 50%; left: 50%; transform: translate(-50%,-50%);
pointer-events: none;
}
.contact-sub { color: var(--muted); margin-bottom: 50px; font-size: 1.05rem; font-weight: 500; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { padding: 22px; display: flex; align-items: center; gap: 18px; }
.contact-icon { font-size: 2rem; flex-shrink: 0; }
.contact-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.contact-value { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: color 0.3s; }
.contact-value:hover { color: var(--cyan); }
.contact-form { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.form-group input, .form-group textarea {
background: rgba(255,255,255,0.6);
border: 1px solid var(--border);
border-radius: 12px; padding: 16px 18px;
color: var(--text); font-family: var(--font); font-size: 0.95rem; font-weight: 500;
outline: none; transition: all 0.3s;
resize: vertical; box-shadow: inset 0 2px 4px rgba(15,23,42,0.02);
}
.form-group input:focus, .form-group textarea:focus {
border-color: var(--purple); background: #fff;
box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }
/* ===== FOOTER ===== */
.footer {
border-top: 1px solid var(--border);
padding: 36px 5%; position: relative; z-index: 1;
}
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--mono); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.footer-links a:hover { color: var(--purple); }
/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.revealed { opacity: 1 !important; transform: none !important; }
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
.skills-grid { grid-template-columns: 1fr 1fr; }
.projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
.hero { grid-template-columns: 1fr; text-align: center; }
.hero-visual { display: none; }
.hero-actions { justify-content: center; }
.hero-stats { justify-content: center; }
.about-grid { grid-template-columns: 1fr; }
.skills-grid { grid-template-columns: 1fr; }
.projects-grid { grid-template-columns: 1fr; }
.contact-grid { grid-template-columns: 1fr; }
.nav-links, .nav-cta { display: none; }
.hamburger { display: flex; }
.footer-content { flex-direction: column; text-align: center; }
#navbar { padding: 16px 5%; }
}