/* Variables */
:root {
    --primary: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    scroll-behavior: smooth;
}

.container {
    padding: 80px 10%;
}

.bg-light {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('https://images.unsplash.com/photo-1517134191118-9d595e4c8c2b?q=80&w=2070') center/cover;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero h1 span { color: var(--primary); }
.hero h3 { font-size: 1.8rem; color: var(--gray); margin-bottom: 20px; }

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary { background: var(--primary); color: var(--white); border: none; }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); margin-left: 15px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); }

/* Skills Card */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
}

.skill-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.proj-img-placeholder {
    height: 200px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 700;
}

.proj-content { padding: 20px; }
.proj-btns { margin-top: 15px; }
.btn-sm {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-right: 15px;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid var(--primary);
    padding-left: 30px;
}

.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-item::before {
    content: '';
    width: 15px; height: 15px;
    background: var(--primary);
    position: absolute;
    left: -38.5px; top: 5px;
    border-radius: 50%;
}

/* Contact */
.contact-flex {
    display: flex;
    gap: 50px;
}

#contact-form { flex: 2; display: flex; flex-direction: column; }
#contact-form input, #contact-form textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.social-links { flex: 1; }
.icons { margin-top: 20px; }
.icons a { font-size: 1.8rem; margin-right: 15px; color: var(--dark); transition: 0.3s; }
.icons a:hover { color: var(--primary); }

footer {
    text-align: center;
    padding: 30px;
    background: var(--dark);
    color: var(--white);
}

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--dark); margin: 5px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .contact-flex { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
}