/* ============================================================ RESET & BASE ============================================================ */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } :root { /* colours */ --bg: #030014; --bg2: #08081f; --card-bg: rgba(255,255,255,0.03); --card-border: rgba(255,255,255,0.07); --purple: #a855f7; --cyan: #06b6d4; --purple-dim: rgba(168,85,247,0.12); --cyan-dim: rgba(6,182,212,0.12); --glow-p: 0 0 40px rgba(168,85,247,0.25); --glow-c: 0 0 40px rgba(6,182,212,0.25); --t1: #f1f5f9; --t2: #94a3b8; --t3: #475569; /* type */ --sans: 'Space Grotesk', 'Inter', system-ui, sans-serif; --mono: 'Space Mono', 'Fira Code', monospace; /* misc */ --nav-h: 80px; --radius: 14px; --ease: cubic-bezier(0.645,0.045,0.355,1); --tr: all 0.3s cubic-bezier(0.645,0.045,0.355,1); } html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--purple) var(--bg); } html::-webkit-scrollbar { width: 5px; } html::-webkit-scrollbar-track { background: var(--bg); } html::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; } body { font-family: var(--sans); background: var(--bg); color: var(--t2); font-size: 16px; line-height: 1.6; overflow-x: hidden; cursor: none; } /* Touch devices: restore default cursor */ @media (hover: none) { body { cursor: auto; } .cursor-dot, .cursor-ring { display: none !important; } } /* ============================================================ CUSTOM CURSOR ============================================================ */ .cursor-dot { position: fixed; width: 8px; height: 8px; background: var(--purple); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .2s, height .2s, background .2s; will-change: left, top; } .cursor-ring { position: fixed; width: 36px; height: 36px; border: 1.5px solid rgba(168,85,247,.55); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s; will-change: left, top; } body.cur-hover .cursor-dot { width: 12px; height: 12px; background: var(--cyan); } body.cur-hover .cursor-ring { width: 54px; height: 54px; border-color: var(--cyan); } /* ============================================================ BACKGROUND ORBS ============================================================ */ .bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; } .orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .13; } .orb-1 { width: 640px; height: 640px; background: var(--purple); top: -200px; right: -150px; animation: orb1 22s ease-in-out infinite; } .orb-2 { width: 420px; height: 420px; background: var(--cyan); bottom: 15%; left: -120px; animation: orb2 28s ease-in-out infinite; } .orb-3 { width: 320px; height: 320px; background: var(--purple); bottom: -80px; right: 28%; animation: orb3 18s ease-in-out infinite; } @keyframes orb1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-80px,70px) scale(1.08); } 66% { transform: translate(60px,-50px) scale(.93); } } @keyframes orb2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px,-110px) scale(1.12); } } @keyframes orb3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,40px); } } /* Grain overlay */ body::after { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); opacity: .025; pointer-events: none; z-index: 1000; } /* ============================================================ UTILITY ============================================================ */ .gradient-text { background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .container { max-width: 1100px; margin: 0 auto; padding: 0 48px; } /* ============================================================ NAVIGATION ============================================================ */ .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(3,0,20,.75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: var(--tr); } .navbar.scrolled { border-bottom-color: var(--card-border); box-shadow: 0 4px 32px rgba(0,0,0,.35); } .nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; height: 100%; display: flex; align-items: center; justify-content: space-between; } .nav-brand { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--t1); text-decoration: none; transition: var(--tr); } .nav-brand .bracket { color: var(--purple); transition: var(--tr); } .nav-brand:hover .bracket { color: var(--cyan); } .nav-menu { display: flex; align-items: center; gap: 36px; list-style: none; } .nav-link { font-family: var(--mono); font-size: 13px; color: var(--t2); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: var(--tr); } .nav-num { color: var(--purple); font-size: 11px; } .nav-link:hover, .nav-link.active { color: var(--t1); } .nav-link.active { color: var(--purple); } .btn-hire { font-family: var(--mono); font-size: 13px; color: var(--purple); border: 1px solid var(--purple); padding: 9px 20px; border-radius: 6px; text-decoration: none; transition: var(--tr); } .btn-hire:hover { background: var(--purple-dim); box-shadow: var(--glow-p); transform: translateY(-2px); } .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; z-index: 110; } .hamburger span { width: 23px; height: 2px; background: var(--purple); transition: var(--tr); display: block; } .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); } .hamburger.open span:nth-child(2) { opacity: 0; } .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px,-6px); } /* ============================================================ HERO ============================================================ */ .hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; /* subtle grid */ background-image: linear-gradient(rgba(168,85,247,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(168,85,247,.03) 1px, transparent 1px); background-size: 48px 48px; } .hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } /* hero text */ .hero-greeting { font-family: var(--mono); font-size: 15px; color: var(--cyan); margin-bottom: 14px; opacity: 0; animation: fadeUp .8s var(--ease) .3s forwards; } .hero-name { font-size: clamp(46px,6.5vw,80px); font-weight: 700; color: var(--t1); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 14px; opacity: 0; animation: fadeUp .8s var(--ease) .5s forwards; } .hero-role { font-size: clamp(20px,3vw,34px); font-weight: 500; min-height: 50px; margin-bottom: 22px; opacity: 0; animation: fadeUp .8s var(--ease) .7s forwards; } .typed-cursor { display: inline-block; color: var(--cyan); animation: blink 1s step-end infinite; margin-left: 2px; } @keyframes blink { 50% { opacity: 0; } } .hero-desc { font-size: 17px; color: var(--t2); max-width: 480px; line-height: 1.8; margin-bottom: 40px; opacity: 0; animation: fadeUp .8s var(--ease) .9s forwards; } .hero-actions { display: flex; align-items: center; gap: 28px; opacity: 0; animation: fadeUp .8s var(--ease) 1.1s forwards; } .btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: linear-gradient(135deg, var(--purple), var(--cyan)); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 15px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; } .btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--cyan), var(--purple)); opacity: 0; transition: opacity .35s; } .btn-primary span, .btn-primary i { position: relative; z-index: 1; } .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(168,85,247,.45); } .btn-primary:hover::after { opacity: 1; } .hero-socials { display: flex; gap: 14px; } .social-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--t2); font-size: 16px; text-decoration: none; transition: var(--tr); } .social-btn:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-3px); box-shadow: var(--glow-p); } /* code card */ .hero-visual { opacity: 0; animation: fadeLeft 1s var(--ease) .8s forwards; } .code-card { position: relative; background: rgba(8,8,31,.92); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04); transition: var(--tr); } .code-card:hover { border-color: rgba(168,85,247,.35); transform: translateY(-6px) rotateX(2deg); box-shadow: 0 30px 80px rgba(0,0,0,.6), var(--glow-p); } .code-card-glow { position: absolute; inset: -40px; background: radial-gradient(circle, rgba(168,85,247,.1), transparent 70%); pointer-events: none; } .code-header { display: flex; align-items: center; gap: 7px; padding: 13px 18px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--card-border); } .dot { width: 12px; height: 12px; border-radius: 50%; } .dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; } .code-fname { font-family: var(--mono); font-size: 12px; color: var(--t3); margin-left: 8px; } .code-body { font-family: var(--mono); font-size: 13px; line-height: 1.85; padding: 22px 24px; color: var(--t2); overflow-x: auto; white-space: pre; } .ck { color: #c792ea; } .cc { color: #82aaff; } .cf { color: #82aaff; } .cs { color: #c3e88d; } .cn { color: #f78c6c; } .co { color: var(--t3); } /* scroll hint */ .scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: fadeIn 1s ease 1.6s forwards; } .scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, var(--purple), transparent); animation: scrollPulse 2.2s ease-in-out infinite; } .scroll-hint span { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: 2px; text-transform: uppercase; } @keyframes scrollPulse { 0%,100% { opacity:1; } 50% { opacity:.25; } } /* ============================================================ SECTIONS COMMON ============================================================ */ section { position: relative; z-index: 1; padding: 120px 0; } .section-tag { display: block; font-family: var(--mono); font-size: 13px; color: var(--purple); margin-bottom: 8px; } .section-heading { font-size: clamp(30px,5vw,50px); font-weight: 700; color: var(--t1); letter-spacing: -.5px; margin-bottom: 56px; } /* reveal */ .reveal-item { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); } .reveal-item.visible { opacity: 1; transform: translateY(0); } /* ============================================================ ABOUT ============================================================ */ .about { background: var(--bg); } .about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; } .about-text p { font-size: 17px; line-height: 1.85; color: var(--t2); margin-bottom: 18px; } .about-text strong { color: var(--t1); } .about-stats { display: flex; gap: 40px; margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--card-border); } .stat-num { display: block; font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 6px; } .stat-label { font-family: var(--mono); font-size: 12px; color: var(--t3); } .about-pills-wrap { position: sticky; top: 110px; } .pills-label { font-family: var(--mono); font-size: 13px; color: var(--t1); margin-bottom: 20px; } .tech-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; } .tech-pills li { font-family: var(--mono); font-size: 12px; padding: 7px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 100px; color: var(--t2); transition: var(--tr); cursor: default; } .tech-pills li:hover { color: var(--purple); border-color: var(--purple); background: var(--purple-dim); transform: translateY(-2px); } /* ============================================================ EXPERIENCE ============================================================ */ .experience { background: var(--bg2); } .timeline { position: relative; } .tl-item { position: relative; padding-left: 36px; border-left: 2px solid rgba(168,85,247,.18); margin-bottom: 52px; transition: border-color .35s; } .tl-item:last-child { margin-bottom: 0; } .tl-item:hover { border-left-color: rgba(168,85,247,.55); } .tl-dot { position: absolute; left: -8px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--cyan)); box-shadow: 0 0 14px rgba(168,85,247,.55); z-index: 1; } .tl-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px 30px; backdrop-filter: blur(10px); transition: var(--tr); } .tl-item:hover .tl-card { border-color: rgba(168,85,247,.28); box-shadow: 0 8px 40px rgba(0,0,0,.3); transform: translateX(4px); } .tl-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .tl-date { font-family: var(--mono); font-size: 12px; color: var(--t3); } .tl-badge { font-family: var(--mono); font-size: 11px; padding: 2px 10px; border-radius: 100px; background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple); animation: badgePulse 2.5s ease-in-out infinite; } @keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,.35); } 50% { box-shadow: 0 0 0 6px rgba(168,85,247,0); } } .tl-title { font-size: 21px; font-weight: 600; color: var(--t1); margin-bottom: 3px; } .tl-company { font-family: var(--mono); font-size: 14px; color: var(--cyan); display: block; margin-bottom: 18px; } .tl-points { list-style: none; margin-bottom: 22px; } .tl-points li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.75; color: var(--t2); margin-bottom: 10px; } .tl-points li::before { content: '▹'; position: absolute; left: 0; color: var(--purple); font-size: 13px; top: 2px; } .tl-tags { display: flex; flex-wrap: wrap; gap: 8px; } .tl-tags span { font-family: var(--mono); font-size: 11px; padding: 3px 11px; border-radius: 100px; background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.14); color: var(--t3); } /* ============================================================ SKILLS ============================================================ */ .skills { background: var(--bg); } .skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; } .skill-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(10px); position: relative; overflow: hidden; transition: var(--tr); } .skill-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(168,85,247,.04), rgba(6,182,212,.04)); opacity: 0; transition: opacity .35s; } .skill-card:hover { border-color: rgba(168,85,247,.3); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.4), var(--glow-p); } .skill-card:hover::before { opacity: 1; } .skill-icon { font-size: 26px; margin-bottom: 14px; background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .skill-card h3 { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--t1); margin-bottom: 14px; } .skill-tags { display: flex; flex-wrap: wrap; gap: 8px; } .skill-tags span { font-family: var(--mono); font-size: 11px; padding: 4px 12px; border-radius: 100px; background: rgba(255,255,255,.04); border: 1px solid var(--card-border); color: var(--t2); transition: var(--tr); } .skill-tags span:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-dim); } /* ============================================================ PROJECTS ============================================================ */ .projects { background: var(--bg2); } .projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; } .proj-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; position: relative; backdrop-filter: blur(10px); transition: var(--tr); } .proj-glow { position: absolute; inset: -60px; background: radial-gradient(circle, rgba(168,85,247,.07), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; } .proj-card:hover { border-color: rgba(168,85,247,.38); transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(168,85,247,.1); } .proj-card:hover .proj-glow { opacity: 1; } .proj-inner { padding: 26px; height: 100%; display: flex; flex-direction: column; position: relative; } .proj-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; } .proj-icon { font-size: 30px; background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .proj-links { display: flex; gap: 14px; } .proj-links a { color: var(--t3); font-size: 18px; text-decoration: none; transition: var(--tr); } .proj-links a:hover { color: var(--purple); transform: translateY(-2px); } .proj-card h3 { font-size: 18px; font-weight: 600; color: var(--t1); margin-bottom: 10px; } .proj-card p { font-size: 14px; color: var(--t2); line-height: 1.75; flex: 1; } .proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; } .proj-tags span { font-family: var(--mono); font-size: 11px; padding: 3px 11px; border-radius: 100px; background: rgba(6,182,212,.07); border: 1px solid rgba(6,182,212,.14); color: var(--t3); } /* ============================================================ CONTACT ============================================================ */ .contact { background: var(--bg); padding: 160px 0 100px; text-align: center; } .contact-inner { max-width: 600px; margin: 0 auto; } .contact-overline { font-family: var(--mono); font-size: 14px; color: var(--purple); margin-bottom: 16px; } .contact-title { font-size: clamp(38px,6vw,68px); font-weight: 700; color: var(--t1); letter-spacing: -1px; margin-bottom: 22px; } .contact-desc { font-size: 17px; color: var(--t2); line-height: 1.85; margin-bottom: 48px; } .btn-contact { display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; border: 1px solid var(--purple); border-radius: 8px; color: var(--purple); text-decoration: none; font-family: var(--mono); font-size: 14px; position: relative; overflow: hidden; transition: var(--tr); } .btn-contact::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--purple-dim), var(--cyan-dim)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); } .btn-contact span, .btn-contact i { position: relative; z-index: 1; } .btn-contact:hover { color: var(--t1); border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 0 32px rgba(168,85,247,.3); } .btn-contact:hover::before { transform: scaleX(1); } .contact-socials { display: flex; justify-content: center; gap: 22px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--card-border); } .contact-socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-border); color: var(--t3); font-size: 18px; text-decoration: none; transition: var(--tr); } .contact-socials a:hover { color: var(--purple); border-color: var(--purple); box-shadow: var(--glow-p); transform: translateY(-4px); } /* ============================================================ FOOTER ============================================================ */ .footer { padding: 28px 40px; text-align: center; background: var(--bg2); border-top: 1px solid var(--card-border); } .footer p { font-family: var(--mono); font-size: 13px; color: var(--t3); } .footer-copy { margin-top: 4px; font-size: 12px; } /* ============================================================ KEYFRAMES ============================================================ */ @keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } } @keyframes fadeLeft { from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:translateX(0); } } @keyframes fadeIn { from { opacity:0; } to { opacity:1; } } /* ============================================================ RESPONSIVE — 1024px ============================================================ */ @media (max-width: 1024px) { .container, .nav-inner { padding: 0 32px; } .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 0 32px; } .hero-visual { display: none; } .about-grid { grid-template-columns: 1fr; gap: 48px; } .about-pills-wrap { position: static; } .skills-grid { grid-template-columns: repeat(2,1fr); } .projects-grid { grid-template-columns: repeat(2,1fr); } } /* ============================================================ RESPONSIVE — 768px ============================================================ */ @media (max-width: 768px) { :root { --nav-h: 70px; } .container, .nav-inner { padding: 0 24px; } .nav-menu { position: fixed; top: var(--nav-h); left: -100%; width: 100%; height: calc(100vh - var(--nav-h)); background: rgba(3,0,20,.97); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 32px; transition: left .4s var(--ease); } .nav-menu.open { left: 0; } .nav-link { font-size: 18px; } .hamburger { display: flex; } section { padding: 80px 0; } .contact { padding: 100px 0 80px; } .hero-inner { padding: 0 24px; } .skills-grid, .projects-grid { grid-template-columns: 1fr; } .about-stats { gap: 28px; } } /* ============================================================ RESPONSIVE — 480px ============================================================ */ @media (max-width: 480px) { .hero-name { font-size: clamp(38px,10vw,58px); } .about-stats { flex-direction: column; gap: 20px; } .section-heading { margin-bottom: 36px; } }