228 lines
4.9 KiB
CSS
228 lines
4.9 KiB
CSS
/* =====================================================
|
|
HERO SECTION
|
|
===================================================== */
|
|
.hero {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 60px;
|
|
padding: clamp(60px, 10vw, 120px) 5% clamp(50px, 8vw, 100px);
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.hero-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.hero-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: rgba(37, 99, 235, 0.1);
|
|
border: 1px solid rgba(37, 99, 235, 0.25);
|
|
border-radius: 50px;
|
|
padding: 6px 16px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--accent-2);
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.hero-badge .dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
background: #22c55e;
|
|
border-radius: 50%;
|
|
animation: pulse-dot 2s ease-in-out infinite;
|
|
}
|
|
|
|
h1 {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-size: clamp(2.8rem, 5.5vw, 4rem);
|
|
font-weight: 900;
|
|
line-height: 1.05;
|
|
letter-spacing: -2px;
|
|
margin-bottom: 20px;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.highlight {
|
|
background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-muted);
|
|
font-size: clamp(0.95rem, 2vw, 1.1rem);
|
|
margin-bottom: 30px;
|
|
max-width: 500px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.hero-btns {
|
|
display: flex;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* --- Hero Profile Image --- */
|
|
.hero-img-container {
|
|
position: relative;
|
|
width: 280px;
|
|
height: 280px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.img-ring {
|
|
position: absolute;
|
|
inset: -8px;
|
|
border-radius: 24px;
|
|
border: 2px solid var(--accent);
|
|
background: transparent;
|
|
z-index: 0;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.profile-pic {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 20px;
|
|
border: 2px solid var(--border);
|
|
z-index: 2;
|
|
transition: opacity 0.4s var(--ease);
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Dark mode image states */
|
|
.img-night-normal { opacity: 1; z-index: 3; cursor: default; }
|
|
.hero-img-container:hover .img-night-hover { opacity: 1; z-index: 4; cursor: default; }
|
|
.hero-img-container:hover .img-night-normal { opacity: 0; }
|
|
|
|
/* Light mode image states */
|
|
body:has(#dark-mode-toggle:not(:checked)) .img-night-normal,
|
|
body:has(#dark-mode-toggle:not(:checked)) .img-night-hover { opacity: 0 !important; }
|
|
body:has(#dark-mode-toggle:not(:checked)) .img-day-normal { opacity: 1; z-index: 3; cursor: default; }
|
|
body:has(#dark-mode-toggle:not(:checked)) .hero-img-container:hover .img-day-hover { opacity: 1; z-index: 4; cursor: default; }
|
|
body:has(#dark-mode-toggle:not(:checked)) .hero-img-container:hover .img-day-normal { opacity: 0; }
|
|
|
|
.glow-effect {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--accent);
|
|
border-radius: 20px;
|
|
opacity: 0.12;
|
|
z-index: 1;
|
|
filter: blur(30px);
|
|
transform: translate(10px, 10px);
|
|
transition: opacity 0.4s;
|
|
}
|
|
|
|
.hero-img-container:hover .glow-effect {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
/* =====================================================
|
|
ABOUT SECTION & TECH STACK
|
|
===================================================== */
|
|
.about-content {
|
|
display: grid;
|
|
grid-template-columns: 3fr 2fr;
|
|
gap: 60px;
|
|
align-items: start;
|
|
}
|
|
|
|
.about-text p {
|
|
color: var(--text-muted);
|
|
margin-bottom: 18px;
|
|
font-size: 1.05rem;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.about-text p strong {
|
|
color: var(--text-main);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tech-stack h3 {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tags span {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
padding: 7px 16px;
|
|
border-radius: 50px;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
letter-spacing: 0.02em;
|
|
transition: all 0.2s var(--ease);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.tags span:hover {
|
|
border-color: var(--border-hover);
|
|
color: var(--accent-2);
|
|
background: rgba(37, 99, 235, 0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* =====================================================
|
|
STATS ROW
|
|
===================================================== */
|
|
.stats-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 20px;
|
|
margin-top: 50px;
|
|
padding-top: 50px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-number {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-size: 2.2rem;
|
|
font-weight: 900;
|
|
background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
line-height: 1;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|