:root {
  --color-primary: 99, 102, 241;
  --color-secondary: 139, 92, 246;
  --color-dark: 10, 10, 10;
  --color-dark-800: 26, 26, 26;
  --color-dark-700: 40, 40, 40;

}


body {
  font-family: 'Inter', sans-serif;
  background-color: rgb(var(--color-dark));
  color: #e0e0e0;
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;

}

/* Cursor styles */
#typing-text {
  position: relative;
}

#typing-text::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: blink 0.7s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Improved scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--color-dark-800));
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism effect with better performance */
.glass-effect {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Improved buttons with better contrast */
.btn-primary {
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-secondary)));
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(var(--color-primary), 0.3);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--color-primary), 0.4);
}

.btn-secondary {
  background: transparent;
  color: rgb(var(--color-primary));
  border: 2px solid rgb(var(--color-primary));
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(var(--color-primary), 0.1);
  transform: translateY(-2px);
}

/* Video background with better performance */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.08;
  filter: brightness(0.4);
}

/* Improved animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
  }

  to {
    transform: translateY(0);
  }
}

/* Responsive typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}

p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

/* Testimonial Carousel */
.testimonial-carousel {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  /* Changed from overflow-x-auto to hidden */
  width: 100%;
  position: relative;
}

.testimonial-card {
  flex: 0 0 100%;
  /* Full width on mobile */
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
    /* 2 cards on tablet */
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
    /* 3 cards on desktop */
  }
}

/* Hide scrollbar */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Carousel navigation buttons */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-nav button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-nav button svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tech logo animations */
.tech-logo {
  transition: all 0.3s ease;
}

.tech-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Resource card hover effect */
.resource-card {
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Bottom Navbar for Mobile */
.bottom-navbar {
  background: rgba(35, 35, 35, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  border-radius: 14px;
}

.time-offer {
  font-weight: 600;
  white-space: nowrap;
}

.get-bundle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: breathe 3s infinite ease-in-out,
    pulse-glow 2s infinite alternate,
    pop-attention 3s infinite ease-in-out 1s,
    wobble-attention 0.8s infinite ease-in-out 3s;
}

.get-bundle::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: all 0.5s;
}

.get-bundle:hover::after {
  left: 100%;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(159, 112, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(159, 112, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(159, 112, 255, 0);
  }
}

@keyframes pop-attention {

  0%,
  20%,
  100% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.04);
  }
}

@keyframes wobble-attention {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-1px) rotate(-0.5deg);
  }

  50% {
    transform: translateX(1px) rotate(0.5deg);
  }

  75% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
}

@media (max-width: 320px) {
  .bottom-navbar {
    padding: 12px 14px;
    gap: 6px;
  }

  .time-offer {
    font-size: 15px;
  }

  .get-bundle {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Add these styles to your existing CSS */
  .bottom-navbar {
    background: rgba(35, 35, 35, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
  }

  .get-bundle {
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
      box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
  }

  /* For smaller screens */
  @media (max-width: 320px) {
    .bottom-navbar {
      padding: 10px 12px;
    }

    .get-bundle {
      padding: 8px 12px;
      font-size: 14px;
    }
  }
}

/* Special adjustments for 768px-815px range */
@media (min-width: 768px) and (max-width: 815px) {
  nav.glass-effect {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  nav .max-w-7xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  nav a.text-2xl {
    font-size: 1.25rem !important;
    /* 20px */
  }

  nav .space-x-8 {
    gap: 0.25rem !important;
    /* 20px */
  }

  nav a.text-gray-300 {
    font-size: 0.875rem !important;
    /* 14px */
    padding: 0.15rem 0.5rem !important;
  }

  nav .btn-primary {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    /* 14px */
  }
}

/* Add top margin only for screens wider than 768px */
@media (min-width: 769px) {
  section.relative {
    margin-top: 4rem;
    /* Adjust this value as needed */
  }
}


/* Browse by Tags Section Styles */
.container {
  width: 100%;
  max-width: 1000px;
  background: var(--container-bg);
  border: 1px solid var(--container-border);
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(138, 99, 248, 0.1), transparent 70%);
  filter: blur(100px);
  opacity: 0.2;
  z-index: 0;
}

.marquee-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.75rem;
  height: 60px;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-content {
  display: flex;
  gap: 0.75rem;
  height: 100%;
  align-items: center;
  will-change: transform;
  animation: var(--animation-name) var(--duration) linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.tag.highlight {
  background: linear-gradient(135deg, #3a2b75, #5a45a5);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(138, 99, 248, 0.2);
  font-weight: 500;
}

.tag:hover {
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 0.95);
}

.tag.highlight:hover {
  transform: translateY(-2px) scale(1.05);
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .tag {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .marquee-container {
    height: 50px;
  }
}

/* Ensure smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Adjust scroll padding to account for fixed header */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 80px;
    /* Match your navbar height */
  }
}


/* About ME */

/* ===== Optimized About Me Section ===== */
.about-me {
  --color-primary: 99, 102, 241;
  --color-secondary: 139, 92, 246;
  --color-dark: 15, 15, 15;
  --color-dark-800: 26, 26, 26;
  --base-spacing: 1rem;

  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--base-spacing) * 2) var(--base-spacing);
  line-height: 1.5;
  transform: translateZ(0);
  /* GPU acceleration */
}

.container-about {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--base-spacing);
}

.section-title-about {
  text-align: center;
  margin-bottom: calc(var(--base-spacing) * 2);
}

.section-title-about h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: calc(var(--base-spacing) * 0.5);
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title-about p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(0.85rem, 1.25vw, 0.95rem);
}

.about-grid-about {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--base-spacing);
  grid-template-areas:
    "photo skills connect"
    "photo location company";
}

/* Simplified glass card with better performance */
.glass-card-about {
  background: linear-gradient(135deg,
      rgba(var(--color-secondary), 0.05) 0%,
      rgba(var(--color-dark-800), 0.15) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  padding: calc(var(--base-spacing) * 1.5);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  will-change: transform, backdrop-filter;
  opacity: 0;
  transform: translateY(20px);
}

.glass-card-about.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card-about:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* Photo Card */
.photo-card-about {
  grid-area: photo;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.profile-photo-about {
  flex: 1;
  padding: var(--base-spacing);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  max-height: 500px;
}

.profile-photo-about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  will-change: transform;
}

.photo-card-about:hover .profile-photo-about img {
  transform: scale(1.02);
}

/* Rest of your existing CSS for the about section... */
/* [Keep all other existing styles but remove the complex animations] */

.profile-info-about {
  padding: var(--base-spacing);
  background: rgba(var(--color-dark-800), 0.9);
  text-align: center;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

.profile-info-about h2 {
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  margin-bottom: calc(var(--base-spacing) * 0.5);
  color: white;
  line-height: 1.3;
}

.profile-info-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  margin-bottom: var(--base-spacing);
}

.tags-about {
  display: flex;
  justify-content: center;
  gap: calc(var(--base-spacing) * 0.5);
  flex-wrap: wrap;
}

.tag-about {
  background: rgba(var(--color-primary), 0.15);
  color: rgb(var(--color-primary));
  padding: calc(var(--base-spacing) * 0.3) calc(var(--base-spacing) * 0.7);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.skills-card-about {
  grid-area: skills;
}

.connect-card-about {
  grid-area: connect;
}

.location-card-about {
  grid-area: location;
}

.company-card-about {
  grid-area: company;
}

.card-title-about {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  margin-bottom: var(--base-spacing);
  color: rgb(var(--color-primary));
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: calc(var(--base-spacing) * 0.5);
}

.card-title-about i {
  font-size: 1.1rem;
}

.skills-list-about {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--base-spacing) * 0.5);
}

.skills-list-about li {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-left: calc(var(--base-spacing) * 1.25);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.5;
}

.skills-list-about li:before {
  content: "•";
  color: rgb(var(--color-secondary));
  position: absolute;
  left: 0;
  font-size: 1.25rem;
  line-height: 0.8;
}


.info-content-about {
  gap: 0.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-content-about p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--base-spacing);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.5;
}

.social-link-about {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  background: rgba(var(--color-primary), 0.15);
  padding: 0.5rem 2rem;
  border-radius: 50px;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  margin-top: auto;
  width: fit-content;
  transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.social-link-about:hover {
  transform: translateY(-4px);
  background: rgba(var(--color-primary), 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: white;
}

.social-link-about i {
  transition: transform 0.35s ease;
}

.social-link-about:hover i {
  transform: scale(1.1);
}

.company-highlight-about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--base-spacing);
  background: rgba(var(--color-primary), 0.15);
  color: rgb(var(--color-primary));
  padding: calc(var(--base-spacing) * 0.6) var(--base-spacing);
  border-radius: 0.5rem;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 500;
  margin-top: auto;
}

.company-highlight-about span {
  display: flex;
  align-items: center;
  gap: calc(var(--base-spacing) * 0.3);
  white-space: nowrap;
}


/* Small Tablet Layout (750px to 900px) */
@media (max-width: 900px) and (min-width: 750px) {
  .about-grid-about {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo skills"
      "photo connect"
      "location company";
    gap: calc(var(--base-spacing) * 0.75);
  }

  .profile-photo-about {
    max-height: 350px;
    aspect-ratio: 3/4;
  }

  .profile-info-about h2 {
    font-size: 1.2rem;
  }
}

/* Large Mobile Layout (650px to 750px) */
@media (max-width: 768px) {
  .about-me {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(var(--base-spacing) * 2) var(--base-spacing);
    line-height: 1.5;
    transform: translateZ(0);
    /* GPU acceleration */
  }
}


@media (max-width: 750px) and (min-width: 650px) {
  .about-grid-about {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo photo"
      "skills connect"
      "location company";
  }

  .profile-photo-about {
    max-height: 300px;
    aspect-ratio: 1/1;
  }

  .glass-card-about {
    padding: calc(var(--base-spacing) * 0.75);
  }
}

/* Medium Mobile Layout (550px to 650px) */
@media (max-width: 650px) and (min-width: 550px) {
  .about-grid-about {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "skills"
      "connect"
      "location"
      "company";
  }

  .profile-photo-about {
    max-height: 250px;
    aspect-ratio: 1/1;
  }

  .profile-info-about {
    padding: calc(var(--base-spacing) * 0.75);
  }

  .company-highlight-about {
    flex-direction: column;
    gap: calc(var(--base-spacing) * 0.5);
  }
}

/* Small Mobile Layout (under 550px) */
@media (max-width: 550px) {
  .about-grid-about {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "skills"
      "connect"
      "location"
      "company";
    gap: calc(var(--base-spacing) * 0.75);
  }

  .profile-photo-about {
    max-height: 220px;
    aspect-ratio: 1/1;
    padding: calc(var(--base-spacing) * 0.75);
  }

  .glass-card-about {
    border-radius: 1rem;
  }

  .profile-info-about {
    padding: calc(var(--base-spacing) * 0.75);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }

  .tags-about {
    align-items: center;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-grid-about>* {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.photo-card-about {
  animation-delay: 0.1s;
}

.skills-card-about {
  animation-delay: 0.2s;
}

.connect-card-about {
  animation-delay: 0.3s;
}

.location-card-about {
  animation-delay: 0.4s;
}

.company-card-about {
  animation-delay: 0.5s;
}



.blog-slider-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.blog-slider-container {
  overflow: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 10px; /* Add this line */

}

.blog-slider-container::-webkit-scrollbar {
  display: none;
}

.blog-slider-track {
  display: flex;
  gap: 1.5rem;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.blog-card {
  flex: 0 0 calc(25% - (3 * 1.5rem / 4));
  min-width: calc(25% - (3 * 1.5rem / 4));
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform;
  position: relative;
  backdrop-filter: blur(8px);
  scroll-snap-align: start;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(25, 25, 40, 0.8);
}

.blog-card-image {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.7s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(170, 170, 170);
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.blog-card-tag {
  background: rgba(99, 102, 241, 0.15);
  color: rgba(99, 102, 241, 0.95);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-tag {
  background: rgba(99, 102, 241, 0.25);
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
  transition: color 0.3s ease;
  line-height: 1.4;
  font-weight: 600;
}

.blog-card:hover .blog-card-title {
  color: rgb(99, 102, 241);
}

.blog-card-excerpt {
  color: rgba(170, 170, 170, 0.9);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  /*-webkit-line-clamp: 4;*/
  -webkit-box-orient: vertical;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  color: rgb(99, 102, 241);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: fit-content;
  background: rgba(99, 102, 241, 0.12);
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  margin-top: auto;
}

.blog-card-link:hover {
  background: rgba(99, 102, 241, 0.2);
  color: rgb(139, 92, 246);
}

.blog-card-link svg {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.6rem;
  transition: transform 0.3s ease;
}

.blog-card-link:hover svg {
  transform: translateX(4px);
}

.blog-slider-nav {
  position: absolute;
  top: 50%;
  width: calc(100% - 0px);
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  left: 0px;
  right: 0px;
}

.blog-slider-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgb(224, 224, 224);
  font-size: 1.2rem;
  z-index: 10;
  pointer-events: auto;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.blog-slider-button:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgb(99, 102, 241);
  color: white;
  transform: scale(1.1);
}

.scroll-hint {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(170, 170, 170, 0.7);
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .blog-card {
    flex: 0 0 calc(33.3333% - (2 * 1.5rem / 3));
    min-width: calc(33.3333% - (2 * 1.5rem / 3));
  }
}

@media (max-width: 1024px) {
  .blog-card {
    flex: 0 0 calc(50% - (1.5rem / 2));
    min-width: calc(50% - (1.5rem / 2));
  }
}

@media (max-width: 768px) {
  .blog-slider-wrapper {
    padding: 0 15px;
  }

  .blog-slider-nav {
    width: calc(100% - 0px);
    left: 0px;
    right: 0px;
  }

  .blog-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .blog-slider-button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .scroll-hint {
    display: block;
  }
}

#mobile-menu {
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  max-height: 0;
}

#hamburger-icon,
#close-icon {
  transition: transform 0.2s ease-out;
}

#hamburger-icon.hidden,
#close-icon.hidden {
  display: none;
}


/* Ensures the parent is a proper flex container */
.button-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
  opacity: 0;
  /* Start invisible */
}

/* Your existing button styles */
.about-blog-card-link {
  display: inline-flex;
  align-items: center;
  color: rgb(99, 102, 241);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: fit-content;
  background: rgba(99, 102, 241, 0.12);
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.about-blog-card-link:hover {
  background: rgba(99, 102, 241, 0.2);
  color: rgb(139, 92, 246);
}

.about-blog-card-link svg {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.6rem;
  transition: transform 0.3s ease;
}

.about-blog-card-link:hover svg {
  transform: translateX(4px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  border-radius: 2px;
}



#browse {
background: #000000;
--gap: 3em;
--line: 1px;
--color: rgba(255, 255, 255, 0.15);

background-image: 
linear-gradient(
-90deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
),
linear-gradient(
0deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
);
background-size: var(--gap) var(--gap);
position: relative;
}

/* Optional overlay to enhance text readability */
#browse::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
z-index: 0;
}

/* Make sure content stays above the background */
#browse > div {
position: relative;
z-index: 10;
}

#resources {
background: #000000;
--gap: 3em;
--line: 1px;
--color: rgba(255, 255, 255, 0.15);

background-image: 
linear-gradient(
-90deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
),
linear-gradient(
0deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
);
background-size: var(--gap) var(--gap);
position: relative;
}

/* Optional overlay to enhance text readability */
#resources::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
z-index: 0;
}

/* Make sure content stays above the background */
#resources > div {
position: relative;
z-index: 10;
}

#blog {
background: #000000;
--gap: 3em;
--line: 1px;
--color: rgba(255, 255, 255, 0.15);

background-image: 
linear-gradient(
-90deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
),
linear-gradient(
0deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
);
background-size: var(--gap) var(--gap);
position: relative;
}

/* Optional overlay to enhance text readability */
#blog::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
z-index: 0;
}

/* Make sure content stays above the background */
#blog > div {
position: relative;
z-index: 10;
}



#about-me {
background: #000000;
--gap: 3em;
--line: 1px;
--color: rgba(255, 255, 255, 0.15);

background-image: 
linear-gradient(
-90deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
),
linear-gradient(
0deg,
transparent calc(var(--gap) - var(--line)),
var(--color) calc(var(--gap) - var(--line) + 1px),
var(--color) var(--gap)
);
background-size: var(--gap) var(--gap);
position: relative;
}

/* Optional overlay to enhance text readability */
#about-me::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
z-index: 0;
}

/* Make sure content stays above the background */
#about-me > div {
position: relative;
z-index: 10;
}



/* Define CSS variables for colors (ensure these are present, if not, copy from previous responses) */
:root {
--color-primary: 99, 102, 241;
--color-secondary: 139, 92, 246;
--color-dark: 10, 10, 10;
--color-dark-800: 26, 26, 26;
--color-dark-700: 40, 40, 40;
--color-success: 16, 185, 129;
--color-error: 239, 68, 68;
--color-text-light: #e0e0e0;
--color-text-medium: rgba(255, 255, 255, 0.85);
--color-text-faded: rgba(255, 255, 255, 0.6);
--color-bg-glass: rgba(255, 255, 255, 0.03);
--color-border-glass: rgba(255, 255, 255, 0.08);
--color-input-bg: rgba(var(--color-dark-800), 0.7);
--color-popup-bg: #232531; /* Define for popup background */
}

/* --- Popup Message Styling --- */
.popup-message-container {
position: fixed;
bottom: 20px;
right: 20px;
width: fit-content;
max-width: 380px; /* Base max-width for desktop */
z-index: 1001;
opacity: 0; /* Hidden by default */
transform: translateY(20px); /* Start slightly below */
transition: all 0.3s ease; /* Smooth animation */
pointer-events: none; /* Allow clicks through when hidden */
}

.popup-message-container.show {
opacity: 1; /* Show popup */
transform: translateY(0); /* Slide into view */
pointer-events: auto; /* Enable clicks when visible */
}

.popup-message {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 12px 16px; /* Slightly increased padding */
height: auto; 
border-radius: 8px; 
background-color: var(--color-popup-bg); 
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); 
box-sizing: border-box;
}

.popup-message-content-wrapper {
display: flex;
gap: 10px; /* Adjusted gap between icon and text */
align-items: center; 
}

.popup-icon-wrapper {
padding: 6px; /* Adjusted padding */
border-radius: 6px; 
background-color: rgba(255, 255, 255, 0.05); 
backdrop-filter: blur(8px); 
-webkit-backdrop-filter: blur(8px);
display: flex; 
align-items: center;
justify-content: center;
flex-shrink: 0; 
}

.popup-icon-wrapper svg {
width: 20px; /* Slightly increased icon size */
height: 20px; 
stroke-width: 2; 
}

.popup-message.error .popup-icon-wrapper {
color: #d65563; /* Error icon color */
}

.popup-message.success .popup-icon-wrapper {
color: rgb(var(--color-success)); /* Success icon color */
}

.popup-text-content {
display: flex;
flex-direction: column;
line-height: 1.2; 
}

.popup-title {
color: white; 
font-size: 0.9rem; /* Slightly increased font size */
font-weight: 600;
margin: 0; 
padding: 0; 
}

.popup-description {
color: #9ca3af; 
font-size: 0.75rem; /* Slightly increased font size */
margin: 0; 
padding: 0; 
}

.popup-close-btn {
background: none;
border: none;
color: #6b7280; 
cursor: pointer;
padding: 4px; 
border-radius: 6px; 
transition: background-color 0.15s ease-linear; 
display: flex; 
align-items: center;
justify-content: center;
flex-shrink: 0; 
margin-left: 8px; /* Adjusted space between text and close button */
}

.popup-close-btn:hover {
background-color: rgba(255, 255, 255, 0.1); 
}

.popup-close-btn svg {
width: 20px; /* Slightly increased close icon size */
height: 20px; 
stroke-width: 2; 
}

/* Responsive adjustments for screens larger than 768px (tablets/laptops) */
@media (min-width: 769px) {
/* Popup size for tablets/laptops */
.popup-message-container {
max-width: 420px; /* Increased max-width for larger screens */
}
.popup-message {
padding: 15px 20px; /* Larger padding for popup */
}
.popup-icon-wrapper svg {
width: 24px; /* Larger icon size */
height: 24px;
}
.popup-title {
font-size: 1rem; /* Larger title font size */
}
.popup-description {
font-size: 0.8rem; /* Larger description font size */
}
.popup-close-btn svg {
width: 24px; /* Larger close icon size */
height: 24px;
}
}

/* Responsive adjustments for mobile screens (up to 768px) */
@media (max-width: 768px) {
/* Popup size for mobile */
.popup-message-container {
width: calc(100% - 40px); /* Full width minus padding on mobile */
left: 20px; 
right: 20px;
max-width: none; /* Remove max-width constraint for mobile */
}
.popup-message {
padding: 10px 14px; /* Maintain mobile padding */
}
.popup-title {
font-size: 0.85rem; /* Keep mobile title font size */
}
.popup-description {
font-size: 0.7rem; /* Keep mobile description font size */
}
.popup-icon-wrapper svg,
.popup-close-btn svg {
width: 18px; /* Keep mobile icon size */
height: 18px;
}
}





/* Light Mode Styles */
body.light-mode { background-color: var(--bg-color-light); color: var(--text-color-light); }
body.light-mode .policy-card { background-color: var(--card-bg-light); border-color: var(--card-border-light); }
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 { color: var(--heading-color-light); }
body.light-mode .policy-content p, body.light-mode .policy-content li, body.light-mode .text-md, body.light-mode .text-lg { color: var(--text-color-light); }
body.light-mode .gradient-text { background: linear-gradient(to right, var(--gradient-text-light-start), var(--gradient-text-light-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode nav.glass-effect { background: var(--nav-bg-light) !important; border-color: var(--nav-border-light) !important; }
body.light-mode nav a, body.light-mode #mobile-menu-button { color: #333 !important; }
body.light-mode footer { background-color: var(--footer-bg-light); border-top-color: var(--footer-border-light); color: #4b5563; }
body.light-mode footer a { color: #4b5563; }
body.light-mode #Newsletter { background-color: var(--newsletter-bg-light); }
body.light-mode #theme-toggle { background-color: var(--toggle-bg-light); color: var(--toggle-icon-light); border-color: var(--toggle-border-light); }
body.light-mode #mobile-menu { background: rgba(255, 255, 255, 0.95); }
body.light-mode #Newsletter input { background-color: #fff; border-color: #d1d5db; color: #111827; }
body.light-mode footer .border-t { border-color: var(--footer-border-light); }
body.light-mode #Newsletter p { color: #6b7280; }
body.light-mode .sidebar-project-item h4 { color: var(--heading-color-light); }
body.light-mode .sidebar-project-item span { color: var(--text-color-light); }


/* Dark Mode Styles */
body.dark-mode { background-color: var(--bg-color-dark); color: var(--text-color-dark); }
body.dark-mode .policy-card { background-color: var(--card-bg-dark); border-color: var(--card-border-dark); }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 { color: var(--heading-color-dark); }
body.dark-mode .policy-content p, body.dark-mode .policy-content li, body.dark-mode .text-md, body.dark-mode .text-lg { color: var(--text-color-dark); }
body.dark-mode .gradient-text { background: linear-gradient(135deg, #818cf8, #c084fc); -webkit-background-clip: text; color: transparent; }
body.dark-mode nav.glass-effect { background: var(--nav-bg-dark) !important; border-color: var(--nav-border-dark) !important; }
body.dark-mode nav a, body.dark-mode #mobile-menu-button { color: #e0e0e0 !important; }
body.dark-mode footer { background-color: var(--footer-bg-dark); border-top-color: var(--footer-border-dark); color: #9ca3af; }
body.dark-mode footer a { color: #9ca3af; }
body.dark-mode footer a:hover { color: white; }
body.dark-mode #Newsletter { background-color: var(--newsletter-bg-dark); }
body.dark-mode #theme-toggle { background-color: var(--toggle-bg-dark); color: var(--toggle-icon-dark); border-color: var(--toggle-border-dark); }
body.dark-mode #mobile-menu { background: rgba(26, 26, 26, 0.95); }
body.dark-mode #Newsletter input { background-color: #374151; border-color: #4b5563; color: #e5e7eb; }
body.dark-mode footer .border-t { border-color: var(--footer-border-dark); }
body.dark-mode #Newsletter p { color: #9ca3af; }
body.dark-mode .sidebar-project-item h4 { color: var(--heading-color-dark); }
body.dark-mode .sidebar-project-item span { color: var(--text-color-dark); }

/* Theme Toggle Button */
#theme-toggle {
position: fixed;
top: 120px; /* Increased space from top */
right: 2rem;
z-index: 100;
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1.25rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
#theme-toggle:hover {
transform: scale(1.1) rotate(15deg);
}
@media (max-width: 768px) {
#theme-toggle {
top: 100px; /* Increased space for mobile */
right: 1rem;
width: 40px;
height: 40px;
font-size: 1rem;
}

}

/* Sidebar Project Item Styles */
.sidebar-project-item {
display: block;
text-decoration: none;
border-radius: 0.75rem;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sidebar-project-item:hover {
transform: translateY(-5px);
}
body.light-mode .sidebar-project-item {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
border: 1px solid var(--card-border-light);
}
body.dark-mode .sidebar-project-item {
background-color: #374151;
border: 1px solid var(--card-border-dark);
}
.sidebar-project-item img {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: fill;
}
.sidebar-project-item .content {
padding: 1rem;
}
.sidebar-project-item h4 {
font-size: 1rem;
font-weight: 600;
line-height: 1.4;
margin-bottom: 0.5rem;
}
.sidebar-project-item .project-meta {
display: flex;
gap: 1rem;
font-size: 0.8rem;
opacity: 0.8;
}

@media (max-width: 768px) {
.policy-content .text-lg {
font-size: 1rem;
}
.policy-content h2 {
font-size: 1.5rem;
}
.policy-content h3 {
font-size: 1.125rem;
}
.policy-content p, .policy-content li {
font-size: 0.95rem;
}
}



#converter {
  background: #000000;
  --gap: 3em;
  --line: 1px;
  --color: rgba(255, 255, 255, 0.15);
  
  background-image: 
  linear-gradient(
  -90deg,
  transparent calc(var(--gap) - var(--line)),
  var(--color) calc(var(--gap) - var(--line) + 1px),
  var(--color) var(--gap)
  ),
  linear-gradient(
  0deg,
  transparent calc(var(--gap) - var(--line)),
  var(--color) calc(var(--gap) - var(--line) + 1px),
  var(--color) var(--gap)
  );
  background-size: var(--gap) var(--gap);
  position: relative;
}

/* Optional overlay to enhance text readability */
#converter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
  z-index: 0;
}

/* Make sure content stays above the background */
#converter > div {
  position: relative;
  z-index: 10;
}
