:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #808080;
    --accent: #3498db;
    --accent-secondary: #FF6B6B;
    --font-glitch: 'Space Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

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

body {
    font-family: var(--font-glitch);
    background-image: url('images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--bg-primary); /* Fallback color */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    align-items: center;
    justify-content: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(65, 105, 225, 0.1), rgba(255, 107, 107, 0.1));
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 0;
}

.header-content {
    z-index: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    position: relative;
    animation: glitch 1s infinite;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 0.5s, glitch 1s infinite 1.5s;
}

.name::before,
.name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.name::before {
    color: var(--accent);
    animation: glitch-anim 2s infinite;
}

.name::after {
    color: var(--accent-secondary);
    animation: glitch-anim2 2.5s infinite;
}

.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 1;
    animation: typeWriter 1.5s steps(20) forwards 0.5s;
    white-space: nowrap;
    overflow: hidden;
    width: auto;
}

.bio {
    font-size: 1.2rem;
    max-width: 75vw;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 2.5s;
}

.bio p {
    margin-bottom: 1rem;
}

.section {
    padding: 6rem 2rem;
    position: relative;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--accent);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin: 0.5rem 0;
    padding: 0.25rem;
    background: linear-gradient(90deg, var(--accent) var(--level), transparent var(--level));
    position: relative;
    font-size: 0.9rem;
}

/* Modern styling for lists in experience cards */
.experience-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}

.experience-card li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition);
}

.experience-card li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transition: var(--transition);
}

.experience-card li:after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1.3rem;
    bottom: -0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 60%, transparent);
    opacity: 0.4;
}

.experience-card li:last-child:after {
    display: none;
}

.experience-card li:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.experience-card li:hover:before {
    background: var(--accent-secondary);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.8);
}



/* Alternative Experience Section Styles */
.alt-label {
    font-size: 1rem;
    color: var(--accent-secondary);
    vertical-align: middle;
    margin-left: 1rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--accent-secondary);
    border-radius: 4px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.experience-year {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--accent);
}

.experience-badge {
    border: 1px solid var(--accent-secondary);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.experience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.company-badge {
    display: inline-block;
    background: rgba(255, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.tech-tag {
    background: rgba(52, 152, 219, 0.2);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--accent);
}

/* AI Passion Section Styles - Design 1: Modern Card-Based Layout */
.ai-design-1 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-intro-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ai-intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.ai-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.05), rgba(255, 107, 107, 0.05));
    z-index: 0;
}

.ai-card-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.ai-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    padding: 1rem;
    border: 2px solid var(--accent);
    color: var(--accent);
    transition: var(--transition);
}

.ai-intro-card:hover .ai-icon {
    transform: rotate(15deg) scale(1.1);
    background: rgba(52, 152, 219, 0.2);
}

.ai-svg-icon {
    width: 100%;
    height: 100%;
}

.ai-card-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ai-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ai-tool-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ai-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.ai-tool-card:hover::before {
    transform: scaleX(1);
}

/* Special highlight for n8n card */
.ai-tool-card:has(.n8n-icon) {
    border: 2px solid rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    position: relative;
    z-index: 1;
    background: rgba(52, 152, 219, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
}

.ai-tool-card:has(.n8n-icon)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.8;
}

.ai-tool-card:has(.n8n-icon)::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--accent) 30%, var(--accent-secondary) 100%);
    height: 6px;
    box-shadow: 0 0 10px var(--accent);
}

.ai-tool-card:has(.n8n-icon) .ai-tool-icon {
    background: rgba(52, 152, 219, 0.3);
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.ai-tool-card:has(.n8n-icon):hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(52, 152, 219, 0.6);
    border-color: var(--accent);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
    to { box-shadow: 0 0 30px rgba(52, 152, 219, 0.8), 0 0 40px rgba(255, 107, 107, 0.4); }
}

.ai-tool-card:has(.n8n-icon) h3 {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.ai-tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    transition: var(--transition);
    position: relative;
}

.ai-tool-card:hover .ai-tool-icon {
    transform: scale(1.1);
    background: rgba(52, 152, 219, 0.2);
}

.ai-tool-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse 2s infinite;
}

.github-icon::after, .chatgpt-icon::after, .cline-icon::after, .n8n-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.github-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.603-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.202 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.161 22 16.416 22 12c0-5.523-4.477-10-10-10z'/%3E%3C/svg%3E");
}

.chatgpt-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z'/%3E%3C/svg%3E");
}

.cline-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M16 2H8C4.691 2 2 4.691 2 8v13a1 1 0 0 0 1 1h13c3.309 0 6-2.691 6-6V8c0-3.309-2.691-6-6-6zm4 14c0 2.206-1.794 4-4 4H4V8c0-2.206 1.794-4 4-4h8c2.206 0 4 1.794 4 4v8z'/%3E%3Cpath d='M7 14.987v-4h2v4l3-4h2l-3 4h2v2H7v-2z'/%3E%3C/svg%3E");
}

.n8n-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-3-5h2v-6H9v6zm4 0h2v-6h-2v6z'/%3E%3C/svg%3E");
}

.ai-tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ai-tool-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-mindset-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ai-mindset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    z-index: 0;
}

.ai-mindset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.ai-mindset-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.ai-mindset-card h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.ai-mindset-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Media Queries for AI Passion Section */
@media (max-width: 768px) {
    .ai-cards-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive adjustments for both designs */
@media (max-width: 768px) {
    .ai-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-timeline-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-cards-container {
        grid-template-columns: 1fr;
    }
    
    .ai-timeline {
        padding-left: 2rem;
    }
    
    .ai-timeline::before {
        left: 10px;
    }
    
    .ai-timeline-marker {
        left: -2rem;
        width: 16px;
        height: 16px;
    }
}

.ai-tools-list li:hover:before {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.8);
}

/*     text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
    opacity: 0.8;
} */

.language-flags {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.flag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

/* Modern custom tooltip styles */
.flag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid;
    border-image: linear-gradient(to right, var(--accent), var(--accent-secondary)) 1;
    z-index: 10;
    letter-spacing: 0.5px;
    font-weight: 400;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.flag:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: -50px;
}

.czech-flag {
    background-image: url('images/flags.svg');
    background-position: 0 0;
    background-size: 266% auto;
}

.uk-flag {
    background-image: url('images/flags.svg');
    background-position: -50px 0;
    background-size: 266% auto;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

@keyframes glitch-anim {
    0% { clip-path: inset(80% 0 0 0) }
    20% { clip-path: inset(20% 0 60% 0) }
    40% { clip-path: inset(60% 0 20% 0) }
    60% { clip-path: inset(40% 0 40% 0) }
    80% { clip-path: inset(0 0 80% 0) }
    100% { clip-path: inset(80% 0 0 0) }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(0 0 80% 0) }
    20% { clip-path: inset(0 0 20% 0) }
    40% { clip-path: inset(0 0 60% 0) }
    60% { clip-path: inset(0 0 40% 0) }
    80% { clip-path: inset(0 0 0 0) }
    100% { clip-path: inset(0 0 80% 0) }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes typeWriter {
    from { width: 0; }
    to { width: 100%; }
}

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

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    height: 100%;
    align-self: center;
    padding: 2rem;
}

.avatar-image {
    max-width: 280px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    margin: 0 auto;
    filter: grayscale(100%);
}

.avatar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-secondary);
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bio {
        margin: 0 auto;
    }
    
    .avatar-container {
        margin-top: 2rem;
        order: 2;
    }
    
    .avatar-image {
        max-width: 200px;
    }
    
    .section {
        padding: 4rem 1rem;
    }
}

.footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-contact .contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact .contact-link:hover {
    color: var(--accent-secondary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}





/* Projects Section Styles */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card .description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(52, 152, 219, 0.2);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-glitch);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-glitch);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

#form-status {
    margin: 1rem 0;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.success-message {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 0.5rem;
}

.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 0.5rem;
}