:root {
    /* Hyper Foundation Inspired Palette */
    --forest-depths: #050505;
    --midnight-tide: #1a1a1a;
    --shadow-teal: #23524c;
    --charcoal: #2c2e33;
    --abyss-green: #0a0a0a;
    --deep-lagoon: #1c3f38;
    --mist-gray: #b0c5c1;
    --pure-light: #ffffff;
    --mint-glow: #97fcd7;
    --teal-pulse: #33998c;

    /* Semantic Tokens */
    --bg: var(--forest-depths);
    --bg-elevated: var(--abyss-green);
    --bg-surface: var(--shadow-teal);
    --text-primary: var(--pure-light);
    --text-secondary: var(--mist-gray);
    --text-muted: var(--mist-gray);
    --accent: var(--mint-glow);
    --accent-hover: #b5fde5;
    --accent-glow: rgba(151, 252, 215, 0.4);
    --border: var(--midnight-tide);
    --border-subtle: var(--charcoal);

    /* Typography Scale */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 5rem;
    --text-8xl: 6rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius - Pill shape */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-pill: 60px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 300ms cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 500ms cubic-bezier(0.2, 0, 0, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(151, 252, 215, 0.3);
    color: var(--text-primary);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Navigation - Hyper Foundation Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-2) var(--space-2);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Hero Section - Hyper Foundation Style */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
    background: #050505;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Organic Blob Shapes */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--abyss-green);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--deep-lagoon);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--shadow-teal);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.blob-accent {
    width: 300px;
    height: 300px;
    background: var(--teal-pulse);
    opacity: 0.3;
    top: 20%;
    right: 20%;
    animation-delay: -15s;
    animation-duration: 25s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-greeting {
    font-size: var(--text-lg);
    color: var(--accent);
    font-weight: 400;
    margin-bottom: var(--space-4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.hero-name {
    font-size: clamp(var(--text-5xl), 10vw, var(--text-8xl));
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    text-wrap: balance;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: var(--space-8);
    min-height: 2em;
    letter-spacing: -0.02em;
}

.title-text {
    color: var(--accent);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
    will-change: opacity;
}

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

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: var(--space-10);
    text-wrap: pretty;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
}

/* Pill-shaped buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-family: var(--font-sans);
    min-height: 52px;
    min-width: 52px;
    user-select: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent);
    color: var(--forest-depths);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(151, 252, 215, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(151, 252, 215, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.02);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: var(--space-12);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
    line-height: 1.4;
}

/* Sections */
.section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
    font-family: var(--font-sans);
}

.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
    font-family: var(--font-display);
    line-height: 1.1;
}

/* About Section */
.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.about-intro p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    text-wrap: pretty;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.about-card {
    background: var(--abyss-green);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: var(--accent);
}

.about-card:hover::before {
    opacity: 1;
}

.about-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(151, 252, 215, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
    margin-bottom: var(--space-6);
}

.about-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.3;
    font-family: var(--font-display);
}

.about-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    text-wrap: pretty;
}

/* Skills Section */
.skills {
    background: #080808;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.skill-category {
    background: var(--deep-lagoon);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.skill-category-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    line-height: 1.3;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.skill-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.skill-bar {
    height: 6px;
    background: var(--forest-depths);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-pulse), var(--accent));
    border-radius: var(--radius-sm);
    width: 0;
    transition: width 1s cubic-bezier(0.2, 0, 0, 1);
    will-change: width;
    box-shadow: 0 0 10px var(--accent-glow);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: rgba(151, 252, 215, 0.1);
    border: 1px solid rgba(151, 252, 215, 0.2);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
    min-height: 36px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.skill-tag:hover {
    background: rgba(151, 252, 215, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 252, 215, 0.2);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.project-card {
    background: var(--abyss-green);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), transparent 50%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--deep-lagoon), var(--forest-depths));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--forest-depths) 100%
    );
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1), filter 0.8s ease;
    filter: brightness(0.85) saturate(1.1) contrast(1.05);
}

.project-card:hover .project-image img {
    transform: scale(1.06);
    filter: brightness(0.95) saturate(1.2) contrast(1.05);
}

.project-placeholder {
    color: rgba(151, 252, 215, 0.5);
}

.project-content {
    padding: var(--space-6);
}

.project-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.3;
    font-family: var(--font-display);
}

.project-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    text-wrap: pretty;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.project-tech span {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: rgba(151, 252, 215, 0.05);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    min-height: 28px;
}

/* Contact Section */
.contact {
    background: #080808;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    text-wrap: pretty;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
}

.contact-item:hover {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(151, 252, 215, 0.05);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    background: var(--forest-depths);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(151, 252, 215, 0.1);
}

.form-group label {
    position: absolute;
    left: var(--space-4);
    top: var(--space-4);
    font-size: var(--text-base);
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: var(--space-3);
    font-size: var(--text-xs);
    color: var(--accent);
    background: var(--abyss-green);
    padding: 0 var(--space-2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Lang Toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-mono);
    min-height: 36px;
}

.lang-toggle:hover {
    border-color: var(--accent);
    background: rgba(151, 252, 215, 0.1);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--teal-pulse), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-8);
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--forest-depths);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-content {
    background: var(--abyss-green);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-year {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(151, 252, 215, 0.1);
    border-radius: var(--radius-pill);
}

.timeline-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
}

.timeline-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Trading Highlights */
.highlights {
    background: var(--abyss-green);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
}

.highlight-card {
    text-align: center;
    background: var(--deep-lagoon);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    transition: all var(--transition-base);
}

.highlight-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(151, 252, 215, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
    margin: 0 auto var(--space-4);
}

.highlight-value {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.highlight-suffix {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--accent);
}

.highlight-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.blog-card {
    background: var(--abyss-green);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.blog-meta {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.blog-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.blog-tag {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    background: rgba(151, 252, 215, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
}

.blog-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.4;
    font-family: var(--font-display);
}

.blog-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.blog-link {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.blog-link:hover {
    color: var(--accent-hover);
}

.blog-status {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

/* Testimonials */
.testimonials {
    background: var(--abyss-green);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--deep-lagoon);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.testimonial-content {
    position: relative;
    margin-bottom: var(--space-6);
}

.testimonial-quote {
    position: absolute;
    top: -8px;
    left: -4px;
    color: var(--accent);
}

.testimonial-content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    text-wrap: pretty;
    padding-left: var(--space-8);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: rgba(151, 252, 215, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
}

.testimonial-author span {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* FAQ Section */
.faq {
    background: var(--forest-depths);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: var(--abyss-green);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    min-height: 52px;
}

.faq-question svg {
    transition: transform var(--transition-base);
    color: var(--accent);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-6) var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
    padding: var(--space-2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes blurReveal {
    from {
        opacity: 0;
        filter: blur(12px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes morphGradient {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.blur-in {
    opacity: 0;
    filter: blur(12px);
    animation: blurReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, filter;
}

/* Scroll-driven animations */
@supports (animation-timeline: view()) {
    .scroll-reveal {
        animation: fadeInUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }

    .scroll-scale {
        animation: scaleIn linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }

    .scroll-blur {
        animation: blurReveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children > *:nth-child(6) { animation-delay: 500ms; }

/* Text reveal animation */
.text-reveal {
    display: inline-block;
    overflow: hidden;
}

.text-reveal > span {
    display: inline-block;
    transform: translateY(100%);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-6);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-counter {
    font-family: var(--font-mono);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--teal-pulse), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
    font-variant-numeric: tabular-nums;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--teal-pulse));
    width: 0;
    transition: width 0.1s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Gradient animated text */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--teal-pulse),
        var(--mint-glow),
        var(--accent)
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

/* Magnetic button effect */
.magnetic {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card tilt on hover */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Morphing blob */
.morph-blob {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--deep-lagoon));
    animation: morphGradient 8s ease infinite;
    filter: blur(40px);
    opacity: 0.3;
}

/* Floating element */
.float {
    animation: float 6s ease-in-out infinite;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

/* Glow pulse */
.glow-pulse {
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Noise texture overlay */
.noise-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Custom cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(2);
    background: var(--accent);
    opacity: 0.5;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: var(--text-4xl);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--forest-depths);
}

::-webkit-scrollbar-thumb {
    background: var(--shadow-teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-pulse);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator-line {
    width: 2px;
    height: 8px;
    background: var(--accent);
    border-radius: 1px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.3;
    }
}

/* Glassmorphism Card Variant */
.glass-card {
    background: rgba(18, 45, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), transparent);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 0.3;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-4);
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

/* Horizontal Rule with Gradient */
.gradient-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: var(--space-16) 0;
}

/* Tag Pill */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(151, 252, 215, 0.1);
    border: 1px solid rgba(151, 252, 215, 0.2);
    border-radius: 9999px;
    font-size: var(--text-xs);
    color: var(--accent);
    font-weight: 500;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Image Hover Zoom */
.image-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-zoom img {
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.image-zoom:hover img {
    transform: scale(1.05);
}

/* Link underline animation */
.link-animated {
    position: relative;
    display: inline-block;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.link-animated:hover::after {
    width: 100%;
}

/* Floating label input */
.floating-label {
    position: relative;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-2);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 44px;
}

.floating-label label {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-base);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
    top: var(--space-2);
    transform: translateY(0);
    font-size: var(--text-xs);
    color: var(--accent);
}

/* Counter Animation */
.counter-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Responsive Bento Grid */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.wide,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .scroll-indicator {
        display: none;
    }
}
