:root {
  --primary: #2851A3;
  --secondary: #101d36;
  --accent: #0099ff;
  --bg-light: #f8f9fa;
  --white: #fff;
  --dark: #222c3d;
  --gray: #61677c;
  --radius: 8px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
body {
  background: var(--bg-light);
  line-height: 1.6;
  color: var(--dark);
}
header {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(40,81,163,0.06);
  position: sticky; top: 0; z-index: 20;
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 1em 2em;
}
.navbar h1 { font-size: 1.05em; color: var(--primary);}
.nav-links {
  display: flex; gap: 1.7em;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  transition: color .2s;
  font-size: 1em;
}
.nav-links a:hover, .nav-links .active {
  color: var(--primary);
  font-weight: bold;
}
@media (max-width: 700px) {
  .navbar { flex-direction: column; gap: .5em; padding: 1em 0.5em;}
  .nav-links { gap: 1em; }
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, var(--primary) 70%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
  padding: 4em 1.5em 3em 1.5em;
}
.hero h2 { font-size: 2em; margin-bottom: 0.2em;}
.hero p { font-size: 1.19em; margin-bottom: 1.1em; font-weight: 500;}
.hero .btn {
  padding: 0.7em 2.4em;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 1em; font-weight: bold; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background .2s;
}
.hero .btn:hover { background: var(--primary); }

/* About */
.section {
  max-width: 900px;
  margin: 3em auto 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 13px rgba(40,81,163,0.04);
  padding: 2em 2em;
}
.about-header {
  display: flex; align-items: center; gap: 1.3em;
}
.profile-img {
  width: 95px; height: 95px; border-radius: 50%; object-fit: cover; background: var(--bg-light);
  box-shadow: 0 1px 7px rgba(0,0,0,0.06);
}
.about-details {
  display: flex; flex-direction: column; gap: 0.3em;
}
.about-details h3 { font-size: 1.07em; color: var(--primary);}
.about-details p { font-size: 1em; color: var(--gray);}
.about-meta { font-size: .97em; margin-top: .4em;}
.education-list {
  margin-top: 1.3em;
  list-style: none;
}
.education-list li {
  background: var(--bg-light);
  margin-bottom: 1em; padding: 1em;
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(40,81,163,0.05);
}
.education-list strong { color: var(--primary);}
.education-list .status { color: var(--accent); font-size: .95em;}

/* Skills */
.skills-row {
  display: flex; flex-wrap: wrap; gap:2em;
  justify-content:space-between;
}
.skills-col {
  flex:1 1 210px; min-width:200px;
}
.skills-col h4 { color: var(--primary); margin-bottom: 0.7em;}
.bar-group { margin-bottom: 1em; }
.bar-label { font-size:1em; color: var(--gray);}
.bar-bg {
  height: 10px;
  background: #e6eaf4;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .3em;
}
.bar {
  height: 10px;
  border-radius: var(--radius);
  transition: width .6s; 
}
.bar.green { background:#24ad68;}
.bar.yellow { background:#e3bb33;}
.bar.blue { background: var(--primary);}
.bar-group:last-child { margin-bottom: 0;}
.proficiency-legend {
  display: flex; gap: .8em; align-items: center; font-size:.93em;
  margin: 1.3em 0 0 0;
  flex-wrap: wrap;
}
.legend {
  display: flex; align-items:center; gap:.33em;
}
.dot { width:14px; height:14px; border-radius:50%; display:inline-block;}
.dot.green { background:#24ad68;}
.dot.yellow {background:#e3bb33;}
.dot.blue {background: var(--primary);}

/* Projects */
.project-card {
  background: var(--bg-light);
  padding: 1.35em;
  margin-bottom: 2em;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(40,81,163,0.05);
}
.project-card h4 { color: var(--primary); margin-bottom: 0.4em;}
.project-meta, .project-tags {
  font-size: .99em; color: var(--gray); margin-top: 0.5em;
}
.project-tags span {
  background: var(--primary);
  color: var(--white);
  padding: 0.23em 0.9em;
  border-radius: var(--radius);
  font-size: .91em; margin-right: .3em;
  display: inline-block; margin-top:.3em;
}
.project-buttons {
  margin-top: 1em;
}
.project-buttons a {
  display: inline-block;
  padding: 0.5em 1.7em;
  margin-right: 1em;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: background .2s;
  font-size: .98em;
}
.project-buttons a:hover { background: var(--primary);}
.project-summary { margin-top: .6em; font-size: 1em;}

/* Contact */
.contact-row {
  display: flex; flex-wrap: wrap; gap:2em; margin-bottom: 1.6em;
}
.contact-col {
  flex:1 1 220px; min-width:200px;
  font-size:1em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7em;
  margin-bottom: .8em;
  border: 1px solid #dce2ef;
  border-radius: var(--radius);
  font-size: 1em;
}
.contact-form textarea { resize: vertical; min-height:60px;}
.contact-form button {
  padding: .7em 2.1em;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition:background .2s;
}
.contact-form button:hover { background: var(--accent);}
.contact-info {
  display: flex; flex-direction: column; gap: 1em;
}
.info-item { display: flex; align-items: center; gap: .7em;}
.info-label {
  font-weight: bold; min-width: 66px; color: var(--primary);
}
.ready-collab {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.1em 1.5em;
  color: var(--gray);
  margin-top: 1.3em;
  text-align: center;
  font-size: 1.05em;
}
.ready-collab strong { color: var(--primary);}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 1.2em 1em;
  text-align: center;
  font-size: .97em;
  letter-spacing:.01em;
}
footer .footer-links {
  margin: 0.6em 0 .3em 0;
}
footer .footer-links a {
  color: var(--accent);
  margin: 0 .7em;
  text-decoration: none;
  font-size: 1em;
  transition: color .2s;
}
footer .footer-links a:hover { color: var(--white);}
@media (max-width: 850px) {
  .section, .hero { padding-left: 0.7em; padding-right: 0.7em;}
}
@media (max-width: 600px) {
  .section {padding: 1.1em 0.5em;}
  .hero { padding: 3em 0.6em 2em 0.6em;}
  .about-header { flex-direction:column; align-items: flex-start;}
  .skills-row, .contact-row { flex-direction: column;}
}
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-icon.linkedin { background: #0077b5; }
.social-icon.instagram { background: #e4405f; }
.social-icon.whatsapp { background: #25d366; }
.social-icon.github { background: #24292e; }

.social-icon:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}