:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --accent-color: #3b82f6;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

section {
    background: var(--card-bg);
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle at top left, #f8fafc 0%, #eff6ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid var(--primary-color);
}

.hero-content {
    max-width: 700px;
}

#user-name-hero {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section h1 {
    font-size: 2.75rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
    line-height: 1.1;
    font-weight: 800;
}

.hero-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}


.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn.secondary {
    background: #f1f5f9;
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list span {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: crop;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    color: var(--secondary-color);
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

h2 {
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea, button {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    #user-name {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 1.5rem;
    }
}
