/* ============================================================================= 
General
============================================================================= */

:root {
  --main-bg: #222;
  --primary-color: #007ced;
  /*--accent-color: #ff4c60;*/
  --text-color: #d5d5d5;
}

html {
  overflow-x: hidden !important;
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  p, li, span, div {
    font-size: 15px;
  }
}

@media screen and (max-width: 1024px) {
    html {
        font-size: 17px; 
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 18px; 
    }
}

body {
  padding-top: 70px; /* adjust this to match your actual header height */
}

#loading > div:nth-child(3) > div > img{
  vertical-align: middle !important;
}

.site-main-menu a.active {
  color: #f5f5f5;
  opacity: 1;
  border-bottom: 2px solid #007ced;
}

.site-nav {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.lmpixels-scroll-to-top {
  bottom: 20px !important;
}

.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    border-radius: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-out;
    color: #ecf0f1;
    background: #1e1e1e;
}
.cookiealert.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.3s;
}
.cookiealert a {
    text-decoration: underline;
}
.cookiealert .acceptcookies {
    margin-left: 10px;
    vertical-align: baseline;
}

.site-footer {
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
  background-color: #1e1e1e !important;
  border-top: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.footer-myrights p {
  color: #ddd;
  opacity: .6;
  transition: color 0.3s ease;
  font-size: 13px;
}

.footer-myrights p:hover, .footer-copyrights a:hover {
  opacity: 1;
}

.footer-myrights p a {
  color: #ff4c60;
  opacity: 1;
  text-decoration: none;
}

.footer-myrights p a:hover {
  text-decoration: underline;
}

.footer-copyrights p, .footer-copyrights a {
  color: #ddd;
  opacity: .6;
  font-size: 13px;
}

@media only screen and (max-width: 768px) {
  .footer-copyrights {
    margin-top: 0;
  }
}

@media (min-width: 576px) {
  .w-sm-30 { width: 30% !important; }
}
@media (min-width: 768px) {
  .w-30 { width: 30% !important; }
}

@media only screen and (max-width: 991px) {
  .page-container {
    padding: 40px 70px 60px;
  }
}

.page-with-title #page_container{
  padding-top: 0px !important;
}

@media only screen and (min-width: 991px) {
  .non-resume-page .home-buttons{
    margin-top: 15%;
}
}

.page-title{
  border-top: 0;
  border-bottom: 2px solid #1e1e1e;
}

@media only screen and (max-width: 991px) {
.page-title {
    margin-right: -70px;
    margin-left: -70px;
    text-align: center;
  }
}

.page-title .page-subtitle{
	top: 35%;
}

@keyframes heartbeat-shadow {
  0% {
    box-shadow: 0 0 28px 0 rgba(0, 133, 255, 0.4), 0 0 2px rgba(213, 213, 213, 0.3);
  }
  25% {
    box-shadow: 0 0 15px 3px rgba(0, 133, 255, 0.5), 0 0 13px rgba(213, 213, 213, 0.4);
  }
  40% {
    box-shadow: 0 0 28px 0 rgba(0, 133, 255, 0.4), 0 0 2px rgba(213, 213, 213, 0.3);
  }
  60% {
    box-shadow: 0 0 15px 3px rgba(0, 133, 255, 0.5), 0 0 13px rgba(213, 213, 213, 0.4);
  }
  100% {
    box-shadow: 0 0 28px 0 rgba(0, 133, 255, 0.4), 0 0 2px rgba(213, 213, 213, 0.3);
  }
}

/* Heartbeat glow for first button */
.home-buttons .btn-primary:first-child {
  position: relative;
  border: 2px solid #007bff;
  animation: heartbeat-shadow 2.0s ease-in-out infinite;
  /* Bootstrap's default feel */
  transition: color 0.15s ease-in-out,
              background-color 0.15s ease-in-out,
              border-color 0.15s ease-in-out,
              box-shadow 0.15s ease-in-out;
  z-index: 1;
}

/* Optional: slight default glow */
.home-buttons .btn-primary:first-child:not(:hover) {
  box-shadow: 0 0 8px rgba(0, 133, 255, 0.4);
}

/* Hover: stop heartbeat but keep Bootstrap’s smooth fade */
.home-buttons .btn-primary:first-child:hover {
  animation: none; /* remove animation so hover's box-shadow shows cleanly */
  box-shadow: 0px 0px 1000px #fff, 0px 0px 5px rgb(213, 213, 213);
  transition: box-shadow 0.15s ease-in-out, color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/************************************************* MODAL **************************************************/

.modal,body.modal-open {
	padding-right: 0!important
}

body.modal-open {
	overflow: auto
}

body.scrollable {
	overflow-y: auto
}

.modal-footer {
	display: flex;
	justify-content: flex-start;
	background-color: rgb(34, 34, 34);
	border-top: 1px solid #444;
}
.modal-content{
	z-index: 200;
}
.modal-content {
	border: 0;
	/*background-color: transparent;*/
	background-color: rgb(34, 34, 34);
}
.close{
	color: #d5d5d5;
    font-weight: 300;
}
.close:focus, .close:hover {
    color: #fff;
    text-decoration: none;
    opacity: .75;
}

.red{
	border: 2px solid #dc3545 !important;
}
.red:hover {
	color: #fff;
	background-color: #c82333 !important;
	border-color: #bd2130 !important;
}

/* ============================================================================= 
Animate on Scroll
============================================================================= */

/* Base hidden state and transition */
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
  will-change: opacity, transform;
}

/* Visible state */
.section-animate.visible {
  opacity: 1;
  transform: none;
}

/* Override for small screens (less than 768px) */
@media (max-width: 767.98px) {
  .section-animate {
    opacity: 1; /* Always visible */
    transform: none; /* Always in place */
    transition: none !important; /* Stop the animation! */
  }
  
  /* Ensure visible class doesn't conflict */
  .section-animate.visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================= 
Header
============================================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #1e1e1e !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  padding-top: 10px;
  padding-bottom: 20px;
  height: 70px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, all 0.3s ease;
  will-change: opacity;
}

.header.shrink {
  height: 60px;
  padding-top: 5px;
  padding-bottom: 10px;
}

.header-content {
  /* margin-top: 5px; */
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  justify-content: space-between;  
  align-items: center;  
  width: 100%;  
  padding-left: 5%; 
  padding-right: 5%; 
  /* overflow: hidden; */
}

.header.shrink .header-content {
  margin-top: 0;
}

.logo-img, .logo-text {
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.header.shrink .logo-img {
  transform: scale(0.8);
}

.header.shrink .logo-text {
  font-size: 18px;
}

@media only screen and (max-width: 991px) {
  .header.shrink .logo-text {
    line-height: 45px;
  }
}

.header.shrink .site-main-menu li a {
  font-size: 14px;
  padding: 10px 5px;
}

@media only screen and (min-width: 10px) {
  .header-content {
    background-color: transparent;
  }
}

@media only screen and (max-width: 991px) {
    .header-content {
        padding: 0px 20px;
    }
}

@media only screen and (max-width: 767px) {
  .header {
    /* width: 98% !important; */
    width: 100% !important;
  }
}

/* ============================================================================= 
Home
============================================================================= */

.home-photo {
  -webkit-box-shadow: 0px 0px 1000px #0085ff, 0px 0px 5px rgb(213, 213, 213);
  -moz-box-shadow: 0px 0px 1000px #0085ff, 0px 0px 5px rgb(213, 213, 213);
  box-shadow: 0px 0px 1000px #0085ff, 0px 0px 5px rgb(213, 213, 213);
}

.home-photo:hover{box-shadow : 0px 0px 1000px #fff, 0px 0px 5px rgb(213, 213, 213); z-index: 100;}

.home-social-icons {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.home-social-icons a {
  transition: background-color 0.3s ease;
}

/* This part aligns icons to center on smaller screens */
@media (max-width: 767px) {
  .home-social-icons {
    justify-content: center;
  }
}

.fa-lg {
  font-size: 1.5em;
}

.home-social-icons a:hover {
  color: #d5d5d5;
}

@media (max-width: 767px) {
  .hello-intro{
    text-align: center !important;
  }
}

.home-text h1{
  margin-bottom: 10px;
}

/* .hp-inner { */
  /* Set a viewing area size (adjust as needed) */
  /* width: 100%;  */
  /* height: 100%;  */
  /* This is the key: it clips the moving image */
  /* overflow: hidden;  */
  /* Establish a positioning context for the image */
  /* position: relative;  */
/* } */

/* .hp-inner img { */
  /* Allow the transform to take effect */
  /* will-change: transform;  */
  /* Set the image to fill the container and center it */
  /* position: absolute;  */
  /* top: 0; */
  /* left: 0; */
  /* width: 100%; */
  /* height: 100%; */
  /* object-fit: cover; *//* Ensures the image covers the area */
/* } */

/* Define the transition class used by the JS */
/* .hp-inner img.transition { */
  /* Apply a smooth transition effect only on the transform property */
  /* transition: transform 0.3s ease-out;  */
/* } */

.home-intro{
  hyphens: none;  
  word-break: normal;  
  overflow-wrap: normal; 
}

/* Cloud container: wraps nicely and centers */
.tag-cloud{
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin-inline: auto;
  line-height: 1.2;
}

/* Each tag is a link for SEO/UX, but can be span if you prefer */
.tag{
  --w: 5; /* default weight if not set inline */
  --t: calc((var(--w) - 1) / 9); /* normalize 1..10 -> 0..1 */

  /* font-size scales between min and max using the weight */
  font-size: calc(var(--min-size) + (var(--max-size) - var(--min-size)) * var(--t));
  text-decoration: none;
  /* color: hsl(calc(210 + 80 * var(--t)), 90%, calc(70% - 15% * var(--t)));*/ /*hue/brightness by weight */
  color: hsl(calc(205 + 25 * var(--t)), 90%, calc(68% - 12% * var(--t))); /* new color logic — blue spectrum centered on #007CED */
  padding: 0.15em 0.35em;
  border-radius: 999px;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
  will-change: transform;
  position: relative;
}

/* subtle chip background */
.tag::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in oklab, currentColor 14%, transparent);
  z-index: -1;
  filter: blur(0.5px);
}

/* playful micro-rotation */
.tag:nth-child(4n){ transform: rotate(-1deg) }
.tag:nth-child(4n-1){ transform: rotate(0.6deg) }
.tag:nth-child(4n-2){ transform: rotate(-0.4deg) }
.tag:nth-child(4n-3){ transform: rotate(0.2deg) }

.tag:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.tag:hover{
  transform: scale(1.08);
  background: color-mix(in oklab, #222 20%, transparent);
  color: white;
  box-shadow: 0 6px 18px color-mix(in oklab, black 20%, currentColor 0%);
}

/* Optional: make really tiny tags skip rotation so they stay legible */
.tag[style*="--w: 1"],
.tag[style*="--w: 2"] { transform: none }

/* ============================================================================= 
About
============================================================================= */

.ci-text p{
  hyphens: none;  
  word-break: normal;  
  overflow-wrap: normal; 
}

.readmore {
  color: #007ced;
  cursor: pointer;
}

.readmore:hover {
  color: rgb(213, 213, 213);
}

@media (min-width: 991px) {
  .row-philosophy{
    margin-top: -2%;
  }
}

@media (min-width: 576px) {
  .w-sm-25 { width: 25% !important; }
}
@media (min-width: 768px) {
  .w-md-25 { width: 25% !important; }
}

.testimonial-text p{
  hyphens: none;  
  word-break: normal;  
  overflow-wrap: normal;
}

/* ============================================================================= 
Resume (Experience & Education)
============================================================================= */

.timeline-item li{
  hyphens: none;  
  word-break: normal;  
  overflow-wrap: normal; 
}

@media (min-width: 991px) {
  .page-subtitle{
    text-align: right;
  }
}

.page-with-title .citem a:hover, .timeline-item .item-title a:hover{
  color: #fff;
}

#videocv, #requestcv{
  z-index: 9999;
}

#videocv .modal-body{
  padding-bottom: 0;
}

#videocv button.close{
  box-shadow: none;
}

.modal-header{
  border-bottom: 1px solid #333;
}

.timeline-item h5.item-period{
  float: right;
}

.timeline-item h5.item-period.current{
  background-color : #007ced;
}

.timeline-item .item-company {
    margin-left: 0px;
    font-weight: bold;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  /*top: 10px;*/
  top: 35px;
  width: 10px;
  height: 10px;
  background-color: #007ced;
  /*border: 2px solid #ffffff;*/
  border-radius: 50%;
  box-shadow: 0 0 0 2px #007ced;
  z-index: 2;
}
.timeline-dot.current {
  top: 10px;
  -webkit-box-shadow: 0px 0px 15px rgb(213, 213, 213), 0px 0px 15px #007ced;;
  -moz-box-shadow: 0px 0px 15px rgb(213, 213, 213), 0px 0px 15px #007ced;;
  box-shadow: 0px 0px 15px rgb(213, 213, 213), 0px 0px 15px #007ced;
}

/* ============================================================================= 
Contact
============================================================================= */
.grecaptcha-badge { visibility: hidden; }

#map iframe {
  left: 0;
  top: 0;
  width: 100%;
  position: absolute;
}

.grecaptcha-badge {
  bottom: 5% !important;
}

.ftr_link {
  color: #f5f5f5;
}
.ftr_link:hover {
  color: #007ced;
}

#contact div.ci-text p{
  hyphens: none;  
  word-break: normal;  
  overflow-wrap: normal; 
}

.btn-send.disabled, 
.btn-send[disabled] {
    /* Reduce opacity to make it look faded/disabled */
    opacity: 0.6 !important;
    
    /* Change cursor to indicate the action is forbidden */
    cursor: not-allowed !important;
}

/* ============================================================================= 
Achievements
============================================================================= */
@media (max-width: 767px) {
  article .img-thumbnail {
    width: 50%;
  }
}

@media (max-width: 992px) {
  article .img-thumbnail {
    width: 70%;
  }
}

@media (min-width: 992px) {
  article .post-thumbnail .img-thumbnail {
    width: 50%;
  }
}

.blog-card .category a{
  cursor: default;
}

.blog-card .media-block:hover img{
  filter: grayscale(100%);
}

.blog-card .media-block img {
  filter: grayscale(0%);
}

.blog-item img {
  width: 100%;
  height: 200px;
}

.blog-card .category span {
    position: relative;
    background: #fff;
    border-radius: 3px;
    padding: 3px 7px;
    line-height: 1.2em;
    font-size: 11px;
    background-color: #222;
    color: #f5f5f5;
}

article .post-content blockquote{
  margin-left: 0;
}

@media (max-width: 576px) {
  blockquote{
    /* border-left: 0; */
  }
}

/* The mobile menu button is an <a> without an href, so the browser shows no
   pointer cursor on it. It is only visible on screens up to 991px wide. */
.menu-toggle {
  cursor: pointer;
}
