/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  
  /*===== Updated Color Scheme - Dark Theme with Light Blue =====*/
  --hue-color: 90; /* Light blue hue */
  --first-color: hsl(var(--hue-color), 89%, 30%); /* Light blue accent */
  --second-color: hsl(0, 0%, 1%); /* Dark background */
  --bg-color: hsl(0, 0%, 1%); /* Slightly lighter dark for content areas */
  --text-color: hsl(0, 0%, 90%); /* Light text */
  --text-color-dark: hsl(0, 0%, 70%); /* Slightly muted text */
  --border-color: hsl(0, 0%, 100%); /* Border color for elements */
  
  /*===== Font & Typography =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  
  /*===== Margins =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1.1rem;
    --smaller-font-size: .875rem;
  }
}

/* Dark/Light Toggle Styles */
.theme-toggle {
  position: fixed;
  top: 5rem; /* Position below navbar */
  right: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--first-color);
  border: none;
  cursor: pointer;
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
}


/* Light Mode Colors - Only applied when light-mode class is active */
body.light-mode {
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(0, 0%, 100%);
  --bg-color: hsl(0, 0%, 98%);
  --text-color: hsl(0, 0%, 20%);
  --text-color-dark: hsl(0, 0%, 40%);
  --border-color: hsl(0, 0%, 87%);
}

/* Icon Visibility - Moon shown by default (dark mode) */
#sun-icon { display: none; }
body.light-mode #moon-icon { display: none; }
body.light-mode #sun-icon { display: block; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .theme-toggle {
    top: 4.5rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .theme-toggle svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}
/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--second-color);
  line-height: 1.6;
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--first-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background-color: var(--bg-color);
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
  grid-gap: 1.5rem;
}

.l-header {
  width: 100%;
  position:absolute;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--second-color);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.nav {
  position: fixed;           /* keeps navbar at top */
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  padding: 0 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav__logo {
  font-weight: var(--font-semi);
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1.2; /* adjust spacing between lines */
}

.nav__logo span {
  display: block;
  font-size: 1rem; /* smaller size for second line */
  color: var(--first-color); /* optional: highlight "PORTFOLIO" */
}


/*==================== NAV MENU ====================*/
.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  margin-bottom: 0;
}

.nav__link {
  position: relative;
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  transition: color 0.3s;
  padding: 0.5rem 0;
  white-space: nowrap;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--first-color);
}

/* Animated underline effect */
.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -0.25rem;
  left: 0;
  background-color: var(--first-color);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.active-link::after {
  width: 100%;
}

.active-link {
  color: var(--first-color);
}

/*==================== TOGGLE BUTTON ====================*/
.nav__toggle {
  display: none;
}

/*==================== MOBILE STYLES ====================*/
@media screen and (max-width: 767px) {

  /* Mobile menu hidden by default */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;         /* hide initially */
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
    z-index: var(--z-fixed - 1);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
  }

  /* Show menu when toggled */
  .nav__menu.show {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__toggle {
    display: block;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
  }
}
/*Active menu*/
.active-link {
  color: var(--first-color);
}

.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
  background-color: var(--second-color);
}

.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
  line-height: 1.2;
}

.home__title-color {
  color: var(--first-color);
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s, transform 0.3s;
}

.home__social-icon:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}

.home__blob {
  fill: none; /* no fill color inside blob */
  stroke: var(--first-color);
  stroke-width: 2;
  width: 100%;
  height: 100%;
}

/* TERMINAL STYLES */
.code-terminal {
  background-color: #0f2027;
  color: white;
  font-family: 'Courier New', monospace;
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  height: 300px;
  overflow: hidden;
  position: relative;
}

/* COLOR CLASSES */
.code-terminal .green { color: #4CAF50; }
.code-terminal .blue { color: #2196F3; }
.code-terminal .orange { color: #FF9800; }
.code-terminal .pink { color: #E91E63; }
.code-terminal .yellow { color: #FFEB3B; }
.code-terminal .cyan { color: #00BCD4; }
.code-terminal .bold { font-weight: bold; }

/* ANIMATIONS */
.typing-line {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  border-right: 2px solid transparent;
}

.typing-line.typing {
  border-right-color: #4CAF50;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #4CAF50; }
}

.loading-dots::after {
  content: '.';
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

.progress-bar {
  display: inline-block;
  width: 100px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 8px;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: #4CAF50;
  transition: width 1.5s ease-out;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #4CAF50;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--second-color);
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
}

.button:hover {
  box-shadow: 0 10px 20px rgba(0, 173, 239, 0.3);
  transform: translateY(-3px);
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
  color: var(--first-color);
}

.about__text {
  color: var(--text-color-dark);
}

.about__img {
  justify-self: center;
}

.about__img img {
  width: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--first-color);
}

.skills__container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 2rem;
}


/* About Section */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns: text & image */
    align-items: center;
    gap: 2rem;
}

.about__img {
    display: flex;
    justify-content: flex-end; /* Right-align the image */
}

.about__avatar {
    width: 30%; /* Adjust size as needed */
    height: 30%;
    border-radius: 50%; /* Circular avatar */
    border: 3px solid var(--first-color);
    object-fit: cover;
}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
    .about__container {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
    }
    .about__img {
        justify-content: center;
        margin-bottom: var(--mb-4);
    }
    .about__avatar {
        width: 150px;
        height: 150px;
    }
}

/* --- RESUME SECTION --- */
.resume__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.resume__column {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.resume__column p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.resume__column .button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #00ff11;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.resume__column .button:hover {
  background-color: #ffa500;
}

/* --- RESUME ANIMATION --- */
.resume__animation {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rotating Ring */
.resume__animation .circle-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px solid #00ff11;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: rotateRing 4s linear infinite;
}

/* Folder Icon */
.folder {
  font-size: 3rem;
  color: #00ff11;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Flying Pages */
.page {
  position: absolute;
  font-size: 2rem;
  color: #ffa500;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: flyPage 3s ease-in-out infinite;
}

.page1 { animation-delay: 0s; }
.page2 { animation-delay: 1s; }
.page3 { animation-delay: 2s; }

/* --- ANIMATIONS --- */
@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flyPage {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate(-50%, -150%) rotate(20deg); opacity: 1; }
  80% { transform: translate(-50%, -200%) rotate(40deg); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
  .resume__container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .resume__column {
    max-width: 100%;
    text-align: center;
  }
  .resume__animation {
    margin: 2rem 0;
  }
}


/* --- SKILLS SECTION --- */
.skills__container {
  display: flex;
  justify-content: center; /* center the entire row */
  align-items: flex-start;
  gap: 4rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

/* Columns */
.skills__column {
  width: 220px; /* fixed width for better alignment */
}

/* Category Styling */
.skills__category {
  margin-bottom: 2rem;
}

.skills__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00ff11;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #00ff11;
  display: inline-block;
}

.skills__list {
  list-style: none;
  padding: 0;
}

.skills__list li {
  margin: 0.7rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-icon {
  font-size: 1.3rem;
  color: #00ff11;
}

/* CENTER ANIMATION */
.skills__animation {
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0; /* prevents shrinking */
}

/* Circle Animation */
.skills__animation .circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #00ff11;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: rotate 4s linear infinite;
}

/* Brackets Animation */
.skills__animation .brackets {
  font-size: 3rem;
  color: #00ff11;
  animation: pulse 1.5s infinite alternate;
  font-weight: bold;
}

/* Animations */
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.2); opacity: 1; } }

/* --- RESPONSIVE --- */
@media screen and (max-width: 1024px) {
  .skills__container {
    gap: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .skills__container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .skills__animation {
    margin: 2rem 0;
  }
}

/* --- RESEARCH SECTION --- */
.research__container {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically */
  gap: 4rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.research__column {
  max-width: 500px;        /* limits text width for better alignment */
  flex: 1;
}

.research__subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: #00ff11;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #00ff11;
  display: inline-block;
}

.research__text {
  font-size: 1rem;
  line-height: 1.6;
}

/* CENTER ANIMATION */
.research__animation {
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0; /* prevent shrinking on large screens */
}

.research__animation .circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #00ff11;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: rotate 5s linear infinite;
}

.research__animation .center-text {
  font-size: 3rem;
  color: #00ff11;
  animation: pulse 1.5s infinite alternate;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.research__animation span {
  position: absolute;
  font-size: 1.5rem;
  color: #ffa500;
  animation: floatUp 3s linear forwards;
}

/* ANIMATIONS */
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes floatUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-160px); opacity: 0; } }

/* RESPONSIVE FOR MOBILE */
@media screen and (max-width: 768px) {
  .research__container {
    flex-direction: column; /* stack vertically */
    align-items: center;    /* center horizontally */
    
  }
  .research__column {
    max-width: 100%;        /* take full width on mobile */
    text-align: center;     /* optional for mobile */
  }
  .research__animation {
    margin: 2rem 0;
  }
}



/*cv/resume*/
.button--medium {
  max-width: 220px;   /* medium width */
  padding: 0.6rem 1.8rem;
  font-size: 1rem;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}


/* ===== WORK =====*/
/* Container grid */
.work__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Each project card */
.work__item {
  background-color: var(--second-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  max-width: 320px;
  margin: 0 auto;
}

.work__item:hover {
  box-shadow: 0 15px 40px rgba(0, 173, 239, 0.4);
  transform: translateY(-8px);
}

/* Image container */
.work__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-bottom: 1px solid var(--border-color);
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work__item:hover .work__img img {
  transform: scale(1.05);
}

/* Project title */
.work__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 1rem 0.5rem;
  color: var(--title-color);
  font-family: 'Poppins', sans-serif;
}

/* Project description */
.work__description {
  font-size: 1rem;
  margin: 0 1rem 1rem;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  min-height: 3rem; /* keeps uniform height for descriptions */
}

/* Link/button */
.work__link {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.5rem 1.2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.work__link:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-color);
}

/* Responsive tweaks */
@media screen and (max-width: 600px) {
  .work__img {
    height: 180px;
  }
  .work__item {
    max-width: 100%;
  }
}
/* ===== SUPPORT / BUY ME A COFFEE SECTION ===== */
.support {
  padding: 3rem 0;
  background-color: var(--body-color);
  text-align: center;
}

.support__container {
  max-width: 768px;
  margin: 0 auto;
  padding: 1rem;
}

.support__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.support__text {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.support__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.support__button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
}



/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--first-color);
  outline: none;
  margin-bottom: var(--mb-4);
  background-color: var(--second-color);
  color: var(--text-color);
  transition: border-color 0.3s;
}

.contact__input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 0 2px rgba(0, 173, 239, 0.2);
}

.contact__input::placeholder {
  color: var(--text-color-dark);
}

textarea.contact__input {
  min-height: 150px;
  resize: vertical;
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

/* ===== FOOTER =====*/
.footer {
  background-color: var(--second-color);
  color: var(--text-color);
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 0 var(--mb-2);
  transition: color 0.3s, transform 0.3s;
}

.footer__icon:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color-dark);
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--text-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}