* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #1a1a1a;
  color: #f0f0f0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #444;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border-radius: 0 0 12px 12px;
}

.logo img {
  height: 44px;
}

nav {
  user-select: none;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

main {
  flex: 1;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-links a {
  display: flex;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
}

section.card {
  background: linear-gradient(to bottom, #2b2b2b, #1a1a1a);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

section.card h2 {
  margin-bottom: 0.5rem;
  color: #fff;
}

section.card .description {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

section.card a {
  position: relative;
  margin-top: auto;
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  color: #f0f0f0;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;

  background-color: #444;
  background-image: linear-gradient(145deg, #383636 0%, #2c2a2a 50%, #212020 100%);

  border-radius: 8px;
  box-shadow: 0px 1px 4px -2px #111;
  text-shadow: 0px -1px #111;

  overflow: hidden;
  transition: all 0.3s ease;
}

section.card a::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: 50%;
  background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  pointer-events: none;
  border-radius: 8px 8px 0 0;
}

section.card a:hover {
  background-image: linear-gradient(145deg, #4f4c4c 0%, #3b3838 50%, #2c2a2a 100%);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.5), 0 0 6px rgba(255,255,255,0.05);
}

.intro {
  display: flex;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(145deg, #1c1c1c, #0f0f0f);
  border-radius: 12px;
  color: #ddd;
  gap: 2rem;
}

.intro-left {
  flex: 1 1 280px;
}

.intro-left h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.intro-left p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #9bdcff;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills span {
  background: #2c2c2c;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.intro-right {
  flex: 2 1 400px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

@media (max-width: 720px) {
  .intro {
    flex-direction: column;
  }
}

footer {
  background: linear-gradient(to top, #2c2c2c, #1a1a1a);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: #9ca3af;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.4);
  border-top: 1px solid #444;
}

footer a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  main {
    padding: 2rem 1rem;
    gap: 1.2rem;
  }
}
