@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --background-primary: #0d1117;
    --background-secondary: #161b22;
    --background-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #656d76;
    --accent-blue: #58a6ff;
    --accent-green: #56d364;
    --border-default: #30363d;
    --border-muted: #21262d;
    --glass-bg: rgba(33, 38, 45, 0.8);
    --glass-border: rgba(48, 54, 61, 0.5);
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.6);
    --card-bg: rgba(33, 38, 45, 0.9);
    --hover-bg: rgba(48, 54, 61, 0.8);
}

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

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

header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-default);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--accent-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    margin-top: 80px;
}

.hero-about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    min-height: 100vh;
    background: var(--background-secondary);
}

.hero {
    color: var(--text-primary);
    padding: 8rem 2rem 4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(86, 211, 100, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.btn.primary:hover {
    background: #0056d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

.btn.secondary {
    background: var(--background-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn.secondary:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

section {
    padding: 4rem 0;
    position: relative;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.about {
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-default);
    border-right: 1px solid var(--border-default);
}

.skills-section {
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    max-width: 600px;
    height: 100%;
    justify-content: center;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.skills h3 {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skills ul {
    list-style: none;
}

.skills li {
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.3rem;
    background: var(--background-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: none;
}

.skills li:hover {
    background: var(--hover-bg);
    border-color: var(--accent-blue);
    transform: none;
}

.about-image {
    border-radius: 12px;
    height: auto;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.profile-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.portfolio-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: contain;
}

.placeholder-image {
    background: var(--background-tertiary);
    border-radius: 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.projects {
    background: var(--background-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-item {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-green);
}

.project-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 350px;
    object-fit: contain;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

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

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-blue);
}

.portfolio-image .placeholder-image {
    height: 200px;
    border-radius: 0;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.services {
    background: var(--background-secondary);
}

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

.service-item {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-blue);
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

footer {
    background: var(--background-tertiary);
    border-top: 1px solid var(--border-default);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-about-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .about {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-default);
    }
    
    .skills-section {
        border-top: 1px solid var(--border-default);
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
}