@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;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-areas:
      "nav"
      "projects"
      "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 {
  grid-area: nav;
  top: -80px;
  left: 0;
  right: 0;
  background-clip: border-box;
  background-color: #091522;
  background-position: right center;
  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); 
}

.education {
  background-color: #091527;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 20px ;
  padding: 20px;
  text-align: center;
}

.education h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00bcd4;
  border-bottom: 3px solid #00bcd4;
  padding-bottom: 10px;
  box-sizing: content-box;
  justify-content: center;
}

.edu-item {
  background: linear-gradient(135deg, #d3cce3, #e9e4f0);
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.edu-item:hover {
  transform: translateY(-5px);
}

.edu-item h3 {
  color: #031f3c;
  margin-bottom: 15px;
  border-bottom: 2px solid #93a2c1;
  padding-bottom: 5px;
}

.edu-item p {
  margin: 10px 0;
  color: #133379;
  line-height: 1.5;
  font-family: 'Cursive' ;
  font-size: large;
}

.edu-item a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #fff;
  background: #6a11cb;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.edu-item a:hover {
  background: #2575fc;
}

/* Certificate Section */
.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
h3 {
  text-align: center;
  color: #00bcd4;
  font-size: 2rem;
  text-indent: 0.3cm;
}

.certificate-box {
  background: #ffffff;
  border: 3px solid #4a90e2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s;
}

.certificate-box:hover {
  transform: scale(1.05);
  background: #f0f6ff;
}

.certificate-box h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.certificate-box p {
  margin: 5px 0;
  line-height: 1.5;
  font-family: 'Cursive' ;
  font-size: large;
}

.certificate-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #4a90e2;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.certificate-box a:hover {
  background: #3456d6;
}

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__title {
    font: 36px;
  }
  
  .hero-section__desc {
    font: 16px;
  }
}

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__title {
      font: 36px;
    }
    
    .hero-section__desc {
      font: 16px;
    }
  }

@media print {
    body {
      background-color: white;
      color: black;
      margin: 20px;
      padding: 0;
      text-align: left;
    }
  
    header, footer {
      display: none; 
    }
  
    .education, .edu-item, .certificate-box {
      box-shadow: none; 
      border: 1px solid #ddd;
      padding: 10px;
      margin: 10px 0;
    }
  
    .edu-item a, .certificate-box a {
      display: none; 
    }
  
    .edu-item p, .certificate-box p {
      font-size: 12px; 
    }
  
    h1, h2, h3 {
      font-size: 20pt; 
      text-align: center;
    }
  
    footer p {
      font-size: 12px;
      color: black;
    }
  
    .social-links a {
      display: none; 
    }
}
  