@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap");

/* Global variables */
:root {
  --primary: #12bdff;
  --primary-hover: #0c8ec2;
  --dark-primary: #1b1f24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  display: grid;
  grid-template-areas:
    "nav"
    "hero"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding-top: 80px;
  margin: 0;
  padding: 20px;
  background-color: #031f3c;
  text-align: center;
}

/* =============================================================================== */
/* Header */
header {
  top: 0;
  left: 0;
  right: 0;
  background-clip: border-box;
  background-color: #091522;
  padding: 25px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

header h1 {
  color: #00bcd4;
  margin-right: 130px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 28pt;
  overflow: hidden;
  white-space: nowrap;
  border-right: 5px solid #d1d1d1;
  animation: typewriter 4s steps(9) infinite alternate, blink 800ms steps(9) infinite normal;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from {
    border-color: rgb(121, 104, 104);
  }
  to {
    border-color: transparent;
  } 
}

header ul {
  display: flex;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding:0;
  overflow: hidden;
  border-radius: 10px;
}

header ul li {
  margin-right: 30px;
}

header ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease 0s;
}

header ul li a:hover,
header ul li a:focus {
  color: #4cbaed;
  transition: all 0.3s ease 0s;
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(70, 117, 217, 0.7); 
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    display: none;
  }

  nav ul.show {
    display: flex;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: white;
  }
}

.hero-section {
  text-align: center;
  max-width: 1000px;
  padding: 60px 20px;
}

.hero-section h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-section__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.hero-section__title span {
  color: var(--primary);
}

.hero-section__desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.hero-buttons {
  margin-top: 20px;
}

.btn-dark-outlined {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dark-outlined:hover {
  background-color: var(--primary);
  color: white;
}

picture img {
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.projects-container {
  padding: 10px;
  margin: 10px; 
  gap: 20px;  
  box-sizing: content-box; 
  border-radius: 10px; 
  border: 1px solid #ddd;    
}

.projects-container h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.projects-card-box {
  background-color: hsl(205, 81%, 42%);
  border-radius: 10px var(--border-radius);
  margin-bottom: 30px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.projects-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.projects-card-box__desc h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
  color: #0d336b;
  font-size: 1.5rem;
}

.projects-card-box__desc p {
  font-size: 1rem;
  color: #cde4f3;
  line-height: 1.6;
}

.projects-card-box__buttons button {
  background-color: #66a3ff;
  border: 1px solid var(--primary);
  padding: 8px 16px;
  color: var(--primary);
  border-radius: 8px;
  transition: all 0.3s;
}

.projects-card-box__buttons button:hover {
  background-color: var(--primary);
  color: white;
}

footer {
  grid-area: footer;
  background-color: #091522; 
  color: gray; 
  padding: 20px;
  margin: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
}

footer p {
  text-decoration: none;
  font-size: 18px;
  color: var(--primary); 

}

footer a {
  color: #66a3ff; 
  text-decoration: none;;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff; 
}

footer a :focus {
  color: #fff;   
}

.social-links {
  margin: 20px 0;
  animation: alternate;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 10px;
  color: #66a3ff;
  text-decoration: none;
}

.social-links{
  text-align: center;
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
  }

  .home-image img {
    width: 90%;
    height: auto;
  }

  .hero-section__title {
    font-size: 36px;
  }

  .hero-section__desc {
    font-size: 16px;
  }
}

@media print {
  body {
    font-size: 12pt;
    background: #fff;
    color: #000;
  }
  header, footer, .no-print {
    display: none;
  }
  .content {
    margin: 0;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 10px;
  }

  .hero-section__title {
    font-size: 2rem;
  }

  .hero-section__desc {
    font-size: 1rem;
  }
}