/* =========================
   General
========================= */

:root {
  --primary: #a9d8ee;
  --dark: #e8f5fa;
  --background: #07141c;
  --white: #0d1d26;
  --text: #c5d3dc;
  --border: #263b47;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 90px 10%;
}

h1,
h2,
h3 {
  color: var(--dark);
}

h2 {
  font-size: 32px;
  margin-bottom: 35px;
}

/* =========================
   Navbar
========================= */

header {
  background-color: var(--white);
  padding: 20px 10%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(23, 59, 77, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: var(--text);
  font-size: 15px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--primary);
}

/* =========================
   Hero
========================= */

#home {
  min-height: 90vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

#home > div:first-child {
  max-width: 600px;
}

#home p:first-child {
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

#home h1 {
  font-size: 58px;
  margin-bottom: 10px;
}

#home h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
}

#home p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* =========================
   Hero Buttons
========================= */

#home a {
  display: inline-block;
  padding: 13px 25px;
  border-radius: 8px;
  margin-right: 10px;
  transition: 0.3s;
}

#home a[href="#projects"] {
  background-color: var(--primary);
  color: var(--white);
}

#home a[href="#contact"],
#home a[href="samia.cv/SAMIA ASHRAF-Full Stack.Net.pdf"] {
  border: 1px solid var(--primary);
  color: var(--primary);
}

#home a:hover {
  transform: translateY(-3px);
}

/* =========================
   Profile Image
========================= */

.profile-image img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 10px 30px rgba(23, 59, 77, 0.12);
}

/* =========================
   About
========================= */

/* About */
.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 30px auto 0;
}

/* About Image */
.about-image {
  flex: 0 0 350px;
  text-align: center;
}

.about-image img {
  width: 300px;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About Content */
.about-content {
  flex: 1;
}

/* About Text */
.about-text p {
  line-height: 1.8;
  margin-bottom: 15px;
}

/* About */
.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 30px auto 0;
}

.about-text {
  flex: 1;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-highlights {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.about-item h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.about-item p {
  color: var(--text);
  line-height: 1.6;
}

/* Education */
.education-card {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 30px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.education-card h3 {
  color: var(--dark);
  font-size: 24px;
  margin-bottom: 15px;
}

.education-card p {
  color: var(--text);
  margin: 8px 0;
}

.education-card span {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: bold;
}

.education-card:hover {
  transform: translateY(-5px);
}
/* =========================
   Certifications
========================= */

/* Experience */
.experience-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.experience-card {
  width: 300px;
  min-height: 140px;
  padding: 25px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.experience-card h3 {
  color: var(--dark);
  margin-bottom: 15px;
}

.experience-card p {
  color: var(--text);
  line-height: 1.6;
}

.experience-card:hover {
  transform: translateY(-5px);
}

.sub-title {
  margin-top: 50px;
  font-size: 26px;
}
/* cerfucate */
.certifications-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.certificate-card {
  width: 260px;
  min-height: 140px;
  padding: 25px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

/* =========================




   Skills
========================= */

#skills {
  text-align: center;
  background-color: var(--background);
}

#skills h2 {
  margin-bottom: 30px;
}

#skills p {
  display: inline-block;
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 12px 22px;
  margin: 7px;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 500;
  transition: 0.3s;
}

#skills p:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* =========================
   Projects
========================= */

#projects {
  background-color: var(--white);
}

#projects article {
  background-color: var(--background);
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(23, 59, 77, 0.08);
}
#projects article h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

#projects article p {
  margin-bottom: 15px;
}

#projects article a {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 7px;
  transition: 0.3s;
}

#projects article a:hover {
  background-color: var(--dark);
}

/* =========================
   Contact
========================= */

#contact {
  text-align: center;
}

#contact h2 {
  margin-bottom: 25px;
}

#contact p {
  margin: 8px;
}

#contact a {
  display: inline-block;
  margin: 15px 8px;
  color: var(--primary);
  font-weight: bold;
}

#contact a:hover {
  color: var(--dark);
}

/* =========================
   Footer
========================= */

footer {
  background-color: #040b10;
  color: var(--white);
  text-align: center;
  padding: 25px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  header {
    padding: 18px 5%;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 60px 5%;
  }

  #home {
    min-height: auto;
    padding-top: 80px;
    flex-direction: column;
    text-align: center;
  }

  #home h1 {
    font-size: 42px;
  }

  #home h2 {
    font-size: 23px;
  }

  #home a {
    margin-bottom: 10px;
  }

  .profile-image img {
    width: 250px;
    height: 250px;
  }
}
/* Services */
.services-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  width: 280px;
  text-align: center;
  transition: 0.3s;
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text);
  line-height: 1.7;
}

.service-card:hover {
  transform: translateY(-5px);
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.contact-info i {
  margin-right: 7px;
  font-size: 18px;
}

.contact-info a:hover {
  transform: translateY(-3px);
}

/* =========================
   Hero Animation
========================= */

#home > div:first-child {
  animation: fadeInLeft 1s ease-out;
}

.profile-image {
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   Scroll Animation
========================= */

.service-card,
.education-card,
.experience-card,
.certificate-card,
#projects article {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.service-card.show,
.education-card.show,
.experience-card.show,
.certificate-card.show,
#projects article.show {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form */
.contact-form {
  max-width: 650px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: center;
  border: none;
  background-color: var(--primary);
  color: var(--background);
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

.contact-form button:hover {
  transform: translateY(-3px);
}
#contact .contact-info {
  margin-top: 40px;
  margin-bottom: 50px;
}

#contact .contact-form {
  margin-top: 35px;
}
