/*--================================================
/    Name: Zuid - Creative Portfolio
/    Developer: JohnDev19
/    GitHub: https://github.com/JohnDev19/
/    License: MIT
/    Last Update: December 2024
=====================================================    
/    Description:
/    Zuid is a creative portfolio website designed to showcase the work of a digital designer and developer
=====================================================    
/    Technologies Used:
/    - HTML5
/    - CSS3
/    - JavaScript
/    - AOS (Animate On Scroll)
/    - Swiper.js for sliders
/    - Font Awesome for icons
/    - Google Fonts for typography
===================================================== 
/    Table of Contents:
/    1. Navigation
/    2. Hero Section
/    3. About Section
/    4. Services Section
/    5. Portfolio Section
/    6. Blog Section
/    7. Pricing Section
/    8. Subscribe Section
/    9. Footer
=================================================== */
/*======================== Root ========================*/
:root {
  --primary-color: #4454fe;
  --secondary-color: #ff6f4c;
  --background-dark: #141520;
  --text-light: #e2e2e2;
  --transition-speed: 0.3s;
}

/*=================== Scrollbar =====================*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
  to right,
  var(--secondary-color),
  var(--primary-color)
  );
}

body {
  position: relative;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  z-index: 9999;
  transition: width 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Prompt", sans-serif;
  font-style: normal;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/*===================== Button ======================*/
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/*===================== Section ======================*/
.section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/*================ 1. Navigation =================*/
.navbar {
  position: fixed;
  width: 100%;
  background: rgba(20, 21, 32, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 5%;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  margin-right: 2px;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

/*================ 2. Hero Section =================*/
.hero-section {
  display: flex;
  min-height: 100vh;
  align-items: center;
  background: linear-gradient(135deg, var(--background-dark), #1e2133);
  position: relative;
  overflow: hidden;
}

.gradient-light-ray {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.gradient-light-ray::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: linear-gradient(
  135deg,
  rgba(68, 84, 254, 0.3) 0%,
  rgba(255, 111, 76, 0.3) 100%
  );
  transform: rotate(-45deg);
  filter: blur(150px);
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .gradient-light-ray::before {
    filter: blur(100px);
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .gradient-light-ray::before {
    filter: blur(80px);
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .gradient-light-ray::before {
    filter: blur(50px);
    opacity: 0.2;
  }
}


.hero-image-wrapper {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 500px;
  z-index: 1;
}

.hero-image-container {
  position: relative;
  border-radius: 50% 20% 50% 20%;
  overflow: hidden;
  background: linear-gradient(
  135deg,
  rgba(68, 84, 254, 0.3) 0%,
  rgba(255, 111, 76, 0.3) 100%
  );
  animation: morphShape 8s ease-in-out infinite alternate;
  transition: all 0.5s ease;
  margin-left: 10px;
}

@keyframes morphShape {
  0% {
    border-radius: 50% 20% 50% 20%;
  }
  50% {
    border-radius: 20% 50% 20% 50%;
  }
  100% {
    border-radius: 50% 20% 50% 20%;
  }
}

.hero-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.hero-image-container:hover img {
  transform: scale(1.2);
}

.availability-badge {
  position: absolute;
  bottom: -15px;
  right: -0px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.availability-badge .check-icon {
  background: white;
  color: var(--primary-color);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    top: auto;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .availability-badge {
    font-size: 0.8rem;
  }
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 500px;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.hero-title {
  font-size: 5rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

/*================ 3. About Section =================*/
.about-section {
  position: relative;
  background: linear-gradient(
  135deg,
  rgba(20, 21, 32, 0.9) 0%,
  rgba(30, 33, 51, 0.9) 100%
  );
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
  45deg,
  rgba(68, 84, 254, 0.1) 0%,
  rgba(255, 111, 76, 0.1) 100%
  );
  transform: rotate(-45deg);
  z-index: -1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: flex-start;
}

/* Statistics Cards */
.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
  135deg,
  rgba(68, 84, 254, 0.1) 0%,
  rgba(255, 111, 76, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  background: linear-gradient(
  135deg,
  var(--primary-color),
  var(--secondary-color)
  );
  color: #fff;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-right: 25px;
  position: relative;
  z-index: 2;
}

.stat-icon i {
  font-size: 2.5rem;
}

.stat-content {
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.stat-content h3 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.2;
}

.stat-content p {
  color: var(--text-light);
  font-size: 1rem;
  opacity: 0.8;
}

.about-section {
  background-color: var(--background-dark);
  padding: 100px 0;
  color: var(--text-light);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 3rem;
  color: #fff;
  position: relative;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Image Container */
.about-image-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.about-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  position: relative;
  transition: transform 0.3s ease;
}

.about-image-wrapper:hover {
  transform: scale(1.02);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
  135deg,
  rgba(68, 84, 254, 0.3) 0%,
  rgba(255, 111, 76, 0.3) 100%
  );
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.about-image-wrapper:hover .image-overlay {
  opacity: 0.4;
}

/* Experience Badge */
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgb(31,29,67);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 250px;
  width: 100%;
  z-index: 10;
}

.badge-icon {
  background: linear-gradient(
  135deg,
  var(--primary-color),
  var(--secondary-color)
  );
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.badge-icon i {
  color: #fff;
  font-size: 2rem;
}

.badge-content h4 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.badge-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  opacity: 0.8;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text h3 {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  flex: 1;
}

.stat-icon {
  background: linear-gradient(
  135deg,
  var(--primary-color),
  var(--secondary-color)
  );
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.stat-icon i {
  color: #fff;
  font-size: 2rem;
}

.stat-content h4 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Skills */
.skills-section {
  margin-bottom: 30px;
}

.skills-section h4 {
  text-align: left;
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  justify-content: center;
}

.skill-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
  135deg,
  rgba(68, 84, 254, 0.1) 0%,
  rgba(255, 111, 76, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  position: relative;
  z-index: 1;
}

/* About CTA */
.about-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

.about-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.btn-primary {
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

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

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) {
  .about-section .about-content .about-cta {
    justify-content: flex-start;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }

  .about-stats {
    flex-direction: column;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cta {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  .about-cta .btn {
    flex: 0 1 auto;
    padding: 10px 15px;
    font-size: 0.9rem;
    max-width: 200px;
    width: auto;
  }

  .about-cta .btn i {
    margin-right: 5px;
    font-size: 0.9rem;
  }
}

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

  .skill-item i {
    font-size: 2rem;
  }

  .about-cta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .about-cta .btn {
    flex: 0 1 calc(50% - 10px);
    padding: 8px 12px;
    font-size: 1rem;
    max-width: 150px;
    justify-content: center;
  }

  .about-cta .btn i {
    margin-right: 3px;
    font-size: 0.8rem;
  }
}

/*================ 4. Services =================*/
.services-section {
  background: linear-gradient(
  135deg,
  rgba(20, 21, 32, 0.9) 0%,
  rgba(30, 33, 51, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
  45deg,
  rgba(68, 84, 254, 0.1) 0%,
  rgba(255, 111, 76, 0.1) 100%
  );
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
  135deg,

  rgba(68, 84, 254, 0.1) 0%,
  rgba(255, 111, 76, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(
  135deg,
  var(--primary-color),
  var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.service-icon i {
  font-size: 3.5rem;
  color: white;
}

.service-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.service-description {
  color: var(--text-light);
  margin-bottom: 25px;
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.service-details {
  position: relative;
  z-index: 2;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
  text-align: left;
  padding: 0 20px;
}

.service-features li {
  color: var(--text-light);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.service-learn-more {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.service-learn-more:hover {
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/*================ 5. Portfolio =================*/
.portfolio-section {
  width: 100%;
  padding: 60px 5%;
  background-color: var(--background-dark);
  position: relative;
  overflow: hidden;
}

.portfolio-filters-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.portfolio-filters {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;

  @media (max-width: 768px) {
    width: 100%;
    justify-content: flex-start;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding: 10px;
  }
}

.portfolio-filters::-webkit-scrollbar {
  display: none;
}

.portfolio-filters {
  position: relative;
}

.filter-btn {
  background-color: transparent;
  border: none;
  color: var(--text-light);
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(0.8rem, 3vw, 1rem);
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  @media (max-width: 768px) {
    scroll-snap-align: center;
    flex-shrink: 0;
    margin: 0 5px;
  }
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.filter-btn.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
}

.portfolio-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.portfolio-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
}

.portfolio-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 15px;
  box-sizing: border-box;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content {
  text-align: center;
  color: #fff;
  max-width: 100%;
  width: 100%;
  padding: 15px;
}

.portfolio-overlay-content h3 {
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.portfolio-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.portfolio-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: clamp(0.6rem, 2.5vw, 0.7rem);
  margin: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(10px)) {
  .portfolio-tag {
    background: rgba(255, 255, 255, 0.2);
  }
}

.portfolio-description {
  color: var(--text-light);
  font-size: clamp(0.8rem, 3vw, 0.9rem);
  margin-bottom: 15px;
  opacity: 0.8;
  max-width: 100%;
}

.portfolio-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.portfolio-action-btn {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: clamp(0.7rem, 3vw, 0.9rem);
  margin: 5px;
}

.portfolio-action-btn:hover {
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  border: 1px;
  transform: translateY(-3px);
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.portfolio-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.portfolio-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 768px ) {
  .portfolio-grid {
    grid-template-columns: repeat(1fr);
    gap: 20px;
  }

  .portfolio-filters {
    padding: 8px 15px;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .portfolio-image-wrapper {
    padding-top: 60%;
  }

  .portfolio-overlay-content h3 {
    font-size: 1.1rem;
  }

  .portfolio-description {
    font-size: 0.8rem;
  }
}

/*================ 6. Blog Section =================*/
.featured-blog-posts {
  padding: 100px 0;
  background: linear-gradient(
  45deg,
  rgba(68, 84, 254, 0.1) 0%,
  rgba(255, 111, 76, 0.1) 100%
  );
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 15px;
}

.blog-post-card {
  background: linear-gradient(
  135deg,
  rgba(68, 84, 254, 0.3) 0%,
  rgba(255, 111, 76, 0.3) 100%
  );
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin: 0 15px;
}

.blog-post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
  position: relative;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.blog-post-content {
  padding: 25px;
}

.blog-post-title {
  margin-bottom: 15px;
}

.blog-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: var(--primary-color);
}

.blog-post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.author-info {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.author-name {
  font-weight: 500;
}

.post-date, .read-time {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.post-date i, .read-time i {
  margin-right: 5px;
}

.view-all-blogs {
  text-align: center;
  margin-top: 50px;
}

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

@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-card {
    margin: 0 0 30px 0;
  }

  .blog-post-image img {
    height: 200px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-post-title {
    font-size: 1.2rem;
  }

  .blog-post-excerpt {
    font-size: 0.9rem;
  }
}

/*================ 7. Pricing Section =================*/
.pricing-section {
  background: linear-gradient(
  135deg,
  rgba(20, 21, 32, 0.95) 0%,
  rgba(30, 33, 51, 0.95) 100%
  );
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: -40px;
  background: linear-gradient(
  to right,
  var(--primary-color),
  var(--secondary-color)
  );
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 20px;
}

.pricing-header h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pricing-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.price-container {
  text-align: center;
  margin-bottom: 30px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.currency {
  font-size: 1.5rem;
  margin-right: 5px;
  color: var(--text-light);
}

.amount {
  font-size: 3rem;
  color: var(--primary-color);
}

.period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-features li {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.pricing-features li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.pricing-features li.disabled {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-action {
  text-align: center;
  margin-top: auto;
}

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

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/*=============== 8. Subscribe Section ================*/
.subscribe-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  text-align: center;
  padding: 80px 5%;
  border-radius: 20px;
  margin: 50px auto;
  max-width: 1200px;
}

.subscribe-section h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.subscribe-form input {
  padding: 12px 20px;
  width: 300px;
  border-radius: 5px 0 0 5px;
  border: none;
  font-size: 1rem;
  border-right: none;
}

.subscribe-form button {
  background: var(--background-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 0 5px 5px 0;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }

  .subscribe-form input {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    margin-bottom: 15px;
  }

  .subscribe-form button {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    justify-content: center;
  }
}

/*================ 9. Footer =================*/
.footer {
  background: rgba(255,255,255,0.05);
  padding: 80px 5% 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 40px;
  margin-right: 5px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo {
    font-size: 3rem;
  }

  .footer-logo img {
    height: 50px;
  }
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4454fe;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}

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

@media (max-width: 1024px) {
  .hero-image {
    width: 35%;
  }

  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 5%;
    background: rgba(20, 21, 32, 0.95);
  }

  .nav-container {
    position: relative;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
    to bottom,
    var(--background-dark) 0%,
    #1e2133 100%
    );
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
    animation: slideFromTop 0.5s ease-in-out;
  }

  @keyframes slideFromTop {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu a {
    font-size: 1.5rem;
    margin: 5px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-menu.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu a::after {
    bottom: -10px;
    background-color: var(--primary-color);
  }

  .hamburger {
    display: block;
    z-index: 1000;
    position: relative;
  }

  .hamburger .bar {
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 50px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-image {
    position: relative;
    width: 80%;
    max-width: 300px;
    right: auto;
    top: auto;
    transform: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .about-section {
    flex-direction: column;
  }

  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }

  .subscribe-form input {
    width: 100%;
    max-width: 300px;
  }

  .footer-content {
    flex-direction: column;
    text-align: left;
  }
}

/* Scroll Down - Hero */
.scroll-down-arrow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  color: #fff;
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .scroll-down-arrow {
    display: none;
  }
}

/*Go-to-top */
.go-to-top {
  position: fixed;
  bottom: -60px;
  right: 30px;
  z-index: 99;
  background: linear-gradient(
  135deg,
  var(--primary-color),
  var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition:
  bottom 0.3s ease-in-out,
  transform 0.3s ease,
  box-shadow 0.3s ease;
  outline: none;
  opacity: 0;
  perspective: 1000px;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotateGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/*================ Go-To-Top =================*/
.go-to-top.show {
  bottom: 30px;
  opacity: 1;
  animation:
  revealFromBottom 0.5s ease-out forwards,
  floatUpDown 3s ease-in-out infinite,
  pulse 2s ease-in-out infinite alternate;
  background-size: 200% 200%;
  background-position: 0% 50%;
  animation:
  revealFromBottom 0.5s ease-out forwards,
  floatUpDown 3s ease-in-out infinite,
  pulse 2s ease-in-out infinite alternate,
  rotateGradient 5s ease infinite;
}

.btn-gradient {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
