/* ===============================
   Developed by Kalid Mohammed
   Version: 1.0.0 | Responsive
================================= */

:root {
  --primary: #bb83ff;
  --accent: #8c62bf;
  --bg: #ffffff;
  --hero-bg: linear-gradient(to left, #b7bcff50, #fbfbfb);
  --black: #121212;
  --transition: all 300ms ease-in-out;
  --card: #f5f5f5;
  --card-shadow: 0 2px 20px rgb(233, 233, 233);
  --container: 950px;
}

/* Dark Mode */
.darkmode {
  --primary: #6d4d95;
  --bg: #2a2a2a;
  --hero-bg: linear-gradient(to left, #36484b50, #2a2a2a);
  --black: #949494;
  --card: rgb(60, 60, 60);
  --card-shadow: 0 2px 20px rgb(52, 52, 52);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html{
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--black);
  font-family: bri-regular;
}

a,
i {
  color: var(--black);
  transition: var(--transition);
}
a:hover,
i:hover {
  color: var(--primary);
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.d-f {
  display: flex;
}
.df-between {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.df-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-column {
  flex-direction: column;
}
.gap-2 {
  gap: 2rem;
}
.gap-3 {
  gap: 3rem;
}
.align-items-center {
  align-items: center;
}



/* ==================== HEADER ==================== */
.header__section {
  background: var(--hero-bg);
  padding: 4rem 0 6rem;
}
.logo {
  color: var(--primary);
  font-weight: 700;
}
nav ul {
  display: flex;
  align-items: center;
}
#navToggler {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}


#themeSwitch i:last-child{
  display: none;
}

.darkmode #themeSwitch i:first-child{
  display: none;
}

.darkmode #themeSwitch i:last-child{
  display: block;
}

/* Hero */
.hero__content {
  padding-top: 8rem;
  text-align: left;
}
.hero__content h1 {
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.hero__content h1 span {
  color: var(--primary);
}
.hero__content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}
.hero__content p {
  max-width: 600px;
  margin-bottom: 2rem;
}

/* About */
.about__img {
  background: url(../img/me.jpg) center 10%/cover no-repeat;
  height: 500px;
  width: 100%;
  border-radius: 10px;
}
.about__text {
  padding: 3rem 0;
}
.about__title {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.about__paragraph {
  margin-bottom: 1.5rem;
}
.my__social__links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.my__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  transition: var(--transition);
  margin-top: 1rem;
}
.my__btn:hover {
  background: var(--primary);
  color: var(--bg);
}

/* Works */
#works {
  padding: 4rem 0;
}
.works__header {
  text-align: left;
  margin-bottom: 2rem;
}
.works__header h1 {
  font-size: 3rem;
}
.works__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.works_card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.works_card:hover {
  transform: translateY(-5px);
}
.work__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.works__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-weight: 500;
  padding-top: 12px;
}



/* ==================== CONTACT SECTION ==================== */
.contact {
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgb(158, 158, 158);
  background-color: var(--bg);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: bri-regular;
}

.form-input:focus {
  border-color: var(--primary);
}

.btn {
  padding: 0.9rem 1.5rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: bri-regular;
}

.btn:hover {
  background-color: var(--accent);
}


/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
}
.footer-title {
  font-size: 5rem;
  opacity: 0.2;
}
.copyright {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    flex-direction: column;
    width: 60%;
    height: 100%;
    background: var(--bg);
    justify-content: center;
    transition: var(--transition);
  }
  nav ul li a{
    font-size: 2rem;
  }
  nav ul.active {
    left: 0;
  }
  #navToggler {
    display: block;
  }
  .about__img {
    height: 350px;
  }
  #about{
    padding: 20px;
  }
  .my__social__links{
    flex-direction: column;
    align-items: start;
  }

  .contact {
    padding: 4rem 1.5rem;
  }

  .footer-title {
    font-size: 3rem;
  }
}
