/* style.css - Portfolio Gia Bảo Đinh */
 :root {
  --primary: #3a86ff;
  --secondary: #ffbe0b;
  --bg: linear-gradient(120deg, #e0e7ff 0%, #f8f9fa 100%);
  --text: #1a2233;
  --card: #fff;
  --shadow: 0 4px 24px rgba(58,134,255,0.08);
  --radius: 18px;
  --section-bg: linear-gradient(120deg, #f8fafc 60%, #e0f2ff 100%);
  --section-alt: linear-gradient(120deg, #e0f2ff 0%, #f8fafc 100%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  scroll-behavior: smooth;
  min-height: 100vh;
}
header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -4px;
}
.nav-links li a:hover {
  color: var(--primary);
}
.nav-links li a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
}
.section {
  padding: 70px 0 50px 0;
  background: var(--section-bg);
  border-radius: 0 0 32px 32px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 24px rgba(58,134,255,0.04);
}
.about-section {
  background: var(--section-alt);
}
.skills-section {
  background: var(--section-bg);
}
.projects-section {
  background: var(--section-alt);
}
.contact-section {
  background: var(--section-bg);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(58,134,255,0.07);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary);
  box-shadow: 0 6px 32px rgba(58,134,255,0.13);
  margin-bottom: 1rem;
  transition: transform 0.4s, box-shadow 0.4s;
  background: #fff;
}
.avatar:hover {
  transform: scale(1.09) rotate(-3deg);
  box-shadow: 0 12px 48px rgba(58,134,255,0.18);
}
h1 {
  font-size: 2.3rem;
  color: var(--primary);
  font-weight: bold;
}
h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.7rem;
}
.gpa {
  color: var(--primary);
  font-weight: bold;
}
.home-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(58,134,255,0.10);
  text-decoration: none;
  display: inline-block;
}
.btn:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: var(--text);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px rgba(58,134,255,0.18);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.about-section .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 2rem;
  margin-top: 1.5rem;
  font-size: 1rem;
}
.achievements {
  margin-top: 1.2rem;
}
.achievements ul {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
}
.achievements li {
  margin-bottom: 0.3rem;
  list-style: disc;
}
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.skill {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.progress {
  flex: 1;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  height: 22px;
  box-shadow: 0 2px 8px rgba(58,134,255,0.07);
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 500;
  text-align: right;
  padding-right: 12px;
  border-radius: 10px 0 0 10px;
  transition: width 1.2s cubic-bezier(.77,0,.18,1);
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(58,134,255,0.18);
  background: linear-gradient(120deg, #e0f2ff 0%, #fff 100%);
}
.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.project-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.contact-section form {
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.2rem;
}
input, textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #dbeafe;
  border-radius: 8px;
  font-size: 1rem;
  background: #f6faff;
  transition: border 0.2s;
  resize: none;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
#form-status {
  margin-top: 1rem;
  font-size: 1rem;
  min-height: 24px;
}
.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2.2rem;
}
.icon-link {
  color: var(--primary);
  font-size: 2.2rem;
  transition: color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: #fff;
  border-radius: 50%;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 2px 12px rgba(58,134,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-link:hover {
  color: var(--secondary);
  background: #f8fafc;
  transform: scale(1.18) rotate(-8deg);
  box-shadow: 0 4px 24px rgba(255,190,11,0.13);
}
footer {
  background: linear-gradient(90deg, #e0e7ff 0%, #f8fafc 100%);
  padding: 1.2rem 0;
  text-align: center;
  color: #888;
  font-size: 1rem;
  box-shadow: 0 -2px 12px rgba(58,134,255,0.04);
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .container {
    padding: 0 1rem;
  }
  .navbar {
    padding: 1rem 1rem;
  }
  .section {
    border-radius: 0 0 18px 18px;
  }
}
@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--card);
    flex-direction: column;
    width: 180px;
    box-shadow: var(--shadow);
    border-radius: 0 0 0 18px;
    display: none;
    z-index: 99;
    padding: 1rem 0;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .about-section .info-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 40px 0 30px 0;
  }
  .contact-section form {
    padding: 1.2rem 0.7rem;
  }
}
