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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
  background: #2c3e50;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a { 
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

nav a:hover { 
  text-decoration: underline;
  transform: translateY(-2px);
}

section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    color: #2c3e50;
}

.me {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .me {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.me-content {
    flex: 1;
    min-width: 0;
}

.me span {
    color: #3498db;
}

.icons {
    margin: 1rem 0;
    font-size: 2rem;
    display: flex;
    gap: 1rem;
}

.photo-frame {
    width: 200px;
    height: 200px;
    border: 5px solid #3498db;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.skills {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.skills span {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.project {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    word-break: break-word;
}

.rounded-image {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#interests {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    justify-items: center;
    padding: 0 1rem;
}

.interest {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 96%;
}

.interest i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #3498db;
}

section#interests {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-methods a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.contact-methods a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: #2c3e50;
    color: white;
}

@media (max-width: 600px) {
    section {
        padding: 1.5rem;
    }
    
    .me {
        text-align: center;
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 540px) {
  nav {
    gap: 0.3rem;
    padding: 0.3rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    display: inline-block;
  }
}
