html {
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 0px;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
}

a {
  color: #149ddd;
}

a:hover {
  color: #37b3ed;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  right: 15px;
  bottom: 15px;
  background: #149ddd;
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 99999;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 7px;
  left: 8px;
}

.back-to-top:hover {
  color: #fff;
  background: #2eafec;
  transition: background 0.2s ease-in-out;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #040b14;
  overflow-y: auto;
}

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border-color: #9ecaed;
  box-shadow: 0 0 10px #9ecaed; 
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Poppins", sans-serif;
}

#header .profile h1 a, #header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #212431;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;

}

#header .profile .social-links a:hover {
  background: #149ddd;
  color: #fff;
  text-decoration: none;
  border-color: #9ecaed;
  transition: all 0.7s ease;
  box-shadow: 0 0 10px #9ecaed;
}

#main {
  margin-left: 300px;
}

@media (max-width: 1199px) {
  #header {
    left: -300px;
  }
  #main {
    margin-left: 0;
  }
}

/*---------------------------------------------------------------
# CARD
----------------------------------------------------------------*/

.card-cols{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
}

.card-col{
  width: 280px;
  margin: 1rem;
  cursor: pointer;
}

.card-container{
  position: relative;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
    -webkit-perspective: 1000px;
            perspective: 1000px;
}

.card-front,
.card-back{
  background-size: cover;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25);
  border-radius: 10px;
    background-position: center;
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    min-height: 280px;
    height: auto;
    border-radius: 10px;
    color: #fff;

}

.card-back{
  background: #149ddd;
  background: -webkit-linear-gradient(180deg,  #149ddd 0%,#149ddd 100%);
  background: -o-linear-gradient(180deg,  #149ddd 0%,#149ddd 100%);
  background: linear-gradient(180deg,  #149ddd 0%,#149ddd 100%);
}

.card-front:after{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    background-color: #149ddd;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    border-radius: 10px;
}
.card-container:hover .card-front,
.card-container:hover .card-back{
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);

}

.card-back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.card-inner{
    -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
            transform: translateY(-50%) translateZ(60px) scale(0.94);
    top: 50%;
    position: absolute;
    left: 0;
    width: 100%;
    padding: 2rem;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
            perspective: inherit;
    z-index: 2;
}

.card-container .card-back{
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.card-container .card-front{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.card-container:hover .card-back{
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;

}

.card-container:hover .card-front{
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.card-front .card-inner p{
  position: relative;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  width: 8rem;
}

.card-front .card-inner p:after{
  content: '';
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #C6D4DF;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -.75rem;

}

.card-front .card-inner span{
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat';
  font-weight: 300;
}

@media screen and (max-width: 64rem){
  .card-col{
    width: calc(33.333333% - 2rem);

  }
}

@media screen and (max-width: 48rem){
  .card-col{
    width: calc(50% - 2rem);
  }
}

@media screen and (max-width: 32rem){
  .card-col{
    width: 100%;
    margin: 0 0 2rem 0;

  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding-top: 30px;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover i, .nav-menu .active > a i, .nav-menu li:hover > a i {
  color: #149ddd;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  color: #149ddd;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") top center;
  background-size: cover;
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
  padding-left: 200px;
}

#hero p {
  color: #fff;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
  padding-left: 205px;
}

#hero p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #17CE16;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 40px 0;
  overflow: hidden;
}

.section-bg {
  background: #f5f8fd;
}

.section-title {
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 36px;
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #173b6c;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #149ddd;
  bottom: 0;
  left: 0;
}

.section-title p {
  margin-bottom: 0;
  text-align: justify;
}


/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
}

.about-bg {
  background: white;
  background-size: cover;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: #149ddd;
}

.about .content p:last-child {
  margin-bottom: 0;
}


/*--------------------------------------------------------------
# Skills - About
--------------------------------------------------------------*/
.about .progress {
  height: 50px;
  display: block;
  background: none;
}

.about .progress .skill {
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #050d18;
}

.about .progress .skill .val {
  float: right;
  font-style: normal;
}

.about .progress-bar-wrap {
  background: #dce8f8;
}

.about .progress-bar {
  width: 1px;
  height: 10px;
  transition: .9s;
  background-color: #149ddd;
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #050d18;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #1f5297;
  position: relative;
  text-align: justify;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #050d18;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #e4edf9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #1f5297;
}

.resume .linkcolor{
  color: white;
}
.resume button[type="submit"],
.resume .resume-download-button {
  background: #149ddd;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
}

.resume button[type="submit"]:hover,
.resume .resume-download-button:hover {
  background: #37b3ed;
  color: #fff;
}

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.projects {
  background: #f7fbff;
}

.project-card {
  background: #fff;
  border: 1px solid #e6eef7;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 36, 64, 0.08);
  padding: 32px;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.project-card-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #149ddd;
}

.project-card h3 {
  margin: 0;
  font-size: 30px;
  color: #173b6c;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: #149ddd;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-card-link:hover {
  background: #37b3ed;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.project-card-summary {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #272829;
  margin-bottom: 24px;
}

.project-card-content h4 {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #173b6c;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card-content ul {
  margin: 0;
  padding-left: 20px;
}

.project-card-content li {
  margin-bottom: 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #272829;
  line-height: 1.75;
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.blog .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
}

.blog-bg {
  background: white;
  background-size: cover;
}

.blog .content ul {
  list-style: none;
  padding: 0;
}

.blog .content ul li {
  padding-bottom: 10px;
}

.blog .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: #149ddd;
}

.blog .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Post Cards
--------------------------------------------------------------*/
.post-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  text-decoration: none;
  display: block;
  color: inherit;
  border: 1px solid #eef2f5;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(20,157,221,0.18);
  text-decoration: none;
  color: inherit;
}

.post-card-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 1.25rem;
}

.post-card-meta {
  font-size: 11px;
  color: #149ddd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.post-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #173b6c;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.post-card-cta {
  display: inline-block;
  background: #149ddd;
  color: #fff;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.3s;
}

.post-card:hover .post-card-cta {
  background: #37b3ed;
}

/*--------------------------------------------------------------
# BlogChild
--------------------------------------------------------------*/
.blogg .content h3 {
  font-size: 35px;
  font-family: "Arial";
}

.blogg .content h5 {
  font-size: 20px;
  font-family: "Arial";
}

.blogg-bg {
  background: white;
  background-size: cover;
}

.blogg .content ul {
  list-style: none;
  padding: 0;
}

.blogg .content ul li {
  padding-bottom: 10px;
}

.blogg .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: #149ddd;
}

.blogg .content p:last-child {
  margin-bottom: 0;
}

.blogg .blogg-item p {
 font-size: 17px; line-height: 27px;
 }

 .blogg .blogg-item .blogimage{
 text-align: center;

 }

 .blogg .blogg-item .blogimage h6{
 font-size: 12px;
 font-family: "Arial";
 font-style: italic;
 text-align: center;
 padding-bottom: 10px;
 }

 .blogg .backbutton{
  padding-top: 50px;
  float: left;
 }

 .blogg .backbutton button[type="submit"] {
  background: #149ddd;
  border: 0;
  padding: 10px 24px;
  color: black;
  transition: 0.4s;
  border-radius: 4px;
}

.blogg .backbutton button[type="submit"]:hover {
  background: #37b3ed;
}

.blogg .backbutton .linkcolor{
  color: white;
}

.blogg .post-header {
  border-left: 4px solid #149ddd;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.blogg .post-header .post-date {
  font-size: 12px;
  color: #149ddd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.blogg .post-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #173b6c;
  line-height: 1.35;
  margin-bottom: 0;
}

.blogg .blogg-item p {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1.25rem;
}

.blogg .blogg-item a {
  color: #149ddd;
  text-decoration: none;
}

.blogg .blogg-item a:hover {
  color: #37b3ed;
  text-decoration: underline;
}

.blogg .post-divider {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 2rem 0;
}

.blogg .sharing h4 {
  font-size: 14px;
  font-weight: 700;
  color: #173b6c;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 130px;
}

.contact .info {
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .info i {
  font-size: 20px;
  color: #149ddd;
  float: left;
  width: 44px;
  height: 44px;
  background: #dff3fc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #050d18;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #173b6c;
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 60px;
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  margin-right: 10px;
}

.contact .info .social-links a:hover {
  background: #149ddd;
  color: #fff;
}

.contact .info .email:hover i, .contact .info .address:hover i, .contact .info .phone:hover i {
  background: #149ddd;
  color: #fff;
}

.contact .php-email-form,
.contact .contact-cta {
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .contact-email-button {
  background: #149ddd;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
}

.contact .contact-email-button:hover {
  background: #37b3ed;
  color: #fff;
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: #040b14;
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #eaebf0;
}

@media (max-width: 1199px) {
  #footer {
    position: static;
    width: auto;
    padding-right: 20px 15px;
  }
}

canvas{
  display:block;
  vertical-align:bottom;
}

/* ----- Sharing Blog ----- */

.sharing{
  padding-top: 50px;
  float:right;
}


/* ---- stats.js ---- */

.count-particles{
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles{
  font-size: 1.1em;
}

#stats,
.count-particles{
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats{
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles{
  border-radius: 0 0 3px 3px;
}


/* ---- particles.js container ---- */

#particles-js{
  width: 100%;
  height: 100%;
  background: url("../img/hero-bg.jpg") top center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;

}

.particles-js-canvas-el{
    position: absolute;
}

#logo{
  margin: 0 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  padding-left: 200px;
  animation: fill 0.5s ease forwards 4s;
}

#logo path:nth-child(1){
  stroke-dasharray: 893;
  stroke-dashoffset: 893;
  animation: line-anim 2s ease forwards;
}
#logo path:nth-child(2){
  stroke-dasharray: 934;
  stroke-dashoffset: 934;
  animation: line-anim 2s ease forwards 0.3s;
}
#logo path:nth-child(3){
  stroke-dasharray: 902;
  stroke-dashoffset: 902;
  animation: line-anim 2s ease forwards 0.6s;
}
#logo path:nth-child(4){
  stroke-dasharray: 982;
  stroke-dashoffset: 982;
  animation: line-anim 2s ease forwards 0.9s;
}
#logo path:nth-child(5){
  stroke-dasharray: 992;
  stroke-dashoffset: 992;
  animation: line-anim 2s ease forwards 1.2s;
}
#logo path:nth-child(6){
  stroke-dasharray: 948;
  stroke-dashoffset: 948;
  animation: line-anim 2s ease forwards 1.5s;
}
#logo path:nth-child(7){
  stroke-dasharray: 550;
  stroke-dashoffset: 550;
  animation: line-anim 2s ease forwards 1.8s;
}
#logo path:nth-child(8){
  stroke-dasharray: 834;
  stroke-dashoffset: 834;
  animation: line-anim 2s ease forwards 2.1s;
}
#logo path:nth-child(9){
  stroke-dasharray: 762;
  stroke-dashoffset: 762;
  animation: line-anim 2s ease forwards 2.4s;
}
#logo path:nth-child(10){
  stroke-dasharray: 752;
  stroke-dashoffset: 752;
  animation: line-anim 2s ease forwards 2.7s;
}
#logo path:nth-child(11){
  stroke-dasharray: 832;
  stroke-dashoffset: 832;
  animation: line-anim 2s ease forwards 3.0s;
}
#logo path:nth-child(12){
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  animation: line-anim 2s ease forwards 3.3s;
}
#logo path:nth-child(13){
  stroke-dasharray: 412;
  stroke-dashoffset: 412;
  animation: line-anim 2s ease forwards 3.6s;
}

@keyframes line-anim{
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill {
  from {
    fill: transparent;
  }
  to {
    fill: white;	
  }
}

#aircraft {
  animation: aircraff 1s ease-in-out infinite alternate;
}

@keyframes aircraff {
  from {
    transform: rotateX(-40deg);
  }
  to {
    transform: rotateX(20deg);
  }
}

#cloud {
  animation: cloudd 1s ease-in-out infinite alternate;
}

@keyframes cloudd {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(20deg);
  }
}

/*--------------------------------------------------------------
# MOBILE OPTIMIZATIONS
--------------------------------------------------------------*/

/* --- Tablet and below (sidebar already hidden by existing CSS) --- */
@media (max-width: 1199px) {
  /* Prevent hero from overflowing horizontally */
  #particles-js {
    overflow: hidden;
  }

  /* SVG logo: override HTML width="654" attribute and desktop padding */
  #logo {
    padding-left: 0 !important;
    width: min(90vw, 500px) !important;
    height: auto !important;
    display: block;
    margin: 0 auto 12px auto;
  }

  #hero p {
    padding-left: 0 !important;
    text-align: center;
  }

  #hero .hero-container {
    text-align: center;
    padding: 0 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- Mobile landscape / large phones --- */
@media (max-width: 991px) {
  section {
    padding: 30px 0;
  }

  /* About: center profile image */
  .about .col-lg-4 {
    text-align: center;
    margin-bottom: 20px;
  }

  /* Resume: stack columns already handled by Bootstrap col-lg-* */
  .resume .resume-item {
    text-align: left;
  }

  /* Contact: reduce excessive bottom padding */
  .contact {
    padding-bottom: 40px;
  }

  .project-card {
    padding: 24px;
  }

  .project-card-header {
    flex-direction: column;
  }

  .project-card-link {
    width: 100%;
  }

  /* Blog post card: go full width when grid wraps */
  .post-card {
    width: 100%;
    max-width: 480px;
  }

  /* Blog1: sharing section clear float */
  .sharing {
    float: none;
    padding-top: 20px;
    text-align: left;
  }
}

/* --- Phone portrait --- */
@media (max-width: 767px) {
  /* Hero: scale SVG logo down so it fits the screen */
  #logo {
    width: 90vw;
    height: auto;
    max-width: 500px;
  }

  #hero p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  #hero .hero-container {
    min-width: unset;
    width: 100%;
  }

  /* Section headings */
  .section-title h2 {
    font-size: 28px;
  }

  /* About section */
  .about .col-lg-4 img {
    width: 100px;
  }

  /* Resume tweaks */
  .resume .resume-title {
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .resume .resume-item h4 {
    font-size: 14px;
    line-height: 1.4;
  }

  .resume .resume-item h5 {
    font-size: 13px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-card-summary,
  .project-card-content li {
    font-size: 14px;
  }

  /* Contact map: ensure it doesn't overflow */
  .contact iframe {
    height: 260px;
  }

  /* Blog post card: truly full-width */
  .post-card {
    width: 100%;
    max-width: 100%;
  }

  .post-cards-grid {
    gap: 1rem;
  }

  /* Blog1: article text sizing */
  .blogg .post-header h3 {
    font-size: 20px;
    line-height: 1.4;
  }

  .blogg .blogg-item p {
    font-size: 15px;
    line-height: 1.75;
  }

  /* Blog1: footer row — stack back button and share vertically */
  .blogg .row.align-items-center {
    flex-direction: column;
    gap: 1rem;
  }

  .blogg .col-text-right {
    text-align: left !important;
  }

  /* Back-to-top button: move above mobile nav toggle */
  .back-to-top {
    bottom: 70px;
  }
}

/* --- Small phones --- */
@media (max-width: 575px) {
  #logo {
    width: 85vw;
  }

  #hero p {
    font-size: 16px;
  }

  section {
    padding: 24px 0;
  }

  .section-title {
    padding-bottom: 20px;
  }

  .section-title h2 {
    font-size: 24px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  /* Resume: tighter spacing */
  .resume .resume-item {
    padding: 0 0 14px 14px;
  }

  .resume .resume-item ul {
    padding-left: 14px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card h3 {
    font-size: 21px;
  }

  /* Contact info cards */
  .contact .info {
    padding: 20px;
  }

  .contact .info h4 {
    font-size: 18px;
    padding-left: 50px;
  }

  .contact .info p {
    padding-left: 50px;
    font-size: 13px;
  }

  /* Blog1: post header */
  .blogg .post-header h3 {
    font-size: 18px;
  }

  .blogg .post-header {
    margin-bottom: 1.25rem;
  }
}
