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

:root {
    --primary: #0a0a0a;
    --secondary: #666;
    --accent: #f5f5f5;
    --border: #e5e5e5;
    --hover: #f0f0f0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.loading-content {
    text-align: center;
    width: 300px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 1px;
    animation: progressFill 2s ease-in-out infinite;
}

.progress-text {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Loading Animations */
@keyframes progressFill {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 100%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.z-logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.z-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-item {
    animation: fadeInUp 0.8s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    counter-reset: number;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 32px;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.skill-category {
    text-align: left;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-1px);
}

.skill-badge img {
    width: 16px;
    height: 16px;
}

/* Featured Repositories Section */
.featured-repos {
    padding: 120px 0;
    background: var(--accent);
}

.featured-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.featured-repo-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.featured-repo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.repo-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.repo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.repo-title-section {
    flex: 1;
}

.repo-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.repo-subtitle {
    color: var(--secondary);
    font-size: 0.9rem;
}

.repo-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary);
    font-size: 0.85rem;
}

.repo-description {
    margin-bottom: 24px;
}

.repo-description p {
    color: var(--secondary);
    line-height: 1.6;
}

.repo-features {
    margin-bottom: 24px;
}

.repo-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.repo-features ul {
    list-style: none;
    padding: 0;
}

.repo-features li {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.repo-features li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.repo-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.repo-tech-stack .tech-badge {
    padding: 4px 12px;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.repo-actions {
    display: flex;
    gap: 12px;
}

.repo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.repo-btn.primary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

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

.repo-btn.secondary:hover {
    background: var(--accent);
}

.about-image {
    position: relative;
}

.profile-large {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: var(--accent);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 500px;
    margin: 0 auto;
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.project-content {
    padding: 32px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--accent);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Contact Section */
.contact {
    padding: 120px 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 48px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.contact-link {
    padding: 16px 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: white;
}

/* Contact Form Styles */
.contact-form {
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 0;
    color: var(--secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .skills-container {
        gap: 24px;
    }
    
    .skill-badges {
        justify-content: center;
    }
    
    .featured-repos-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-repo-card {
        padding: 24px;
    }
    
    .repo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .repo-stats {
        align-self: flex-start;
    }
    
    .repo-actions {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(0px) scale(1.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}