/* 
  Elhobbi Portfolio - Custom CSS
  Author: Achraf MLJ
*/

/* General Styles */
:root {
  --primary-color: #128c7e;
  --secondary-color: #25d366;
  --primary-gradient: linear-gradient(45deg, #128c7e, #25d366);
  --secondary-gradient: linear-gradient(135deg, #25d366, #128c7e);
  --dark-color: #075e54;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --border-color: #e2e8f0;
  --section-padding: 100px 0;
  --transition: all 0.3s ease;
  --border-radius: 15px;
  --box-shadow: 0 10px 30px rgba(18, 140, 126, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
  color: var(--gray-color);
}

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

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

section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 15px;
  color: #333;
}

.section-header h2:after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-badge {
  display: inline-block;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.1), rgba(37, 211, 102, 0.1));
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  position: relative;
}

.section-badge:before {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--primary-gradient);
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover:after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: white;
  box-shadow: 0 5px 15px rgba(18, 140, 126, 0.3);
}

.btn-primary:hover {
  background: var(--primary-gradient);
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
}

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

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

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

.btn-light:hover {
  background: white;
  color: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Navbar */
.navbar {
  padding: 20px 0;
  transition: var(--transition);
  background-color: transparent;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: 800;
  font-size: 19px;
  color: var(--primary-color);
  margin-right: 10px;
}

.logo-badge {
  background: var(--primary-gradient);
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.navbar-light .navbar-nav .nav-link {
  color: #333;
  font-weight: 600;
  padding: 10px 15px;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
  width: 30px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 700px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
}

.hero-shapes .shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.05), rgba(37, 211, 102, 0.05));
  top: -150px;
  right: -150px;
}

.hero-shapes .shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.05), rgba(37, 211, 102, 0.05));
  bottom: -100px;
  left: -100px;
}

.hero-shapes .shape-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.05), rgba(37, 211, 102, 0.05));
  top: 30%;
  left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.1), rgba(37, 211, 102, 0.1));
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #333;
}

.hero-content p {
  margin-bottom: 30px;
  font-size: 18px;
  color: var(--gray-color);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-text {
  font-size: 14px;
  color: var(--gray-color);
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: relative;
  width: 90%;
  z-index: 1;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card {
  position: absolute;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 20px;
  color: var(--primary-color);
}

.floating-card span {
  font-weight: 600;
  font-size: 14px;
}

.card-1 {
  top: 20%;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  right: 0;
  animation-delay: 1s;
}

.card-3 {
  top: 80%;
  left: 5%;
  animation-delay: 2s;
}

.card-4 {
  bottom: 75%;
  right: 0%;
  animation-delay: 3s;
}

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

/* Services Section */
.services-section {
  background-color: #f9f9f9;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover:before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(18, 140, 126, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.1), rgba(37, 211, 102, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-gradient);
  color: white;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 15px;
  transition: var(--transition);
}

.service-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: var(--secondary-color);
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

.service-card.featured {
  background: var(--primary-gradient);
  color: white;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-link {
  color: white;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-image {
  position: relative;
  padding: 20px;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  color: white;
  padding: 20px;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(18, 140, 126, 0.3);
}

.experience-badge .number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 14px;
  text-align: center;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-content .lead {
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
}

.skills-container {
  margin-top: 30px;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-name {
  font-weight: 600;
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  position: relative;
  animation: skillProgress 2s ease-in-out;
}

@keyframes skillProgress {
  from {
    width: 0;
  }
}

/* Why Choose Section */
.why-choose-section {
  background-color: #f9f9f9;
}

.why-choose-item {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.why-choose-item:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 0;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.05), rgba(37, 211, 102, 0.05));
  bottom: 0;
  left: 0;
  transition: var(--transition);
  z-index: -1;
}

.why-choose-item:hover:before {
  height: 100%;
}

.why-choose-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(18, 140, 126, 0.15);
}

.why-choose-item .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.1), rgba(37, 211, 102, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.why-choose-item:hover .icon {
  background: var(--primary-gradient);
  color: white;
}

.why-choose-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.why-choose-item:hover h3 {
  color: var(--primary-color);
}

/* Process Section */
.process-section {
  background-color: white;
}

.process-timeline {
  position: relative;
  padding: 30px 0;
}

.process-step {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  position: relative;
  height: 100%;
  transition: var(--transition);
  overflow: hidden;
  z-index: 1;
}

.process-step:before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.05), rgba(37, 211, 102, 0.05));
  top: 0;
  left: 0;
  transition: var(--transition);
  z-index: -1;
}

.process-step:hover:before {
  width: 100%;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(18, 140, 126, 0.15);
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary-gradient);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.process-step h3 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 15px;
}

.step-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 40px;
  color: rgba(18, 140, 126, 0.1);
  transition: var(--transition);
}

.process-step:hover .step-icon {
  color: rgba(18, 140, 126, 0.2);
  transform: scale(1.2);
}

/* CTA Section */
.cta-section {
  background: var(--primary-gradient);
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section .section-badge {
  color: white;
}

.cta-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-shapes .shape-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -100px;
}

.cta-shapes .shape-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -75px;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: white;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-section {
  background-color: #f9f9f9;
}

.contact-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.1), rgba(37, 211, 102, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
}

.contact-item .info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.contact-item .info p a {
  color: var(--gray-color);
}

.contact-item .info p a:hover {
  color: var(--primary-color);
}

.social-links {
  margin-top: 30px;
}

.social-links h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.social-links .links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, rgba(18, 140, 126, 0.1), rgba(37, 211, 102, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-5px);
}

.contact-form-container {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.form-control {
  height: 50px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 10px 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.1);
}

textarea.form-control {
  height: auto;
  resize: none;
}

.contact-form .btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: white;
}

.footer-top {
  padding: 80px 0 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-logo .logo-badge {
  background: var(--primary-gradient);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after,
.footer-contact h4:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--primary-gradient);
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-links ul li a i {
  margin-right: 10px;
  font-size: 12px;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.footer-links ul li a:hover i {
  transform: translateX(5px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.footer-contact p a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p a:hover {
  color: var(--secondary-color);
}

.footer-contact .social-links {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.footer-contact .social-link {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-contact .social-link:hover {
  background: var(--primary-gradient);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  text-align: center;
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(18, 140, 126, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-image {
    width: 100%;
  }
  .floating-card {
    display: none;
  }
  .about-image {
    padding: 20px 4px !important;
  }
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
  
  .hero-section {
    height: auto;
    padding: 150px 0 100px;
  }
  
  .hero-image-container {
    margin-top: 50px;
  }
  
  .experience-badge {
    width: 100px;
    height: 100px;
  }
  
  .experience-badge .number {
    font-size: 30px;
  }
  
  .experience-badge .text {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 30px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .process-step, .why-choose-item, .service-card {
    padding: 20px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item .icon {
    margin: 0 auto 15px;
  }
  
  .social-links .links {
    justify-content: center;
  }
}