/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #18d26e;
  --primary-color-hover: #35e888;
  --bg-color: #040404;
  --text-color: #fff;
  --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
              linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
  --card-hover-bg: linear-gradient(135deg, rgba(24, 210, 110, 0.15), rgba(24, 210, 110, 0.08)),
                    linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
  --card-border: 1px solid rgba(255, 255, 255, 0.12);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
  --mobile-menu-bg: rgba(10, 10, 10, 0.95);
}

/* Base Styles */
body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  position: relative;
  background: transparent;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For IE and Edge */
}

body::before {
  content: "";
  position: fixed;
  background: var(--bg-color) url("../img/bg.jpg") top right no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: top right;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: -1;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
}

/* Header subtitle styling with Raleway Light */
.header-subtitle {
  font-family: "Raleway", sans-serif;
  font-weight: 300; /* Changed to Raleway Light for better readability */
  font-size: 28px;
  line-height: 1.2; /* Reduced line height to bring text closer */
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: 25px;
  margin-bottom: 5px; /* Reduced from 0px to create small gap */
  animation: fadeInUp 0.8s ease forwards 0.3s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  z-index: 2;
}

/* Add a subtle glow effect on hover */
.header-subtitle:hover {
  text-shadow: 0 2px 8px rgba(24, 210, 110, 0.2);
  transition: text-shadow 0.3s ease;
}

.header-subtitle span {
  font-weight: 300; /* Slightly bolder for the role text */
  color: #fff;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 6px;
}

/* Responsive adjustments for header subtitle */
/* Tablets and small laptops */
@media (max-width: 992px) {
  .header-subtitle {
    font-size: 24px;
    letter-spacing: 1.2px;
    line-height: 1.3;
  }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
  .header-subtitle {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-top: 20px;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .header-subtitle {
    font-size: 18px;
    letter-spacing: 0.8px;
    margin-top: 15px;
    line-height: 1.2;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .header-subtitle {
    font-size: 16px;
    letter-spacing: 0.6px;
    margin-top: 12px;
  }
}

/* Reduce space for the dynamic role text */
#header .header-subtitle.role-h2 {
  margin-top: -1px !important; /* Normal sentence spacing */
  margin-bottom: 10px !important; /* Added bottom margin to maintain space below */
}

/* Mobile responsive adjustments for role spacing */
@media (max-width: 992px) {
  #header .header-subtitle.role-h2 {
    margin-top: -8px !important;
    margin-bottom: 18px !important;
  }
}

@media (max-width: 768px) {
  #header .header-subtitle.role-h2 {
    margin-top: -6px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 576px) {
  #header .header-subtitle.role-h2 {
    margin-top: -5px !important;
    margin-bottom: 14px !important;
  }
}

/* Specific adjustment for phone 412x915 */
@media (max-width: 412px) and (max-height: 915px) {
  #header .header-subtitle.role-h2 {
    margin-top: -15px !important; /* Normal sentence spacing */
    margin-bottom: 15px !important;
  }
  
  #header .header-subtitle {
    line-height: 1.3 !important; /* Normal line height */
    margin-bottom: 15px !important; /* Small gap for natural flow */
  }
}

@media (max-width: 375px) {
  #header .header-subtitle.role-h2 {
    margin-top: -4px !important;
    margin-bottom: 12px !important;
  }
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color-hover);
}

/* Name styling */
.stylish-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6em;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px #000000;
  white-space: nowrap;
  margin-right: 10px;
  contain: layout style paint;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#role {
  font-family: 'Cascadia Mono', monospace;
  border-right: 2px solid rgba(255, 255, 255, 0);
  display: inline-block;
  margin-left: 5px;
  width: auto;
  position: relative;
  letter-spacing: 0.05em;
  border-bottom: none;
}

/* Code icon styling */
.ri-code-s-slash-fill {
  font-size: 100px;
  color: var(--primary-color);
  margin-right: 10px;
}

/* Responsive adjustments */
body::before {
  background-attachment: fixed;
}

@media (max-width: 1024px) {
  body::before {
    background-attachment: fixed;
  }
}

@media (max-width: 450px) {
  .stylish-name {
    font-size: 1.3em;
    white-space: wrap;
  }

  .ri-code-s-slash-fill {
    font-size: 70px !important;
  }
  
  #header h2 #role {
    border-bottom: none;
    padding-bottom: 0;
  }
/* iPad-specific fixes for background attachment */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {
    body::before {
      background-attachment: fixed !important;
      background-position: top right !important;
      background-size: cover !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      transform: translate3d(0, 0, 0) !important;
      -webkit-transform: translate3d(0, 0, 0) !important;
      backface-visibility: hidden !important;
      -webkit-backface-visibility: hidden !important;
      will-change: transform !important;
    }
    
    /* Force hardware acceleration on iPad */
    body {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
}

/* iPad Pro fixes */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (-webkit-min-device-pixel-ratio: 2) {
    body::before {
      background-attachment: fixed !important;
      background-position: top right !important;
      background-size: cover !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      transform: translate3d(0, 0, 0) !important;
      -webkit-transform: translate3d(0, 0, 0) !important;
      backface-visibility: hidden !important;
      -webkit-backface-visibility: hidden !important;
      will-change: transform !important;
    }
}

/* Alternative iPad fix using viewport units */
@supports (-webkit-touch-callout: none) {
  body::before {
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: top right;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}
}

/* Animations */
@keyframes blink {
  0%, 100% { border-color: rgba(255, 255, 255, 0.8); }
  50% { border-color: transparent; }
}

/* Mobile devices - keep original positioning */
@media only screen
  and (max-device-width: 767px) {
    body::before {
      background-attachment: scroll;
      background-position: top right !important;
      background-size: cover;
    }
}

@keyframes textGlow {
  0% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.2); }
  50% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
  100% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.2); }
}

@keyframes completedGlow {
  0% { text-shadow: 0 0 4px rgba(24, 210, 110, 0.2); }
  50% { text-shadow: 0 0 8px rgba(24, 210, 110, 0.6); }
  100% { text-shadow: 0 0 4px rgba(24, 210, 110, 0.2); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Role typing effect */
#role.cursor {
  animation: blink 0.85s step-end infinite;
  padding-right: 4px;
}

#role.typing {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#role.completed {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(24, 210, 110, 0.4);
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

#header h2 #role.typing {
  animation: textGlow 2s infinite;
}

#header h2 #role.completed {
  animation: completedGlow 3s infinite;
}

/* Particles Container */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Common transitions */
.count-card, .skill-card, 
.portfolio .portfolio-wrap, .testimonials .testimonial-item p,
.contact .info-box {
  transition: var(--transition);
}

/* Section title styling */
.section-title h2 {
  font-size: 16px;
  font-weight: 600;
  padding: 0;
  line-height: 1.2;
  margin: 0 0 25px 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-family: "Poppins", sans-serif;
  animation: fadeInUp 0.6s ease forwards;
  text-shadow: 0 2px 4px rgba(24, 210, 110, 0.3);
}

.section-title h2::after {
  content: "";
  width: 140px;
  height: 2px;
  display: inline-block;
  background: linear-gradient(to right, var(--primary-color), rgba(24, 210, 110, 0.4));
  margin: 4px 15px;
  border-radius: 2px;
}

.section-title p {
  margin: -20px 0 20px 0;
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #fff;
  animation: fadeInUp 0.6s ease forwards;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
}

/* Responsive improvements for About section */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 14px;
    letter-spacing: 2px;
  }
  
  .section-title p {
    font-size: 32px;
    margin: -15px 0 15px 0;
  }
  
  .about-me .content h3 {
    font-size: 26px;
    text-align: center;
  }
  
  .about-me .content p {
    font-size: 15px;
    text-align: left;
  }
  
  .count-card .purecounter {
    font-size: 36px;
  }
  
  .count-card h4 {
    font-size: 16px;
  }
  
  .skill-card h4 {
    font-size: 1.2rem;
  }
  
  .testimonials .testimonial-item h3 {
    font-size: 18px;
    margin-left: 45px;
  }
  
  .testimonials .testimonial-item h4 {
    font-size: 14px;
    margin-left: 45px;
  }
  
  .testimonials .testimonial-item p {
    font-size: 14px;
    padding: 20px;
    margin: 0 15px;
  }
}

/* Fix email overflow in about section for 1000px to 1400px range */
@media (min-width: 1000px) and (max-width: 1400px) {
  .about-me .content ul li {
    font-size: 14px;
    word-break: break-word;
  }
  
  .about-me .content ul strong {
    min-width: 100px;
    font-size: 14px;
  }
  
  .about-me .content ul li span {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .section-title p {
    font-size: 28px;
  }
  
  .about-me .content h3 {
    font-size: 24px;
  }
  
  .about-me .content ul strong {
    min-width: 100px;
    font-size: 14px;
  }
  
  .count-card .purecounter {
    font-size: 32px;
  }
  
  .count-card h4 {
    font-size: 14px;
  }
  
  .skill-card h4 {
    font-size: 1.1rem;
  }
  
  .skill-tags span {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* Fix wrapping for very small screens */
@media (max-width: 430px) {
  .about-me .content ul li {
    font-size: 13px;
    word-break: break-word;
    padding: 12px 15px;
  }
  
  .about-me .content ul strong {
    min-width: 90px;
    font-size: 13px;
  }
  
  .about-me .content ul li span {
    display: inline-block;
    max-width: calc(100% - 100px);
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

/* Common card styling */
.card-base {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  border: var(--card-border);
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-base:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  background: var(--card-hover-bg);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-base:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), #6f42c1);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease-out;
}

.card-base:hover:before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.card-icon {
  margin-bottom: 15px;
  display: inline-block;
}

.card-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.card-base:hover .card-icon i,
.card-base:hover h4,
.card-base:hover p {
  transform: scale(1.2);
  color: #000;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: ease-in-out 0.3s;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
}

#header * {
  transition: ease-in-out 0.3s;
}

#header h1 {
  font-size: 48px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

#header h1 a,
#header h1 a:hover {
  color: #fff;
  line-height: 1;
  display: inline-block;
}

#header h2 {
  font-size: 24px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* Override for header subtitle to ensure it uses the new styling */
#header .header-subtitle {
  font-size: 28px !important;
  margin-top: 25px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Responsive overrides for header subtitle */
@media (max-width: 992px) {
  #header .header-subtitle {
    font-size: 24px !important;
  }
}

@media (max-width: 768px) {
  #header .header-subtitle {
    font-size: 20px !important;
    margin-top: 20px !important;
  }
}

@media (max-width: 576px) {
  #header .header-subtitle {
    font-size: 18px !important;
    margin-top: 15px !important;
  }
}

@media (max-width: 375px) {
  #header .header-subtitle {
    font-size: 16px !important;
    margin-top: 12px !important;
  }
}

#header h2 span {
  color: #fff;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 6px;
}

/* Override for #role to prevent it from inheriting span styling */
#header h2 #role {
  border-bottom: none;
  padding-bottom: 0;
}

#header img {
  padding: 0;
  margin: 0;
}

#header .social-links {
  margin-top: 40px;
  display: flex;
}

#header .social-links a {
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  margin-right: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

#header .social-links a:hover {
  background: var(--primary-color);
}

@media (max-width: 992px) {
  #header h1 {
    font-size: 36px;
  }

  #header h2 {
    font-size: 18px;
    line-height: 30px;
  }

  #header .social-links {
    margin-top: 15px;
  }

  #header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Header Top */
#header.header-top {
  height: 80px;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

#header.header-top .social-links,
#header.header-top h2 {
  display: none;
}

#header.header-top h1 {
  margin-right: auto;
  font-size: 36px;
}

#header.header-top img {
  max-height: 60px;
  margin-right: 20px !important;
}

#header.header-top .container {
  display: flex;
  align-items: center;
}

#header.header-top .navbar {
  margin: 0;
}

/* Position the hire-me-btn in header-top mode */
#header.header-top .hire-me-btn {
  display: none; /* Hide by default */
}

/* Show hire-me-btn in the top nav for laptop screens */
@media (min-width: 992px) {
  #header.header-top .hire-me-btn {
    display: flex !important;
    align-items: center;
    margin-right: 20px; /* Specific right margin */
    position: relative;
  }
  
  #header.header-top .container {
    position: relative;
    justify-content: flex-end;
    gap: 20px; /* Consistent gap between elements */
  }
  
  #header.header-top .navbar {
    margin: 0; /* Reset margins */
  }
  
  #header.header-top .navbar ul {
    gap: 25px; /* Consistent spacing between nav items */
  }
  
  #header.header-top h1 {
    margin-right: auto; /* Push the h1 to the left */
  }
  
  /* Style the button in the header-top mode */
  #header.header-top .btn-hire {
    padding: 5px 10px;
    font-size: 11px;
    background: linear-gradient(45deg, #18d26e, #0f9d53);
    color: #fff;
  }
  
  #header.header-top .btn-hire:hover {
    background: transparent;
    color: #18d26e;
  }
}

/* Ensure hire-me-btn is always visible on mobile */
@media (max-width: 991px) {
  #header .hire-me-btn {
    position: static;
    margin: 15px auto 20px;
    text-align: center;
    width: 100%;
    z-index: 1;
  }
  
  #header .btn-hire {
    padding: 6px 15px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(24, 210, 110, 0.3);
  }
  
  /* Hide the hire-me-btn when header is in top position on mobile */
  #header.header-top .hire-me-btn {
    display: none !important;
  }
  
  /* Adjust spacing for proper positioning */
  #header h2 {
    margin-bottom: 5px;
  }
  
  #header .navbar {
    /* margin-top: 10px; */
  }
}

/* Further adjustments for very small screens */
@media (max-width: 375px) {
  #header .hire-me-btn {
    margin: 10px auto 15px;
  }
  
  #header .btn-hire {
    padding: 5px 12px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  body{
    /* overflow: hidden; */
  }

  #header.header-top {
    height: 60px;
  }

  #header.header-top .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }

  #header.header-top h1 {
    font-size: 26px;
    margin-right: 20px;
  }
  #header.header-top img {
    order: -1;
    margin-right: 10px;
  }
}

@media (max-width: 922px) {
  #header.header-top {
    height: 60px;
  }

    #header.header-top .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    }

  #header.header-top h1 {
    font-size: 26px;
    margin-right: 20px;
  }
  #header.header-top img {
    order: -1;
    margin-right: 10px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
  margin-top: 35px;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar li+li {
  margin-left: 30px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: 0.3s;
}

/* Compress navbar tabs for screens between 1000px and 1400px */
@media (min-width: 1000px) and (max-width: 1400px) {
  /* Reduce spacing between nav items */
  .navbar li+li {
    margin-left: 15px;
  }
  
  /* Reduce font size slightly for nav links */
  .navbar a,
  .navbar a:focus {
    font-size: 14px;
  }
  
  /* Keep the slash icon and name at original size */
  #header.header-top h1 {
    font-size: 36px !important;
  }
  
  #header.header-top .ri-code-s-slash-fill {
    font-size: 100px !important;
  }
  
  /* Adjust container to fit compressed nav */
  #header.header-top .container {
    gap: 0px;
  }
  
  /* Reduce padding in nav items */
  #header.header-top .navbar ul {
    gap: 15px;
  }
}

/* Further compression for tighter screens within range */
@media (min-width: 1000px) and (max-width: 1200px) {
  .navbar li+li {
    margin-left: 12px;
  }
  
  .navbar a,
  .navbar a:focus {
    font-size: 16px;
  }
  
  #header.header-top .navbar ul {
    gap: 12px;
  }
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
  visibility: visible;
  width: 25px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #fff;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9999;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.375);
  transition: 0.3s ease-out;
  z-index: 999;
  margin-top: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--primary-color);
  z-index: 1001;
}

.navbar-mobile ul {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 0;
  transition: 0.3s;
  width: 90%;
  max-width: 300px;
}

.navbar-mobile li {
  margin: 0;
  padding: 12px 20px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.4s forwards;
}

.navbar-mobile li:nth-child(1) { animation-delay: 0.1s; }
.navbar-mobile li:nth-child(2) { animation-delay: 0.2s; }
.navbar-mobile li:nth-child(3) { animation-delay: 0.3s; }
.navbar-mobile li:nth-child(4) { animation-delay: 0.4s; }
.navbar-mobile li:nth-child(5) { animation-delay: 0.5s; }

.navbar-mobile li+li {
  margin: 0;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  font-size: 18px;
  position: relative;
  display: inline-block;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 15px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile .active:focus,
.navbar-mobile li:hover>a {
  color: #fff;
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(24, 210, 110, 0.3);
}

.navbar-mobile a:before {
  display: none;
}

/* Mobile social links in menu */
.navbar-mobile .mobile-social-links {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  opacity: 0;
  animation: fadeIn 0.6s forwards 0.6s;
}

.navbar-mobile .mobile-social-links a {
  margin: 0 8px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  border: none;
  padding: 0;
  /* Enhanced centering for icons */
  text-align: center;
  line-height: 1;
  vertical-align: middle;
}

.navbar-mobile .mobile-social-links a i {
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  left: 0;
  transform: translate(0, 0);
}

.navbar-mobile .mobile-social-links a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Animation for menu opening */
@keyframes menuOverlay {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}

.navbar-mobile {
  animation: menuOverlay 0.3s forwards;
/* Performance-optimized glass highlight */
.navbar-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.6;
  z-index: 1;
  will-change: opacity;
}
}
/* Mobile performance optimization */
@media (max-width: 768px) {
  .navbar-mobile {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: 0.25s ease-out;
  }
  
  .navbar-mobile::before {
    display: none; /* Remove highlight on very small screens for performance */
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  overflow: hidden;
  position: absolute;
  width: 100%;
  top: 140px;
  bottom: 100%;
  opacity: 0;
  transition: ease-in-out 0.4s;
  z-index: 2;
}

section.section-show {
  top: 100px;
  bottom: auto;
  opacity: 1;
  padding-bottom: 45px;
}

section .container {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.188), rgba(0, 0, 0, 0.95)),
              linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(125, 247, 101, 0.085);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  section {
    top: 120px;
  }

  section.section-show {
    top: 80px;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-me .content h3 {
  font-weight: 700;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(24, 210, 110, 0.3);
  letter-spacing: 0.5px;
}

.about-me .content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-align: justify;
}

.about-me .content ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.about-me .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.about-me .content ul strong {
  margin-right: 10px;
  color: #fff;
  font-weight: 600;
  min-width: 120px;
}

.about-me .content ul i {
  font-size: 18px;
  margin-right: 8px;
  color: var(--primary-color);
  line-height: 0;
}

.about-me .content p:last-child {
  margin-bottom: 0;
}

/* Profile Section Enhancements */
.about-me .content {
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease forwards;
}

.about-me img {
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  animation: slideInLeft 0.6s ease forwards;
  border: var(--card-border);
}

.about-me img:hover {
  transform: scale(1.02);
}

.about-me .content ul li {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-me .content ul li:hover {
  background: var(--card-hover-bg);
  transform: translateX(5px) translateY(-2px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(255, 255, 255, 0.3);
}

/*--------------------------------------------------------------
# Counts
--------------------------------------------------------------*/
.counts {
  padding: 70px 0 60px;
}

/* Modern Count Cards */
.counts-modern {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.count-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  border: var(--card-border);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  animation: scaleIn 0.5s ease forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.count-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  background: var(--card-hover-bg);
  border-color: rgba(255, 255, 255, 0.3);
}

.count-card:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), #6f42c1);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease-out;
}

.count-card:hover:before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.count-icon {
  margin-bottom: 15px;
  display: inline-block;
}

.count-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  /* Remove background and padding properties */
}

.count-card:hover .count-icon i {
  transform: scale(1.2);
  color: #000; /* Black icon on hover */
}

.count-card .purecounter {
  font-size: 42px;
  display: block;
  font-weight: 800;
  color: #fff;
  margin: 20px 0 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.count-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.count-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.count-detail p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 12px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.count-card:hover .count-detail {
  max-height: 100px;
  opacity: 1;
  margin-top: 15px;
}

.count-card:hover h4,
.count-card:hover .purecounter,
.count-card:hover .count-detail p {
  color: #000; /* Black text on hover */
}

/* Animation for count cards */
.counts-modern .count-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.counts-modern .col-lg-3:nth-child(1) .count-card { animation-delay: 0.1s; }
.counts-modern .col-lg-3:nth-child(2) .count-card { animation-delay: 0.2s; }
.counts-modern .col-lg-3:nth-child(3) .count-card { animation-delay: 0.3s; }
.counts-modern .col-lg-3:nth-child(4) .count-card { animation-delay: 0.4s; }

/* Enhanced title for counts section */
.counts .section-title p {
  background: linear-gradient(to right, var(--primary-color), #3494E6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
/* Modern Skills Cards */
.skills-modern {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.skill-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  border: var(--card-border);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  animation: scaleIn 0.5s ease forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  background: var(--card-hover-bg);
  border-color: rgba(255, 255, 255, 0.3);
}

.skill-card:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), #6f42c1);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease-out;
}

.skill-card:hover:before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.skill-icon {
  margin-bottom: 15px;
  display: inline-block;
}

.skill-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon i {
  transform: scale(1.2);
  color: #000; /* Change icon to black on hover */
}

.skill-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-card:hover h4 {
  color: #000; /* Change text to black on hover */
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.skill-tags span {
  background: rgba(24, 210, 110, 0.15);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(24, 210, 110, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.skill-tags span:hover {
  background: rgba(24, 210, 110, 0.3);
  transform: scale(1.05);
}

/* New styles for the skill tag text color change on card hover */
.skill-card:hover .skill-tags span {
  background: rgba(24, 210, 110, 0.4);
  color: #000; /* Change tag text to black when card is hovered */
}

#toggle-skills-view {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s;
}

#toggle-skills-view:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Animation for skill cards */
.skills-modern .skill-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.skills-modern .col-lg-3:nth-child(1) .skill-card { animation-delay: 0.1s; }
.skills-modern .col-lg-3:nth-child(2) .skill-card { animation-delay: 0.2s; }
.skills-modern .col-lg-3:nth-child(3) .skill-card { animation-delay: 0.3s; }
.skills-modern .col-lg-3:nth-child(4) .skill-card { animation-delay: 0.4s; }
.skills-modern .col-lg-3:nth-child(5) .skill-card { animation-delay: 0.5s; }
.skills-modern .col-lg-3:nth-child(6) .skill-card { animation-delay: 0.6s; }
.skills-modern .col-lg-3:nth-child(7) .skill-card { animation-delay: 0.7s; }
.skills-modern .col-lg-3:nth-child(8) .skill-card { animation-delay: 0.8s; }

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 420px;
  padding-top: 25px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  border-radius: 50%;
  margin: -45px 0 0 45px;
  position: relative;
  z-index: 2;
  border: 6px solid rgba(24, 210, 110, 0.3);
  transition: all 0.3s ease;
}

.testimonials .testimonial-item:hover .testimonial-img {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.testimonials .testimonial-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 15px 0 8px 50px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.testimonials .testimonial-item h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin: 0 0 0 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 600;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 20px 0 20px;
  padding: 25px 25px 70px 25px;
  background: var(--card-bg);
  position: relative;
  border-radius: 15px;
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  border: var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.testimonials .testimonial-item:hover p {
  background: var(--card-hover-bg);
  color: #000;
  transition: all 0.3s ease;
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.testimonials .testimonial-item:hover .quote-icon-left,
.testimonials .testimonial-item:hover .quote-icon-right {
  color: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.testimonials .testimonial-item:hover h3 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(24, 210, 110, 0.4);
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.3);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #fff;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 20px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/* Resume Download Button Styles */
.download-cv-btn {
  display: flex;
  justify-content: flex-start;  /* Align to the left */
  margin-top: 10px;
  margin-bottom: 30px;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-cv:hover {
}

.btn-cv i {
  margin-right: 6px;  /* Smaller margin */
  font-size: 1em;  /* Smaller icon */
}

/* Hire Me Button Styles */
.hire-me-btn {
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: left; /* Align left by default for larger screens */
}

/* For medium screens and above, add specific positioning */
@media (min-width: 577px) {
  .hire-me-btn {
    margin-left: 0; /* Ensure no left margin */
    padding-left: 0; /* Ensure no left padding */
    margin-top: 15px; /* Increase top margin for better spacing */
    text-align: left;
  }
  
  .btn-hire {
    margin-left: 0; /* Ensure button starts at the left edge */
    padding: 8px 20px; /* Slightly larger button on desktop */
    font-size: 14px;
  }
  
  /* In case h2 has any specific text alignment */
  #header h2 {
    text-align: left;
  }
}

/* Keep the mobile styling (centered) for phone screens */
@media (max-width: 576px) {
  .hire-me-btn {
    text-align: center;
  }
}

.btn-hire {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-hire:hover {
}

.btn-hire i {
  margin-right: 8px;
  font-size: 1.1em;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 15px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-bg);
  margin: 0 3px 10px 3px;
  transition: all 0.3s ease-in-out;
  border-radius: 20px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  background: var(--card-hover-bg);
  color: #000;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  bottom: 30px;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info::before {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  top: 35px;
  left: 35px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info::after {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  bottom: 35px;
  right: 35px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: var(--primary-color);
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  background: var(--card-hover-bg); /* Light green background */
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
  top: 15px;
  left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
  bottom: 15px;
  right: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info h4,
.portfolio .portfolio-wrap:hover .portfolio-info p {
  color: #000; /* Black text on hover */
}

.portfolio .portfolio-wrap:hover .portfolio-links a {
  color: #000; /* Black icon on hover */
}

.portfolio .portfolio-wrap:hover .portfolio-links a:hover {
  color: var(--primary-color); /* Keep the green hover effect for links */
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-column-gap: 20px;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .info-box i.bx {
  grid-row: 1 / span 2;
  font-size: 24px;
  color: var(--primary-color);
  border-radius: 50%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.contact .info-box h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin: 0;
}

.contact .info-box p {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
  color: #fff;
  line-height: 24px;
  font-size: 14px;
  margin: 0;
}

.contact .info-box .social-links {
  grid-column: 2;
  grid-row: 2;
  margin-top: 5px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.contact .info-box .social-links a {
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  /* margin-right: 8px; */ /* Removed to fix alignment */
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contact .info-box .social-links a:hover {
  color: var(--primary-color);
}

/* Fix for social media icons alignment in the contact section */
.contact .info-box .contact-social-links {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-start; /* Align icons to the left */
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  padding: 0; /* Remove any default padding */
}

.contact .info-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  background: var(--card-hover-bg);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact .php-email-form {
  padding: 30px;
  background: var(--card-bg);
}

.contact .php-email-form .error-message {
  display: none;
  background: var(--card-bg);
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  background: var(--card-bg);
  background: var(--primary-color);
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: var(--card-bg);
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--primary-color);
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  background: var(--card-bg);
  border: 0;
  transition: 0.3s;
  color: #fff;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  background-color: rgba(255, 255, 255, 0.11);
}

.contact .php-email-form input::-moz-placeholder,
.contact .php-email-form textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}


@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Credits
--------------------------------------------------------------*/
.credits {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 15px;
  text-align: right;
  font-size: 13px;
  color: #fff;
  z-index: 999999;
}

@media (max-width: 992px) {
  .credits {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
  }
}

.credits a {
  color: var(--primary-color);
  transition: 0.3s;
}

.credits a:hover {
  color: #fff;
}

@media (min-width: 992px) {
  .mobile-social-links {
    display: none !important;
  }
}

/* Enhanced mobile social links responsive styles */
@media (max-width: 768px) {
  .navbar-mobile .mobile-social-links a {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  
  .navbar-mobile .mobile-social-links a i {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .navbar-mobile .mobile-social-links a {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .navbar-mobile .mobile-social-links a i {
    font-size: 13px;
  }
}

/* Smooth transitions for all interactive elements */
.btn-hire,
.btn-cv,
.portfolio #portfolio-flters li,
.social-links a,
.navbar a {
  transition: all 0.3s ease;
}

/* Ensure animations only play when elements come into view */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
