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

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-glass: rgba(26, 26, 26, 0.8);
    --bg-glass-hover: rgba(37, 37, 37, 0.9);
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --text-muted: #808080;
    --accent-red: #dc2626;
    --accent-red-hover: #ef4444;
    --accent-red-glow: rgba(220, 38, 38, 0.3);
    --accent-blue: #3b82f6;
    --border-color: #333333;
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-glow: rgba(220, 38, 38, 0.2);
    --gradient: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-hover));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-red-glow);
}

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

.nav-link.active {
    color: var(--accent-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Web Pattern Animation */
.web-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 25% 25%, var(--accent-red) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--accent-red) 2px, transparent 2px);
    background-size: 100px 100px;
    animation: webFloat 20s ease-in-out infinite;
}

@keyframes webFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-quote {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
    margin: 32px 0;
    font-style: italic;
    font-size: 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-quote {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
    margin: 32px 0;
    font-style: italic;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-glass-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--accent-red);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.skill-item .skill-name {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.skill-item .skill-level {
    float: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-hover));
    transition: width 2s ease-in-out;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.tool-item {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tool-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.domain-list {
    list-style: none;
    padding: 0;
}

.domain-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 24px;
}

.domain-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.domain-list li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-hover));
    box-shadow: 0 0 8px var(--accent-red-glow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: var(--bg-glass-hover);
}

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

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.project-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto 64px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-red);
}

.timeline-item {
    display: flex;
    margin-bottom: 48px;
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-glass-hover);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-date {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding-right: 32px;
}

.timeline-content {
    flex: 1;
    margin-left: 32px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.streaming-banner {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.streaming-banner h3 {
    margin-bottom: 16px;
    color: var(--accent-red);
}

.twitch-link {
    color: #9146ff;
    text-decoration: none;
    font-weight: 600;
}

.twitch-link:hover {
    color: #a970ff;
}

.streaming-banner blockquote {
    margin-top: 24px;
    font-style: italic;
    color: var(--text-secondary);
}

.streaming-banner cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--accent-red);
}

.contact-info p {
    margin-bottom: 32px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-red);
    transform: translateX(8px);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent-red);
    min-width: 20px;
}

.contact-form {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--accent-red-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.footer-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 64px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        min-width: auto;
        margin-bottom: 8px;
        padding-right: 0;
    }

    .timeline-content {
        margin-left: 48px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-card,
    .contact-form {
        padding: 24px;
    }

    .about-stats {
        flex-direction: column;
    }

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