:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #38bdf8;
    --text-main: #334155;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Navigation */
nav {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Hero Section */
#hero {
    height: 80vh;
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-btns .btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: transform 0.2s;
    display: inline-block;
}

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

.btn.secondary {
    border: 2px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Sections */
section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto;
}

#about {
    text-align: center;
    background: white;
}

#about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.skill-card h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Projects Grid */
#projects {
    background: #f1f5f9;
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.project-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tags {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-links {
    margin-top: 2rem;
}

.contact-btn {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: var(--primary);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark);
    color: white;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    nav ul li {
        margin: 0 0.5rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
