@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(0); }   
    80% { opacity: 1; transform: translateY(0); }  
    100% { opacity: 0; transform: translateY(-10px); } 
}

.parallax {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

footer {
    margin-top: auto; 
}
.navbar {
  opacity: 0.8;
}
.navbar-brand {
  font-family: 'hurin', sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #8d8d8b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar a {
  position: relative;
}
.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #d6d6d3;
  transition: width 0.3s ease;
}
.navbar a:hover::after {
  width: 100%;
}

nav p {
    font-family: 'hurin', sans-serif;
}
nav li {
    font-family: 'hurin', sans-serif;
    color: white;
}

@font-face {
    font-family: 'celinda';
    src: url('fonts/Celinda-Regular.otf') format('truetype');
}

@font-face {
    font-family: 'mileast';
    src: url('fonts/Mileast.otf') format('truetype');
}

@font-face {
    font-family: 'hurin';
    src: url('fonts/HurinPersonalUseOnly-Regular.ttf') format('truetype');
}
.alert {
    font-family: 'hurin', sans-serif;
    font-size: 1.3rem;
    padding-bottom: 80px;
    border: none;
    opacity: 0;
    animation: fadeInOut 3s forwards;
    background: none;
    color: white;
    text-align: center;
}
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('/api/placeholder/1920/1080') center/cover no-repeat;
    height: 100vh;
    color: white;
}
.hero-section h1 {
   position: relative;
    font-weight: bold;
    text-shadow: 6px 6px 0px rgba(0,0,0,0.2);
    font-family:'celinda', sans-serif;
    animation: fadeIn 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    font-size: 5.5em; 

}
.hero-section h1::after,
.hero-section h1::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #f5f2f2, #555555);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hero-section h1::before {
  top: -5px;
  transform-origin: left;
}

.hero-section h1:hover::after,
.hero-section h1:hover::before {
  transform: scaleX(1);
}


.hero-section p {
   opacity: 0;
    font-family: 'hurin', sans-serif;
    text-shadow: 6px 6px 0px rgba(0,0,0,0.2);
    animation: fadeIn 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 0.5s;
    font-size: 1.5em;
}
.hero-section a {
    opacity: 0;
    font-family: 'hurin', sans-serif;
    animation: fadeIn 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 1s;
}

.about-btn,
.project-btn {
    background-color: transparent;
    border-color: white;
}
.about-btn:hover,
.project-btn:hover {
    background-color: white;
    color: black;
    border-color: white; 
}

.skill-card {
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(116, 115, 115, 0.1);
  border-radius: 12px;
  text-align: center;
  background-color: #eeecec;
}

.skill-card img {
    height: 60px;          
    width: auto;           
    object-fit: contain;   
}
.skill-card svg {
    height: 60px;         
    width: auto;           
    object-fit: contain;   
}


#features h2,
#about h2,
#testimonials h2,
#contact h2 {
  font-family: 'mileast', sans-serif;
  text-align: center;
}


#about p,
#testimonials p,
#contact  {
  font-family: 'hurin', sans-serif;
  font-weight: 50;
  text-align: center;
}

#features h3 {
  padding-top: 3px;
  font-family: sans-serif;
}
#about h5,
#testimonials h5,
#contact  {
  font-family: sans-serif;
}


.about-me-btn {
    background-color: gray;
    border-color: gray;
    box-shadow: 1px 1px 1px black;
    text-shadow: 1px 1px 1px black;
    font-family: sans-serif;
}
.about-me-btn:hover {
    background-color: rgb(26, 25, 25);
    border-color: gray;
}

.message-btn {
  
  overflow: hidden;
  background-color: #888888; 
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.35s ease-out;
  background-image: linear-gradient(
    120deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  box-shadow: 1px 1px 1px black;
  text-shadow: 1px 1px 1px black;
    font-family: sans-serif;
}

.message-btn:hover {
  background-position: 0 0; 
  background-color: rgb(26, 25, 25); 
  border-color: gray;
}

.feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.testimonial-img {
    width: 200px;
    height: 200px;
    border-radius: 20%;
    object-fit: cover;
}

footer h5{
    font-family: 'celinda', sans-serif;
    color: lightgray;
}
footer li a {
    font-family: 'hurin', sans-serif;
    text-decoration: None;
    color: lightgray;
}
footer li a {
  position: relative;
}
footer li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #d6d6d3;
  transition: width 0.3s ease;
}

footer li a:hover::after {
  width: 100%;
}
footer p {
    font-family: sans-serif;
    text-decoration: None;
    color: lightgray;
}

.connect a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;           
    height: 3.5rem;
    font-size: 1.75rem;      
    border: 1px solid #fff;  
    border-radius: 50%;      
    color: #fff;            
    text-decoration: none;
    transition: all 0.3s ease;
}
.connect a:hover {
    background-color: #8f8d8d;  
    color: #000;             
    transform: scale(1.1);  
}

#about-footer {
  font-style: italic;
}

@media screen and (max-width: 600px) {
  .parallax {
    height: 70vh;               
    background-attachment: scroll; 
  }

  .hero-section {
    padding: 1rem;
  }
  .hero-section h1 {
    font-size: 2.8rem;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  }
  .hero-section p {
    font-size: 1rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.15);
  }
  .hero-section a {
    font-size: 1rem;
  }

  nav p, nav li {
    font-size: 1.1rem;
    padding: 10px 0;
  }

 
  .about-btn,
  .project-btn,
  .about-me-btn,
  .message-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
 .about-btn:hover,
 .project-btn:hover {
    background-color: white;
    color: black;
    border-color: white; 
}
  .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

 
  .testimonial-img {
    width: 150px;
    height: 150px;
  }
  #about .col-md-6:first-child {
    display: flex;
    justify-content: center;
    padding-bottom: 1em;
  }
  .about-me-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  footer {
    text-align: center;
  }

  footer h5 {
    font-size: 1.2rem;
  }
  footer li {
    font-size: 1rem;
  }
  footer p {
    font-size: 0.9rem;
  }
    .col-md-4.mb-3 .d-flex {
    justify-content: center !important; 
  }
}
