* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #1f2937;
  background: linear-gradient(180deg,#f8fafc 0%, #f6eef6 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.45;
}

:root{
  --primary: #0ea5a4;
  --primary-dark: #0b8b89;
  --accent: #7c3aed;
  --muted: #6b7280;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.6);
  --radius: 12px;
  --shadow: 0 6px 18px rgba(15,23,42,0.08);
  --container-w: 1100px;
  --max-mobile: 820px;
}

main {
  max-width: var(--container-w);
  margin: 36px auto;
  padding: 28px;
}


#header {
  background: linear-gradient(135deg, rgba(14,165,164,0.08), rgba(124,58,237,0.04));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.top-contents {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav .list-skill {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-left: 0;
  margin-right: 8px;
}

nav .list-skill li {
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16,24,40,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}

nav .list-skill li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

nav .list-skill li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(4, 50, 142, 0.08);
  background-color: chocolate;
}

nav .list-skill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.95;
}


.mylogo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(2,6,23,0.08);
}

.presentation {
  flex: 1 1 380px;
  min-width: 260px;
  padding: 12px 8px;
}

.presentation h1 {
  font-size: 30px;
  line-height: 1.05;
  color: #0f172a;
  margin-bottom: 6px;
}

.presentation h1 span {
  color: var(--primary-dark);
  display: inline-block;
  background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(14,165,164,0.08));
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
}

.presentation p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px;
}

.contents {
  margin-top: 22px;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.grid-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.first-col img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
}

.second-col h1 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #0f172a;
}

.second-col p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 15px;
}


.personal-info nav {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.info-link {
  padding: 8px 12px;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: background .16s ease, color .16s ease, transform .12s ease;
}

.info-link:hover { 
    transform: translateY(-3px); 
    background-color: rgb(30, 138, 210);
    color: white;
}

.info-activated {
  background: linear-gradient(90deg, rgba(14,165,164,0.08), rgba(124,58,237,0.06));
  color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(14,165,164,0.06);
}


.info-contents {
  background: linear-gradient(180deg, rgba(247,250,252,0.6), rgba(255,255,255,0.4));
  padding: 14px;
  border-radius: 10px;
}

.common { display: none; }
.content-activated { display: block; }

.common ul {
  list-style: none;
  margin-bottom: 12px;
}

.common span {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.common li {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.buttons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: white;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.04);
  box-shadow: 0 6px 14px rgba(2,6,23,0.04);
  cursor: default;
  margin: 6px 6px 0 0;
  font-weight: 600;
  color: #111827;
}

.buttons .img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.95;
}

#project-contents {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfbfe);
  box-shadow: var(--shadow);
}

#project-contents h1 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #111827;
}

#project-contents .first {
  border-radius: 10px;
  overflow: hidden;
  background: #000; 
  margin-bottom: 12px;
}

#project-contents video {
  display: block;
  width: 100%;
  height: 570px;
  object-fit: cover;
}

#certifications-contents .second, #project-contents .second {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#project-contents button, #certifications-contents button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .12s ease, background .12s ease;
}

#project-contents button:hover { transform: translateY(-3px); background: var(--primary-dark); }


#contact-contents {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: var(--shadow);
}

#contact-contents h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

#contacts {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

#contacts button {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: none;
  background: white;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
}

#contacts img { width: 26px; height: 26px; object-fit: contain; }


.call {
  display: none;  
  margin-top: 12px;
}

.call form {
  display: grid;
  gap: 10px;
}

.form-contents {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.06);
  font-size: 14px;
  background: white;
}

.form-contents[type="text"],
.form-contents[type="email"],
.form-contents textarea {
  width: 100%;
}

.form-contents button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

#send-button{
    cursor: pointer;
}

#send-button:hover{
    background-color: cyan;
}

.hidden { display: none !important; }
.center { text-align: center; }


@media (max-width: 920px) {
  .grid-item { grid-template-columns: 1fr; }
  .presentation { order: 2; width: 100%; }
  nav { width: 100%; justify-content: space-between; }
  nav .list-skill { flex-wrap: wrap; gap: 8px; }
  #project-contents video { height: 260px; }
}

@media (max-width: 520px) {
  main { padding: 14px; }
  .mylogo { width: 52px; height: 52px; }
  .presentation h1 { font-size: 20px; }
  nav .list-skill li a { font-size: 13px; }
  #project-contents video { height: 200px; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(14,165,164,0.14);
  outline-offset: 2px;
  border-radius: 8px;
}