@font-face {
  font-family: "Pacifico";
  font-weight: normal;
  src: url("../fonts/Pacifico-Regular.ttf") format("TrueType");
}

@font-face {
  font-family: "Baloo2";
  font-weight: normal;
  src: url("../fonts/Baloo2-Medium.ttf") format("TrueType");
}

@font-face {
  font-family: "Baloo2";
  font-weight: bold;
  src: url("../fonts/Baloo2-ExtraBold.ttf") format("TrueType");
}

@font-face {
  font-family: "Overlock";
  font-weight: normal;
  src: url("../fonts/Overlock-Regular.ttf") format("TrueType");
}

@font-face {
  font-family: "Overlock";
  font-weight: bold;
  src: url("../fonts/Overlock-Bold.ttf") format("TrueType");
}

* {
  font-family: "Overlock", "Balooo2", sans-serif;
}

/* =========================
CSS RESET
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  transition:
    background 0.3s,
    color 0.3s;
}

img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* =========================
THEME VARIABLES
========================= */

:root {
  --bg: #fbfbfb;
  --text: #0f172a;
  --card: #f8fafc;
  --border: #e2e8f0;

  --primary: #6262ff;
  --secondary: #38bdf8;

  --shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

/* DARK THEME */

[data-theme="dark"] {
  --bg: #020617;
  --text: #f1f5f9;
  --card: #0f172a;
  --border: rgba(255, 255, 255, 0.08);

  --shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

/* =========================
GLOBAL
========================= */

body {
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 90%;
  max-width: 75rem;
  margin: auto;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  color: transparent;
}

/* =========================
HEADER
========================= */

header {
  border-bottom: 0.0625rem solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: 0.4s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

/* theme toggle */

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  border: 0.0625rem solid var(--border);
}

/* =========================
HERO
========================= */

.profile-image {
  background-image: url("../images/profile-image.jpg");
  background-repeat: no-repeat;
  width: 200px;
  height: 200px;
  background-size: cover;
  border-radius: 200px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 7rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero span {
  color: var(--primary);
}

.hero p {
  opacity: 0.8;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.2);
}

/* =========================
ABOUT
========================= */

.about {
  max-width: 50rem;
  margin: auto;
  text-align: center;
  font-size: 1.1rem;
}

/* =========================
SKILLS
========================= */

.skill-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 2rem;
  height: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.skill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--card);
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border: 0.0625rem solid var(--border);
  position: relative;
  transition: 0.35s;
  overflow: hidden;
}

/* animated highlight */

.skill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(99, 102, 241, 0.4),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}

/* glowing border */

.skill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.0625rem;
  /* -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0); */
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
}

/* hover animation */

.skill:hover {
  transform: translateY(-0.5rem) scale(1.05);
  box-shadow: var(--shadow);
}

.skill:hover::before {
  opacity: 1;
}
.skill:hover::after {
  opacity: 1;
}

/* =========================
PROJECTS
========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 0.0625rem solid var(--border);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--shadow);
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* =========================
CONTACT
========================= */

.contact {
  text-align: center;
}

.contact a {
  color: var(--primary);
}

/* =========================
FOOTER
========================= */

footer {
  text-align: center;
  padding: 2rem 0;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* =========================
MOBILE
========================= */

@media (max-width: 48rem) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Hamburger */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 18px;
  justify-content: space-between;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Cross animation */

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.footer-txt {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-image {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.copy-btn {
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f5f5f5;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.copied {
  color: green;
  font-size: 12px;
  margin-left: 8px;
}

/* Mobile */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    gap: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateX(0);
  }
}
