@font-face {
    font-family: "TheFont";
    src: url("https://garet.typeforward.com/assets/fonts/shared/TFMixVF.woff2")
        format("woff2");
}

:root {
    --primaryFont: "Manrope", sans-serif;
    --headingFont: "TheFont", sans-serif;
    --subheadingFont: "Arial", sans-serif;
    --primaryColor: #01463c;
    --secondaryColor: #cee8d0;
    --bgColor: #fff5ee;
    --text-color-light: #fffefe;
    --text-color-dark: #141414;
}

body {
    font-family: var(--primaryFont);    
}

html {
  scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px; 
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primaryColor);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color-dark);
}

.heading {
    font-family: var(--primaryFont);
    font-size: clamp(1rem, 2.6rem, 3.2rem);
    font-size: 2.6rem;
    font-weight: bolder;
    color: var(--primaryColor);
}

.subheading {
    font-family: var(--primaryFont);
    font-size: clamp(1rem, 1.4rem, 1.8rem);
    font-size: 1.4rem;
    font-weight: bolder;
}

.body-text {
    font-family: var(--primaryFont);
    font-size: clamp(1.25rem, 1.5vw, 1.5rem); 
    line-height: 1.6; 
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}

.btn-primary {
    font-family: var(--subheadingFont);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primaryColor);
    border-radius: 5px;
    background-color: transparent;
    color: var(--primaryColor);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primaryColor);
    color: var(--bgColor);
}

.btn-secondary {
    font-family: var(--subheadingFont);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    background-color: var(--primaryColor);
    border-radius: 5px;
    color: var(--text-color-light);
    text-decoration: none;
    transition: all 0.1s ease;
}

.btn-secondary:hover {
    border: 1px solid var(--primaryColor);
    color: var(--primaryColor);
    background-color: var(--bgColor);

}

.navbar .nav-link.active {
  font-weight: 700;
  color: var(--primaryColor) !important;
}

.profile-card {
    background: linear-gradient(135deg, #f8f9fa, #e9f0ff);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-img {
    width: 300px;
    max-width: 300px;
    height: auto;
    border-radius: 40px;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight {
    color: var(--primaryColor, #007bff);
}

.social-icons {
    display: flex;
    gap: 18px;
    justify-content: start;
    margin-top: 1rem;
}

.icon {
    display: inline-block;
    font-size: 3.0rem;
    color: #4a4a4a;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: translateY(-5px) scale(1.15);
    color: var(--primaryColor, #007bff);
}

@media (max-width: 991px) {
    .profile-img {
        margin-bottom: 1.5rem;
    }
}

.card {
  border-radius: 12px;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.4);
}

.skills-card {
  background: linear-gradient(135deg, #f3fff3, #f0eaff); 
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(12, 17, 19, 0.06);
  overflow: hidden;
}

.skills-heading {
  background-color: var(--primaryColor);
  color: #ffffff;
  padding: .8rem 1rem;
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 1rem;
  justify-items: center;
}

@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-tile {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  min-height: 180px;
  border-radius: 40px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.skill-logo {
  max-width: 70%;
  max-height: 60px;
  object-fit: contain;
  z-index: 2;
  transition: opacity .3s ease, transform .3s ease;
}

.skill-tile:hover .skill-logo {
  opacity: 0;
  transform: scale(0.95);
}

.skill-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(18,24,33,0.12);
}

.skill-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,17,19,0.94), rgba(12,17,19,0.95));
  color: #fff;
  padding: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
}

.skill-tile:hover .skill-overlay {
  opacity: 1;
  transform: translateY(0);
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.skill-desc {
  font-size: .95rem;
  color: #c7cbd0;
  line-height: 1.3;
  margin-bottom: .6rem;
}

.skill-badges {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.badge-skill {
  background: rgba(255,255,255,0.06);
  color: #f4f6f8;
  padding: .32rem .6rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.04);
}

.heading-center {
  font-size: 2.4rem;
  font-weight: 800;
  padding: 1.2rem 0;
  text-align: center;
  color: #0b1220;
}

@media (max-width: 991px) {
  .heading-center { font-size: 2rem; }
  .skill-tile { min-height: 160px; padding: .9rem; }
  .skill-logo { max-height: 48px; }
}

@media (max-width: 768px) {
  .skill-tile {
    min-height: 180px; 
  }
}
@media (max-width: 480px) {
  .skill-tile {
    min-height: 180px;
  }
}

/* Feature Projects styling */
.feature-project {
  position: relative;
  cursor: pointer;
}

.video-hover-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 40px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-project:hover .video-hover-indicator {
  opacity: 1;
}

.feature-preview-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.40); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-preview-video:hover {
  opacity: 0.95;
  transform: scale(1.02);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(1.02); 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
  border-radius: 40px;
}

.modal-content {
    border-radius: 40px !important;
    overflow: hidden;
}

.modal-content .ratio {
    border-radius: 40px;
    overflow: hidden;
}

.modal-content video {
    border-radius: 40px;
}

/* Scroll to Top Button styling */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: var(--primaryColor);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

#scrollToTopBtn img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 575px) {
  #scrollToTopBtn {
    bottom: 20px;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  #scrollToTopBtn img {
    width: 20px;
    height: 20px;
  }
}


@media (max-width: 575.98px) {
body {
    font-size: 0.9rem;
}
.heading {
    font-size: 1.7rem;
}
.subheading {
    font-size: 1.2rem;
}
.btn-primary,
.btn-secondary {
    font-size: 0.8rem;
}
}

/* CSS For about.html */
.equal-column {
    display: flex;
}

.card-consistent {
    border-radius: 40px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;  
    flex: 1;      
}

.card-consistent img,
.card-consistent video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 40px !important;
}

.row-h-small .card-consistent { height: 400px; }
.row-h-medium .card-consistent { height: 515px; }