
/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid #242424;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 9px 16px;
  color: #eeeeee;
  background: #111111;
  border: 1px solid #292929;
  border-radius: 34px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.nav-links a:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.nav-links a.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
  position: relative;
  width: 64px;
  min-width: 64px;
  height: 34px;
  padding: 0;
  border: 1px solid #444444;
  border-radius: 999px;
  background: #1a1a1a;
  cursor: pointer;
}

.toggle-circle {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.35s ease;
  z-index: 2;
}

.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  z-index: 3;
}

.moon {
  right: 9px;
  color: #ffffff;
}

.sun {
  left: 9px;
  color: #111111;
  opacity: 0;
}


/* =========================================================
   HAMBURGER
========================================================= */

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid #292929;
  border-radius: 10px;
  background: #111111;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   INTRO
========================================================= */

.profile-intro {
  padding: 100px 0 110px;
  border-bottom: 1px solid #222222;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 80px;
}

.small-title {
  color: #777777;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.intro-text h1 {
  margin: 16px 0 22px;
  color: #ffffff;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.intro-text p {
  max-width: 580px;
  margin: 0;
  color: #999999;
  font-size: 1.08rem;
  line-height: 1.8;
}


/* =========================================================
   PROFILE PHOTO
========================================================= */

.intro-photo {
  position: relative;
}

.intro-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 2px solid #555555;
  border-radius: 24px;
  filter: grayscale(100%);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.45),
    0 25px 60px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease;
}

.intro-photo img:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ffffff;
  filter: grayscale(0%);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.55),
    0 35px 80px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   SECTION
========================================================= */

.profile-section {
  padding: 100px 0;
  border-bottom: 1px solid #222222;
}

.section-title {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  margin-bottom: 55px;
}

.section-title > span {
  padding-top: 8px;
  color: #666666;
  font-size: 0.75rem;
  font-weight: 700;
}

.section-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}


/* =========================================================
   ABOUT
========================================================= */

.about-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 90px;
}

.about-main p {
  margin: 0 0 20px;
  color: #999999;
  line-height: 1.9;
}

.about-main .big-text {
  color: #dddddd;
  font-size: 1.3rem;
  line-height: 1.7;
}

.about-main strong {
  color: #ffffff;
}

.about-info {
  border-top: 1px solid #333333;
}

.about-info > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 0;
  border-bottom: 1px solid #292929;
}

.about-info span {
  color: #666666;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-info strong {
  color: #dddddd;
  font-size: 0.95rem;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 30px;
  padding: 35px 0;
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
}

.experience-number {
  color: #666666;
  font-size: 0.8rem;
  font-weight: 700;
}

.experience-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.experience-heading span {
  color: #777777;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.experience-heading h3 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 1.7rem;
}

.experience-heading p {
  margin: 0;
  color: #777777;
  font-size: 0.85rem;
}

.experience-line {
  height: 1px;
  margin: 22px 0;
  background: #292929;
}

.experience-content > p {
  max-width: 720px;
  color: #999999;
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.tags span {
  padding: 7px 12px;
  color: #999999;
  border: 1px solid #333333;
  border-radius: 999px;
  font-size: 0.7rem;
}


/* =========================================================
   EDUCATION
========================================================= */

.education {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding: 35px 0;
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
}

.education-year {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.education-content > span {
  color: #777777;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.education-content h3 {
  margin: 8px 0 15px;
  color: #ffffff;
  font-size: 1.7rem;
}

.education-content p {
  max-width: 700px;
  margin: 0;
  color: #999999;
  line-height: 1.8;
}


/* =========================================================
   SKILLS
========================================================= */

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #292929;
  border-left: 1px solid #292929;
}

.skill {
  min-height: 180px;
  padding: 25px;
  border-right: 1px solid #292929;
  border-bottom: 1px solid #292929;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.skill:hover {
  background: rgba(46, 1, 88, 0.555);
  transform: translateY(-3px);
}

.skill span {
  display: block;
  margin-bottom: 35px;
  color: #555555;
  font-size: 0.7rem;
}

.skill strong {
  display: block;
  color: #eeeeee;
  font-size: 1.2rem;
}

.skill p {
  margin: 5px 0 0;
  color: #777777;
  font-size: 0.8rem;
}


/* =========================================================
   CTA
========================================================= */

.profile-contact {
  padding: 100px 0;
}

.contact-box {
  padding: 65px;
  text-align: center;
  background: #111111;
  border: 1px solid #292929;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.contact-box > span {
  color: #777777;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.contact-box h2 {
  margin: 15px 0 30px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  color: #111111;
  background: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.btn:hover {
  background: #dddddd;
  transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  background: #0a0a0a;
  color: #777777;
  border-top: 1px solid #222222;
}

.footer-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  color: #dddddd;
  letter-spacing: 0.05em;
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 0.8rem;
}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light-mode {
  background: #f4f1ec;
  color: #171717;
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #e5e5e5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-mode .brand {
  color: #111111;
}

body.light-mode .nav-links a {
  background: #ffffff;
  color: #111111;
  border-color: #dddddd;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

body.light-mode .menu-toggle {
  background: #ffffff;
  border-color: #dddddd;
}

body.light-mode .menu-toggle span {
  background: #111111;
}

body.light-mode .theme-toggle {
  background: #e2e2e2;
  border-color: #cccccc;
}

body.light-mode .toggle-circle {
  transform: translateX(30px);
  background: #111111;
}

body.light-mode .moon {
  opacity: 0;
}

body.light-mode .sun {
  opacity: 1;
}

body.light-mode .profile-intro,
body.light-mode .profile-section {
  border-color: #ddd8d1;
}

body.light-mode .small-title {
  color: #777777;
}

body.light-mode .intro-text h1 {
  color: #111111;
}

body.light-mode .intro-text p {
  color: #68645f;
}

body.light-mode .intro-photo img {
  border-color: #222222;
  filter: grayscale(100%);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.12),
    0 25px 55px rgba(0, 0, 0, 0.08);
}

body.light-mode .intro-photo img:hover {
  border-color: #111111;
  filter: grayscale(0%);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.22),
    0 35px 70px rgba(0, 0, 0, 0.15);
}

body.light-mode .section-title h2 {
  color: #111111;
}

body.light-mode .section-title > span {
  color: #999999;
}

body.light-mode .about-main p {
  color: #68645f;
}

body.light-mode .about-main .big-text {
  color: #292725;
}

body.light-mode .about-main strong {
  color: #111111;
}

body.light-mode .about-info {
  border-color: #d8d4ce;
}

body.light-mode .about-info > div {
  border-color: #ddd8d1;
}

body.light-mode .about-info span {
  color: #999999;
}

body.light-mode .about-info strong {
  color: #292725;
}

body.light-mode .experience {
  border-color: #ddd8d1;
}

body.light-mode .experience-number,
body.light-mode .experience-heading span,
body.light-mode .experience-heading p {
  color: #999999;
}

body.light-mode .experience-heading h3 {
  color: #111111;
}

body.light-mode .experience-line {
  background: #ddd8d1;
}

body.light-mode .experience-content > p {
  color: #68645f;
}

body.light-mode .tags span {
  color: #666666;
  border-color: #d5d1cb;
}

body.light-mode .education {
  border-color: #ddd8d1;
}

body.light-mode .education-year,
body.light-mode .education-content h3 {
  color: #111111;
}

body.light-mode .education-content > span {
  color: #999999;
}

body.light-mode .education-content p {
  color: #68645f;
}

body.light-mode .skills {
  border-color: #ddd8d1;
}

body.light-mode .skill {
  border-color: #ddd8d1;
}

body.light-mode .skill:hover {
  background: #ffffff;
}

body.light-mode .skill span {
  color: #aaaaaa;
}

body.light-mode .skill strong {
  color: #222222;
}

body.light-mode .skill p {
  color: #777777;
}

body.light-mode .contact-box {
  background: #ffffff;
  border-color: #dddddd;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .contact-box h2 {
  color: #111111;
}

body.light-mode .contact-box .btn {
  background: #111111;
  color: #ffffff;
}

body.light-mode footer {
  background: #f4f1ec;
  border-color: #e2dfda;
}

body.light-mode .footer-inner strong {
  color: #222222;
}


/* =========================================================
   TABLET
   601px - 900px
========================================================= */

@media (max-width: 900px) {

  .container {
    width: min(100% - 40px, 760px);
  }

  nav {
    min-height: 74px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 13px;
    font-size: 0.88rem;
  }

  .theme-toggle {
    width: 60px;
    min-width: 60px;
  }

  .profile-intro {
    padding: 75px 0 85px;
  }

  .intro-grid {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  .intro-text h1 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .education {
    grid-template-columns: 150px 1fr;
    gap: 35px;
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-section {
    padding: 80px 0;
  }
}


/* =========================================================
   MOBILE
   <= 600px
========================================================= */


@media (max-width:600px) {

  .container {
    width: calc(100% - 28px);
  }

  /* ================= HEADER ================= */

  nav {
    min-height: 68px;
    padding: 14px 0;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand span {
    display: inline;
    font-size: 1rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    width: 180px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    background: #111;
    border: 1px solid #292929;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: .8rem;
    text-align: left;
  }

  /* THEME */

  .theme-toggle {
    order: 1;
    width: 52px;
    min-width: 52px;
    height: 30px;
  }

  .toggle-circle {
    width: 22px;
    height: 22px;
    top: 3px;
    left: 3px;
  }

  body.light-mode .toggle-circle {
    transform: translateX(24px);
  }

  .theme-icon {
    font-size: 12px;
  }

  .moon {
    right: 7px;
  }

  .sun {
    left: 7px;
  }

  /* HAMBURGER */

  .menu-toggle {
    order: 2;
    display: flex;
    width: 38px;
    height: 38px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: #111;
    border: 1px solid #292929;
    border-radius: 10px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .25s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.light-mode .nav-links {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }

  body.light-mode .menu-toggle {
    background: #fff;
    border-color: #ddd;
  }

  body.light-mode .menu-toggle span {
    background: #111;
  }


  /* ================= INTRO ================= */

  .profile-intro {
    padding: 70px 0 75px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .small-title {
    font-size: .72rem;
  }

  .intro-text h1 {
    margin: 16px 0 22px;
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .intro-text p {
    max-width: 650px;
    font-size: 1rem;
    line-height: 1.8;
  }

  .intro-photo {
    width: min(100%, 420px);
  }

  .intro-photo img {
    border-radius: 22px;
  }


  /* ================= SECTION ================= */

  .profile-section {
    padding: 75px 0;
  }

  .section-title {
    grid-template-columns: 40px 1fr;
    gap: 15px;
    margin-bottom: 45px;
  }

  .section-title h2 {
    font-size: 2.4rem;
  }


  /* ================= ABOUT ================= */

  .about-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-main .big-text {
    font-size: 1.2rem;
  }

  .about-main p {
    line-height: 1.85;
  }


  /* ================= EXPERIENCE ================= */

  .experience {
    grid-template-columns: 60px 1fr;
    gap: 25px;
    padding: 32px 0;
  }

  .experience-heading {
    flex-direction: column;
    gap: 8px;
  }

  .experience-heading h3 {
    font-size: 1.6rem;
  }


  /* ================= EDUCATION ================= */

  .education {
    grid-template-columns: 150px 1fr;
    gap: 30px;
  }

  .education-year {
    font-size: 3.2rem;
  }


  /* ================= SKILLS ================= */

  .skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill {
    min-height: 165px;
    padding: 22px;
  }


  /* ================= CONTACT ================= */

  .profile-contact {
    padding: 75px 0;
  }

  .contact-box {
    padding: 50px 30px;
    border-radius: 22px;
  }

  .contact-box h2 {
    font-size: 2.7rem;
  }


  /* ================= FOOTER ================= */

  .footer-inner {
    min-height: 110px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
  }
}


/* ================= SMALL MOBILE ================= */

@media (max-width:400px) {

  .container {
    width: calc(100% - 22px);
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .theme-toggle {
    width: 48px;
    min-width: 48px;
    height: 28px;
  }

  .toggle-circle {
    width: 21px;
    height: 21px;
  }

  body.light-mode .toggle-circle {
    transform: translateX(21px);
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    top: 44px;
    width: 170px;
  }

  .profile-intro {
    padding: 55px 0 60px;
  }

  .intro-text h1 {
    font-size: 2.8rem;
  }

  .intro-text p {
    font-size: .92rem;
  }

  .profile-section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-main .big-text {
    font-size: 1.1rem;
  }

  .experience {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .education {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .education-year {
    font-size: 2.8rem;
  }

  .skills {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 45px 20px;
  }

  .contact-box h2 {
    font-size: 2.2rem;
  }
}


body {
  animation: pageFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}