
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

:root {
    --neon-blue: #5390d9;
    --neon-pink: #56cfe1;
    --neon-purple: #72efdd;
    --neon-green: #80ffdb;
    --dark-bg: #010101;
    --darker-bg: #0a0a0a;
    --text-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* NAVBAR BASE */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

/* Desktop Links */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #00bcd4;
  transition: 0.3s;
}


main {
  padding-top: 80px;
}


body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo{
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);

}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(90deg, #4cc9f0, #3a86ff);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 100px rgba(76, 201, 240, 0.6);
}



.nav-links a {
        color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;

}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 5%;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #ccc;
}
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.8)
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: -100%;
}

    /*Profile pic*/
.profile-container {
    position: relative;
    margin-top: 2rem;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius:50%;
    object-fit: cover;
    border: 3px solid transparent;
    box-shadow: 0 0 10px var(--neon-blue), 0 0 10px var(--neon-purple), 0 0 50px var(--neon-pink);
    
}



    /*Animations*/
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0% {
        box-shadow:  0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple), 0 0 60px var(--neon-pink);
    }
    100% {
        box-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-purple), 0 0 90px var(--neon-blue);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Slow cinematic zoom army+running pic*/
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }

}
.army-hero-image {
  animation: slowZoom 35s ease-out forwards;
}

@keyframes slowGlideRight {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.21);
  }
}

.about-hero-image {
    animation: slowGlideRight 11s ease-in-out;
}


/*about Section */
.about {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    border-radius: 3px;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #ccc;
}

.skills {
    flex: 1;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    animation: fillBar 2,5s ease-out forwards;
}
/* =========================
   PROJECTS SECTION
========================= */

.projects {
    padding: 5rem 5%;
    position: relative;
}

/* Snap slider */
.projects-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.projects-slider::-webkit-scrollbar {
    display: none;
}

/* Mobile default */
.project-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background-color: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

/* Neon hover */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 15px var(--neon-blue),
        0 0 30px rgba(83, 144, 217, 0.4);
    border: 1px solid var(--neon-blue);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
}

.project-description {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: rgba(0, 136, 255, 0.2);
    color: var(--neon-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--neon-pink);
}

/* Desktop layout */
@media (min-width: 992px) {

    .projects-slider {
        justify-content: center;
        overflow-x: visible;
    }

    .project-card {
        flex: 0 0 20%;
    }

}




footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}



.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: #ccc;
    font-size: 1.5rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.social-link:hover {
    color: #aaa;
    transform: scale(2.5) translateY(-15px);
}






@keyframes fillBar {
    from{
        width: 0;
    }
    to {
        width: 100%;
    }
}

/*Responsive Design*/
@media (max-width: 768px) {
    .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
}

.hero-content {
    margin-bottom: 3rem;
}

.about-content {
    flex-direction: column;
}

    .hero h1 {
        font-size: 2.5rem;
    }

    .profile-container {
        width: 300px;
        height: 300px;
        display: flex;
    }

    .profile-pic {
        display: flex;
    }
    .profile-border {
        width: 270px;
        height: 270px;
    }
    .contact-link {
        width: 70px;
        height: 70px;
    }
    
}

@media (max-width: 768px) {

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background: #000;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .whatsapp-link{
  
    justify-content: center;
    align-items: center;
  }

}

@media (max-width: 768px) {

  .projects-grid {
    display: flex !important;      /* override inline-flex */
    flex-direction: column !important;
    align-items: center;
    max-width: 100%;
    margin: 5%;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
    margin: 10%;
  }

}

@media (max-width: 768px) {

  .logo {
    width: 100%;
    text-align: center;
  }

  .navbar {
    justify-content: center;
  }

}






/*scrollbar*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Toast message box */
.toast {
  min-width: 250px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  color: var(--text-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--neon-pink);
  font-weight: 600;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.5s forwards, fadeOut 1s 10.5s forwards;
  animation-fill-mode: forwards;
  cursor: default;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Different toast types */
.toast.success {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green);
}

.toast.error {
  background: linear-gradient(90deg, #ff4c60, #d90429);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 15px #d90429;
}

/* Animations */
  #typewriter::after {
  content: "|";
  margin-left: 5px;
  animation: blink 0.8s infinite;
  color: #4cc9f0;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}



/* ABOUT PAGE – HERO */
.about-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.about-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
      ellipse at 10% 90%,
      rgba(0, 0, 0, 0)40%,
      rgba(0, 0, 0, 0.65) 100%
      
    );
}

.about-hero-text {
  position: absolute;
  bottom: 125px;
  right: 300px;
  color: #ffffff;
  max-width: 420px;
  padding: 1.2rem 1.4rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  z-index: 4;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  border: 2px solid var(--neon-pink);
  box-shadow:
    0 0 10px rgba(83, 144, 217, 0.4),
    0 0 25px rgba(83, 144, 217, 0.2);

}

.about-hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.about-hero-text p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #dcdcdc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.about-hero-image {
  position: absolute;
  inset: 0;
  background-image: url("pikajuoksu.JPG");
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 2;
  transition: opacity 1.5s ease;

}

.about-hero-blackout {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 2.5;
  transition: opacity 2.5s ease;
}

.hero-divider {
position: relative;
z-index: 5;
 box-shadow: 0 0 12px rgba(83, 144, 217, 0.6);
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--neon-blue),
    var(--neon-pink)
  );
}

/* VERTICAL ATHLETICS TIMELINE */

.athletics-timeline-vertical {
  padding: 5rem 5%;
  background-color: var(--dark-bg);
  position: relative;
}

.timeline-vertical {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding-bottom: 10rem;
}

.timeline-line-vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    var(--neon-blue),
    var(--neon-pink)
  );
  border-radius: 2px;
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  box-sizing: border-box;
}

.timeline-event.left {
  left: 0;
  text-align: right;
}

.timeline-event.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2.5rem;
  left: 100%;
  width: 14px;
  height: 14px;
  background: var(--neon-blue);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--neon-blue);
  z-index: 2;
}

.timeline-event.right .timeline-dot {
  left: 0;
  transform: translateX(-50%);
}

.timeline-card {
  background: rgba(10, 10, 10, 0.9);
  border-radius: 50px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.08);
  border: 0.5px solid var(--neon-pink);
  box-shadow:
    0 0 10px rgba(83, 144, 217, 0.4),
    0 0 25px rgba(83, 144, 217, 0.2);

}

.timeline-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text-color);
  text-align: center;
}

.timeline-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
  text-align: center;
}

.timeline-event.current .timeline-dot {
  background: var(--neon-pink);
  box-shadow: 0 0 16px var(--neon-pink);
}

/* Timeline reveal animation */

.timeline-event {
  opacity: 0;
  transform: translateY(40px);
  margin-bottom: 4rem;
  transition:
  opacity 1s ease-out,
  transform 1s ease-out;
}

/* Directional nuance */
.timeline-event.left {
  transform: translate(-40px, 40px);
}

.timeline-event.right {
  transform: translate(40px, 40px);
}

/* Visible state */
.timeline-event.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ARMY HERO OVERRIDES */

.army-hero .about-hero-image {
  background-image: url("skvj.png");
}

.army-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.army-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 2;
}


.army-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 1.9s ease-in-out;
  z-index: 1;
  will-change: transform;
  
}

.army-hero-text {
  position: absolute;
  bottom: 35%;
  left: 20%;
  z-index: 3;
  opacity: 0;
  border: none;
  box-shadow:none;
  transition: opacity 3.0s ease-in-out;
  will-change: transform, opacity;
}

/* Emblem row */
.army-emblems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.army-emblems {
  height: 135px;
  width: auto;
  object-fit: auto;
  
}

/* =========================
   CERTIFICATES CAROUSEL
========================= */

.cert-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 4rem auto;
  overflow: hidden;
  
}

.cert-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.5s ease;
  transform: scale(1);
}

.cert-card {
  flex: 0 0 50%; 
  opacity: 0.4;
  transform: scale(0.5);
  transition: all 0.4s ease;
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  display: block;
  border-radius: 20px;
  
}

/* Center active card */
.cert-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 30px rgba(0, 136, 255, 0.4);
  border-radius: 20px;

}

/* Buttons */
.cert-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 55px;
  height: 55px;

  border-radius: 50%;
  border: 1px solid var(--neon-blue);

  background: rgba(0, 136, 255, 0.08);
  backdrop-filter: blur(6px);

  color: var(--neon-blue);
  font-size: 22px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

.cert-btn:hover {
  background: rgba(0, 136, 255, 0.25);
  box-shadow: 0 0 15px var(--neon-blue);
  transform: translateY(-50%) scale(1.1);
}

.cert-btn.prev {
  left: 20px;
}

.cert-btn.next {
  right: 20px;
}



/* =========================
   FULLSCREEN CERT MODAL
========================= */

.fullscreen-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.0);
  backdrop-filter: blur(0px);

  opacity: 0;
  pointer-events: none;

  transition: 
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    opacity 0.3s ease;

  z-index: 9999;
}

.fullscreen-modal.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.fullscreen-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;

  transform: scale(0.85);
  opacity: 0;

  transition: 
    transform 0.4s cubic-bezier(.2,.8,.2,1),
    opacity 0.3s ease;

  box-shadow: 0 0 40px rgba(0, 136, 255, 0.4);
}

.fullscreen-modal.active .fullscreen-img {
  transform: scale(1);
  opacity: 1;
}

/* Close button */

.close-modal {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--neon-blue);
  transform: scale(1.2);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .cert-card {
    flex: 0 0 250px;
  }
}






/*FOOTER*/

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  
}

/* WhatsApp link wrapper */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: auto;

}

/* WhatsApp icon */
.whatsapp-link img {
  width: 35px;
  height: 35px;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hover: vain ikoni kasvaa */
.whatsapp-link:hover img {
  transform: scale(1.3);
  opacity: 1;
}

/* Teksti */
.whatsapp-text {
  color: #fff;
  font-size: 1.5rem;
  white-space: nowrap;

  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Teksti näkyviin hoverilla */
.whatsapp-link:hover .whatsapp-text {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {

  .about-hero {
    height: 70vh;
  }

  .about-hero-text {
    bottom: 5%;
    right: 50%;
    transform: translateX(50%);
    max-width: 90%;
    padding: 1rem;
    text-align: center;
  }

  .about-hero-text h1 {
    font-size: 1.6rem;
  }

  .about-hero-text p {
    font-size: 0.95rem;
  }

}

@media (max-width: 768px) {

  .timeline-vertical {
    padding-left: 30px;
  }

  .timeline-line-vertical {
    left: 20px;
    transform: none;
  }

  .timeline-event {
    width: 100%;
    padding: 1rem 1rem 2rem 2.5rem;
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 20px !important;
    transform: translateX(-50%);
  }

  .timeline-card {
    border-radius: 20px;
  }

}



@media (max-width: 768px) {



  .army-hero-text {
    left: 2%;
    bottom: 1%;
    max-width: 260px;
    transform: scale(0.9);
    
  }

  .army-emblems img {
    height: 65%;
  }

  .army-emblems {
    justify-content: flex;
    margin: auto;
  }


}



@media (max-width: 768px) {

  .army-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@media (max-width: 768px) {

  .whatsapp-link,
  .whatsapp-link:hover {
    transform: none !important;
    transition: none !important;
    margin: 10%;
  }

  .whatsapp-text,
  .whatsapp-link:hover .whatsapp-text {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    
  }

}

@media (max-width: 768px) {

  /* Army hero only */
  .army-hero .army-hero-image {
    background-position: 60% center;
  }

  /* Other about hero (NOT army) */
  .about-hero:not(.army-hero) .about-hero-image {
    background-position: 25% center;
  }

}

@media (max-width: 768px) {
  .cert-btn {
    display: none;
  }
}


@media (min-width: 992px) {

  .projects-carousel {
    overflow: hidden;
  }

  .projects-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
  }

 

}

/* Mobile default */
@media (max-width: 991px) {

  .projects-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .project-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .hero-buttons {
    margin-bottom: 25%;
  }

}

.projects-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}


