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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header"
        "main"
        "footer";
    min-height: 100vh;
}

.header {
    grid-area: header;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.main-container {
    grid-area: main;
    
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas: 
        "sidebar content";
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    grid-area: sidebar;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.profile-card {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #667eea;
}

.profile-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.profile-card p {
    color: #666;
    font-size: 0.9rem;
}

.info-section,
.skills-section {
    margin-bottom: 1.5rem;
}

.info-section h4,
.skills-section h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-section ul,
.skills-section ul {
    list-style: none;
}

.info-section li,
.skills-section li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
}

.content {
    grid-area: content;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section h1 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.section p {
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
}

.footer {
    grid-area: footer;
    background: #333;
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #667eea;
}

@media (max-width: 768px) {
    body {
        grid-template-rows: auto 1fr auto;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "sidebar"
            "content";
        padding: 1rem 4%;
        gap: 1.5rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .sidebar {
        position: static;
        padding: 1.5rem;
    }
    
    .section h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 1.5rem;
    }

    .footer {
        padding: 1.5rem 4%;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .main-container {
        padding: 1rem 3%;
    }
    
    .section {
        padding: 1rem;
    }
    
    .section h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
}
