body {
  margin: 0;
  padding: 0;
  /* overflow: hidden; */ /* Remove or comment out this line */
  background: url("images/PORFOLIO-V2-BG.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: "Montserrat", Arial, sans-serif;
  color: #111;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 100px; /* adjust to your navbar height */
}

html,
body {
  overflow-x: hidden;
}

.center-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
}

.center-image img {
  display: block;
  max-width: 50%;
  height: auto;
}

.animate-duration-5s {
  --animate-duration: 5s;
}

/* Hero Section */
.hero-section {
  width: 100vw;
  min-height: 100vh; /* Increased min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px; /* Changed margin-top */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 90vw;
  margin: 0 auto;
  gap: 48px;
  padding: 48px 40px;
}

.hero-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-header {
  font-size: 2.6em;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #111;
  letter-spacing: 1px;
  animation: heroHeaderPulse 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-header:hover {
  animation-play-state: paused;
  transform: scale(1.02);
}

/* Keyframes for hero header animation */
@keyframes heroHeaderPulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 transparent;
  }
  25% {
    transform: scale(1.01);
    text-shadow: 0 2px 8px rgba(17, 17, 17, 0.1);
  }
  50% {
    transform: scale(1.015);
    text-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
  }
  75% {
    transform: scale(1.01);
    text-shadow: 0 2px 8px rgba(17, 17, 17, 0.1);
  }
}

.hero-desc {
  font-size: 1em;
  line-height: 1.7;
  color: #333;
  margin: 0;
  font-weight: 400;
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 320px;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: #f5f5f5;
}

/* New Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Responsive Hero Section */
@media (max-width: 1100px) {
  .hero-container {
    gap: 24px;
    padding: 32px 16px;
  }
  .hero-header {
    font-size: 2em;
  }
  .hero-image {
    width: 220px;
    border-radius: 18px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 90vh;
    margin-top: 40px;
  }
  .hero-container {
    flex-direction: column-reverse;
    padding: 24px 6vw;
    gap: 24px;
  }
  .hero-left,
  .hero-right {
    width: 100%;
    flex: unset;
  }
  .hero-header {
    font-size: 1.5em;
    text-align: center;
  }
  .hero-desc {
    font-size: 1em;
    text-align: center;
  }
  .hero-right {
    justify-content: center;
  }
  .hero-image {
    width: 200px; /* Increased from 160px */
    border-radius: 14px;
  }
  .hero-buttons {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 80vh;
    margin-top: 30px;
  }
  .hero-container {
    padding: 12px 2vw;
    gap: 14px;
  }
  .hero-header {
    font-size: 1.1em;
  }
  .hero-image {
    width: 140px; /* Increased from 90px */
    border-radius: 8px;
  }
  .hero-buttons {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.hero-btn {
  padding: 12px 32px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  display: inline-block;
  text-decoration: none; /* Add this line to remove underline */
}

.hero-btn.hire-me {
  background: #111;
  color: #fff;
  border: none;
}

.hero-btn.hire-me:hover {
  background: #333;
}

.hero-btn.download-cv {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}

.hero-btn.download-cv:hover {
  background: #111;
  color: #fff;
}

/* Floating Messenger Icon */
.messenger-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}
.messenger-float:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  background: #f5f5f5;
}
.messenger-icon {
  width: 38px;
  height: 38px;
  display: block;
}

.jayr-text {
  background: #111;
  color: #fff;
  padding: 0 12px;
  border-radius: 3px;
  /* font-style: italic; */
  /* Optional: add some shadow for better visibility */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* New Floating Icon in Hero Section */
.hero-center-float {
  position: absolute;
  left: 50%;
  bottom: 32px;
  top: auto;
  transform: translateX(-50%);
  z-index: 500;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.hero-center-float:hover {
  box-shadow: none;
  background: none;
}
.hero-center-icon {
  width: 120px;
  height: 120px;
  display: block;
}

.scroll-more-text {
  text-align: center;
  margin-top: 18px;
  font-size: 1.1em;
  color: #222;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.7;
}
.scroll-more-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-70%);
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #222;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.7;
  z-index: 501;
  font-style: italic;
}

/* Scroll-to-Top Floating Icon */
.scroll-top-float {
  position: fixed;
  right: 29px;
  bottom: 88px; /* 24px (messenger) + 50px (gap & icon size) */
  z-index: 1000;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}
.scroll-top-float:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  background: #f5f5f5;
}
.scroll-top-icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* Black Quote Section */
.black-quote-section {
  background: #111;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  overflow: hidden;
  /* border-bottom: #f0f0f0 1px solid; */
}

.logos {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  box-sizing: border-box;
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: logos-scroll 30s linear infinite;
  width: max-content;
}

.logo {
  height: 48px;
  width: auto;
  display: inline-block;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: transform 0.2s, opacity 0.2s, filter 0.2s;
}
.logo:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: none;
}

@keyframes logos-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* About Section */
.about-section {
  width: 100vw;
  min-height: 100vh; /* Increased min-height */
  background: url("images/PORFOLIO-V2-BG.jpg") no-repeat center center fixed;
  background-size: cover; /* Ensures the image covers the section */
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  max-width: 1100px;
  width: 98vw;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.about-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
  letter-spacing: 1px;
  padding-bottom: 24px;
}

.about-text {
  background: #111;
  color: #fff;
  padding: 0 12px;
  border-radius: 3px;
  /* font-style: italic; */
  /* Optional: add some shadow for better visibility */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* About Grid Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
  width: 100%;
  align-items: center;
  justify-items: center;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}

.about-column {
  border: 1px solid #a0a0a0;
  border-radius: 8px;
  padding: 12px 16px;
  background: rgba(34, 34, 34, 0.15);
  color: #fff;
  box-sizing: border-box;
}
.about-column h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  text-align: left;
}
.about-column p {
  margin: 0;
  font-size: 0.97em;
  color: #e0e0e0;
}

.about-grid-left {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
  padding: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  min-height: 220px;
  max-height: 100%;
}

.about-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  min-height: 220px;
  max-height: 100%;
}

.about-grid-right-top,
.about-grid-right-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px 20px;
  background: #111;
  border-radius: 12px;
  min-height: 100px;
}

.about-grid-item {
  color: #fff;
  font-size: 1em;
}

.about-grid-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.05em;
  font-weight: 700;
  text-align: left;
}

.about-grid-item p {
  margin: 0;
  font-size: 0.97em;
  font-weight: 400;
  color: #e0e0e0;
  text-align: left;
}

/* Logo slider inside About columns */
.about-grid-item .logos {
  width: 100%;
  padding: 8px 0 0 0;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 10px;
}

.about-grid-item .logos-slide {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: logos-scroll 18s linear infinite;
  width: max-content;
  min-width: 100%;
}

.about-grid-item .logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: transform 0.2s, opacity 0.2s, filter 0.2s;
}
.about-grid-item .logo:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: none;
}

/* Responsive adjustments for logo slider in About columns */
@media (max-width: 900px) {
  .about-grid-item .logos-slide {
    gap: 16px;
    animation-duration: 12s;
  }
  .about-grid-item .logo {
    height: 24px;
  }
}

@media (max-width: 600px) {
  .about-grid-item .logos {
    padding: 4px 0 0 0;
    margin-top: 6px;
  }
  .about-grid-item .logos-slide {
    gap: 10px;
    animation-duration: 8s;
  }
  .about-grid-item .logo {
    height: 18px;
  }
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    width: 94vw; /* Reduce width for mobile */
    margin-left: auto;
    margin-right: auto;
  }
  .about-grid-left,
  .about-grid-right-top,
  .about-grid-right-bottom {
    grid-row: unset;
    grid-column: unset;
    min-height: 100px;
  }
  .about-grid-right-top,
  .about-grid-right-bottom {
    padding: 14px 10px;
    font-size: 0.98em;
  }
  .about-grid-img {
    min-height: 0;
    max-height: 320px; /* Increased for better mobile view */
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 10%;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-column {
    padding: 10px 8px;
    font-size: 0.97em;
  }
}

@media (max-width: 900px) {
  .about-section {
    /* Remove vertical centering for mobile */
    align-items: unset;
    justify-content: unset;
    padding-top: 32px;
    padding-bottom: 32px;
    min-height: unset;
    display: block;
  }
  .about-container {
    height: auto;
    padding-bottom: 0;
    padding-top: 0;
  }
}

/* Skills section */

.skills-section {
  padding: 60px 0;
  /* Background image only */
  background: url("images/PORFOLIO-V3-BG.jpg") center center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.my-bg {
  background: #fff;
  color: #111;
  padding: 0 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}
.expertise-text {
  color: #111;
  font-weight: 700;
  padding: 0 16px;
  letter-spacing: 2px;
}
.expertises-text {
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
  letter-spacing: 2px;
}
.skills-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px; /* reduced gap */
  justify-content: center;
}
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  padding: 20px;
  background: #181818; /* dark background */
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, background 0.2s, border 0.2s;
  animation: fadeIn 0.8s;
  /* No border by default */
  border: none;
}
.skill-item:hover {
  transform: translateY(-8px) scale(1.05);
  /* background: #222;  Remove background change */
  border: 2px solid #fff; /* Add solid white border on hover */
}
.skill-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  /* Remove grayscale and opacity so icons show original color */
  /* filter: grayscale(100%); */
  /* opacity: 0.7; */
  transition: filter 0.3s, opacity 0.3s;
}
.skill-item:hover .skill-icon {
  /* Remove hover effect that restores color */
  /* filter: none; */
  /* opacity: 1; */
}
.skill-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Project Section */

.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  border-radius: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333333;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #333, #333);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 20px auto 0;
}

.filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  margin: 5px 10px;
  background: #f1f2f6;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #333;
  color: white;
}

.filter-btn.active {
  background: #333;
  color: white;
}

/* Make project-card <a> tag look like a card and remove underline */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease forwards;
   max-width: 420px;
  width: 100%;
  cursor: pointer;
  outline: none;
}

.project-card:focus {
  box-shadow: 0 0 0 3px #333, 0 10px 25px rgba(0,0,0,0.12);
  border-color: #333;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease forwards;
   max-width: 420px;
  width: 100%;
  
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.project-image {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-category {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333333;
}

.project-description {
  color: #7f8c8d;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  padding: 5px 12px;
  background: #ecf0f1;
  color: #34495e;
  border-radius: 20px;
  font-size: 0.8rem;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.pagination {
  display: flex;
  list-style: none;
  gap: 8px;
}

.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.page-item:hover {
  background: #333;
  color: white;
}

.page-item.active {
  background: #333;
  color: white;
}

.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-item.disabled:hover {
  background: transparent;
  color: inherit;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .pagination-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* end project section */

/* Mobile adjustments for skills section */
@media (max-width: 768px) {
  .skills-section {
    padding: 20px 0;
    min-height: auto;
  }

  .skills-container {
    margin: 10px auto;
  }

  .skills-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    gap: 8px;
  }

  .skills-grid {
    gap: 8px;
    padding: 0 10px;
  }

  .skill-item {
    width: calc(33.33% - 8px);
    min-width: 85px;
    padding: 12px 8px;
  }

  .skill-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }

  .skill-item span {
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .skills-section {
    padding: 15px 0;
  }

  .skill-item {
    width: calc(33.33% - 6px);
    min-width: 75px;
    padding: 10px 6px;
  }

  .skill-icon {
    width: 28px;
    height: 28px;
  }

  .skill-item span {
    font-size: 0.75em;
  }
}

.dark-image-footer {
  background-color: #0a0a0a;
  color: #fff;
  margin-top: 0;
}

/* Centered Image Section */
.footer-image-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 0;
  text-align: center;
}

.footer-centered-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  animation: floatAnimation 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.footer-centered-image:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

/* Keyframes for floating animation */
@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Centered Footer Bottom */
.centered-footer-bottom {
  background-color: #0a0a0a;
  padding: 30px 20px;
  margin-top: 40px;
  border-top: 1px solid #949494;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: #aaa;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-centered-image {
    max-height: 250px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: url("images/PORFOLIO-V3-BG.jpg") center center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.get-text {
  background: #fff;
  color: #111;
  padding: 0 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 700;
}

.in-touch-text {
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
  letter-spacing: 2px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  width: 100%;
  align-items: flex-start;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-info-card {
  background: #111;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.contact-info-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.contact-info-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.1rem;
  color: #111;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.contact-right {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 10px;
}

.contact-submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover i {
  transform: translateX(4px);
}

/* Contact Section Responsive */
@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .contact-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-right {
    padding: 30px 25px;
    margin: 0 auto;
    max-width: 600px;
  }

  .contact-info-card {
    padding: 30px 25px;
    margin: 0 auto;
    max-width: 600px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 60px 10px;
  }

  .contact-container {
    padding: 0 10px;
  }

  .contact-content {
    padding: 0 10px;
  }

  .contact-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 8px;
  }

  .contact-right {
    padding: 25px 20px;
    margin: 0 auto;
    max-width: 100%;
    width: calc(100% - 20px);
  }

  .contact-info-card {
    padding: 25px 20px;
    margin: 0 auto;
    max-width: 100%;
    width: calc(100% - 20px);
  }

  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 40px 5px;
  }

  .contact-container {
    padding: 0 5px;
  }

  .contact-content {
    padding: 0 5px;
  }

  .contact-right {
    padding: 20px 15px;
    margin: 0 auto;
    width: calc(100% - 10px);
  }

  .contact-info-card {
    padding: 20px 15px;
    margin: 0 auto;
    width: calc(100% - 10px);
  }
}

/* Floating Animation Background */
.floating-animation-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.1;
  filter: blur(2px);
  animation: float var(--duration, 20s) ease-in-out infinite var(--delay, 0s);
  left: var(--x, 50%);
  top: var(--y, 50%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateY(-60px) translateX(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) translateX(-25px) rotate(270deg);
  }
}

/* Ensure sections have relative positioning for absolute positioned backgrounds */
.skills-section {
  position: relative;
  /* ...existing code... */
}

.contact-section {
  position: relative;
  /* ...existing code... */
}

/* Ensure content is above floating background */
.skills-container,
.contact-container {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-icon {
    width: 40px;
    height: 40px;
    opacity: 0.08;
  }
}

@media (max-width: 480px) {
  .floating-icon {
    width: 30px;
    height: 30px;
    opacity: 0.06;
  }
}

/* Math Captcha Styling */
.math-captcha-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.math-captcha-container:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.math-captcha-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #495057;
  font-weight: 600;
}

.math-captcha-icon {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
  flex-shrink: 0;
}

.math-question-display {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.math-question-display:hover {
  border-color: #007bff;
  transform: translateY(-1px);
}

.math-input-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.math-input-container input[type="number"] {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.math-input-container input[type="number"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
  outline: none;
}

.math-input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 16px;
  pointer-events: none;
}

.refresh-question {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.refresh-question:hover {
  background: #495057;
  transform: rotate(180deg);
}

.security-note {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: #6c757d;
  justify-content: center;
}

.security-note i {
  margin-right: 6px;
  color: #28a745;
  flex-shrink: 0;
}

/* Honeypot field - completely hidden */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  z-index: -9999 !important;
}
/* Download CV Modal Styles */
.cv-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.45);
  /* Remove display: flex, justify-content, align-items here */
}

/* Only center when modal is visible */
.cv-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv-modal-content {
  background: #fff;
  /* Remove margin: 10% auto; */
  padding: 32px 28px 24px 28px;
  border-radius: 16px;
  max-width: 350px;
  width: 90vw;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: fadeInModal 0.3s;
  /* Center in flex parent */
  margin: 0;
}

@keyframes fadeInModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cv-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.7em;
  color: #888;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}

.cv-modal-close:hover {
  color: #111;
}

.cv-modal-content p {
  font-size: 1.1em;
  color: #222;
  margin-bottom: 22px;
  margin-top: 10px;
}

.cv-modal-email-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.cv-modal-email-btn:hover {
  background: #333;
}

/* Responsive for modal */
@media (max-width: 480px) {
  .cv-modal-content {
    max-width: 90vw;
    padding: 18px 8vw 18px 8vw;
  }
}
/* Form validation states */
.math-captcha-container.error {
  border-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.math-captcha-container.success {
  border-color: #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.math-captcha-container.error .math-question-display {
  border-color: #dc3545;
  color: #721c24;
}

.math-captcha-container.success .math-question-display {
  border-color: #28a745;
  color: #155724;
}

.math-captcha-container.error .math-input-container input[type="number"] {
  border-color: #dc3545;
}

.math-captcha-container.success .math-input-container input[type="number"] {
  border-color: #28a745;
}

/* Responsive design for math captcha */
@media (max-width: 768px) {
  .math-captcha-container {
    padding: 15px;
  }

  .math-captcha-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .math-captcha-header span {
    margin-top: 5px;
    font-size: 14px;
  }

  .math-captcha-icon {
    margin-bottom: 8px;
    margin-right: 0;
  }

  .math-question-display {
    font-size: 16px;
    padding: 12px 15px;
  }

  .math-input-container {
    max-width: 100%;
  }

  .math-input-container input[type="number"] {
    padding: 10px 40px 10px 12px;
    font-size: 14px;
  }

  .math-input-icon {
    right: 12px;
    font-size: 14px;
  }

  .refresh-question {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
    font-size: 11px;
  }

  .security-note {
    font-size: 11px;
    text-align: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .math-captcha-container {
    padding: 12px;
  }

  .math-question-display {
    font-size: 14px;
    padding: 10px 12px;
  }

  .math-input-container input[type="number"] {
    padding: 8px 35px 8px 10px;
    font-size: 13px;
  }

  .security-note {
    font-size: 10px;
  }
}

/* Contact form responsive improvements */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    padding: 0 15px;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .contact-content {
    padding: 0 10px;
  }

  .contact-left,
  .contact-right {
    max-width: 100%;
    width: calc(100% - 20px);
    margin: 0 auto;
  }
}

/* --- Add this block for 300px-599px screens --- */
@media (max-width: 599px) and (min-width: 300px) {
  .projects-section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .projects-grid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .project-img {
    height: 150px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    display: block !important;
    background: #222 !important;
  }
  .project-item {
    min-height: 170px !important;
    padding: 10px 4px 8px 4px !important;
  }
}

.project-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #fff;
  margin: 12px 0 8px 0;
  opacity: 0.18;
}

.project-actions .see-more-btn {
  margin: 0;
}

.project-actions .project-live-btn {
  margin: 0;
}

.project-tech-icons {
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.math-captcha-icon {
  margin-bottom: 8px;
  margin-right: 0;
}

.math-question-display {
  font-size: 16px;
  padding: 12px 15px;
}

.math-input-container {
  max-width: 100%;
}

.math-input-container input[type="number"] {
  padding: 10px 40px 10px 12px;
  font-size: 14px;
}

.math-input-icon {
  right: 12px;
  font-size: 14px;
}

.refresh-question {
  width: 28px;
  height: 28px;
  top: 12px;
  right: 12px;
  font-size: 11px;
}

.security-note {
  font-size: 11px;
  text-align: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .math-captcha-container {
    padding: 12px;
  }

  .math-question-display {
    font-size: 14px;
    padding: 10px 12px;
  }

  .math-input-container input[type="number"] {
    padding: 8px 35px 8px 10px;
    font-size: 13px;
  }

  .security-note {
    font-size: 10px;
  }
}

/* Contact form responsive improvements */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    padding: 0 15px;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .contact-content {
    padding: 0 10px;
  }

  .contact-left,
  .contact-right {
    max-width: 100%;
    width: calc(100% - 20px);
    margin: 0 auto;
  }
}

/* --- Add this block for 300px-599px screens --- */
@media (max-width: 599px) and (min-width: 300px) {
  .projects-section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .projects-grid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .project-img {
    height: 150px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    display: block !important;
    background: #222 !important;
  }
  .project-item {
    min-height: 170px !important;
    padding: 10px 4px 8px 4px !important;
  }
}

/* Minimal modal styling — black & white theme */
.consent-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5); /* black overlay */
  z-index: 9999;
}
.consent-modal-content {
  background: #fff; /* white modal */
  color: #000; /* black text */
  padding: 20px;
  max-width: 420px;
  width: 90%;
  border-radius: 8px;
  text-align: center;
}
.consent-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.consent-btn {
  padding: 8px 14px;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  color: #000;
}
.consent-btn:first-child {
  /* OK: black background, white text */
  background: #000;
  color: #fff;
  border-color: #000;
}
.consent-btn:last-child {
  /* No: white background, black text */
  background: #fff;
  color: #000;
  border-color: #000;
}

/* Prevent page scroll while consent modal is open */
.consent-open {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
}

/* Floating total visits (bottom-left) */
#visitCounterFloat {
  position: fixed;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#visitCounterLabel {
  opacity: 0.9;
}

#visitCounterValue {
  display: inline-block;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* Eye icon */
.visit-eye {
  font-size: 16px;
  color: #fff;
  opacity: 0.95;
  margin-right: 4px;
}

/* Small responsive tweak */
@media (max-width: 480px) {
  #visitCounterFloat {
    left: 8px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .visit-eye {
    font-size: 14px;
  }
}
