@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  /* Colors */
  --primary-bg-color: #1a1a1a;
  --primary-accent: #ffffff;
  --secondary-accent: #ff6b6b;
  --main-text-color: #ffffff;
  --supportive-text-color: #e0e0e0;
  --gray-text-color: #b0b0b0;
  --white-color: #fff;
  --black-color: #1a1a1a;
  --gray-color: #333333;
  --gray-color-2: #4a4a4a;
  --gray-color-3: #2a2a2a;
  
  /* Font & Typography */
  --ff-body: "Space Grotesk", sans-serif;
  --fs-sm: 1.4rem;
  --fs-md: 1.6rem;
  --fs-lg: 2rem;
  --fs-xl: 2.4rem;
  --fs-xxl: 3.2rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Other */
  --color-preloader-bg: var(--primary-bg-color);
  --color-dots: var(--white-color);
}

/* Common styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--primary-bg-color);
  color: var(--main-text-color);
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.15px;
}

.container {
  padding: 0 32px;
  max-width: 1200px;
  /* max-width: clamp(54.5rem, 38.125rem + 81.88vw, 120rem); */
  margin: 0 auto;
}

.container-lg {
  max-width: 1600px;
}

.title {
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 54px;
}
.blog_title{
  font-size: 44px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 54px;
}
.btn {
  display: inline-block;
  height: 52px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 52px;
  padding: 0 36px;
  margin: 0 12px 16px 0;
  color: var(--black-color);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  background-color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  transition: all 0.3s ease-in;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--black-color);
  outline: 0;
}

.btn:active {
  background-color: #8b4a48;
}

.btn-white {
  background: transparent;
  font-weight: 700;
  border: 2px solid var(--white-color);
  color: var(--white-color);
  transition: all 0.3s ease-in;
}

.btn-white:hover,
.btn-white:focus {
  background-color: var(--white-color);
  color: var(--primary-bg-color);
}

.btn-white:active {
  background-color: #3c4446;
}

.btn-red {
  background: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
  color: var(--white-color);
  transition: all 0.3s ease-in;
}

.btn-red:hover,
.btn-red:focus {
  background: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.btn-red:active {
  background-color: #3c4446;
}

h5 {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 23px;
  font-weight: 600;
  text-transform: uppercase;
}

.white {
  color: var(--white-color);
}

/* Header */
.header {
  z-index: 100;
  background-color: rgba(26, 26, 26, 0.95);
  height: 90px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 90px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  background-color: rgba(0, 0, 0, 0.95);
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.3s ease-in-out;
}

.logo {
  position: relative;
  line-height: 1;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.011rem + 0.57vw, 1.375rem);
  color: var(--main-text-color);
}

.nav-list {
  display: flex;
  column-gap: 46px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.15px;
}

.nav-btn {
  display: none;
}

.nav-link {
  color: var(--main-text-color);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--secondary-accent);
  text-decoration-thickness: 1.2px;
  text-underline-offset: 7px;
}

/* Hero section */
.hero {
  position: relative;
  padding-top: 180px;
  background-color: var(--primary-bg-color);
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-content {
  text-align: center;
  padding: 0;
}

.hero-greeting {
  font-size: clamp(1rem, 0.929rem + 0.36vw, 1.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-accent);
}

.hero-heading {
  margin: 5px 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  line-height: 1.2;
}

.hero-heading-subtitle {
  font-size: clamp(1.125rem, 1.054rem + 0.36vw, 1.375rem);
  font-weight: 400;
}

.hero-img {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-img img {
  display: block;
  position: relative;
}

.hero-img video {
  max-height: 100px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px; /* Optional: if you want rounded corners */
}

.about-social-list {
  display: flex;
}

.social-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  margin: 40px 0 40px;
  height: 24px;

  img {
    height: 24px;
    width: 24px;
  }
}

.social-links-row a {
  filter: invert(35%) sepia(11%) saturate(160%) hue-rotate(145deg)
    brightness(88%) contrast(80%);
  transition: all 0.3s ease-in-out;
}

.social-links-row a:hover {
  filter: invert(0%) sepia(0%) saturate(7500%) hue-rotate(305deg)
    brightness(97%) contrast(103%);
}

/* About section */
.about {
  padding: 7rem 0;
}

.about-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  justify-content: center;
  gap: 90px;
  margin-bottom: 80px;
  color: var(--supportive-text-color);
}

.about-descr {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 10px;
}

.skill {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

/* Create a container for title and percent */
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill-title {
  color: var(--main-text-color);
  font-size: var(--fs-md);
}

.skill-percent {
  color: var(--secondary-accent);
  font-size: var(--fs-sm);
}

.skill-bar__progress {
  background-color: var(--gray-color);
  border-radius: 5px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  background-color: var(--secondary-accent);
  height: 4px;
  width: 0; /* Initial width is 0 */
  transition: width 1.5s ease-in-out; /* Smooth transition for the fill */
}

.about-download-btn {
  margin-top: 40px;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.service-card {
  max-width: 300px;
}

.service-card-img {
  display: block;
  height: 50px;
  margin: 0 auto 20px;
  filter: invert(33%) sepia(7%) saturate(243%) hue-rotate(145deg)
    brightness(94%) contrast(81%);
}

.service-card-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.089rem + 0.18vw, 1.25rem);
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* Works */
.projects {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
}

.project__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project__content {
  width: 100%;
  max-width: 30rem;
  justify-self: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--gray-color-3);
  transition: transform 0.3s ease;
}

.project__content:hover {
  transform: translateY(-5px);
}

.project__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 2rem;
}

.project__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project__description {
  color: var(--supportive-text-color);
  margin-bottom: 2rem;
  padding: 0 1.5rem;
  line-height: 1.6;
}

.project__link {
  font-size: var(--fs-sm);
  color: var(--main-text-color);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: var(--transition);
  padding: 0 1.5rem 1.5rem;
}

.project__link:hover {
  color: var(--secondary-accent);
  column-gap: 1rem;
}

/* Contact */
.contact {
  padding: 7rem 0;
  text-align: center;
}

.contact-content {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  color: var(--supportive-text-color);
  margin: 0 auto 20px;
}

.contact form {
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  color: var(--white-color);
  border: 1px solid var(--gray-color-2);
  margin: 7px 0;
}

.contact form .input-box input {
  width: 100%;
}

.contact form textarea {
  resize: none;
}

.contact-button {
  margin-top: 20px;
}

/* Response message styles */
.response {
  display: none;
  max-width: 500px;
  margin: 20px auto 0;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.response.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  background-color: #4CAF50;
  color: white;
  border: 1px solid #45a049;
}

.response.error {
  background-color: #f44336;
  color: white;
  border: 1px solid #da190b;
}

/* Optional: Add a subtle animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.response.open {
  animation: slideIn 0.3s ease-out;
}
/* Footer */
.footer {
  background-color: var(--primary-accent);
  color: var(--gray-color-3);
}

.footer-row {
  display: flex;
  flex-direction: column;
  column-gap: 20px;
  align-items: center;
  padding: 40px 0;
}

.footer-social {
  margin-top: 0;
}

.footer-social a:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.footer-copyright {
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
}

.response {
  position: fixed;
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--white-color);
  border: 1px solid var(--black-color);
  min-width: 280px;
  padding: 20px 40px;
  bottom: -100px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.response.open {
  bottom: 20px;
  opacity: 1;
  visibility: visible;
}

/* "go to top" button */
.goToTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: var(--white-color);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border-radius: 2px;
  transition: opacity 350ms, visibility 350ms;
}

.goToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: invert(4%) sepia(23%) saturate(2306%) hue-rotate(148deg)
    brightness(91%) contrast(90%);
}

.goToTop img {
  height: 16px;
  width: 16px;
}

.goToTop:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.goToTop.reveal {
  display: block;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
}

/* Preloader with jumping dots */
#preloader {
  position: fixed;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: var(--color-preloader-bg);
  z-index: 3000;
  height: 100vh;
  width: 100vw;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.jumping-dots {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  display: inline-block;
}

.jumping-dots > div {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-dots);
  border-radius: 50%;
}

.jumping-dots > div:nth-of-type(1) {
  left: 20px;
}

.jumping-dots > div:nth-of-type(3) {
  left: -20px;
}

.jumping-dots > div {
  animation: jumping-dots 1.2s infinite ease;
  animation-delay: 0.2s;
}

.jumping-dots > div:nth-of-type(1) {
  animation-delay: 0.4s;
}

.jumping-dots > div:nth-of-type(3) {
  animation-delay: 0s;
}

@keyframes jumping-dots {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}

/* Qualification Section */
.qualification {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
}

.qualification__name {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-lg);
  color: var(--main-text-color);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-color);
}

.qualification__content {
  display: grid;
  gap: 3rem;
}

.qualification__item {
  padding: 2rem;
  background-color: var(--gray-color-3);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.qualification__item:hover {
  transform: translateY(-5px);
}

.qualification__company {
  font-size: 1.6rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}

.qualification__title {
  font-size: 1.8rem;
  color: var(--main-text-color);
  margin-bottom: 1rem;
}
.qualification__company-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qualification__company-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.qualification__company {
  font-size: 1.6rem;
  color: var(--secondary-accent);
}


.qualification__subtitle {
  font-size: 1.6rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}

.qualification__description {
  color: var(--supportive-text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.qualification__date {
  font-size: 1.4rem;
  color: var(--secondary-accent);
}

.qualification__footer {
  text-align: center;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-color);
}

.qualification__footer-text {
  font-size: 2rem;
  color: var(--main-text-color);
  margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
  .qualification__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* View More Container */
.view-more-container {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-top: 3rem;
}

.view-more-container .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.view-more-container i {
  font-size: 1.2rem;
}

/* Hide honeypot field */
.hidden {
  display: none !important;
}

/* Style reCAPTCHA container */
[data-netlify-recaptcha="true"] {
  margin: 20px 0;
}

/* Copy button styling */
.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Language label styling */
.language-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive code blocks */
@media (max-width: 768px) {
    .post-content pre {
        margin: 15px -20px;
        border-radius: 0;
        padding: 15px 20px;
    }
    
    .copy-code-btn {
        top: 8px;
        right: 8px;
        padding: 4px 6px;
    }
    
    .language-label {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Blog Card */
.blog-card {
    background-color: var(--gray-color-3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--gray-color-2);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.blog-card-category {
    background-color: var(--secondary-accent);
    color: var(--black-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-date {
    color: var(--gray-text-color);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--main-text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--supportive-text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-read-time {
    color: var(--gray-text-color);
    font-size: 0.85rem;
}

.blog-card-link {
    color: var(--secondary-accent);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 0.75rem;
}
