@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

/* CSS * Selector, Select all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}
/* Navbar Styling*/
.navbar {
  position: fixed;
  width: 100%;
  padding: 10px 0;
  z-index: 999;
  font-family: "Ubuntu", sans-serif;
  transition: all 0.3s ease;
}
.navbar.sticky {
  padding: 2px 0;
  background-color: crimson;
}
.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}
.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo a {
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  font-family: "Pacifico";
  transition: all 0.3s ease;
}

.navbar .logo a span {
  color: crimson;
}
.navbar.sticky .logo a span {
  color: white;
}
.navbar.sticky .logo a:hover,
.navbar.sticky .logo a span:hover {
  color: black;
}
.navbar .menu li {
  list-style: none;
  display: inline-block;
}
.navbar .menu li a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  color: #fff;
  transition: color 0.3s ease;
}
.navbar .menu li a:hover {
  color: crimson;
}
.navbar.sticky .menu li a:hover {
  color: #000;
}

/* Menu Button Styling */
.menu-btn {
  color: white;
  font-size: 23px;
  cursor: pointer;
  display: none;
}

/* Scroll button styling */
.scroll-up-btn {
  position: fixed;
  height: 50px;
  width: 47px;
  background: crimson;
  right: 30px;
  bottom: 10px;
  text-align: center;
  line-height: 50px;
  color: #fff;
  z-index: 999;
  font-size: 30px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.scroll-up-btn.show {
  opacity: 1;
  pointer-events: auto;
  bottom: 30px;
}

/* Fade In & Fade Out Elements on Scroll Start */
.fadein {
  opacity: 0.5;
}
.showme {
  transition: opacity 0.1s ease;
  opacity: 1 !important;
}

/* Home Section Styling */
.home {
  display: flex;
  background: url(images/bannernew.jpg) no-repeat center;
  height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  min-height: 500px;
  font-family: "Ubuntu", sans-serif;
}
.home .max-width {
  margin: auto 0 auto 40px;
}
.home .home-content .text-1 {
  font-size: 27px;
}
.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}
.home .home-content .text-3 {
  font-size: 40px;
  margin: 5px 0;
}
.home .home-content .text-3 span {
  font-weight: 500;
  color: crimson;
}
.home .home-content a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 25px;
  padding: 8px 20px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}
.home .home-content .web {
  margin-right: 25px;
}

.home .home-content a:hover {
  color: white;
  background: #000;
}

/* all similar content styling code */
section {
  padding: 100px 0;
}
.about,
.skills,
.experience,
.education,
.certifications,
.contact,
footer {
  font-family: "Poppins", sans-serif;
}
.about .about-content,
.skills .skills-content,
.education .education-content,
.certifications .certifications-content,
.contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: "Ubuntu", sans-serif;
}
section .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #111;
  transform: translateX(-50%);
}
section .title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  padding: 5px;
  font-size: 20px;
  color: crimson;
  background: #fff;
  transform: translateX(-50%);
}

.skills,
.education,
.contact {
  background: #111;
  color: #fff;
}
.skills .title::before,
.education .title::before,
.contact .title::before {
  background: #fff;
}

/* about section styling */
.about .title::after {
  content: "Who am I";
}

.about .about-content .left {
  width: 45%;
}
.about .about-content .left img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  object-position: center top; /* Adjust focus area to show forehead */
  border-radius: 20px;
}

.about .about-content .right {
  width: 55%;
}
.about .about-content .right .text {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
}
.about .about-content .right .text span {
  color: crimson;
}
.about .about-content .right p {
  text-align: justify;
  line-height: 1.6;
  letter-spacing: 1px;
}
.about .about-content .right a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  padding: 3px 25px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}
.about .about-content .right a:hover {
  color: crimson;
  background: none;
}

/* Social media section styling */
.button1 {
  float: left;
  width: 45px;
  height: 45px;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  border-radius: 35px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}
.button1 .icon {
  width: 45px;
  height: 45px;
  text-align: center;
  border-radius: 35px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.button1 .icon i {
  font-size: 18px;
  line-height: 45px;
  color: crimson;
  transition: all 0.3s ease-in-out;
}
.button1:hover {
  width: 150px;
}
.button1:hover i {
  color: #fff;
}
.button1 span {
  font-size: 15px;
  font-weight: 500;
  line-height: 10px;
  margin-left: 5px;
}

.button1:hover .icon {
  background: #307de1;
}

.button1 span a {
  color: #307de1;
}

/* skills section styling */
.skills .title::after {
  background: #111;
  content: "What I know";
}

.skills .skills-content .column {
  width: calc(50% - 30px);
}
.skills .skills-content .left .text {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.skills .skills-content .left p {
  text-align: justify;
  line-height: 1.6;
  letter-spacing: 1px;
}
.skills .skills-content .left a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}
.skills .skills-content .left a:hover {
  color: crimson;
  background: none;
}
.skills .skills-content .right .info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.skills .skills-content .right .info img {
  padding: 10px;
  margin: 5px;
}

/* Experience section styling */
.experience .title::after {
    content: "My work";
    position: absolute;
    bottom: -12px;
    left: 50%;
    padding: 5px;
    font-size: 20px;
    color: crimson;
    background: #fff;
    transform: translateX(-50%);
}

.experience .max-width {
    max-width: 1200px;
    margin: 0 auto;
}

.experience .carousel .card {
    background: #1a1443; /* Changed from #1a1443 */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    color: #16f2b3;
    margin-bottom: 20px;
}

.experience .card .box {
    background: #0a0d37; /* Changed from #0a0d37; */
    padding: 15px;
    border-radius: 8px;
    border: 2px solid crimson; /* Changed from #1b2c68a0; */
    position: relative;
}

.experience .card .experience-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #16f2b3;
    margin-bottom: 8px;
}

.experience .card ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #ddd;
}

.experience .card ul li {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 5px;
}

.experience .card p {
    margin: 5px 0;
    font-size: 1em;
    color: #c5d1ed;
}

.carousel.owl-carousel {
    display: flex;
    gap: 20px;
}



/* Education section styling */
.education .title::after {
    content: "My studies";
    position: absolute;
    bottom: -12px;
    left: 50%;
    padding: 5px;
    font-size: 20px;
    color: crimson;
    background: #111;
    transform: translateX(-50%);
}

.education .education-content {
    display: flex;
    gap: 50px;
    max-width: 900px;  /* Reduced from 1200px to 900 */
    margin: 0 auto;
    align-items: flex-start;
    padding: 0 15px;  /* Added padding for better spacing */
}

.education-image {
    flex: 0 0 300px;  /* Reduced from 300px */
    margin-top: 50px;  /* Added margin-top */
    margin-bottom: 30px;  /* Added margin-bottom for vertical spacing */  
}

.education-image img {
    width: 180%;    /* increased from 100 */
    max-width: 300px;  /* Reduced from 300px */
    height: auto;
    object-fit: contain;  /* Changed from cover */
    border-radius: 20px;
    display: block;
    align-items: left;
    justify-content: left;
}

.education-cards {
    flex: 1;
    max-width: 600px;  /* Added max-width to control card length to 600 */
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;  /* Reduced from 30px */
    display: flex;
    gap: 15px;  /* Reduced from 20px */
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;  /* Reduced from 30px */
}

.card-icon {
    flex: 0 0 40px;  /* Reduced from 50px */
    height: 40px;  /* Reduced from 50px */
    background: rgba(123, 104, 238, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;  /* Reduced from 24px */
    color: #7b68ee;
}

.card-content {
    flex: 1;
    text-align: right;
}

.year {
    color: #4ecca3;
    font-size: 15px;  /* Reduced from 16px */
    margin-bottom: 6px;  /* Reduced from 8px */
}

.education-card h3 {
    font-size: 16px;  /* Reduced from 18px */
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.education-card p {
    color: #a0a0a0;
    font-size: 15px;  /* Reduced from 16px */
}

/* Media Queries */
@media (max-width: 768px) {
    .education .education-content {
        flex-direction: column;
        align-items: center;
    }
    
    .education-image {
        flex: none;
        width: 180px;  /* Fixed width for mobile */
        margin: 0 auto 20px;  /* Added bottom margin */
        position: relative;
    }
    
    .education-image img {
        width: 180px;  /* Fixed width for mobile */
        height: 180px;  /* Added fixed height */
        margin: 0 auto;
    }
    
    .card-content {
        text-align: left;
    }
    
    .education-card {
        padding: 15px;
    }
    
    .education-card h3 {
        font-size: 15px;
    }
    
    .year {
        font-size: 13px;
    }
    
    .education-card p {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .education-image {
        width: 150px;
    }
    
    .education-image img {
        width: 150px;
        height: 150px;
    }
}

/* Certification section styling */
#certificates {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.certifications .title::after {
  content: "I've achieved";
  position: absolute;
  bottom: -12px;
  left: 50%;
  padding: 5px;
  font-size: 20px;
  color: crimson;
  background: #fff;  /* White background since this section has light background */
  transform: translateX(-50%);
}

.certification-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(50% - 20px); /* Adjusted for spacing and fit */
  margin-bottom: 30px;
  position: relative; /* Necessary for the light effect positioning */
}

.certification-block p {
  color: crimson; /* Change text color to crimson */
  font-weight: 600; /* Make text little bold */
  margin-top: 10px;
  text-align: center;
}

.certification-block img {
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
  max-width: 100%;
  position: relative; /* So the light effect stays within img boundaries */
  z-index: 1; /* Keep image above the light effect */
}

/* Hover effect */
.certification-block img:hover {
  transform: scale(1.1);
}


/* Radiant crimson light effect */
.certification-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(220, 20, 60, 0.5), 0 0 20px rgba(220, 20, 60, 0.3);
  pointer-events: none;
  z-index: 0;
  animation: radiant-light 3s infinite linear;
  opacity: 0.5;
}

/* Radiant light animation in crimson */
@keyframes radiant-light {
  0% {
    box-shadow: 0 -5px 10px 3px rgba(220, 20, 60, 0.8);
  }
  25% {
    box-shadow: 5px 0 10px 3px rgba(220, 20, 60, 0.8);
  }
  50% {
    box-shadow: 0 5px 10px 3px rgba(220, 20, 60, 0.8);
  }
  75% {
    box-shadow: -5px 0 10px 3px rgba(220, 20, 60, 0.8);
  }
  100% {
    box-shadow: 0 -5px 10px 3px rgba(220, 20, 60, 0.8);
  }
}

/* contact section styling */
.contact .title::after {
  background: #111;
  content: "Get in touch";
}
.contact .contact-content .column {
  width: calc(50% - 30px);
}
.contact .left .text {
  margin-top: 20px;
}
.contact .contact-content .left .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact .contact-content .left p {
  text-align: justify;
}
.contact .contact-content .left .text1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 20px;
}
.contact .contact-content .left .icons {
  margin: 10px 0;
}
.contact .contact-content .row {
  display: flex;
  height: 65px;
  align-items: center;
}
.contact .contact-content .row i {
  font-size: 25px;
  color: crimson;
}
.contact .contact-content .row .email-icon {
  margin-left: -7px;
}
.contact .contact-content .row .info {
  margin-left: 30px;
  justify-content: left;
  float: left;
}
.contact .contact-content .info .head {
  font-weight: 600;
  color: #4ecca3;  /* Applied the new color */
}
.contact .contact-content .info .sub-title {
  color: #fff;
}
.contact .contact-content .info .sub-title a{
  color: #fff;
}
.contact .right .text {
  padding-bottom: 10px;
  font-weight: 600;
}
.contact .right form .fields {
  display: flex;
}
.contact .right form .fields,
.contact .right form .field {
  height: 45px;
  width: 100%;
  margin-bottom: 15px;
}
.contact .right form .name {
  margin-right: 10px;
}
.contact .right form .email {
  margin-left: 10px;
}
.contact .right form .textarea {
  height: 160px;
  width: 100%;
}
.contact .right form .field input,
.contact .right form .textarea textarea {
  height: 100%;
  width: 100%;
  border: 1px solid lightgrey;
  border-radius: 6px;
  outline: none;
  padding: 0 15px;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
}
.contact .right form .textarea textarea {
  padding-top: 10px;
}
.contact .right form .button {
  height: 47px;
  width: 220px;
}
.contact .right form .button button {
  height: 100%;
  width: 100%;
  border: 2px solid crimson;
  background: crimson;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.contact .right form .button button:hover {
  color: #fff;
  background: none;
}

/* footer section styling */
footer {
  background: #fff;
  padding: 20px 23px;
  color: #000;
  text-align: center;
}
footer span a {
  color: crimson;
  text-decoration: none;
}
footer span a:hover {
  text-decoration: underline;
}

/* responsive media query start */
@media (max-width: 1300px) {
  .home .max-width {
    margin-left: 0px;
  }
}

@media (max-width: 1104px) {
  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
}

@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }
}

@media (max-width: 947px) {
  .max-width {
    padding: 0 50px;
  }
  .menu-btn {
    display: block;
    z-index: 999;
  }
  .menu-btn i.active:before {
    content: "\f00d";
  }
  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 40px;
    transition: all 0.3s ease;
  }
  .navbar .menu.active {
    left: 0;
  }
  .navbar .menu li {
    display: block;
  }
  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }
  .home .home-content .text-2 {
    font-size: 72px;
  }
  .home .home-content .text-3 {
    font-size: 35px;
  }
  .home .home-content a {
    font-size: 22px;
    padding: 6px 24px;
  }
  .max-width {
    max-width: 800px;
  }
  .about .about-content .column {
    width: 100%;
  }

  .about .about-content .left .wrapper {
    margin: 0 auto 10px;
  }
  .about .about-content .right {
    flex: 100%;
    margin-top: 30px;
  }

  .education .education-content {
    width: 100%;
  }
  .education .education-content .right {
    flex: 100%;
    margin-top: 30px;
  }

  .skills .skills-content .column,
  .education .education-content .column,
  .certifications .certifications-content .column,
  .contact .contact-content .column {
    width: 100%;
    margin-bottom: 35px;
  }
  .contact .left .text {
    margin-top: 0px;
  }
}

@media (max-width: 690px) {
  .max-width {
    padding: 0 23px;
  }
  .home .home-content .text-2 {
    font-size: 60px;
  }
  .home .home-content .text-3 {
    font-size: 32px;
  }
  .home .home-content a {
    font-size: 20px;
  }
}

@media (max-width: 540px) {
  .about .about-content .right .text .break {
    display: block;
  }
}

@media (max-width: 500px) {
  .max-width {
    padding: 0 23px;
  }
  .home .home-content .text-2 {
    font-size: 50px;
  }
  .home .home-content .text-3 {
    font-size: 27px;
  }
  .projects .carousel .card {
    margin-top: 10px;
    padding: 10px 15px;
  }
  .projects .carousel .card img {
    height: 180px;
    width: 200px;
  }
}

@media (max-width: 380px) {
  .about .about-content .left img {
    height: 250px;
    width: 250px;
  }
}

/* Home Section Button - Fixed Position */
#homePageCoffeeBtn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 9999; /* Higher than other elements */
  transition: all 0.3s ease;
  width: 180px;
}

#homePageCoffeeBtn img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#homePageCoffeeBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}