/* Responsive Design Media Queries */
/* @media (max-width: 720px) {
  .topnav {
    padding: 0 8px;
    border-radius: 0;
  }
  .topnav a, .name_design {
    padding: 10px 8px;
    font-size: 18px;
  }
  .topnav-right {
    font-size: 18px;
  }
  .content {
    padding-left: 2%;
    font-size: large;
  }
  .profile_photo {
    height: 100px;
    width: 100px;
    margin-left: 0;
    margin-top: 5%;
  }
  .about_content {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 90%;
  }
  .timeline {
    padding: 10px;
  }
  .card {
    max-width: 95vw;
    margin-left: 0;
    margin-right: 0;
  }
  .skill_tech img {
    height: 60px;
    margin-top: 10px;
  }
  .cert-section-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .cert-card-item {
    width: 90vw;
    height: 120px;
  }
  .cert-modal-box {
    width: 98vw;
    max-width: 98vw;
    padding: 10px;
  }
  .cert-modal-gallery {
    gap: 10px;
  }
  .cert-modal-gallery img {
    width: 90vw;
    max-width: 90vw;
  }
  .container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .contact-left {
    max-width: 100%;
    padding: 10px 4px;
  }
  .contact-right {
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
  }
  .form-heading {
    font-size: 20px;
    margin: 0.5em;
  }
  .form-field {
    padding: 0.3em;
  }
  .sendMessage-btn {
    padding: 0.7em;
    font-size: 90%;
  }
  .blog_card {
    width: 90vw;
    height: 180px;
    margin-right: 10px;
    padding: 5px;
  }
  .blog_img {
    height: 80px;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .topnav a, .name_design {
    padding: 12px 16px;
    font-size: 22px;
  }
  .topnav-right {
    font-size: 22px;
  }
  .content {
    padding-left: 5%;
    font-size: large;
  }
  .profile_photo {
    height: 140px;
    width: 140px;
    margin-left: 20%;
    margin-top: 8%;
  }
  .about_content {
    margin-left: 10%;
    margin-right: 10%;
    font-size: 95%;
  }
  .timeline {
    padding: 15px;
  }
  .card {
    max-width: 80vw;
    margin-left: 10px;
    margin-right: 10px;
  }
  .skill_tech img {
    height: 80px;
    margin-top: 15px;
  }
  .cert-section-wrapper {
    gap: 15px;
  }
  .cert-card-item {
    width: 60vw;
    height: 160px;
  }
  .cert-modal-box {
    width: 90vw;
    max-width: 90vw;
    padding: 18px;
  }
  .cert-modal-gallery {
    gap: 20px;
  }
  .cert-modal-gallery img {
    width: 60vw;
    max-width: 60vw;
  }
  .container {
    gap: 40px;
  }
  .contact-left {
    max-width: 80%;
    padding: 18px 10px;
  }
  .contact-right {
    width: 80%;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
  }
  .form-heading {
    font-size: 24px;
    margin: 0.8em;
  }
  .form-field {
    padding: 0.5em;
  }
  .sendMessage-btn {
    padding: 0.8em;
    font-size: 95%;
  }
  .blog_card {
    width: 60vw;
    height: 200px;
    margin-right: 15px;
    padding: 8px;
  }
  .blog_img {
    height: 120px;
  }
} */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* Background video */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


.topnav {
    overflow: hidden;
    background-color: #fb6d26;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 3px;
}
.topnav a{
    overflow: hidden;
    float: left;
    text-align: center;
    padding: 15px 24px;
    text-decoration: none;
    /* font-size: 20px; */
    color: #ffffff;
}

.topnav-right {
  float: right;
  font-size: 25px;
}

.name_design {
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 24px;
}

.content {
    color: white;
    font-size: x-large;
    padding-left: 10%;
}

.profile_photo {
    height: 180px;
    width: 180px;
    object-fit: cover;
    margin-top: 10%;
    margin-left: 60%;
}

.resume_button {
 display: inline-block;
 padding: 0.9rem 1.8rem;
 font-size: 20px;
 font-weight: 700;
 color: white;
 /* border: 3px solid rgb(252, 70, 100); */
 border: 3px solid rgb(255, 40, 40);
 cursor: pointer;
 position: relative;
 background-color: transparent;
 text-decoration: none;
 overflow: hidden;
 z-index: 1;
 font-family: inherit;
}

.resume_button::before {
 content: "";
 position: absolute;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgb(253, 35, 35);
 transform: translateX(-100%);
 transition: all .3s;
 z-index: -1;
}

.resume_button:hover::before {
 transform: translateX(0);
}
  
.mid_title {
    text-align: center;
    color: rgb(102, 255, 0);
    font-size: x-large;
}

.about_content {
    margin-left: 20%;
    margin-right: 20%;
    font-size: 100%;
    color: whitesmoke;
    font-family:sans-serif;
    line-height: 1.6;
}

/* Timeline Container */
.timeline {
  background: var(--primary-color);
  margin: 20px auto;
  padding: 20px;
  /* text-align: center; */
  display: flex;
  justify-content: center;
}

/* Outer Layer with the timeline border */
.outer {
  border-left: 2px solid #fb6d26;
  display: inline-block;
}

/* Card container */
.card {
  position: relative;
  margin: 0 0 20px 20px;
  padding: 10px;
  background: #63606000;
  color: rgb(255, 255, 255);
  border-radius: 8px;
  max-width: 800px;
}

/* Information about the timeline */
.info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: sans-serif;
  font-size: 120%;
}

/* Title of the card */
.title {
  color: #fff200;
  position: relative;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 999px;
  left: -39px;
  border: 3px solid orangered;
}

  /* full-screen section with background image */
.contact-hero{
    min-height:10vh;
    display:flex;
    align-items:center;
    justify-content:center;
    /* padding:48px; */
    /* Replace the URL below with your background image path  */
    /* background-image: url('your-background.jpg'); */
    background-size:cover;
    background-position:center;
    position:relative;
  }

/* dark overlay so text is readable */
  .contact-hero::before{
    content:"";
    position:absolute;
    left:0;right:0;top:0;bottom:0;
    /* background: linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6)); */
    z-index:0;
  }

  /* wrapper to keep content on top */
  .container{
    /* width:100%; */
    /* max-width:1100px; */
    display:flex;
    gap:80px;
    z-index:1;
    position:relative;
    align-items:flex-start;
  }

  /* Left contact column */
  .contact-left{
    flex:1;
    max-width:420px;
    padding:28px 24px;
    color:var(--text-muted);
  }

  .contact-left h2{
    margin:0 0 22px 0;
    color:#fff;
    font-weight:700;
    font-size:28px;
    text-shadow:0 2px 0 rgba(0,0,0,0.4);
  }

  .contact-item{
    display:flex;
    gap:16px;
    align-items:flex-start;
    margin:18px 0;
  }

  .contact-icon{
    width:36px;
    min-width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.06);
    border-radius:50%;
    color:#fff;
    font-size:18px;
  }

  /* .contact-details{
    flex:1;
  } */

  .contact-details .label{
    display:block;
    font-size:12px;
    letter-spacing:1px;
    color: rgb(255, 111, 0);
    margin-bottom:6px;
    font-weight:600;
  }

  .contact-details .value{
    font-size:15px;
    line-height:1.45;
    color: rgba(255,255,255,0.9);
  }

 .link_color:link {
  color: rgb(255, 255, 255);
  background-color: transparent;
  text-decoration: none;
}
 .link_color:visited {
  color: rgb(255, 255, 255);
  background-color: transparent;
  text-decoration: none;
}
 .link_color:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

.form {
  display: flex;
  flex-direction: column;
  align-self: center;
  /* font-family: inherit; */
  gap: 10px;
  padding-inline: 2em;
  padding-bottom: 0.4em;
  /* background-color: #171717; */
  /* background-color: #0a192f; */
  border-radius: 20px;
  
}

.form-heading {
    text-align: center;
    margin: 1em;
    color: #ffffff;
    /* font-size: 100%; */
    background-color: transparent;
    align-self: center;
    font-weight:700;
    font-size:28px;
    text-shadow:0 2px 0 rgba(0,0,0,0.4);
}

.form-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 10px;
  padding: 0.6em;
  border: none;
  outline: none;
  color: rgb(0, 0, 0);
  background-color: #ffffff;
  
  /* box-shadow: inset 2px 5px 10px rgb(5, 5, 5); */
  
}

.input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #000000;
  padding-inline: 1em;
  /* height: 20px; */
}

.sendMessage-btn {
  cursor: pointer;
  margin-bottom: 3em;
  padding: 1em;
  border-radius: 10px;
  border: none;
  outline: none;
  background-color: #fe6b42;
  color: #ffffff;
  font-weight: bold;
  outline: 1px solid #f85e27;
  transition: all ease-in-out 0.3s;
}

.sendMessage-btn:hover {
  transition: all ease-in-out 0.3s;
  background-color: #fe6b42;
  color: #ffffff;
  cursor: pointer;
  font-size: 100%;
  /* box-shadow: inset 2px 5px 10px rgb(5, 5, 5); */
}

/* .message-body {
  font-family: Arial, Helvetica, sans-serif;
} */

.scroll-container {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    height: 40vh;
}

.blog_container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 20px;
    /* border: 1px solid #ccc; */
    /* background-color: #fff; */
    border-radius: 10px;
    width: 100%; /* Ensures container uses the full width of the parent */
    max-width: 1200px; /* Adjust the maximum width to hold more cards */
    /* Hide the scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.blog_container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.blog_card {
    flex: 0 0 auto;
    width: 300px;
    height: 250px;
    margin-right: 20px;
    padding: 10px;
    /* background-color: #fafafa; */
    /* border: 1px solid #ddd; */
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.blog_card h3 {
    margin: 10px 0;
}

.blog_card p {
    font-size: 14px;
    /* color: #555; */
    margin: 0;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* -webkit-line-clamp: 3;  */
    /* Number of lines to show */
    -webkit-box-orient: vertical;
}

.blog_card:hover {
    transform: scale(1.05);
}

.scroll-btn {
    /* Hide the buttons initially */
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.blog_description {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    overflow-wrap: break-word;
    /* background: rgba(0, 0, 0, 0.6); */
    color: #ffe600;
    padding: 10px;
    box-sizing: border-box;
    /* font-size: larger; */
    text-align: center;

}

.blog_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid #ff6f00;
    margin-bottom: 10px;
    border-radius: 5%;
    border-color: 1px solid #ddd;
    /* -webkit-filter: blur(1px); */
}

.skill_tech {
    text-align: center;
    color: rgb(255, 206, 29);
    font-size: large;
    margin-bottom: 40px;
}

.skill_tech img {
    height: 100px;
    width: auto;
    margin-top: 20px;
    border-radius: 5%;
}
/* ************************* */
/* ========== CARD SECTION ========== */
.cert-section-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
  }

.cert-card-item {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    /* background: #ffffff; */
    transition: 0.3s;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
    /* border-color: 5px solid #ef3636; */
}

.cert-card-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.cert-card-item:hover {
    transform: scale(1.05);
}

/* ========== OVERLAY ========== */
.cert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 900;
}

/* ========== MODAL ========== */
.cert-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 70%;
    max-width: 900px;
    padding: 25px;
    border-radius: 15px;
    display: none;
    z-index: 1000;
    animation: certFadeIn 0.3s ease;
}

.cert-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    cursor: pointer;
}

.cert-modal-title {
    margin-bottom: 15px;
}

.cert-modal-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.cert-modal-gallery img {
    width: 240px;
    /* border-radius: 10px; */
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Animation */
@keyframes certFadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
