:root {
  --primary: #35477d;
  --secondary: #ffb400;
  --bg: #f5f7fa;
  --card: #fff;
  --accent: #54a0ff;
  --shadow: rgba(44,62,80,0.08);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--primary);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

nav {
  position: fixed;
  width: 100%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 3vw;
  z-index: 100;
  box-shadow: 0 1px 8px var(--shadow);
}

.logo {
  font-size: 1.35em;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2em;
  align-items: center;
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.3em 0.6em;
  border-radius: 5px;
  transition: background .2s, color .2s;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.resume-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 0.3em 1.1em !important;
}

.menu-toggle {
  display: none;
  font-size: 1.7em;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--primary);
    position: absolute;
    right: 0;
    top: 60px;
    width: 200px;
    border-radius: 0 0 0 8px;
    box-shadow: -1px 1px 10px var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: #fff;
  }
}

.section {
  max-width: 900px;
  margin: 0 auto 2em auto;
  padding: 4em 2em 2em 2em;
}

.hero-section {
  background: linear-gradient(120deg, #54a0ff 60%, #5f27cd 100%);
  color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6em;
}

.hero-content h1 {
  font-size: 2.6em;
  margin-bottom: 0.2em;
  font-weight: bold;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.1em;
  margin-bottom: 1.4em;
}

.social-icons a {
  font-size: 2em;
  color: #fff;
  margin: 0 0.2em;
  transition: color .2s;
}
.social-icons a:hover {
  color: var(--secondary);
}

h2 {
  font-size: 2.1em;
  color: var(--accent);
  margin-bottom: 0.4em;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
}

.skill-card {
  background: var(--card);
  color: var(--primary);
  padding: 1em 2em;
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--shadow);
  font-size: 1.2em;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.6em;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 4px 18px var(--shadow);
  background: var(--accent);
  color: #fff;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.project-card {
  background: var(--card);
  padding: 1.2em 1.6em;
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--shadow);
  width: 260px;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  margin-bottom: 1em;
}
.project-card:hover {
  box-shadow: 0 4px 18px var(--shadow);
  transform: translateY(-4px) scale(1.03);
  background: var(--secondary);
  color: var(--primary);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 12px;
  max-width: 340px;
  position: relative;
}
.close {
  position: absolute;
  right: 1.1em;
  top: 0.7em;
  font-size: 1.6em;
  cursor: pointer;
  color: var(--accent);
}

.contact-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
input, textarea {
  border: 1px solid #d0dbe8;
  border-radius: 7px;
  font-size: 1em;
  padding: 0.8em;
  outline: none;
  transition: border .2s;
}

input:focus, textarea:focus {
  border: 1.5px solid var(--accent);
}
button[type=submit] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8em 1.8em;
  font-size: 1.1em;
  cursor: pointer;
  transition: background .2s;
  font-weight: bold;
}
button[type=submit]:hover {
  background: var(--secondary);
  color: var(--primary);
}

footer {
  text-align: center;
  color: #888;
  padding: 2.2em 0 1em 0;
  font-size: 1em;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.7s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .section { padding: 3em 0.7em; }
  .skills-container, .projects-container { flex-direction: column; align-items: center; }
}
