*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --clr-bg: #0b0c10;
  --clr-primary: #ff416c;
  --clr-secondary: #1f2833;
  --clr-light: #f5f7fa;
  --clr-accent: #66fcf1;
  --clr-muted: #c5c6c7;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-light);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.header {
  background: var(--clr-secondary);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow);
  overflow-x: auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.header .logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--clr-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-right: auto;
  padding-left: 1rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--clr-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--clr-muted);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  max-width: 100%;
  overflow-x: auto;
  margin-left: auto;
  padding: 0 0.5rem;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link {
  color: var(--clr-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-accent);
  transform: scale(1.1);
}

.nav-icons {
  display: flex;
  gap: 1rem;
}

.nav-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--clr-primary);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-icons a:hover {
  background-color: var(--clr-accent);
}

.section {
  padding: 7rem 2rem 5rem;
  background-color: var(--clr-bg);
}

.section:nth-child(even) {
  background-color: #13161c;
}

.section-heading {
  font-size: 2.4rem;
  color: var(--clr-primary);
  margin-bottom: 1.75rem;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--clr-accent);
}

.hero-subtext {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--clr-muted);
}

.content {
  max-width: 960px;
  margin: 0 auto;
}

.project-highlights ul,
.skills {
  padding-left: 1rem;
  color: var(--clr-light);
}

.project-highlights ul li,
.skills li {
  padding: 0.5rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.images img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.btn-contact {
  display: inline-block;
  background: linear-gradient(135deg, var(--clr-primary), #ff4b2b);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s;
  text-align: center;
  margin-top: 1.5rem;
}

.btn-contact:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff4b2b, var(--clr-primary));
}

#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow);
  transition: background 0.3s ease;
}

#scrollToTop:hover {
  background: #ff2e5c;
}

.contact-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
