Files
webdev-site/styles.css
hobokenchicken 8883b5487b feat(interaction): implement sophisticated hover effects and parallax
- Add moving shine effect and glow on card hover
- Implement coffee drip animation for link underlines
- Add JS-driven parallax scroll effect for floating elements
- Enhance button micro-interactions
- Refine animations for smoothness
2026-02-12 09:19:20 -05:00

1256 lines
29 KiB
CSS

:root {
/* Palette - Coffee Theme Enhanced */
--color-coffee-dark: #2c211d; /* Espresso */
--color-coffee-medium: #6F4E37; /* Medium Roast */
--color-cream: #F5E8C7; /* Latte Foam */
--color-gold: #D4A574; /* Caramel */
--color-teal: #1D7874; /* Oxidized Copper */
--color-orange: #E76F51; /* Terracotta */
/* Gradients */
--gradient-hero: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-coffee-medium) 100%);
--gradient-gold: linear-gradient(45deg, var(--color-gold), #e8c39e);
--gradient-teal: linear-gradient(45deg, var(--color-teal), #2a9d8f);
/* Semantic Colors - Light Mode Default */
--bg-body: #FDFBF7;
--text-body: var(--color-coffee-dark);
--bg-surface-rgb: 255, 255, 255;
--bg-surface: rgba(var(--bg-surface-rgb), 0.7);
--color-primary: var(--color-teal);
--color-secondary: var(--color-gold);
--border-subtle: rgba(111, 78, 55, 0.15);
--shadow-soft: 0 10px 30px -5px rgba(44, 33, 29, 0.08);
--shadow-glass: 0 8px 32px 0 rgba(44, 33, 29, 0.1);
/* Section Backgrounds */
--bg-section-alt: rgba(111, 78, 55, 0.03);
/* Typography */
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
--font-display: 'Inter', system-ui, sans-serif; /* Could swap for a Serif if linked */
/* BS Overrides */
--bs-body-bg: var(--bg-body);
--bs-body-color: var(--text-body);
--bs-primary: var(--color-primary);
--bs-primary-rgb: 42, 157, 143;
}
@media (prefers-color-scheme: dark) {
:root {
/* Semantic Colors - Dark Mode */
--bg-body: #1a1412;
--text-body: #F5E8C7;
--bg-surface-rgb: 30, 24, 22;
--bg-surface: rgba(var(--bg-surface-rgb), 0.6);
--border-subtle: rgba(245, 232, 199, 0.1);
--shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
--shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
--bg-section-alt: rgba(255, 255, 255, 0.02);
/* BS Overrides */
--bs-body-bg: var(--bg-body);
--bs-body-color: var(--text-body);
--bs-dark: #1f1a17;
}
}
/* Global Reset & Base */
body {
font-family: var(--font-sans);
background-color: var(--bg-body);
/* Subtle Grain Texture */
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
color: var(--text-body);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
transition: background-color 0.3s ease, color 0.3s ease;
overflow-x: hidden; /* Prevent horizontal scroll from floating elements */
}
/* ===== DECORATIVE LAYERS ===== */
.decorative-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.floating-bean {
position: absolute;
opacity: 0.03;
color: var(--color-coffee-dark);
animation: float-bean 20s infinite linear;
}
@media (prefers-color-scheme: dark) {
.floating-bean {
color: var(--color-cream);
opacity: 0.05;
}
}
.bean-1 { width: 100px; top: 10%; left: 5%; animation-duration: 25s; }
.bean-2 { width: 150px; top: 60%; right: -5%; animation-duration: 35s; animation-direction: reverse; }
.bean-3 { width: 80px; top: 80%; left: 15%; animation-duration: 30s; animation-delay: -5s; }
@keyframes float-bean {
0% { transform: translate(0, 0) rotate(0deg); }
33% { transform: translate(30px, -50px) rotate(120deg); }
66% { transform: translate(-20px, 50px) rotate(240deg); }
100% { transform: translate(0, 0) rotate(360deg); }
}
/* ===== DECORATIVE ELEMENTS ===== */
.drip-separator {
position: absolute;
width: 100%;
left: 0;
line-height: 0;
z-index: 2;
overflow: hidden;
pointer-events: none;
}
.drip-separator svg {
display: block;
width: calc(100% + 1.3px);
height: 60px;
}
.drip-separator.bottom {
bottom: -1px;
transform: rotate(180deg);
color: var(--bg-body); /* Match the section below it */
}
/* Specific background match for where the drip lands */
/* If the next section is section-alt, we need to match that */
/* BUT here hero is followed by white/cream section, so bg-body is correct */
/* Floating Cup Animation */
.floating-cup {
position: absolute;
opacity: 0.04;
color: var(--color-coffee-dark);
animation: float-rotate 18s infinite ease-in-out;
transition: transform 0.1s linear;
}
@media (prefers-color-scheme: dark) {
.floating-cup {
color: var(--color-cream);
opacity: 0.06;
}
}
.cup-1 { width: 120px; top: 25%; right: 10%; animation-delay: -2s; }
@keyframes float-rotate {
0% { transform: rotate(-5deg); }
50% { transform: rotate(5deg); }
100% { transform: rotate(-5deg); }
}
@keyframes float-rotate {
0% { transform: rotate(-5deg); }
50% { transform: rotate(5deg); }
100% { transform: rotate(-5deg); }
}
/* Coffee Stains */
.coffee-stain {
position: absolute;
background-repeat: no-repeat;
background-size: contain;
opacity: 0.06;
pointer-events: none;
z-index: 0;
/* Inline SVG for stain - ring shape */
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236F4E37' d='M100,20 C145,20 180,55 180,100 C180,145 145,180 100,180 C55,180 20,145 20,100 C20,55 55,20 100,20 Z M100,35 C65,35 35,65 35,100 C35,135 65,165 100,165 C135,165 165,135 165,100 C165,65 135,35 100,35 Z'/%3E%3C/svg%3E");
}
.stain-2 {
width: 300px;
height: 300px;
top: -50px;
right: -50px;
transform: rotate(45deg);
}
/* Coffee Grounds Pattern */
.coffee-grounds-pattern {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.1;
pointer-events: none;
background-image: radial-gradient(var(--color-coffee-medium) 1px, transparent 1px);
background-size: 20px 20px;
}
/* Button Icon Styling */
.btn-icon {
margin-right: 0.5rem;
vertical-align: text-bottom;
transition: transform 0.3s ease;
}
.btn-primary:hover .btn-icon {
transform: rotate(-10deg) scale(1.1);
}
/* Ripple/Steam Effect on Buttons (Pseudo-element) */
.btn-primary::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
transform: scale(0);
transition: transform 0.6s ease-out;
opacity: 0;
}
/* Corner Accents */
.card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 60px;
height: 60px;
background: radial-gradient(circle at top right, rgba(212, 165, 116, 0.2), transparent 70%);
border-radius: 0 16px 0 100%;
pointer-events: none;
opacity: 0;
transition: opacity 0.4s ease;
}
.card:hover::before {
opacity: 1;
}
/* Scroll Progress Enhancement */
.scroll-progress {
height: 6px; /* Slightly thicker */
background: linear-gradient(
to right,
var(--color-coffee-dark) 0%,
var(--color-gold) var(--scroll-progress, 0%),
transparent var(--scroll-progress, 0%)
);
box-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
}
.btn-primary:active::after {
transform: scale(1);
opacity: 1;
transition: 0s;
}
a {
color: var(--color-primary);
text-decoration: none;
font-weight: 600;
position: relative;
transition: color 0.3s ease;
/* Coffee Drip Underline Animation */
background-image: linear-gradient(to right, var(--color-coffee-medium) 0%, var(--color-gold) 100%);
background-size: 0% 2px;
background-position: left bottom;
background-repeat: no-repeat;
padding-bottom: 2px;
&:hover {
background-size: 100% 2px;
color: var(--color-coffee-dark);
}
}
@media (prefers-color-scheme: dark) {
a:hover {
color: var(--color-gold);
}
}
/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
font-weight: 800;
letter-spacing: -0.04em; /* Tighter */
color: currentColor;
margin-bottom: 1rem;
font-family: var(--font-display);
}
h1 {
font-size: clamp(3rem, 6vw, 5rem);
line-height: 1.05;
text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}
h2 {
font-size: clamp(2.5rem, 5vw, 3.5rem);
margin-bottom: 4rem;
padding-bottom: 1.5rem;
position: relative;
display: inline-block;
border-bottom: none;
background: var(--gradient-hero);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
h2::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 6px;
background: var(--color-gold);
border-radius: 4px;
transition: width 0.4s ease;
}
section:hover h2::after {
width: 120px;
}
/* Sections */
section {
position: relative;
width: 100%;
}
.section-alt {
background-color: var(--bg-section-alt);
/* Remove borders for seamless look, rely on background change */
border-top: none;
border-bottom: none;
}
.section-padding {
padding-block: clamp(6rem, 10vw, 8rem); /* More breathing room */
}
/* Header/Hero Section */
.hero-section {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
position: relative;
padding: 2rem 1rem;
z-index: 1;
overflow: hidden;
}
.hero-content {
max-width: 1000px;
margin: 0 auto;
position: relative;
z-index: 2;
}
.hero-title {
font-size: clamp(3.5rem, 10vw, 7rem);
line-height: 1;
margin-bottom: 2rem;
background: var(--gradient-hero);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 900;
letter-spacing: -0.05em;
filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}
.hero-subtitle {
font-size: clamp(1.25rem, 3vw, 2rem);
margin-bottom: 3rem;
color: var(--color-coffee-dark);
font-weight: 500;
min-height: 1.5em;
opacity: 0.9;
letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
.hero-title {
background: linear-gradient(135deg, #fff 0%, var(--color-gold) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-subtitle {
color: var(--color-cream);
}
h2 {
background: linear-gradient(135deg, #fff 0%, var(--color-gold) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
/* Cards (Services & Portfolio) */
.card {
background-color: var(--bg-surface);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-subtle);
border-radius: 16px;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
height: 100%;
position: relative;
/* Scroll Animation Entry */
view-timeline-name: --card-entry;
view-timeline-axis: block;
animation: fade-in-up linear both;
animation-timeline: view();
animation-range: entry 10% cover 20%;
&:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: var(--shadow-glass);
border-color: var(--color-gold);
background-color: color-mix(in srgb, var(--bg-surface), var(--color-cream) 10%);
}
/* Shine Effect */
&::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.2),
transparent
);
transition: 0.5s;
pointer-events: none;
}
&:hover::after {
left: 100%;
transition: 0.7s ease-in-out;
}
.card-img-top {
aspect-ratio: 16/9;
object-fit: cover;
transition: transform 0.6s ease;
filter: sepia(20%) contrast(1.1);
}
&:hover .card-img-top {
transform: scale(1.08);
filter: sepia(0%) contrast(1.2);
}
.card-body {
padding: 2rem;
display: flex;
flex-direction: column;
h5.card-title {
font-size: 1.5rem;
margin-bottom: 0.75rem;
font-family: var(--font-display);
letter-spacing: -0.02em;
}
p.card-text {
font-size: 1rem;
opacity: 0.9;
flex-grow: 1;
line-height: 1.7;
}
}
}
/* List Group (Services) */
.list-group {
--bs-list-group-bg: transparent;
--bs-list-group-border-color: var(--border-subtle);
.list-group-item {
background-color: var(--bg-surface);
backdrop-filter: blur(8px);
border-color: var(--border-subtle);
font-weight: 500;
transition: all 0.3s ease;
border-radius: 8px;
margin-bottom: 0.5rem;
&:hover {
background-color: color-mix(in srgb, var(--color-primary), transparent 90%);
border-left: 6px solid var(--color-secondary);
transform: translateX(5px);
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
}
}
/* Footer */
footer {
background-color: var(--color-coffee-dark) !important;
color: var(--color-cream) !important;
padding: 3rem 0;
margin-top: 5rem;
border-top: 4px solid var(--color-secondary);
a {
color: var(--color-cream);
opacity: 0.7;
&:hover {
opacity: 1;
color: var(--color-secondary);
}
}
}
/* Tech Stack Cards */
.tech-card {
padding: 2.5rem 1.5rem;
border-radius: 20px;
background-color: var(--bg-surface);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border-subtle);
text-align: center;
height: 100%;
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Elastic Bounce */
position: relative;
overflow: hidden;
z-index: 1;
}
.tech-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--gradient-teal);
transform: scaleX(0);
transition: transform 0.4s ease;
}
.tech-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 40px -10px rgba(29, 120, 116, 0.15);
border-color: var(--color-teal);
}
.tech-card:hover::before {
transform: scaleX(1);
}
/* Portfolio Badges */
.badge-coffee {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5em 1em;
font-size: 0.75rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--color-coffee-dark);
background-color: rgba(255, 255, 255, 0.5);
border: 1px solid var(--border-subtle);
border-radius: 50px;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
cursor: default;
backdrop-filter: blur(4px);
}
.badge-coffee svg {
width: 14px;
height: 14px;
stroke-width: 2.5;
}
.badge-coffee:hover {
background: var(--gradient-gold);
color: var(--color-coffee-dark);
border-color: transparent;
transform: translateY(-2px) scale(1.05);
box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}
@media (prefers-color-scheme: dark) {
.badge-coffee {
color: var(--color-cream);
background-color: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
}
.badge-coffee:hover {
background: var(--gradient-gold);
color: var(--color-coffee-dark);
border-color: transparent;
}
}
.tech-icon-wrapper {
width: 80px; /* Larger */
height: 80px;
border-radius: 50%;
background: linear-gradient(135deg, rgba(29, 120, 116, 0.1), rgba(29, 120, 116, 0.05));
color: var(--color-teal);
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
transition: all 0.5s ease;
border: 1px solid transparent;
}
.tech-card:hover .tech-icon-wrapper {
background: var(--gradient-teal);
color: white;
transform: scale(1.1) rotate(10deg);
box-shadow: 0 10px 20px rgba(29, 120, 116, 0.3);
}
.tech-name {
font-weight: 800;
font-size: 1.2rem;
margin-bottom: 0.5rem;
color: var(--text-body);
font-family: var(--font-display);
}
.tech-desc {
font-size: 0.95rem;
opacity: 0.8;
margin: 0;
line-height: 1.5;
}
/* Process Section */
.process-card {
background-color: var(--bg-surface);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 2.5rem;
height: 100%;
position: relative;
transition: all 0.4s ease;
z-index: 1;
overflow: hidden;
}
.section-alt .process-card {
background-color: var(--bg-surface);
}
.process-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-soft);
border-color: var(--color-secondary);
}
.process-number {
position: absolute;
top: -15px;
right: -10px;
font-size: 5rem;
font-weight: 900;
color: var(--color-coffee-medium);
opacity: 0.08;
line-height: 1;
z-index: 0;
font-family: var(--font-sans);
}
.process-icon-wrapper {
width: 56px;
height: 56px;
border-radius: 50%;
background-color: color-mix(in srgb, var(--color-primary), transparent 90%);
color: var(--color-primary);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
position: relative;
z-index: 1;
}
.process-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.75rem;
color: var(--text-body);
position: relative;
z-index: 1;
}
.process-desc {
font-size: 0.95rem;
color: var(--text-body);
opacity: 0.85;
margin-bottom: 0;
position: relative;
z-index: 1;
}
/* Animations */
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Container Queries for Responsive Typography inside cards if needed */
.card-body {
container-type: inline-size;
}
@container (max-width: 300px) {
.card-title {
font-size: 1.1rem;
}
}
/* Utility Overrides for Bootstrap Buttons to match theme */
.btn-primary {
background: var(--gradient-teal);
border: none;
color: white;
font-weight: 800;
text-transform: uppercase;
font-size: 0.9rem;
letter-spacing: 0.08em;
padding: 0.8em 2em;
border-radius: 50px;
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 4px 15px rgba(29, 120, 116, 0.3);
z-index: 1;
}
.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, var(--color-coffee-dark), var(--color-teal));
opacity: 0;
z-index: -1;
transition: opacity 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
transform: translateY(-3px) scale(1.02);
box-shadow: 0 8px 25px rgba(29, 120, 116, 0.5);
color: white !important;
}
.btn-primary:hover::before {
opacity: 1;
}
/* Custom Coffee Outline Button */
.btn-outline-coffee {
color: var(--text-body);
border: 2px solid var(--color-coffee-dark);
background: transparent;
font-weight: 800;
text-transform: uppercase;
font-size: 0.9rem;
letter-spacing: 0.08em;
padding: 0.7em 2em;
border-radius: 50px;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-outline-coffee:hover,
.btn-outline-coffee:focus {
background: var(--gradient-hero);
color: var(--color-cream);
border-color: transparent;
transform: translateY(-3px) scale(1.02);
box-shadow: 0 8px 25px rgba(59, 47, 47, 0.3);
}
@media (prefers-color-scheme: dark) {
.btn-outline-coffee {
color: var(--color-cream);
border-color: var(--color-cream);
}
}
.btn-group-custom {
display: flex;
gap: 1.5rem;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 3rem;
}
/* Footer */
footer {
background: linear-gradient(to top, #1a1412, #2c211d) !important;
color: var(--color-cream) !important;
padding: 5rem 0 3rem;
margin-top: 8rem;
position: relative;
border-top: none;
}
footer::before {
content: '';
position: absolute;
top: -50px;
left: 0;
width: 100%;
height: 50px;
background: linear-gradient(to top, #2c211d, transparent);
pointer-events: none;
}
footer a {
color: var(--color-cream);
opacity: 0.7;
transition: opacity 0.3s;
}
footer a:hover {
opacity: 1;
color: var(--color-gold);
text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}
/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(
to right,
var(--color-primary) 0%,
var(--color-primary) var(--scroll-progress, 0%),
transparent var(--scroll-progress, 0%)
);
z-index: 9999;
transition: none;
}
/* ===== PARTICLE CANVAS ===== */
#particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
opacity: 0.6;
}
/* ===== TYPEWRITER EFFECT ===== */
.typewriter {
opacity: 0;
transition: opacity 0.3s;
position: relative;
display: inline-block;
}
.typewriter::after {
content: '|';
position: absolute;
right: -8px;
animation: blink 0.7s infinite;
color: var(--color-secondary);
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
/* ===== ANIMATED SKILL BARS ===== */
.skill-bars {
--bs-list-group-bg: transparent;
}
.skill-item {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1.25rem;
border-left: 4px solid transparent;
transition: border-color 0.3s, background-color 0.3s;
}
.skill-item:hover {
border-left-color: var(--color-secondary);
}
.skill-name {
font-weight: 600;
font-size: 1rem;
color: var(--text-body);
}
.skill-bar-track {
width: 100%;
height: 8px;
background: color-mix(in srgb, var(--color-coffee-medium), transparent 85%);
border-radius: 50px;
overflow: hidden;
position: relative;
}
.skill-bar-fill {
height: 100%;
width: 0;
background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
border-radius: 50px;
transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
position: relative;
overflow: hidden;
}
.skill-bar-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.skill-item.animate .skill-bar-fill {
width: var(--skill-level);
}
/* ===== INTERACTIVE TESTIMONIALS ===== */
.testimonial-card {
position: relative;
overflow: hidden;
background-color: var(--bg-body);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 2rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
}
.section-alt .testimonial-card {
background-color: var(--bg-surface);
}
.testimonial-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-soft);
border-color: var(--color-secondary);
}
.testimonial-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
position: relative;
z-index: 2;
}
.testimonial-avatar {
width: 60px;
height: 60px;
background: linear-gradient(135deg, var(--color-coffee-medium), var(--color-coffee-dark));
color: var(--color-cream);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.5rem;
flex-shrink: 0;
border: 2px solid var(--border-subtle);
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.testimonial-meta h5 {
margin: 0;
font-size: 1.1rem;
color: var(--text-body);
}
.testimonial-meta small {
display: block;
font-size: 0.85rem;
opacity: 0.8;
color: var(--color-coffee-medium);
}
.testimonial-rating {
display: flex;
gap: 0.2rem;
margin-bottom: 1rem;
color: var(--color-gold);
}
.testimonial-quote-icon {
position: absolute;
top: -10px;
right: 20px;
font-size: 8rem;
line-height: 1;
font-family: serif;
color: var(--color-secondary);
opacity: 0.1;
pointer-events: none;
z-index: 0;
}
.testimonial-full, .testimonial-excerpt {
font-style: italic;
font-size: 1.05rem;
color: var(--text-body);
position: relative;
z-index: 1;
line-height: 1.7;
margin-bottom: 1.5rem;
}
.testimonial-full {
display: none;
}
.testimonial-card.expanded .testimonial-excerpt {
display: none;
}
.testimonial-card.expanded .testimonial-full {
display: block;
}
.testimonial-toggle {
background: transparent;
color: var(--color-primary);
border: 2px solid var(--color-primary);
padding: 0.5rem 1.5rem;
border-radius: 50px;
font-weight: 700;
font-size: 0.85rem;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 0.05em;
transition: all 0.2s;
margin-top: auto;
display: inline-block;
}
.testimonial-toggle:hover {
background: var(--color-primary);
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(29, 120, 116, 0.2);
}
.testimonial-toggle:active {
transform: translateY(0);
}
@media (prefers-color-scheme: dark) {
.testimonial-meta h5 {
color: var(--color-cream);
}
.testimonial-meta small {
color: var(--color-secondary);
}
}
/* Custom Coffee Outline Button */
.btn-outline-coffee {
color: var(--color-coffee-dark);
border: 2px solid var(--color-coffee-dark);
background: transparent;
font-weight: 700;
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 0.05em;
padding: 0.6em 1.2em;
border-radius: 50px;
transition: all 0.3s ease;
}
.btn-outline-coffee:hover,
.btn-outline-coffee:focus {
background-color: var(--color-coffee-dark);
color: var(--color-cream);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(59, 47, 47, 0.2);
}
@media (prefers-color-scheme: dark) {
.btn-outline-coffee {
color: var(--color-cream);
border-color: var(--color-cream);
}
.btn-outline-coffee:hover {
background-color: var(--color-cream);
color: var(--color-coffee-dark);
}
}
.btn-group-custom {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 2rem;
}
/* Scroll Bounce Animation */
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
40% {transform: translateY(-10px);}
60% {transform: translateY(-5px);}
}
.animate-bounce {
animation: bounce 2s infinite;
}
/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
.typewriter::after {
animation: none;
}
.skill-bar-fill::after {
animation: none;
}
.animate-bounce {
animation: none;
}
}
/* Metrics Banner */
.metrics-banner {
background-color: var(--color-coffee-dark);
color: var(--color-cream);
padding-block: 4rem;
position: relative;
z-index: 2;
}
.metric-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
padding: 1rem;
transition: transform 0.3s ease;
}
.metric-item:hover {
transform: translateY(-5px);
}
.gauge {
width: 100px;
height: 100px;
border-radius: 50%;
background: conic-gradient(var(--color-secondary) var(--percent), rgba(255,255,255,0.1) 0);
position: relative;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.gauge::before {
content: attr(data-score);
position: absolute;
width: 84%;
height: 84%;
background-color: var(--color-coffee-dark);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 1.75rem;
color: var(--color-cream);
font-family: var(--font-sans);
}
.metric-label {
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: 0.9rem;
opacity: 0.9;
text-align: center;
}