/**
 * Portfolio Theme - Design System
 * Dark, minimal, professional. Black & yellow/gold accent.
 *
 * @package My_Portfolio
 */

/* ================================================
   DESIGN TOKENS (Black & Yellow #FFC107)
   ================================================ */
:root {
    --primary: #FFC107;
    --bg: #0A0A0A;
    --card-border: rgba(255, 255, 255, 0.1);
    --bento-border: hsla(0, 0%, 100%, 0.08);
    --body-text-dim: rgba(255, 255, 255, 0.7);
    --color-bg: var(--bg);
    --color-bg-gold-tint: rgba(255, 193, 7, 0.03);
    --color-surface: #0d0d0d;
    --color-surface-elevated: rgba(18, 18, 18, 0.7);
    --color-border: #1f1f1f;
    --color-border-gold: rgba(255, 193, 7, 0.45);
    --color-border-gold-strong: rgba(255, 193, 7, 0.6);
    --color-text: #fafafa;
    --color-text-muted: #a1a1a1;
    --color-accent: var(--primary);
    --color-accent-hover: #ffcd38;
    --color-accent-rgb: 255, 193, 7;
    --color-white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 72rem;
    --section-padding: 5rem;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 193, 7, 0.2);
}

/* ================================================
   CSS RESET & BASE STYLES
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

/* Custom scrollbar - black track, primary thumb */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

body {
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Base gradient mesh + vignette - richer depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.15) 100%),
        radial-gradient(ellipse 140% 100% at 50% -30%, rgba(255, 193, 7, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 85% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse 90% 90% at 15% 70%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 120% 120% at 50% 100%, rgba(255, 193, 7, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255, 193, 7, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern + noise overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 40px 40px, 40px 40px, 256px 256px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: transparent;
    color: var(--color-text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

svg {
    display: block;
}

/* ================================================
   KEYFRAME ANIMATIONS
   ================================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInGrid {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

/* Animation utilities */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in forwards;
}

/* Animation delay utilities (inline styles also supported) */
.delay-300 {
    animation-delay: 300ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-8 { top: 2rem; }
.right-8 { right: 2rem; }
.top-10 { top: 2.5rem; }
.left-10 { left: 2.5rem; }
.right-10 { right: 2.5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-10 { bottom: 2.5rem; }
.top-20 { top: 5rem; }
.bottom-20 { bottom: 5rem; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.right-1\/4 { right: 25%; }
.left-1\/4 { left: 25%; }
.top-1\/4 { top: 25%; }
.bottom-1\/4 { bottom: 25%; }
.top-1\/3 { top: 33.333333%; }
.bottom-1\/3 { bottom: 33.333333%; }
.-top-px { top: -1px; }
.-right-px { right: -1px; }
.-bottom-1 { bottom: -0.25rem; }
.-right-1 { right: -0.25rem; }

/* Z-index */
.z-\[1\] { z-index: 1; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.auto-rows-200 { grid-auto-rows: 200px; }
.row-span-1 { grid-row: span 1 / span 1; }
.row-span-2 { grid-row: span 2 / span 2; }

/* Spacing */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-20 > * + * { margin-top: 5rem; }
.space-y-28 > * + * { margin-top: 7rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-12 { padding-top: 3rem; }

/* Width */
.w-1 { width: 0.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-1\/2 { width: 50%; }

/* Height */
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-0\.5 { height: 0.125rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.min-h-64 { min-height: 16rem; }
.max-h-full { max-height: 100%; }

/* Max Width */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }
.max-w-none { max-width: none; }

/* Aspect Ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }

/* Min height utilities */
.min-h-\[85vh\] { min-height: 85vh; }
.min-h-\[320px\] { min-height: 320px; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Text Weight */
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text Decoration */
.underline { text-decoration: underline; }
.decoration-accent\/50 { text-decoration-color: rgba(var(--color-accent-rgb), 0.5); }
.hover\:decoration-accent:hover { text-decoration-color: var(--color-accent); }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Letter Spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Line Height */
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }

/* Text Balance & Pretty (fallback for browsers that don't support it) */
.text-pretty { text-wrap: pretty; }
.text-balance { text-wrap: balance; }

/* Colors - Background */
.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-950 { background-color: #030712; }
.bg-surface-elevated { background-color: var(--color-surface-elevated); }
.bg-yellow-400,
.bg-accent { background-color: var(--color-accent); }
.bg-yellow-300 { background-color: var(--color-accent-hover); }
.bg-transparent { background-color: transparent; }

/* Background with opacity */
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-gray-900\/80 { background-color: rgba(17, 24, 39, 0.8); }
.bg-gray-900\/30 { background-color: rgba(17, 24, 39, 0.3); }
.bg-gray-900\/40 { background-color: rgba(17, 24, 39, 0.4); }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-yellow-400\/10,
.bg-accent\/10 { background-color: rgba(var(--color-accent-rgb), 0.1); }
.bg-accent\/80 { background-color: rgba(var(--color-accent-rgb), 0.8); }
.bg-yellow-400\/20 { background-color: rgba(var(--color-accent-rgb), 0.2); }
.bg-yellow-400\/40 { background-color: rgba(var(--color-accent-rgb), 0.4); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/3 { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }

/* Colors - Text */
.text-black { color: #000000; }
.text-white { color: #ffffff; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-yellow-400,
.text-accent { color: var(--color-accent); }
.text-yellow-300 { color: var(--color-accent-hover); }

/* Colors - Border */
.border-white { border-color: #ffffff; }
.border-gray-400 { border-color: #9ca3af; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-gold-subtle { border-color: var(--color-border-gold); }
.border-yellow-400,
.border-accent { border-color: var(--color-accent); }
.border-yellow-400\/20 { border-color: rgba(var(--color-accent-rgb), 0.2); }
.border-yellow-400\/30 { border-color: rgba(var(--color-accent-rgb), 0.3); }
.border-yellow-400\/50 { border-color: rgba(var(--color-accent-rgb), 0.5); }
.border-accent\/20 { border-color: rgba(var(--color-accent-rgb), 0.2); }
.border-accent\/30 { border-color: rgba(var(--color-accent-rgb), 0.3); }
.border-accent\/40 { border-color: rgba(var(--color-accent-rgb), 0.4); }
.border-accent\/50 { border-color: rgba(var(--color-accent-rgb), 0.5); }
.border-\[var\(--card-border\)\] { border-color: var(--card-border); }

/* Border Width */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

/* Border Style */
.border-solid { border-style: solid; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-bl-3xl { border-bottom-left-radius: 1.5rem; }
.rounded-bl-full { border-bottom-left-radius: 9999px; }
.rounded-tr-2xl { border-top-right-radius: 1rem; }
.rounded-b-2xl { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-100 { opacity: 1; }
.opacity-\[0\.02\] { opacity: 0.02; }

/* Box Shadow */
.shadow-card { box-shadow: var(--card-shadow); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-black\/50 { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5); }
.shadow-yellow-400\/20,
.shadow-accent\/20 { box-shadow: 0 25px 50px -12px rgba(var(--color-accent-rgb), 0.2); }
.shadow-yellow-400\/30 { box-shadow: 0 10px 15px -3px rgba(var(--color-accent-rgb), 0.3), 0 4px 6px -2px rgba(var(--color-accent-rgb), 0.3); }
.shadow-yellow-400\/50 { box-shadow: 0 10px 15px -3px rgba(var(--color-accent-rgb), 0.5), 0 4px 6px -2px rgba(var(--color-accent-rgb), 0.5); }
.shadow-yellow-400\/10 { box-shadow: 0 25px 50px -12px rgba(var(--color-accent-rgb), 0.1); }

/* Blur */
.blur-3xl { filter: blur(64px); }

/* Backdrop Filter */
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Transform */
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-full { transform: translateY(-100%); }
.translate-y-0 { transform: translateY(0); }
.translate-y-4 { transform: translateY(1rem); }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-10 { transform: translateY(2.5rem); }
.translate-x-0 { transform: translateX(0); }
.translate-x-1 { transform: translateX(0.25rem); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.scale-150 { transform: scale(1.5); }
.scale-\[1\.02\] { transform: scale(1.02); }
.hover-scale-subtle:hover { transform: scale(1.02); }
.rotate-3 { transform: rotate(3deg); }

/* Transition - premium feel */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); transition-duration: 0.25s; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); transition-duration: 0.25s; }
.transition-opacity { transition-property: opacity; transition-timing-function: ease-out; transition-duration: 0.25s; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); transition-duration: 0.28s; }
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }
.duration-1000 { transition-duration: 1s; }

/* Ease */
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* ================================================
   GRADIENT BACKGROUNDS
   ================================================ */

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-bl {
    background-image: linear-gradient(to bottom left, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0)); }
.from-yellow-400 { --tw-gradient-from: var(--color-accent); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-yellow-400\/20 { --tw-gradient-from: rgba(var(--color-accent-rgb), 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-yellow-400\/30 { --tw-gradient-from: rgba(var(--color-accent-rgb), 0.3); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-white\/20 { --tw-gradient-from: rgba(255, 255, 255, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0)); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-black\/40 { --tw-gradient-from: rgba(0, 0, 0, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.from-black\/80 { --tw-gradient-from: rgba(0, 0, 0, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }

.via-yellow-400 { --tw-gradient-stops: var(--tw-gradient-from), var(--color-accent), var(--tw-gradient-to, transparent); }
.via-yellow-400\/10 { --tw-gradient-stops: var(--tw-gradient-from), rgba(var(--color-accent-rgb), 0.1), var(--tw-gradient-to, transparent); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.via-black\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.2), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }

.to-black { --tw-gradient-to: #000000; }
.to-white { --tw-gradient-to: #ffffff; }
.to-yellow-400 { --tw-gradient-to: var(--color-accent); }
.to-yellow-400\/5 { --tw-gradient-to: rgba(var(--color-accent-rgb), 0.05); }
.to-white\/5 { --tw-gradient-to: rgba(255, 255, 255, 0.05); }
.to-transparent { --tw-gradient-to: transparent; }
.to-gray-700 { --tw-gradient-to: #374151; }
.to-gray-950\/80 { --tw-gradient-to: rgba(3, 7, 18, 0.8); }

/* ================================================
   GROUP HOVER STATES
   ================================================ */

.group:hover .group-hover\:text-yellow-400,
.group:hover .group-hover\:text-accent {
    color: var(--color-accent);
}

.group:hover .group-hover\:text-gray-300 {
    color: #d1d5db;
}

.group:hover .group-hover\:border-yellow-400,
.group:hover .group-hover\:border-accent {
    border-color: var(--color-accent);
}

.group:hover .group-hover\:border-gray-600 {
    border-color: #4b5563;
}

.group:hover .group-hover\:bg-yellow-400,
.group:hover .group-hover\:bg-accent {
    background-color: var(--color-accent);
}

.group:hover .group-hover\:bg-yellow-400\/10 {
    background-color: rgba(var(--color-accent-rgb), 0.1);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:scale-\[1\.02\] {
    transform: scale(1.02);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:opacity-40 {
    opacity: 0.4;
}

.group:hover .group-hover\:rotate-3 {
    transform: rotate(3deg);
}

/* ================================================
   HOVER STATES
   ================================================ */

.hover\:bg-yellow-400:hover,
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:bg-yellow-300:hover { background-color: var(--color-accent-hover); }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:text-yellow-400:hover,
.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:text-yellow-300:hover { color: var(--color-accent-hover); }
.hover\:text-black:hover { color: #000000; }
.hover\:text-gray-300:hover { color: #9ca3af; }
.hover\:border-yellow-400:hover,
.hover\:border-accent:hover { border-color: var(--color-accent); }
.hover\:border-yellow-400\/50:hover { border-color: rgba(var(--color-accent-rgb), 0.5); }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:border-gray-500:hover { border-color: #6b7280; }
.hover\:border-gray-600:hover { border-color: #4b5563; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }
.hover\:shadow-accent\/20:hover { box-shadow: 0 25px 50px -12px rgba(var(--color-accent-rgb), 0.2); }
.hover\:shadow-accent\/10:hover { box-shadow: 0 25px 50px -12px rgba(var(--color-accent-rgb), 0.1); }
.hover\:border-accent\/20:hover { border-color: rgba(var(--color-accent-rgb), 0.2); }
.hover\:border-accent\/30:hover { border-color: rgba(var(--color-accent-rgb), 0.3); }
.hover\:border-accent\/40:hover { border-color: rgba(var(--color-accent-rgb), 0.4); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.hover\:shadow-yellow-400\/50:hover { box-shadow: 0 10px 15px -3px rgba(var(--color-accent-rgb), 0.5), 0 4px 6px -2px rgba(var(--color-accent-rgb), 0.5); }
.hover\:shadow-yellow-400\/30:hover { box-shadow: 0 10px 15px -3px rgba(var(--color-accent-rgb), 0.3), 0 4px 6px -2px rgba(var(--color-accent-rgb), 0.3); }
.hover\:shadow-yellow-400\/20:hover { box-shadow: 0 25px 50px -12px rgba(var(--color-accent-rgb), 0.2); }
.hover\:shadow-yellow-400\/10:hover { box-shadow: 0 25px 50px -12px rgba(var(--color-accent-rgb), 0.1); }

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .sm\:block { display: block; }
}

@media (min-width: 640px) {
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 768px) {
    .md\:min-h-\[380px\] { min-height: 380px; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-row-reverse { flex-direction: row-reverse; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:gap-12 { gap: 3rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:p-12 { padding: 3rem; }
}

.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-6 { grid-column: span 6 / span 6; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:gap-20 { gap: 5rem; }
    .lg\:justify-end { justify-content: flex-end; }
    .lg\:order-1 { order: 1; }
    .lg\:order-2 { order: 2; }
}

/* ================================================
   ENHANCED MOBILE RESPONSIVENESS
   ================================================ */

@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .hero-inner,
    .hero-section .flex {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-image-wrapper,
    .hero-image > div {
        max-width: 260px;
        margin: 0 auto;
    }

    .spotlight-effect {
        display: none;
    }

    .float-animation {
        animation: none;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .project-link a {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    /* Section Padding */
    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Text Sizes */
    h2.text-4xl, h2.text-5xl {
        font-size: 2rem;
    }
    
    /* Grid Adjustments */
    .grid {
        gap: 1rem;
    }
    
    /* Portfolio Cards */
    .portfolio-card .h-64 {
        height: 200px;
    }
    
    /* Timeline Events */
    .timeline-event {
        margin-left: 0;
    }
}

/* ================================================
   PROSE STYLES (for blog content)
   ================================================ */

.prose {
    color: #d1d5db;
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7777778;
}

.prose-invert {
    color: #d1d5db;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #ffffff;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.prose h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.prose h2 {
    font-size: 1.875rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose a {
    color: #facc15;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #fde047;
}

.prose strong {
    color: #ffffff;
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

.prose ul,
.prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose ul > li::marker {
    color: #facc15;
}

.prose code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
    color: #fde047;
}

.prose pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: #e5e7eb;
}

.prose img {
    border-radius: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.prose blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
    font-style: italic;
    color: #9ca3af;
    margin: 1.5rem 0;
}

.prose hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 2rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #374151;
}

.prose td {
    padding: 0.75rem;
    border: 1px solid #374151;
}

.prose tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* ================================================
   LAYOUT - Prevent overlap, clear structure
   ================================================ */

main {
    display: block;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* Every section: block layout, no overlap */
section {
    display: block;
    width: 100%;
    position: relative;
    overflow: visible;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Section variety - alternating backgrounds */
.section-alt {
    background: rgba(var(--color-accent-rgb), 0.03);
}
.section-alt::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    opacity: 0.5;
    pointer-events: none;
}
.section-accent-bar {
    border-left: 4px solid var(--color-accent);
    padding-left: calc(1rem + 8px);
}

section .max-w-6xl,
section .max-w-4xl,
section .max-w-3xl {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ================================================
   SECTION SCROLL ANIMATIONS - smooth bezier entry
   ================================================ */

section.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

section.section-reveal.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered bezier entry for section content */
section.section-reveal .section-inner > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
section.section-reveal .section-inner > *:nth-child(1) { transition-delay: 0.1s; }
section.section-reveal .section-inner > *:nth-child(2) { transition-delay: 0.2s; }
section.section-reveal .section-inner > *:nth-child(3) { transition-delay: 0.3s; }
section.section-reveal .section-inner > *:nth-child(4) { transition-delay: 0.4s; }
section.section-reveal .section-inner > *:nth-child(5) { transition-delay: 0.5s; }
section.section-reveal.section-visible .section-inner > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section visible immediately */
section.hero-section {
    opacity: 1 !important;
    transform: none !important;
}

/* ================================================
   HERO SECTION - No overlap, premium look
   ================================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 6rem; /* Space for scroll indicator */
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-section .bg-decorative-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	inset:0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(var(--color-accent-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--color-accent-rgb), 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-section .relative.z-10 {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Hero subtle golden glow overlay */
.hero-golden-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(255, 193, 7, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: flex;
}

/* Hero floating animation - subtle */
.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* View Work button - shimmer effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 144px;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2.5s ease-in-out infinite;
    z-index: 0;
}

.hero-content,
.hero-image {
    opacity: 1;
    transform: none;
}

.hero-section .hero-image {
    max-width: 100%;
}

.hero-section .hero-image-wrapper,
.hero-section .hero-image > div {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease-out, border-color 0.5s ease-out;
}

.hero-section .hero-image-wrapper:hover,
.hero-section .hero-image > div:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(var(--color-accent-rgb), 0.15);
}

/* Hero CTAs - premium buttons */
.hero-section a[href="#projects"],
.hero-section a[href="#contact"] {
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background-color 0.25s ease-out, border-color 0.25s ease-out, color 0.25s ease-out;
}

.hero-section a[href="#contact"]:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Scroll indicator - contained, no overlap */
.hero-section .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.hero-section .scroll-indicator > div {
    border-radius: 9999px;
    padding: 0.5rem;
}

/* ================================================
   STICKY NAVBAR
   ================================================ */

#sticky-navbar {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Section content - consistent padding & alignment */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 768px) {
    .section-padding {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
.section-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
section.section-reveal {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px) {
    section.section-reveal {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Section headings - centered, enlarged, half underline & decorative */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}
section .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}
section .section-header:hover .section-title {
    transform: translateY(-2px);
}
section .section-title .gold {
    color: var(--color-accent);
    transition: text-shadow 0.3s ease;
}
section .section-header:hover .section-title .gold {
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}
/* Half underline */
section .section-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 0.875rem auto 0;
    border-radius: 2px;
    transition: width 0.3s ease, opacity 0.3s ease;
}
section .section-header:hover .section-title::after {
    width: 6rem;
    opacity: 1;
}
/* Decorative corner accent */
section .section-header::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
section .section-header:hover::before {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.2);
}
@media (min-width: 768px) {
    section .section-title {
        font-size: 2.75rem;
    }
}
/* Section bg decor - subtle gradient orbs for interactivity */
section .section-inner {
    position: relative;
}
section .section-inner::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    pointer-events: none;
    top: 5%;
    right: -8%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}
section:hover .section-inner::before,
section.section-visible .section-inner::before {
    opacity: 1;
}
section:nth-child(even) .section-inner::before {
    right: auto;
    left: -8%;
    top: 15%;
}
section .section-inner > * {
    position: relative;
    z-index: 1;
}

/* ========== BENTO & GLASS CARDS - backdrop-filter, card-border ========== */
.bento-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* ========== PREMIUM CARDS - visible, gold/white accents ========== */
.what-i-do-card,
.tech-item,
.testimonial-card,
.ai-card,
.project-card,
.stat-card,
.tech-category-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out;
}

.what-i-do-card {
    padding: 1.75rem 1.5rem;
}
@media (min-width: 768px) {
    .what-i-do-card {
        padding: 2.5rem 2rem;
    }
}
.what-i-do-card h3 {
    color: var(--color-accent);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.what-i-do-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.what-i-do-card li {
    color: var(--color-text);
    font-size: 0.9375rem;
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.what-i-do-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}
.what-i-do-card:hover,
.testimonial-card:hover,
.ai-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--color-accent-rgb), 0.5);
    box-shadow: var(--card-shadow-hover);
}

.tech-item {
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tech-item .tech-icon-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    background: rgba(var(--color-accent-rgb), 0.2);
    border: 1px solid var(--color-border-gold-strong);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}
.tech-item span:last-child {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
}
.tech-item:hover {
    border-color: rgba(var(--color-accent-rgb), 0.6);
    box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.15);
}

.testimonial-card {
    padding: 1.75rem 1.5rem;
}
.testimonial-card .quote {
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}
.testimonial-card .author {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9375rem;
}
.testimonial-card .role {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    margin-top: 0.15rem;
}

.ai-card {
    padding: 1.5rem 1.25rem;
    display: block;
    text-align: left;
}
.ai-card h3 {
    color: var(--color-white);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    transition: color 0.25s ease-out;
}
.ai-card:hover h3 {
    color: var(--color-accent);
}
.ai-card .url {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* AI Project cards - with image and description */
.ai-project-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.ai-project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.2);
}
.ai-project-card-body {
    padding: 1.5rem 1.75rem;
}
@media (min-width: 768px) {
    .ai-project-card-body {
        padding: 2rem 2.25rem;
    }
}

.stat-card {
    padding: 1.5rem 1rem;
    text-align: center;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
}
.stat-card .stat-label {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}
.stat-card:hover {
    border-color: rgba(var(--color-accent-rgb), 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.project-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-gold);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.project-card:hover {
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: var(--card-shadow-hover);
}

/* ========== FEATURED PROJECTS GRID – all projects together ========== */
.projects-grid {
    display: grid;
}
.project-card-grid {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.project-card-grid a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.project-card-grid .project-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-card-grid .project-card-image img {
    display: block;
}

/* ================================================
   BENTO BOX DESIGN SYSTEM
   ================================================ */

.bento-cell {
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--bento-border);
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.bento-cell:hover {
    border-color: hsla(0, 0%, 100%, 0.12);
}
.bento-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

/* ================================================
   TEACHING & LEADERSHIP – Bento, stats, partners
   ================================================ */

.teaching-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .teaching-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .teaching-bento {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
    }
}

.teaching-bento-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 1.75rem;
}
.teaching-bento-intro {
    padding: 1.5rem 1.75rem;
}
.teaching-bento-role {
    padding: 1.5rem 1.75rem;
}
.teaching-bento-gallery {
    grid-column: 1 / -1;
    padding: 1.5rem 1.75rem;
}
.bento-cell-full {
    grid-column: 1 / -1;
}

/* Stats – prominent large-type, yellow-to-white gradient */
.teaching-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
}
.teaching-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (min-width: 768px) {
    .teaching-stat-number {
        font-size: 3.5rem;
    }
}
.teaching-stat-label {
    font-size: 0.8125rem;
    color: var(--body-text-dim);
}

/* Body text – dimmed white */
.teaching-body,
.about-body {
    color: var(--body-text-dim);
    font-size: 0.9375rem;
    line-height: 1.7;
}
@media (min-width: 768px) {
    .teaching-body,
    .about-body {
        font-size: 1rem;
    }
}
.about-body p {
    margin-bottom: 1rem;
}
.about-body p:last-child {
    margin-bottom: 0;
}

.teaching-role-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}
.teaching-role-org {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Partner logos – monochrome to color on hover */
.teaching-partners {
    margin-top: 0.5rem;
}
.partners-label {
    font-size: 0.75rem;
    color: var(--body-text-dim);
    margin-bottom: 0.5rem;
    display: block;
}
.partners-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    justify-content: space-between;
}
.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 36px;
    padding: 4px;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.4s ease, transform 0.3s ease;
}
.partner-logo:hover {
    transform: scale(1.08);
}
.partner-logo svg {
    width: 100%;
    height: 100%;
}
.partner-logo-lions:hover {
    color: #f59e0b;
}
.partner-logo-bni:hover {
    color: #2563eb;
}
.partner-logo-smit:hover {
    color: #0d9488;
}

/* In Action photos – grayscale to color, scale on hover */
.teaching-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
@media (min-width: 640px) {
    .teaching-photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .teaching-photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}
.teaching-photo-item {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--bento-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.teaching-photo-item:hover {
    transform: translateY(-4px);
    border-color: hsla(0, 0%, 100%, 0.15);
}
.teaching-image-container {
    overflow: hidden;
}
.teaching-image {
    filter: grayscale(100%);
    transition: filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.teaching-photo-item:hover .teaching-image {
    filter: grayscale(0%);
    transform: scale(1.03);
}
.teaching-photo-caption {
    padding: 0.75rem 0.5rem;
    text-align: center;
}
.teaching-photo-caption span {
    font-size: 0.75rem;
    color: var(--body-text-dim);
    transition: color 0.3s ease;
}
.teaching-photo-item:hover .teaching-photo-caption span {
    color: var(--primary);
}

/* ========== TIMELINE – work history ========== */
.timeline-event-card {
    align-items: center;
}
.timeline-dot-wrap {
    flex: 0 0 auto;
}
.timeline-card .timeline-year {
    color: var(--color-accent);
}
@media (max-width: 767px) {
    .timeline-event-card {
        flex-direction: column;
    }
    .timeline-dot-wrap {
        order: 0;
    }
    .timeline-content { width: 100%; }
    .timeline-image { width: 100%; }
}

/* ========== TESTIMONIALS – avatar ========== */
.testimonial-avatar {
    flex-shrink: 0;
}

/* ================================================
   ABOUT ME – Bento, tech pills, quote shimmer
   ================================================ */

.about-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .about-bento {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}
.about-panel,
.contact-panel {
    padding: 1.75rem 1.5rem;
}
@media (min-width: 768px) {
    .about-panel,
    .contact-panel {
        padding: 2rem 2.25rem;
        min-height: 380px;
    }
}

/* Tech pills – subtle yellow glow / pill background */
.tech-pill {
    display: inline;
    padding: 0.15em 0.5em;
    margin: 0 0.05em;
    background: rgba(255, 193, 7, 0.12);
    border-radius: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.tech-pill:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.25);
}

/* Hero quote – shimmer on left border */
.hero-quote {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.08em;
    margin: 1.25rem 0 0;
    padding: 1.25rem 1.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary);
    background: rgba(255, 193, 7, 0.06);
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-quote-shimmer {
    animation: quoteBorderPulse 2.5s ease-in-out infinite;
}
@keyframes quoteBorderPulse {
    0%, 100% {
        border-left-color: rgba(255, 193, 7, 0.85);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
    }
    50% {
        border-left-color: var(--primary);
        box-shadow: 0 0 32px rgba(255, 193, 7, 0.25);
    }
}

/* ========== TECH STACK GRID ========== */
.tech-stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}
.tech-stack-card {
    padding: 1.25rem 1.5rem;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--primary);
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tech-stack-card:hover {
    border-color: rgba(255, 193, 7, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tech-stack-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.tech-stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-stack-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tech-stack-item:hover {
    border-color: rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.08);
}
.tech-stack-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}
.tech-stack-icon-aws {
    filter: brightness(0) saturate(100%) invert(84%) sepia(42%) saturate(718%) hue-rotate(359deg);
}
.tech-stack-badge {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.2);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0.35rem;
}

/* Tech category cards - gold left bar, more visible */
.tech-category-card {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-surface-elevated);
}
.tech-category-card h3 {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.tech-category-card:hover {
    border-left-color: var(--color-accent-hover);
    border-color: var(--color-border-gold-strong);
    box-shadow: var(--card-shadow-hover);
}

/* Hero contact links & icons - visible, gold on hover */
.hero-contact-links a {
    color: var(--color-text);
    opacity: 0.9;
}
.hero-contact-links a:hover {
    color: var(--color-accent);
    opacity: 1;
}
.hero-contact-links svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: inherit;
}

/* Primary button */
.btn-primary {
    background-color: var(--color-accent);
    color: #0a0a0a;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.35);
}

/* ========== MASONRY GALLERY - photos with hover text overlay ========== */
.masonry-gallery {
    column-count: 2;
    column-gap: 1rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .masonry-gallery {
        column-count: 3;
        column-gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .masonry-gallery {
        column-count: 4;
        column-gap: 1.5rem;
    }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
@media (min-width: 640px) {
    .masonry-item {
        margin-bottom: 1.25rem;
    }
}
.masonry-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--color-accent-rgb), 0.2);
}
.masonry-item img {
    width: 100%;
    display: block;
    vertical-align: middle;
}
.masonry-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 35%, transparent 65%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1rem;
    opacity: 0;
    transition: opacity 0.35s ease-out;
}
.masonry-item:hover .overlay {
    opacity: 1;
}
.masonry-item .overlay-title {
    color: var(--color-accent);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.masonry-item .overlay-caption {
    color: rgba(255,255,255,0.9);
    font-size: 0.8125rem;
}

/* Floating Animation for BG Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-delay-1 {
    animation-delay: 1s;
}

.float-delay-2 {
    animation-delay: 2s;
}

/* LinkedIn FAB - premium, no overlap */
.linkedin-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(var(--color-accent-rgb), 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.35);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    backdrop-filter: blur(8px);
}

.linkedin-fab:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.45);
}

.linkedin-fab svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #0a0a0a;
}

@media (max-width: 768px) {
    .linkedin-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .linkedin-fab svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Timeline Events - Interactive with scroll */
.timeline-event {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-event.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-event .timeline-dot {
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-event.visible .timeline-dot {
    transform: scale(1);
}

/* Timeline Center Line - Make it visible and animated */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, rgba(var(--color-accent-rgb), 0.3) 0%, rgba(var(--color-accent-rgb), 0.8) 50%, rgba(var(--color-accent-rgb), 0.3) 100%);
    transition: height 0.3s ease-out;
}

.timeline-line.active {
    height: 100%;
}

/* Timeline Year Badge */
.timeline-year {
    color: var(--color-accent) !important;
    font-weight: 600;
}

.timeline-dot {
    background: var(--color-accent);
    border: 4px solid var(--color-bg);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.3);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 1rem;
    }
}

/* Strength Cards - Yellow border that disappears on hover */
.strength-card {
    opacity: 1;
    transform: translateY(0);
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
}

.strength-card:hover {
    border-color: transparent;
}

/* Service Card Color Variations */
.service-card:nth-child(odd) .from-yellow-400\/20 {
    --tw-gradient-from: rgba(var(--color-accent-rgb), 0.2);
}

.service-card:nth-child(even) .from-white\/20 {
    --tw-gradient-from: rgba(255, 255, 255, 0.2);
}

/* Portfolio Cards - Ensure proper display */
.portfolio-card {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Bullet Points - Make them yellow */
.portfolio-bullet {
    background-color: var(--color-accent) !important;
}

ul li::marker {
    color: var(--color-accent);
}

ul.yellow-bullets li::marker {
    color: var(--color-accent);
}

/* Portfolio View Details - Improved styling */
.project-link a {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s ease-out, gap 0.25s ease-out, text-shadow 0.25s ease-out;
}

.project-link a:hover {
    gap: 0.75rem;
    color: var(--color-accent-hover);
    text-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.4);
}

.project-link a span {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

/* Testimonial Infinite Scroll - Continuous Auto Scroll */
.testimonial-infinite-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.testimonial-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.testimonial-infinite-track {
    display: flex;
    gap: 2rem;
    width: fit-content;
    animation: infiniteScroll 60s linear infinite;
}

.testimonial-infinite-card {
    flex: 0 0 500px;
    width: 500px;
    height: auto;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* Ensure smooth continuous loop */
.testimonial-infinite-track:hover {
    animation-play-state: running; /* Never pause */
}

/* Desktop - Show 2 cards */
@media (min-width: 1024px) {
    .testimonial-infinite-card {
        flex: 0 0 550px;
        width: 550px;
    }
}

/* Tablet - Show 1.5 cards */
@media (max-width: 1023px) and (min-width: 768px) {
    .testimonial-infinite-card {
        flex: 0 0 450px;
        width: 450px;
    }
    
    .testimonial-infinite-track {
        animation-duration: 50s;
    }
}

/* Mobile - Show 1 card */
@media (max-width: 767px) {
    .testimonial-infinite-card {
        flex: 0 0 320px;
        width: 320px;
    }
    
    .testimonial-infinite-track {
        gap: 1.5rem;
        animation-duration: 40s;
    }
    
    .testimonial-scroll-wrapper {
        mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }
}

/* Gallery Item */
.gallery-item img {
    transition: transform 700ms;
}

/* Scroll indicator - subtle pulse */
.scroll-indicator-inner {
    animation: scrollPulse 2s ease-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(3px); }
}

.animate-bounce > div {
    animation: bounce 1s infinite;
}

/* Background Pattern */
.hero-section .opacity-\[0\.02\] {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fillRule="evenodd"%3E%3Cg fill="%23ffffff"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Decorative Background Elements */
.bg-decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    pointer-events: none;
}

.bg-decorative-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(var(--color-accent-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--color-accent-rgb), 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Spotlight Effect */
.spotlight-effect {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-out infinite;
}

/* ================================================
   FOOTER
   ================================================ */

.footer-section {
    background: rgba(0, 0, 0, 0.3);
}
.footer-cta p:first-child {
    color: var(--color-white);
}
.footer-logo {
    text-decoration: none;
}
.footer-logo:hover .footer-logo-mark {
    border-color: var(--primary);
}

/* ================================================
   WORDPRESS ADMIN BAR FIXES
   ================================================ */

body.admin-bar {
    margin-top: 0 !important;
}

body.admin-bar #sticky-navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #sticky-navbar {
        top: 46px;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    #sticky-navbar,
    .animate-pulse,
    .absolute.top-1\/4,
    .absolute.bottom-1\/4 {
        display: none !important;
    }
}

