:root {
  /* Color Palette */
  --color-primary: #253745;
  --color-primary-dark: #11212D;
  --color-bg-primary: #06141B;
  --color-bg-secondary: #11212D;
  --color-bg-footer: #06141B;
  --color-white: #CCD0CF;
  --color-text: #9BA8AB;
  --color-border: #4A5C6A;

  /* Typography */
  --ff-body: 'Space Grotesk', sans-serif;

  /* Font Sizes */
  --fs-sm: 1.4rem;
  --fs-md: 1.6rem;
  --fs-lg: 2rem;
  --fs-xl: 2.4rem;
  --fs-xxl: 3.2rem;
  --fs-biggest: clamp(3rem, 8vw, 5rem);

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Z-Index Layers */
  --zindex-menu: 1000;
  --zindex-fixed: 1010;

  /* Layout Dimensions */
  --width-container: 98rem;
  --height-header: 10rem;
  --height-header--scroll: 8rem;

  /* Effects */
  --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg-primary);
  font-family: var(--ff-body);
  /* font-size: var(--fs-md); */
  color: #CCD0CF;
}

body,
h1,
h2,
h3,
h4,
ul,
p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

ul {
  list-style-type: none;
}

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

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

main {
  overflow: hidden;
}

/* === Reusable css === */
/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--width-container);
  margin: auto;
}


.section__header {
  margin: 8rem 0;
  text-align: center;
}

/* Section Titles */
.section__title {
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  position: relative;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.section__subtitle::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  width: 50%;
  height: 0.5rem;
  background-color: var(--color-primary);
  transform: translateX(-50%);
}

/* Grid Utility */
.d-grid {
  display: grid;
  gap: 3rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-border);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: var(--fw-semibold)
}

.btn:hover {
  background: #0056b3;
}


/* General Section Styles */
.section {
  padding: 6rem 0;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-bg-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Header Styling */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--zindex-menu);
  background-color: rgba(17, 33, 45, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}


.header-container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand */
.brand {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  letter-spacing: 1px;
}

/* Navigation */
.main-nav .nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  text-decoration: none;
  color: var(--color-white);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  position: relative;
  transition: var(--transition);
}

/* Hover underline animation */
.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-text);
  transition: width 0.3s ease-in-out;
}

.nav-list li a:hover::after {
  width: 100%;
}

.nav-list li a:hover {
  color: var(--color-text);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 3rem;
  color: var(--color-white);
  cursor: pointer;
  z-index: var(--zindex-fixed);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: var(--height-header);
    left: 0;
    width: 100%;
    background-color: rgba(17, 33, 45, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  .nav-toggle:checked~.main-nav {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  .nav-toggle-label {
    display: block;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}



/* Hero Section */
.hero {
  background-color: var(--color-bg-primary);
  padding: 6rem 0;
  color: var(--color-white);
}

.hero__wrapper {
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 5rem;

}

.hero__title {
  font-size: var(--fs-biggest);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.hero__title span {
  color: var(--color-primary);
}

.hero__description {
  font-size: var(--fs-md);
  color: var(--color-text);
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 50ch;
}

.hero__info {
  display: flex;
  gap: 3rem;
}

.hero__info-wrapper {
  text-align: center;
}

.hero__info-number {
  font-size: var(--fs-xxl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.hero__info-title {
  font-size: var(--fs-sm);
  color: var(--color-white);
}

.hero__image-wrapper {
  text-align: center;
}

.hero__img {
  width: 100%;
  max-width: 400px;
  border-radius: 1.6rem;
  box-shadow: var(--box-shadow);
  background-color: red;
  transition: transform 0.3s ease;
}

.hero__img:hover {
  transform: scale(1.03);
}

/* fade in animation */
.hero__content,
.hero__image-wrapper {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}


.hero__image-wrapper {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* about section  */

.about__wrapper {
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
  align-items: start;
  background-color: red;
}

.about__title {
  font-size: var(--fs-lg);
  margin-bottom: 1.5rem;
}

.about__description {
  font-size: var(--fs-md);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: var(--color-text);
}

.skills__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.skills__content {
  flex: 1 1 12rem;
}

.skills__subtitle {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.skills__list li {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* Glassmorphism card style */
.glass-card {
  background: rgba(17, 33, 45, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 1.6rem;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.glass-cardd:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}


/* === Educational Background === */

.education__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .education__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .education__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.education__card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--color-bg-secondary);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.education__school {
  font-size: var(--fs-lg);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.education__degree {
  font-size: var(--fs-md);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.education__period,
.education__location {
  font-size: var(--fs-sm);
  color: var(--color-text);

}

.education__period {
  margin-top: 1rem;
}

.resume__pdf {}

/* === skills === */
.skills__grid {
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 3rem;
}

.skill {
  padding: 2rem;
}

.skill__header {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.skill__bar {
  height: 1.2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.skill__fill {
  height: 100%;
  background-color: var(--color-border);
  border-radius: 1rem;
  width: 0;
  animation: fillBar 2s ease forwards;
  /* background: red; */
}


@keyframes fillBar {
  from {
    width: 0;
  }

}

/* Specific fill levels */
.fill-html {
  width: 65%;
}

.fill-css {
  width: 65%;
}

.fill-next {
  width: 65%;
}

.fill-js__ts {
  width: 65%;
}

.fill-java {
  width: 60%;
}

.fill-python {
  width: 54%;
}

.fill-animation {
  width: 60%;
}



/* === projects === */
.project__wrapper {
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 3rem;
}

.project__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6rem;
  transition: var(--transition);
}

.project__img {
  width: 100%;
  border-top-left-radius: 1.6rem;
  border-top-right-radius: 1.6rem;
  height: auto;
  object-fit: cover;
}

.project__body {
  padding: 2rem;
}

.project__title {
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
  color: var(--color-white);
}

.project__description {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.project__link {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--color-border);
  font-weight: var(--fw-semibold);
  transition: var(--transition);
  position: relative;
}

.project__link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  left: 0;
  bottom: -2px;
  transition: width 0.3s ease;
}

.project__link:hover::after {
  width: 100%;
}

.project__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin: 0px auto;
  gap: 4rem;
}

.incomplete {
  display: inline-block;
  text-align: center;
  padding: 1rem 2rem;
  background-color: var(--color-border);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: var(--fw-semibold)
}

/* === Testimonials === */
.testimonial__slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 2rem;
  padding-bottom: 2rem;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.testimonial__slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.testimonial__card {
  scroll-snap-align: center;
  flex: 0 0 100%;
  max-width: 100%;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

@media (min-width: 600px) {
  .testimonial__card {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

@media (min-width: 900px) {
  .testimonial__card {
    flex: 0 0 60%;
    max-width: 60%;
  }
}

.testimonial__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.testimonial__description {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.testimonial__name {
  font-size: var(--fs-md);
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.2rem;
}

.testimonial__occupation {
  font-size: var(--fs-sm);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .testimonial__slider {
    display: block;
    overflow: visible;
    scroll-snap-type: none;
  }

  .testimonial__card {
    max-width: 100%;
    margin-bottom: 3rem;
    scroll-snap-align: none;
  }
}

/* === pictorial === */
.pictorial__row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  justify-content: center;
}

.pictorial__column {
  flex: 0 0 30%;
  max-width: 30%;
  padding: 0 4px;
}

.pictorial__column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .pictorial__column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .pictorial__column {
    flex: 100%;
    max-width: 100%;
  }
}

/* === Contact === */
.contact__wrapper {
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
  gap: 4rem;
  align-items: start;
}

.contact__info {
  text-align: left;
  padding: 3rem;
}

.contact__description {
  font-size: var(--fs-md);
  color: var(--color-text);
  line-height: 1.6;
  margin-top: 1rem;
}

/* Form Styling */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem;
}

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

.form__group label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.form__group input,
.form__group textarea {
  padding: 1.2rem;
  font-size: var(--fs-md);
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.08);
}


.contact__form,
.contact__info {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.contact__info {
  animation-delay: 0.2s;
}

.contact__form {
  animation-delay: 0.4s;
}


/* === footer === */
.site-footer {
  background-color: rgba(17, 33, 45, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-sm);
  text-align: center;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.footer__text {
  margin: 0;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.social__link {
  font-size: var(--fs-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.social__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}