:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #0a0e27;
    --background: #0d1117;
    --surface: #161b22;
    --surface-light: #1f2937;
    --text: #e6edf3;
    --text-secondary: #8b949e;
    --border: #30363d;
    --accent: #58a6ff;
    --error: #ff6b6b;
    --warning: #ffd93d;
    --grid: rgba(0, 255, 136, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-bracket {
    color: var(--primary);
}

.logo-text {
    color: var(--text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.tag-bracket {
    color: var(--primary);
}

.tag-text {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.4s;
}

.title-line:nth-child(2) {
    animation-delay: 0.6s;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: var(--border);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    writing-mode: vertical-rl;
    letter-spacing: 0.2rem;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-left {
    position: sticky;
    top: 100px;
}

.about-photo-container {
    position: relative;
    width: 100%;
}

.photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border);
    background-color: var(--surface);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-frame:hover .about-photo {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), transparent);
    pointer-events: none;
    opacity: 0.5;
}

.photo-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    z-index: -1;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--surface);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 120px;
}

.info-value {
    color: var(--text-secondary);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text);
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 30px;
    width: 1px;
    height: calc(100% + 2rem);
    background-color: var(--border);
}

.timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--background);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0.5rem 0;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.timeline-status {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.experience {
    background-color: var(--surface);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.experience-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.experience-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.card-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(88, 166, 255, 0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.card-title-group h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-company {
    color: var(--text-secondary);
    font-size: 1rem;
}

.card-responsibilities {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-responsibilities li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.card-responsibilities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

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

.skill-category {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.category-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.category-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-category:hover .category-icon {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(73%) sepia(42%) saturate(2000%) hue-rotate(110deg) brightness(120%) contrast(101%);
}

.title-icon {
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

.projects {
    background-color: var(--surface);
}

.projects-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--background);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

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

.project-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--surface);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(13, 17, 23, 0.8));
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.project-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-highlights {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-highlights li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.project-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: none;
}

.project-details.active {
    display: block;
}

.project-details h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-details ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.project-details ul li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.project-details ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.btn-expand {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
}

.btn-expand:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(88, 166, 255, 0.2));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--surface-light);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

.project-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 1rem;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 4px;
    color: var(--accent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-subtitle {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(88, 166, 255, 0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.method-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.method-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.method-value {
    font-size: 1.1rem;
    color: var(--text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

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

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

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

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--surface);
        width: 100%;
        padding: 2rem;
        transition: right 0.3s ease;
        border-top: 1px solid var(--border);
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-left {
        position: relative;
        top: 0;
    }

    .about-photo-container {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 4rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

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

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

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

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