/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sleek Color System */
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-bg-panel: #161616;
    --color-bg-subtle: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    --color-accent: #8B5A3C;
    --color-accent-bright: #D4A574;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-border: #2a2a2a;
    --color-border-subtle: #1e1e1e;
    
    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #8B5A3C 0%, #D4A574 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    --gradient-panel: linear-gradient(135deg, #161616 0%, #111111 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-panel: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Technical Grid Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(139, 90, 60, 0.8) 1px, transparent 0);
    background-size: 24px 24px;
    animation: gridFloat 20s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-1px, -1px); }
    75% { transform: translate(-2px, 2px); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 24px;
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.link-code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 90px 24px 40px;
    position: relative;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    min-height: calc(100vh - 130px);
    grid-template-areas:
        "main profile"
        "stats code";
}


/* Panel System */
.hero-panel {
    background: var(--gradient-panel);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-panel:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-panel), 0 0 20px rgba(139, 90, 60, 0.15);
    transform: scale(1.01);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-border-subtle);
    background: var(--color-bg-elevated);
}

.panel-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.control-dot:nth-child(1) { background: #ff5f57; }
.control-dot:nth-child(2) { background: #ffbd2e; }
.control-dot:nth-child(3) { background: #28ca42; }

.panel-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.panel-status.online {
    background: var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}

.panel-refresh {
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.panel-refresh:hover {
    color: var(--color-accent);
    transform: rotate(180deg);
}

/* Main Panel */
.main-panel {
    grid-area: main;
    display: flex;
    flex-direction: column;
}

.panel-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 14px;
}

.title-line {
    display: block;
}

.highlight-line {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    margin-bottom: 16px;
}

.hero-description p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-text-primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(139, 90, 60, 0.3);
    transform: scale(1.05);
}

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

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

/* Profile Panel */
.profile-panel {
    grid-area: profile;
    display: flex;
    flex-direction: column;
}

.profile-container {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-image-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    margin: 0 auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 90, 60, 0.1) 0%,
        transparent 50%,
        rgba(139, 90, 60, 0.05) 100%
    );
    border-radius: 4px;
    pointer-events: none;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.meta-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Stats Panel */
.recent-work-panel {
    grid-area: stats;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.work-grid {
    padding: 12px 12px 4px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: flex-start;
}

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: var(--color-bg-subtle);
    border-radius: 6px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.work-item:hover {
    border-color: var(--color-accent);
    background: rgba(139, 90, 60, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 90, 60, 0.1);
}

.work-item[href] .work-title {
    position: relative;
}

.work-item[href] .work-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.work-item[href]:hover .work-title::after {
    opacity: 1;
}

.work-link-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    color: var(--color-accent);
    opacity: 1;
    transition: all 0.3s ease;
}

.work-item:hover .work-link-icon {
    opacity: 1;
    color: var(--color-accent-bright);
    transform: scale(1.1);
}

.work-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.work-content {
    flex: 1;
    min-width: 0;
}

.work-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.work-description {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Code Panel */
.code-panel {
    grid-area: code;
    display: flex;
    flex-direction: column;
}

.panel-language {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    padding: 4px 8px;
    border-radius: 4px;
}

.code-content {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
}

.code-block {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-primary);
    background: transparent;
    overflow-x: auto;
    width: 100%;
}

.code-comment { color: #6a9955; }
.code-keyword { color: #569cd6; }
.code-variable { color: #9cdcfe; }
.code-property { color: #d7ba7d; }
.code-string { color: #ce9178; }
.code-function { color: #dcdcaa; }

/* Journey Section */
.journey {
    padding: 80px 24px;
    background: var(--color-bg-elevated);
    position: relative;
    overflow: hidden;
}

.journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-elevated);
    z-index: 1;
}

.journey > * {
    position: relative;
    z-index: 2;
}


.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.title-prefix {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--color-accent);
    font-weight: 600;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.timeline-marker {
    flex-shrink: 0;
    position: relative;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: 3px solid var(--color-bg-elevated);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.marker-line {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 2px;
    height: 32px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.timeline-content {
    flex: 1;
    background: var(--gradient-panel);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-panel);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-panel), 0 0 15px rgba(139, 90, 60, 0.12);
    transform: scale(1.005);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.content-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.content-period {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-accent);
    background: var(--color-bg-subtle);
    padding: 4px 8px;
    border-radius: 4px;
}

.content-role {
    font-size: 16px;
    color: var(--color-accent-bright);
    margin-bottom: 16px;
    font-weight: 600;
}

.content-description {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.content-metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.metric-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-tags, .card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-section {
    border-left: 2px solid var(--color-accent);
    padding-left: 16px;
    margin-bottom: 12px;
}

.role-section .content-role {
    margin-bottom: 8px;
}

.role-section .content-description {
    line-height: 1.5;
}

.tag, .tech-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Work Section */
.work {
    padding: 80px 24px;
    background: var(--color-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--gradient-panel);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-panel), 0 0 20px rgba(139, 90, 60, 0.15);
    transform: scale(1.005);
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border-subtle);
    background: var(--color-bg-elevated);
}

.card-meta {
    display: flex;
    gap: 12px;
}

.card-company {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-expand {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.card-expand:hover {
    color: var(--color-accent);
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-impact, .card-approach {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--color-bg-subtle);
    border-radius: 6px;
    border-left: 3px solid var(--color-accent);
}

.card-impact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card-approach h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.card-approach ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-approach li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    padding-left: 12px;
    position: relative;
}

.card-approach li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.card-approach strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.impact-item {
    text-align: center;
}

.impact-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.impact-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact {
    padding: 80px 24px;
    background: var(--color-bg-elevated);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-panel, .experience-panel {
    background: var(--gradient-panel);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.contact-links {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(139, 90, 60, 0.1);
    transform: scale(1.02);
}

.link-icon {
    font-size: 18px;
    color: var(--color-accent);
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-value {
    font-size: 14px;
    color: var(--color-text-primary);
}

.experience-content {
    padding: 24px;
}

.experience-metric {
    text-align: center;
    margin-bottom: 24px;
}

.experience-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.experience-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.experience-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-bg-subtle);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.exp-number {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
}

.exp-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "profile"
            "stats"
            "code";
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 16px 32px;
    }
    
    .section-container {
        padding: 0 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container::before {
        left: 16px;
    }
    
    .timeline-item {
        gap: 16px;
    }
    
    .marker-dot {
        width: 12px;
        height: 12px;
    }
    
    .content-metrics {
        flex-direction: column;
        gap: 16px;
    }
    
    .card-impact {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Dynamic Enhancements */
.hero-panel {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.cursor-follower {
    will-change: transform;
}

/* Enhanced Panel Animations */
.hero-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 90, 60, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

.hero-panel:hover::after {
    left: 100%;
}

/* Glitch Effect for Dynamic Elements */
@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.hero-title:hover .highlight-line {
    animation: glitch 0.3s ease-in-out;
}

/* Enhanced Grid Background */
.grid-overlay {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(139, 90, 60, 0.8) 1px, transparent 0),
        linear-gradient(rgba(139, 90, 60, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 90, 60, 0.02) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 24px 24px;
    background-position: 0 0, 0 0, 0 0;
    animation: gridFloat 20s ease-in-out infinite, gridShift 40s linear infinite;
}

@keyframes gridShift {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 24px 24px, 24px 24px, 24px 24px; }
}

/* Morphing Shapes */
.morphing-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 90, 60, 0.1), transparent 70%);
    border-radius: 50%;
    animation: morphShape 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphShape {
    0%, 100% { 
        border-radius: 50%; 
        transform: rotate(0deg) scale(1);
    }
    25% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
        transform: rotate(90deg) scale(1.2);
    }
    50% { 
        border-radius: 20% 80% 20% 80% / 20% 20% 80% 80%; 
        transform: rotate(180deg) scale(0.8);
    }
    75% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; 
        transform: rotate(270deg) scale(1.1);
    }
}

/* Enhanced Statistics Display */
.stat-progress {
    position: relative;
    overflow: visible;
}

.stat-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 90, 60, 0.8), 
        transparent);
    animation: progressShine 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes progressShine {
    0% { left: -20px; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Data Streaming Enhancements */
.data-particle {
    box-shadow: 0 0 4px rgba(139, 90, 60, 0.5);
}

.data-particle:nth-child(odd) {
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(34, 197, 94, 0.6), 
        transparent);
}

.data-particle:nth-child(even) {
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(245, 158, 11, 0.6), 
        transparent);
}

/* Interactive Button Enhancements */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}

/* Enhanced Timeline */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(139, 90, 60, 0.5), 
        transparent);
    animation: timelinePulse 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

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

/* Project Card Enhancements */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(139, 90, 60, 0.1) 90deg,
        transparent 180deg,
        rgba(139, 90, 60, 0.1) 270deg,
        transparent 360deg
    );
    animation: rotateGradient 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Loading Effects */

/* Responsive Enhancements */
@media (max-width: 768px) {
    .morphing-shape {
        width: 60px;
        height: 60px;
    }
    
    .data-particle {
        width: 1px;
        height: 10px;
    }
}