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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e4e4e7;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Particles Background */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle.blue {
    background: rgba(59, 130, 246, 0.12);
}

.particle.white {
    background: rgba(255, 255, 255, 0.1);
}


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

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

.nav-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 16px 0;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

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

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

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

.name {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.5rem;
    color: #a1a1aa;
    margin-bottom: 12px;
    font-weight: 500;
}

.subtitle {
    font-size: 1.1rem;
    color: #71717a;
    margin-bottom: 32px;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-link {
    color: #e4e4e7;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 24px;
    border: 1px solid #27272a;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #18181b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-link:hover {
    border-color: #404040;
    background-color: #27272a;
}

/* Section Styles */
.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    color: #a1a1aa;
    text-align: justify;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-category {
    padding: 0;
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    color: #a1a1aa;
    font-size: 0.95rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.skill-icon svg {
    color: #3b82f6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-images {
    margin: -24px -24px 20px -24px;
}

.project-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.project-image.mobile {
    display: none;
}

.project-image.desktop {
    display: block;
}

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

.project-description {
    color: #a1a1aa;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: justify;
}

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

.project-tag {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

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

.project-link {
    background: #18181b;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.project-link:hover {
    background: #27272a;
    border-color: #52525b;
    transform: translateY(-1px);
}

.project-link.secondary {
    background-color: transparent;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
}

.project-link.secondary:hover {
    background-color: #18181b;
    color: #e4e4e7;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.experience-item {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.experience-company {
    font-size: 1rem;
    color: #a1a1aa;
    font-weight: 500;
}

.experience-period {
    font-size: 0.9rem;
    color: #71717a;
}

.experience-location {
    color: #71717a;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-align: justify;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: #27272a;
    color: #e4e4e7;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid #3f3f46;
}

/* Education Section */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.education-item {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.education-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.education-degree {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.education-period {
    font-size: 0.9rem;
    color: #71717a;
}

.education-school {
    color: #a1a1aa;
    font-size: 0.95rem;
    text-align: justify;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0 40px 0;
    border-top: 1px solid #27272a;
    margin-top: 80px;
}

.footer-text {
    color: #71717a;
    font-size: 0.9rem;
}

/* Mobile Skills Tabs */
.skills-tabs {
    margin-bottom: 24px;
}

.mobile-only {
    display: none;
}

.tab-button {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.tab-button.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.tab-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-links {
        gap: 16px;
    }

    .hero-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .mobile-only {
        display: flex;
        gap: 8px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 24px;
    }

    .skill-category {
        padding: 0;
        display: none;
    }

    .skill-category.active {
        display: block;
    }

    .skill-category-title {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 20px;
    }

    .project-images {
        margin: -20px -20px 20px -20px;
        overflow: hidden;
    }

    .project-image.desktop {
        display: block !important;
        height: 250px;
        object-fit: cover;
        object-position: center;
    }
    
    .project-card:first-child .project-image.desktop {
        object-fit: cover;
        object-position: center center;
        transform: scale(1.2);
    }

    .project-image.mobile {
        display: none !important;
    }

    .experience-header {
        gap: 2px;
    }

    .experience-item {
        padding: 20px;
    }

    .education-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .hero-link {
        width: auto;
        padding: 12px;
        min-width: auto;
    }

    .hero-link span {
        display: none;
    }

    .hero-icon {
        width: 20px;
        height: 20px;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        text-align: center;
    }

    /* Mobile Navigation */
    .nav-list {
        gap: 8px;
        padding: 12px 0;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    .nav-container {
        padding: 0 16px;
    }
}

/* Click Effect */
.click-effect {
    position: fixed;
    border: 2px solid rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: clickRipple 0.6s ease-out forwards;
}

@keyframes clickRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}