:root {
    --bg-color: #ffffff;
    --bg-card: #f9fafb;
    --text-main: #111827;
    --text-sub: #4b5563;
    --accent-gray: #e5e7eb;
    --transition: all 0.3s ease;
}

body.dark {
    --bg-color: #030712;
    --bg-card: #111827;
    --text-main: #f9fafb;
    --text-sub: #d1d5db;
    --accent-gray: #374151;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

.header {
    padding: 24px 10%;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main);
}

.btn-cv {
    background-color: var(--text-main);
    color: var(--bg-color) !important;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-details {
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-sub);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.hero-socials {
    display: flex;
    gap: 16px;
    font-size: 24px;
}

.hero-socials a {
    color: var(--text-sub);
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--text-main);
}

.hero-image-box {
    flex: 0 0 350px;
    position: relative;
}

.profile-pic {
    width: 350px;
    height: 400px;
    object-fit: cover;
    border: 8px solid var(--bg-color);
    position: relative;
    z-index: 5;
}

.photo-bg-accent {
    position: absolute;
    width: 350px;
    height: 400px;
    background-color: var(--accent-gray);
    top: 20px;
    right: -20px;
    z-index: 1;
}

.section-tag-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.section-tag {
    background-color: var(--accent-gray);
    padding: 4px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.about {
    padding: 100px 10%;
    background-color: var(--bg-card);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image-box, .about-text {
    flex: 1;
    width: 50%;
}

.about-pic {
    width: 100%;
    max-width: 440px;
    height: auto;
    border: 8px solid var(--bg-color);
    box-shadow: -20px 20px 0 var(--accent-gray);
}

.about-text h2 {
    font-size: 30px;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-sub);
}

.skills {
    padding: 100px 10%;
}

.skills-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.skill-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.skill-item i {
    font-size: 64px;
    margin-bottom: 12px;
}

.work {
    padding: 100px 10%;
}

.project-card {
    display: flex;
    background-color: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-img-box {
    flex: 1;
    background-color: #111;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-box img {
    max-width: 100%;
    border-radius: 8px;
}

.project-info {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.project-info p {
    color: var(--text-sub);
    margin-bottom: 24px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tags span {
    background-color: var(--accent-gray);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.project-link-icon {
    font-size: 24px;
    color: var(--text-sub);
}

@media (max-width: 1024px) {
    .hero, .about-content, .project-card, .project-card.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-image-box, .about-text, .project-img-box, .project-info {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-image-box {
        margin: 0 auto;
    }
}

.icon-python { color: #3776AB; }
.icon-js { color: #F7DF1E; }
.icon-csharp { color: #239120; }
.icon-react { color: #61DAFB; }
.icon-html { color: #E34F26; }
.icon-css { color: #1572B6; }
.icon-figma { color: #F24E1E; }
.icon-shopify { color: #7AB55C; }
.icon-git { color: #F05032; }
.icon-sql { color: #4479A1; }
.icon-node { color: #339933; }
.icon-bash { color: #4EAA25; }

.skill-item:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

body.dark .icon-js { color: #FFD600; }

.testimonials {
    padding: 100px 10%;
    background-color: var(--bg-card);
    text-align: center;
}

.section-subtitle {
    margin-bottom: 48px;
    color: var(--text-sub);
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap; 
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: 48px;
    border-radius: 12px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.user-avatar {
    font-size: 64px;
    color: var(--accent-gray);
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-sub);
    margin-bottom: 24px;
    line-height: 1.6;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-pos {
    font-size: 14px;
    color: var(--text-sub);
}

@media (max-width: 768px) {
    .testimonial-card {
        max-width: 100%;
    }
}

.contact {
    padding: 100px 10% 40px 10%;
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 48px;
    line-height: 1.5;
}

.contact-info {
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-item i {
    font-size: 24px;
    color: var(--text-sub);
}

.contact-item h2 {
    font-size: 32px;
    font-weight: 700;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-sub);
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--text-main);
}

.social-label {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 24px;
    margin-bottom: 80px;
}

.footer-socials a {
    color: var(--text-sub);
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--accent-gray);
    padding-top: 24px;
    font-size: 14px;
    color: var(--text-sub);
}

@media (max-width: 768px) {
    .contact-item h2 {
        font-size: 20px;
    }
}