/*

Tooplate 2117 Oleksii Koliohlo

https://www.tooplate.com/view/2117-infinite-loop

*/

@import url("https://fonts.googleapis.com/css?family=Raleway:100,300,400,500,700,900");

body {
	font-family: "Raleway", sans-serif;
	font-size: 1.2em;
  color: #707070;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
a {
  transition: all 0.3s ease;
  color: #38B;
}

a:hover,
a:focus {
  text-decoration: none;
  color: #D40;
}

a:focus {
  outline: none;
}

.btn {
  padding: 8px 32px;
}

.btn:hover {
  background-color: #ced4da;
}

blockquote {
  font-size: 0.86em;
  line-height: 1.8em;
}

.tm-section-pad-top {
  padding-top: 80px;
  padding-bottom: 40px;
}

.tm-content-box {
  padding-top: 20px;
  padding-bottom: 40px;
}

.tm-text-primary {
  color: #37A;
}

.tm-font-big {
  font-size: 1.25rem;
}

.tm-btn-primary {
  color: white;
  background-color: #369;
  padding: 14px 30px;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  color: white;
  background-color: #38B;
}

/* Navbar */

.tm-navbar {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  background-color: transparent;
  transition: all 0.3s ease;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Ensure sections are properly positioned for navigation */
section {
  scroll-margin-top: 70px; /* Account for fixed navbar */
}

.tm-navbar.scroll {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
}

.navbar-brand:hover,
.tm-navbar.scroll .navbar-brand:hover {
  color: #38B;
}

.tm-navbar.scroll .navbar-brand {
  color: #369;
}

.nav-item {
  list-style: none;
}

.tm-nav-link {
  color: white;
  font-size: 0.9rem;
  padding: 8px 15px !important;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.tm-navbar.scroll .tm-nav-link {
  color: #369;
}

.tm-navbar.scroll .tm-nav-link:hover,
.tm-navbar.scroll .tm-nav-link.current,
.tm-nav-link:hover {
  color: #FFF;
  background-color: #369;
}

.navbar-toggler {
  border: 1px solid white;
  padding-left: 10px;
  padding-right: 10px;
}

.navbar-toggler-icon {
  color: white;
  padding-top: 6px;
}

.tm-navbar.scroll .navbar-toggler {
  border: 1px solid #707070;
}

.tm-navbar.scroll .navbar-toggler-icon {
  color: #707070;
}

/* Hero */

#infinite {
	background-color: #222;
  background-image: url(../img/IMG_3167.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  min-height: 100vh;
  height: auto;
  position: relative;
  padding-bottom: 80px;
  color: #FFF;
}

@media (max-width: 991px) {
  #infinite {
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
  }
}

@media (max-width: 767px) {
  #infinite {
    background-image: url(../img/IMG_3167.jpeg) !important;
    background-size: cover !important;
    background-position: 50% 20% !important;
    background-attachment: scroll !important;
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  #infinite {
    background-position: center center !important;
    background-size: cover !important;
    padding-bottom: 60px;
  }
}

.tm-hero-text-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  padding-top: 40vh;
  padding-bottom: 150px;
  position: relative;
  z-index: 10;
}

.tm-hero-text-container-inner {
  margin-top: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.tm-hero-title {
  font-size: 3.3rem;
  text-shadow: 2px 2px 2px #333;
  margin-bottom: 20px;
  color: #FFF;
}

.tm-hero-subtitle {
  text-shadow: 2px 2px 2px #333;
  font-size: 1.72rem;
  margin-bottom: 0;
  color: #FFF;
}

.tm-intro-next {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
}

@media (max-height: 480px) {
  .tm-hero-text-container-inner {
    margin-top: -40px;
  }

  .tm-intro-next {
    bottom: 10px;
  }
}

.tm-down-arrow-link {
  display: block;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1000;
}

.tm-down-arrow {
  	color: #FFF;
    cursor: pointer;
    background: transparent;
    padding: 15px 40px;
    border-radius: 5px;
    display: inline-block !important;
    animation: blinkArrow 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-size: 2rem;
    visibility: visible !important;
}

@keyframes blinkArrow {
  0%, 100% {
    color: #FFF;
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    color: #335577;
    transform: translateY(10px);
    opacity: 0.7;
  }
}

.tm-down-arrow:hover,
.tm-down-arrow:focus {
  animation: none;
  color: #FFF;
  background: transparent;
  transform: scale(1.2);
}

/* Introduction */

#introduction {
  padding-bottom: 100px;
}

.tm-section-title {
  font-size: 2.6rem;
  font-weight: normal;
}

.tm-intro-text {
  font-size: 1.2rem;
}

#infinite .tm-intro-text {
  color: #FFF;
}

#professional-experience {
  background-image: url(../img/office.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Desktop optimization for proper image scaling */
@media (min-width: 992px) {
  #professional-experience {
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
  }
}

/* Large desktop screens */
@media (min-width: 1200px) {
  #professional-experience {
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  #professional-experience {
    background-size: cover !important;
    background-position: center center !important;
  }
}

#professional-experience .tm-content-box {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#professional-experience .col-lg-6 {
  max-width: 70%;
  flex: 0 0 70%;
}

/* Desktop layout optimization */
@media (min-width: 992px) {
  #professional-experience .col-lg-6 {
    max-width: 65% !important;
    flex: 0 0 65% !important;
  }
  
  #professional-experience .tm-content-box {
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
  }
  
  #professional-experience .tm-intro-text-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }
}

#professional-experience .tm-intro-text-container {
  font-size: 1.1495rem;
  font-weight: 700;
  color: #000;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
  padding: 0 3%;
  width: 100%;
  line-height: 0.92;
}

#professional-experience .tm-intro-text-container p {
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 0.92;
}

#professional-experience .tm-intro-text-container ul {
  line-height: 0.736;
  margin-bottom: 1rem;
  font-weight: 700;
}

#professional-experience .tm-intro-text-container li {
  font-weight: 700;
}

#professional-experience .tm-intro-text-container .mb-5 {
  margin-bottom: 2rem !important;
  padding-bottom: 2rem;
  border-bottom: 2px solid #335577;
}

#professional-experience .tm-intro-text-container .mb-5:last-child {
  border-bottom: none;
}

#professional-experience .tm-section-title {
  font-size: 3.146rem;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

#professional-experience strong {
  font-weight: 900;
}

.tm-icon {
  display: block;
  color: #37A;
}

.tm-continue {
	padding: 20px 0 30px 0;
}

/* Technical Skills */
#technical-skills {
  color: white;
  position: relative;
  overflow: hidden;
}

#technical-skills .tm-section-title {
  font-size: 3.12rem;
}

#technical-skills h4 {
  font-size: 1.44rem;
}

#technical-skills .badge {
  font-size: 1.08rem;
  padding: 0.6rem 0.9rem !important;
  min-height: 36px !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

#technical-skills .badge:hover {
  transform: scale(1.15) translateY(-5px);
  background-color: #38B !important;
  color: white !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#technical-skills .badge img {
  width: 21.6px !important;
  height: 21.6px !important;
  margin-right: 7.2px !important;
  transition: transform 0.3s ease;
}

#technical-skills .badge:hover img {
  transform: rotate(360deg);
}

#technical-skills .skill-category {
  padding: 24px !important;
  position: relative;
  overflow: visible;
  z-index: 1;
}

/* Ensure technical-skills section allows tooltips to overflow */
#technical-skills {
  position: relative;
  overflow: visible;
}

#technical-skills .tm-technical-skills-content {
  position: relative;
  overflow: visible;
}

#technical-skills .container {
  position: relative;
  overflow: visible;
}

#technical-skills .row {
  position: relative;
  overflow: visible;
}

#technical-skills .col-md-6 {
  position: relative;
  overflow: visible;
}

/* Skill Description Windows */
.skill-badge-python,
.skill-badge-java,
.skill-badge-javascript {
  overflow: visible !important;
  position: relative !important;
  z-index: 1000 !important; /* Base z-index, will be elevated on interaction */
  cursor: pointer !important;
}

.skill-description {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0) !important;
  margin-top: 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 15px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  width: 450px !important;
  max-width: 90vw !important;
  z-index: 2147483647 !important; /* Maximum z-index value */
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  max-height: 80vh !important;
}

/* Comprehensive Responsive Skill Description Boxes - All Screen Sizes */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .skill-description {
    width: 500px !important;
    max-width: 85vw !important;
    padding: 20px !important;
    font-size: 0.9rem !important;
  }
  
  .skill-description p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
  }
}

/* Standard Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .skill-description {
    width: 450px !important;
    max-width: 88vw !important;
    padding: 18px !important;
  }
  
  .skill-description p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .skill-description {
    width: 90vw !important;
    max-width: 600px !important;
    padding: 20px !important;
    max-height: 70vh !important;
  }
  
  .skill-description p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  .skill-badge-javascript .skill-description {
    width: 85vw !important;
    max-width: 550px !important;
  }
}

/* Large Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .skill-description {
    width: 92vw !important;
    max-width: 500px !important;
    padding: 18px !important;
    max-height: 75vh !important;
  }
  
  .skill-description p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  .skill-badge-javascript .skill-description {
    width: 90vw !important;
    max-width: 450px !important;
    padding: 16px !important;
  }
}

/* Standard Mobile (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
  .skill-description {
    width: 94vw !important;
    max-width: 400px !important;
    padding: 16px !important;
    max-height: 80vh !important;
  }
  
  .skill-description p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  .skill-badge-javascript .skill-description {
    width: 92vw !important;
    max-width: 380px !important;
    padding: 14px !important;
  }
}

/* Small Mobile (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
  .skill-description {
    width: 96vw !important;
    max-width: 350px !important;
    padding: 14px !important;
    max-height: 85vh !important;
  }
  
  .skill-description p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .skill-badge-javascript .skill-description {
    width: 94vw !important;
    max-width: 330px !important;
    padding: 12px !important;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .skill-description {
    width: 98vw !important;
    max-width: 300px !important;
    padding: 12px !important;
    max-height: 90vh !important;
  }
  
  .skill-description p {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }
  
  .skill-badge-javascript .skill-description {
    width: 96vw !important;
    max-width: 280px !important;
    padding: 10px !important;
  }
}

/* Landscape Mobile Optimization */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .skill-description {
    max-height: 95vh !important;
    width: 85vw !important;
    max-width: 600px !important;
    padding: 12px !important;
  }
  
  .skill-description p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
}

/* High DPI/Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .skill-description {
    border-radius: 14px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9) !important;
  }
}

.skill-description::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #667eea;
}

.skill-badge-python:hover .skill-description,
.skill-badge-java:hover .skill-description,
.skill-badge-javascript:hover .skill-description {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
}

/* When a skill badge is hovered, increase its z-index to be above other badges */
.skill-badge-python:hover,
.skill-badge-java:hover,
.skill-badge-javascript:hover {
  z-index: 2147483646 !important;
}

/* Touch device support for mobile */
.skill-badge-python:active .skill-description,
.skill-badge-java:active .skill-description,
.skill-badge-javascript:active .skill-description {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
}

/* When a skill badge is active/touched, increase its z-index */
.skill-badge-python:active,
.skill-badge-java:active,
.skill-badge-javascript:active {
  z-index: 2147483646 !important;
}

/* Mobile Touch Optimization */
@media (max-width: 991px) {
  .skill-badge-python,
  .skill-badge-java,
  .skill-badge-javascript {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    touch-action: manipulation !important;
  }
  
  /* Enhanced touch targets for mobile */
  .skill-badge-python,
  .skill-badge-java,
  .skill-badge-javascript {
    min-height: 44px !important; /* iOS recommended touch target */
    min-width: 44px !important;
    padding: 8px 12px !important;
  }
  
  /* Mobile-specific hover states using :focus for accessibility */
  .skill-badge-python:focus .skill-description,
  .skill-badge-java:focus .skill-description,
  .skill-badge-javascript:focus .skill-description {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483647 !important;
  }
  
  /* When a skill badge is focused, increase its z-index */
  .skill-badge-python:focus,
  .skill-badge-java:focus,
  .skill-badge-javascript:focus {
    z-index: 2147483646 !important;
  }
}

/* Ensure skill descriptions appear above navigation and all other elements */
.skill-description {
  position: fixed !important;
  z-index: 2147483647 !important; /* Maximum possible z-index */
}

/* Override any potential conflicting z-index values (excluding navbar) */
.tm-hero,
.tm-section,
#technical-skills,
.tm-technical-skills-content,
.skill-category {
  z-index: auto !important;
}

.skill-description p {
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  display: block;
}

/* JavaScript specific - smaller text */
.skill-badge-javascript .skill-description p {
  font-size: 0.65rem;
  line-height: 1.3;
}

.tm-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

@media (max-width: 991px) {
  .tm-video-background {
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .tm-video-background {
    display: none !important;
  }
}

.tm-technical-skills-content {
  position: relative;
  z-index: 100;
}

.tm-bg-overlay {
  width: 100%;
  height: 100%;
  background: rgba(20, 70, 80, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.tm-technical-skills-carousel {
  max-width: 1050px;
  margin: 0 auto;
}

.tm-testimonial-item {
  max-width: 290px;
  margin-left: 35px;
  margin-right: 35px;
}

.tm-testimonial-item img {
  border-radius: 50%;
  margin-bottom: 35px;
}

.tm-testimonial-item figcaption {
  text-align: right;
  font-style: italic;
  font-size: 1.1rem;
}

/* Work */

.tm-section-desc {
  max-width: 650px;
  width: 100%;
  font-size: 0.9rem;
}

.tm-education-container {
  padding-top: 70px;
  padding-bottom: 120px;
}

.tm-education-item {
  margin: 0 15px;
}

.slick-dots {
  bottom: -65px;
}

.slick-dots li {
  margin: 0 13px;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #3ba0dd;
}

.tm-technical-skills-carousel .slick-dots li button:before {
  color: white;
  opacity: 0.5;
}

.tm-technical-skills-carousel .slick-dots li button:hover:before,
.tm-technical-skills-carousel .slick-dots li button:focus:before,
.tm-technical-skills-carousel .slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

.slick-dots li button:before {
  font-size: 18px;
}

/* Hover Effect */
/* Common style */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.8;
}

.grid figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
  pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.grid figure h2 {
  word-spacing: -0.15em;
  font-size: 0.9em;
  font-weight: 300;
}

.grid figure h2 span {
  font-weight: 600;
}

.grid figure h2,
.grid figure p {
  margin: 0;
}

.grid figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}

/*---------------*/
/***** Honey *****/
/*---------------*/

figure.effect-honey {
  background: #4a3753;
  max-width: 220px;
}

figure.effect-honey img {
  opacity: 1;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.effect-honey:hover img {
  opacity: 0.4;
}

figure.effect-honey figcaption::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: #38C;
  content: "";
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}

figure.effect-honey h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em 1.5em;
  width: 100%;
  text-align: left;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey h2 i {
  font-style: normal;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 {
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
}

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.tm-container-education {
	padding-top: 30px;
	}

/* Contact */

#contact {
  color: white;
  background-color: #001828;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#contact .tm-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#contact .tm-container-contact {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.contact-item {
  margin-left: 20px;
  margin-bottom: 50px;
}

.item-link {
  display: flex;
  align-items: center;
}

.item-link i,
.item-link span {
  color: white;
  transition: all 0.3s ease;
}

.item-link:hover i,
.item-link:hover span {
  color: #3496d8;
}

.tm-input {
	margin: 0 0 20px 0;
	width: 90%;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid white;
  background: transparent;
  color: white;
}

.tm-btn-submit {
	font-size: 0.9em;
	color: #fff;
	background-color: #369;
	width: 50%;
	margin-bottom: 60px;
}

.tm-btn-submit:hover {
	color: #fff;
	background-color: #38B;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.tm-footer {
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  padding: 0 15px;
}

.tm-footer a {
	color: #fff;
}

.tm-footer a:hover {
	color: #9CF;
}

.tm-footer-link {
  color: white;
}

.tm-footer-link:hover,
.tm-footer-link:focus {
  color: #38B;
  text-decoration: none;
}

p {
  line-height: 1.9;
}

@media (min-width: 768px) {
  .tm-intro-text-container {
    padding-left: 0px;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1275px;
  }

  .tm-container-education {
    max-width: 1290px;
  }

  .tm-container-contact {
    max-width: 1063px;
  }
}

@media (max-width: 991px) {
  .tm-intro-text-container {
    padding-left: 15px;
    padding-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-intro-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-btn-submit {
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (max-width: 767px) {

  .navbar-nav {
    max-width: 200px;
    text-align: right;
  }

  .navbar-collapse {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 3px;
  }

  .navbar-collapse .nav-link {
    color: #707070;
	padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .tm-education-container {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-education-container-2 {
    max-width: 350px;
  }

  .slick-dots li {
    margin: 0 8px;
  }

  .tm-education-item {
    margin: 0;
  }
}

/* ========================================
   MOBILE OPTIMIZATION - Priority 1 Fixes
   ======================================== */

/* Fix 1: Professional Experience section - full width on mobile */
@media (max-width: 991px) {
  #professional-experience .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  #professional-experience .tm-intro-text-container {
    line-height: 1.5 !important;
    padding: 0 5%;
  }
  
  #professional-experience .tm-intro-text-container p {
    line-height: 1.6 !important;
  }
  
  #professional-experience .tm-intro-text-container ul {
    line-height: 1.6 !important;
  }
  
  #professional-experience .tm-intro-text-container li {
    margin-bottom: 0.5rem;
  }
  
  #professional-experience .tm-section-title {
    font-size: 2.2rem !important;
    white-space: normal !important;
  }
  
  /* Better background positioning on tablets */
  #professional-experience {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

@media (max-width: 767px) {
  #professional-experience {
    background-image: url(../img/office.png) !important;
    background-size: cover !important;
    background-position: 50% 30% !important;
    background-attachment: scroll !important;
    min-height: auto !important;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Comprehensive Experience Section Image Optimization - All Screen Sizes */

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  #professional-experience {
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
    min-height: 80vh !important;
    padding: 60px 0 !important;
  }
  
  #professional-experience .tm-intro-text-container {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 30px !important;
    border-radius: 8px !important;
    margin: 20px !important;
  }
}

/* Standard Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  #professional-experience {
    background-image: url(../img/office.png) !important;
    background-size: cover !important;
    background-position: center 40% !important;
    background-attachment: scroll !important;
    min-height: 70vh !important;
    padding: 50px 0 !important;
  }
  
  #professional-experience .tm-intro-text-container {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 25px !important;
    border-radius: 8px !important;
    margin: 15px !important;
  }
}

/* Small Mobile (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
  #professional-experience {
    background-image: url(../img/office.png) !important;
    background-size: cover !important;
    background-position: center 30% !important;
    background-attachment: scroll !important;
    min-height: 60vh !important;
    padding: 40px 0 !important;
  }
  
  #professional-experience .tm-intro-text-container {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 20px !important;
    border-radius: 6px !important;
    margin: 10px !important;
    font-size: 0.9rem !important;
  }
  
  #professional-experience .tm-section-title {
    font-size: 1.8rem !important;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  #professional-experience {
    background-image: url(../img/office.png) !important;
    background-size: cover !important;
    background-position: center 25% !important;
    background-attachment: scroll !important;
    min-height: 50vh !important;
    padding: 30px 0 !important;
  }
  
  #professional-experience .tm-intro-text-container {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 15px !important;
    border-radius: 4px !important;
    margin: 8px !important;
    font-size: 0.8rem !important;
  }
  
  #professional-experience .tm-section-title {
    font-size: 1.5rem !important;
  }
}

/* Landscape Mobile Optimization */
@media screen and (orientation: landscape) and (max-height: 500px) {
  #professional-experience {
    background-size: cover !important;
    background-position: center center !important;
    min-height: 100vh !important;
    padding: 20px 0 !important;
  }
  
  #professional-experience .tm-intro-text-container {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 15px !important;
    border-radius: 6px !important;
    margin: 10px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
}

/* High DPI/Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #professional-experience {
    background-image: url(../img/office.png) !important;
    background-size: cover !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
  }
}

/* Fix 2: Scale hero text for mobile screens */
@media (max-width: 767px) {
  .tm-hero-title {
    font-size: 2.2rem !important;
  }
  
  .tm-hero-subtitle {
    font-size: 1.44rem !important;
  }
  
  #infinite .tm-intro-text {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  .tm-hero-text-container-inner {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .tm-hero-title {
    font-size: 1.8rem !important;
  }
  
  .tm-hero-subtitle {
    font-size: 1.2rem !important;
  }
  
  #infinite .tm-intro-text {
    font-size: 0.9rem !important;
  }
}

/* Fix 3: Disable video backgrounds on mobile (save data/battery) */
@media (max-width: 768px) {
  .tm-video-background {
    display: none !important;
  }
  
  #technical-skills {
    background: linear-gradient(135deg, #1a4d5d 0%, #2d5a6b 100%);
    background-size: cover;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  #technical-skills {
    background: linear-gradient(135deg, #1a4d5d 0%, #2d5a6b 100%);
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Fix 4: Fix skill tooltip overflow on mobile */
@media (max-width: 768px) {
  .skill-description {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    width: 85vw !important;
    max-width: 340px !important;
    max-height: 70vh !important;
    padding: 20px !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
  }
  
  .skill-badge-python:hover .skill-description,
  .skill-badge-java:hover .skill-description,
  .skill-badge-javascript:hover .skill-description {
    transform: translate(-50%, -50%) scale(1) !important;
  }
  
  .skill-description p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  .skill-badge-javascript .skill-description {
    width: 85vw !important;
    max-width: 340px !important;
  }
  
  /* Arrow pointer - hide on mobile since it's centered */
  .skill-description::before {
    display: none !important;
  }
  
  /* Make skill badges more mobile-friendly */
  #technical-skills .badge {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.7rem !important;
    margin: 0.2rem !important;
  }
  
  #technical-skills .skill-category {
    padding: 15px !important;
    overflow: visible !important;
  }
  
  #technical-skills h4 {
    font-size: 1.2rem !important;
  }
  
  /* Ensure all parent containers allow overflow */
  #technical-skills,
  #technical-skills .tm-technical-skills-content,
  #technical-skills .container,
  #technical-skills .row,
  #technical-skills .col-md-6 {
    overflow: visible !important;
  }
}

@media (max-width: 480px) {
  .skill-description {
    width: 90vw !important;
    max-width: 320px !important;
    padding: 18px !important;
  }
  
  .skill-description p {
    font-size: 0.8rem !important;
  }
  
  /* Extra small mobile video optimization */
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    transform: none !important;
    z-index: 1 !important;
  }
  
  #contact {
    min-height: 100vh !important;
    padding: 60px 10px 30px 10px !important;
  }
  
  #contact .tm-container-contact {
    padding: 60px 10px 30px 10px !important;
  }
}

/* Fix 5: Improve contact form on mobile */
@media (max-width: 767px) {
  .tm-input {
    width: 100% !important;
    margin: 0 0 15px 0;
  }
  
  .tm-btn-submit {
    width: 100% !important;
    margin-bottom: 40px;
  }
  
  .contact-item {
    margin-left: 0;
    margin-bottom: 30px;
  }
  
  #contact {
    padding-top: 80px;
    min-height: 100vh;
  }
  
  /* Mobile video background optimization */
  #contact .tm-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    transform: none;
    z-index: 1;
  }
  
  #contact .tm-container-contact {
    position: relative;
    z-index: 2;
    padding: 80px 15px 40px 15px;
  }
}

/* Fix 6: Better touch targets for mobile */
@media (max-width: 767px) {
  .nav-item .tm-nav-link {
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
  
  .tm-down-arrow {
    padding: 20px 50px !important;
    font-size: 2.5rem !important;
  }
  
  /* Larger tap targets for contact links */
  .item-link {
    padding: 10px 0;
  }
  
  .item-link i {
    font-size: 2rem !important;
  }
}

/* Fix 7: Section title scaling for readability */
@media (max-width: 767px) {
  .tm-section-title {
    font-size: 1.9rem !important;
  }
  
  #technical-skills .tm-section-title {
    font-size: 2.1rem !important;
  }
}

@media (max-width: 480px) {
  .tm-section-title {
    font-size: 1.6rem !important;
  }
  
  #technical-skills .tm-section-title {
    font-size: 1.8rem !important;
  }
}

/* Additional mobile improvements */
@media (max-width: 767px) {
  /* Better section spacing on mobile */
  .tm-section-pad-top {
    padding-top: 60px;
    padding-bottom: 30px;
  }
  
  /* Improve education section on mobile */
  #gallery .tm-content-box {
    padding: 25px !important;
  }
  
  /* Better footer positioning */
  .tm-footer {
    position: relative;
    bottom: auto;
    margin-top: 30px;
  }
  
  /* Mobile video background - use viewport units for better scaling */
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    transform: none !important;
    z-index: 1 !important;
  }
  
  #contact {
    min-height: 100vh !important;
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
  }
}

/* Comprehensive Mobile Video Optimization - All Screen Sizes */

/* Large Mobile/Small Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  #contact .tm-video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
  }
  
  #contact {
    min-height: 100vh !important;
    position: relative !important;
  }
}

/* Standard Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
  }
}

/* Large Phones (414px - 480px) - iPhone Pro Max, etc. */
@media (min-width: 414px) and (max-width: 480px) {
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}

/* Standard Phones (375px - 413px) - iPhone 12, 13, 14 */
@media (min-width: 375px) and (max-width: 413px) {
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}

/* Small Phones (320px - 374px) - iPhone SE, older Android */
@media (min-width: 320px) and (max-width: 374px) {
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  
  #contact {
    padding: 40px 8px 25px 8px !important;
  }
  
  #contact .tm-container-contact {
    padding: 40px 8px 25px 8px !important;
  }
}

/* Extra Small Devices (below 320px) */
@media (max-width: 319px) {
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
  }
  
  #contact {
    padding: 35px 5px 20px 5px !important;
    font-size: 0.8rem !important;
  }
}

/* Landscape Orientation Optimization */
@media screen and (orientation: landscape) and (max-height: 500px) {
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
  }
  
  #contact {
    padding: 20px 15px !important;
  }
  
  #contact .tm-container-contact {
    padding: 20px 15px !important;
  }
}

/* iPhone 12 Mini and similar small iOS devices optimization */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3),
@media only screen 
  and (max-width: 375px) 
  and (max-height: 812px) {
  
  #contact {
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important; /* iOS Safari fix */
    padding: 50px 10px 30px 10px !important;
    overflow: hidden !important;
  }
  
  #contact .tm-video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important; /* iOS Safari viewport fix */
    min-width: 100vw !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    z-index: 1 !important;
    /* iOS video optimization */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  
  #contact .tm-container-contact {
    position: relative !important;
    z-index: 2 !important;
    padding: 50px 15px 30px 15px !important;
    max-width: 100% !important;
  }
  
  /* Form optimization for iPhone 12 Mini */
  #contact .tm-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px 15px !important;
    margin-bottom: 15px !important;
    box-sizing: border-box !important;
  }
  
  #contact .tm-btn-submit {
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    margin-top: 10px !important;
  }
  
  /* Contact items spacing for small screens */
  .contact-item {
    margin-left: 0 !important;
    margin-bottom: 20px !important;
    padding: 10px 0 !important;
  }
  
  .item-link {
    padding: 15px 0 !important;
    font-size: 0.9rem !important;
  }
  
  .item-link i {
    margin-right: 15px !important;
  }
  
  /* Section title optimization */
  #contact .tm-section-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
  
  #contact p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 30px !important;
  }
}

/* Additional iOS Safari fixes for safe areas */
@media screen and (max-width: 414px) {
  #contact {
    /* Fix for iOS Safari bottom bar */
    min-height: calc(100vh - env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
  }
  
  #contact .tm-video-background {
    /* Ensure video covers safe areas */
    height: calc(100vh + env(safe-area-inset-top) + env(safe-area-inset-bottom)) !important;
    top: calc(0px - env(safe-area-inset-top)) !important;
  }
}
