:root {
--bg: #ffffff;
--text: #1c1c1c;
--accent: #464A4E;
--muted: #666;
--bg-dark: #121212;
--text-dark: #f0f0f0;
--accent-dark: #000;
}

body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background: var(--bg);
color: var(--text);
transition: background 0.3s, color 0.3s;
}

.container {
max-width: 70%;
margin: auto;
padding: 0rem;
}

header {
background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white; 
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}


header h1 {
margin: 0;
font-size: 2.5rem;
}

header nav {
color: whitesmoke;
margin-top: 1rem;
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
}

header nav a {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.35);
}

header nav button {
background: transparent;
border: none;
font-size: 1.2rem;
cursor: pointer;
color: white;
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header img {
  width: 120px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}


section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 3rem 0;
  transition: background 0.3s, box-shadow 0.3s;
transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.15rem;
}


.skills-list {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
list-style: none;
padding: 0;
}

.skills-list li {
background: var(--accent);
color: white;
padding: 0.4rem 0.8rem;
border-radius: 4px;
font-size: 1.1rem;
}

footer {
text-align: center;
padding: 1rem;
background: #f5f5f5;
color: var(--muted);
}

body.dark-mode {
background: var(--bg-dark);
color: var(--text-dark);
}

body.dark-mode header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode header nav a {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode header nav a:hover {
  background: rgba(255, 255, 255, 0.25);
}

body.dark-mode .skills-list li {
background: var(--accent-dark);
}

body.dark-mode footer {
background: #1a1a1a;
color: #aaa;
}

body.dark-mode section {
  background: #1e1e1e;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  header .container,
  main.container {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  section {
    padding: 1rem 0.5rem;
  }

  .skills-list {
    flex-direction: column;
    align-items: flex-start;
  }

  header img {
    width: 100px;
    height: 100px;
  }
}
