/**
* Template Name: iPortfolio - v1.2.1
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/* CSS Variables */
:root {
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --swiper-theme-color: #007aff;
  --swiper-navigation-size: 44px;
  --clr-body: #1f2a3a;
}

/*--------------------------------------------------------------
# Top Navbar
--------------------------------------------------------------*/
.navbar {
  background: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--info) !important;
  transform: scale(1.05);
}

.navbar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.1);
}

.navbar-text {
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 8px 15px !important;
  margin: 0 5px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--info) !important;
  background: rgba(20, 157, 221, 0.1);
  transform: translateY(-2px);
}

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

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler i {
  color: var(--info);
  transition: all 0.4s;
}

.navbar-toggler:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

/* RTL Support for Navbar */
.navbar-nav {
  direction: rtl;
}

.navbar-nav .nav-item {
  text-align: right;
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 10px;
    padding: 15px;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
    text-align: center;
  }
  
  .navbar-text {
    font-size: 0.9rem;
  }
  
  .navbar-logo {
    width: 35px;
    height: 35px;
  }
}

/* Responsive margins */
@media (max-width: 768px) {
  #hero-image {
    margin-top: 60px;
  }
  
  #main {
    margin: 0 3px;
  }
  
  section {
    margin: 0 3px;
  }
}

/* Add top padding to body to account for fixed navbar */
body {
  padding-top: 0;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
.rtl, .rtl section, .rtl .container, .rtl p, .rtl li, .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
  direction: rtl !important;
  text-align: right !important;
}
body {
  font-family: 'Tajawal', sans-serif;
  color: var(--clr-body);
  direction: rtl;
  text-align: right;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.8rem;
  font-style: normal;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  box-sizing: inherit;
  scroll-behavior: inherit !important;
}

a {
  color: var(--info);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Tajawal", "Cairo", sans-serif;
  color: var(--dark);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

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

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

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

.btn-outline-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

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

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  right: 15px;
  bottom: 15px;
  background: var(--primary);
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 99999;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 7px;
  left: 8px;
}

.back-to-top:hover {
  color: #fff;
  background: #2eafec;
  transition: background 0.2s ease-in-out;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 10001;
  transition: all 0.5s;
  padding: 0 15px;
  background: #040b14;
  overflow-y: auto;
}

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid #2c2f3f;
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Poppins", sans-serif;
}

#header .profile h1 a, #header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #212431;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#header .profile .social-links a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

#main {
  margin-right: 300px;
}

@media (max-width: 1199px) {
  #header {
    right: -300px;
  }
  #main {
    margin-right: 0;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding-top: 30px;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i {
  font-size: 24px;
  padding-left: 8px;
  padding-right: 0;
  color: #6f7180;
}

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover i, .nav-menu .active > a i, .nav-menu li:hover > a i {
  color: var(--info);
}

/* Mobile Navigation */
.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  right: 0;
}

/* تحسينات إضافية للشريط الجانبي على الموبايل */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
  }
  
  .mobile-nav-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
  }
  
  .mobile-nav-active .mobile-nav-toggle i {
    transform: rotate(45deg);
  }
  
  #header {
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  }
}

/* تحسينات عامة للاستجابة */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .hero-container h1 {
    font-size: 28px;
  }
  
  .hero-container p {
    font-size: 16px;
  }
}

/* تحسينات للأداء */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* تحسينات للخطوط العربية */
body {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero-image {
  width: 100%;
  background-color: #f8f9fa;
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  padding-bottom: 50vh;
  min-height: 50vh;
}

#hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

#hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
  z-index: 2;
}

/* Simple professional enhancements */
#hero-image:hover {
  background-size: 105%;
  transition: background-size 0.5s ease;
}

/* Add subtle parallax effect */
@media (min-width: 1024px) {
  #hero-image {
    background-attachment: fixed;
  }
}

#hero {
  width: 180px;
  height: 50px;
  background: var(--primary);
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 0 12px;
}

.hero-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

@keyframes gradientShift {
  0% { background: var(--primary); }
  50% { background: var(--info); }
  100% { background: var(--primary); }
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.1);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  height: 100%;
}

#hero h1 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.3px;
}

#hero p {
  color: #ffffff;
  margin: 0;
  font-size: 0.7rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  font-weight: 300;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #ffd700;
  font-weight: 600;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #149ddd;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700; }
  to { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

/* Responsive Design */
@media (max-width: 768px) {
  #hero-image {
    margin-top: 60px;
    padding-bottom: 40vh;
    min-height: 40vh;
    background-attachment: scroll;
  }
  
  #hero-image::after {
    height: 100px;
  }
  
  #hero {
    width: 160px;
    height: 45px;
    top: 8px;
    left: 8px;
    padding: 0 10px;
  }
  
  #hero .hero-container {
    padding: 6px 0;
    gap: 2px;
  }
  
  #hero h1 {
    font-size: 0.8rem;
  }
  
  #hero p {
    font-size: 0.6rem;
  }
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

/* No need for top margin since hero is small and positioned */
#main {
  margin: 0 5px;
  border-radius: 5px;
  overflow: hidden;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
  margin: 0 5px;
  border-radius: 5px;
}

.section-bg {
  background: #f5f8fd;
}

.section-title {
  padding-bottom: 30px;
  text-align: right;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--dark);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  bottom: 0;
  right: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--dark);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 20px;
  padding-left: 2px;
  padding-right: 0;
  color: var(--info);
}

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

/* RTL layout tweaks for About section */
.about .row {
  flex-direction: row-reverse;
}
.about .content {
  text-align: right;
}
.about .content ul.row {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.about .content ul.row li {
  text-align: right;
}
.rtl #about .section-title,
.rtl #about .container,
.rtl #about .content,
.rtl #about p,
.rtl #about h2,
.rtl #about h3,
.rtl #about ul,
.rtl #about li {
  text-align: right !important;
}

@media (max-width: 991.98px) {
  /* Ensure about section stays RTL on mobile too */
  .about .row {
    flex-direction: column-reverse;
    margin: 0 !important;
  }
  .about .content {
    text-align: right !important;
    padding: 15px;
  }
  .about .col-lg-4,
  .about .col-lg-8 {
    padding: 0 !important;
    margin: 0 !important;
  }
  .about .col-lg-4 img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Force About title to align right (user request: /html/body/main/section[1]/div/div[1]/h2) */
#about .section-title { text-align: right !important; }
#about .section-title h2 { text-align: right !important; }
#about .section-title h2::after { right: 0; left: auto; }

/* Remove gap between image and content in About section */
.about .row {
  margin: 0;
  align-items: center;
}

.about .col-lg-4,
.about .col-lg-8 {
  padding: 0;
  margin: 0;
}

.about .content {
  padding: 0 15px;
}

.about .col-lg-4 img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* Ensure no gaps in About section */
.about .container {
  padding: 0;
}

.about .row > div {
  margin: 0;
  padding: 0;
}

/* Force remove all gaps in About section */
.about .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.about .col-lg-4,
.about .col-lg-8 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.about .col-lg-4 {
  padding-right: 0 !important;
}

.about .col-lg-8 {
  padding-left: 0 !important;
}

/* Additional CSS to remove gaps */
.about .row {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

.about .col-lg-4,
.about .col-lg-8 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

/* Override Bootstrap gutters */
.about .row > * {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/*--------------------------------------------------------------
# Gallery Swiper
--------------------------------------------------------------*/
.album-swiper {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
}

.album-swiper .image-layer-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-swiper .image-layer-overlay img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

.album-swiper:hover .image-layer-overlay img {
  transform: scale(1.05);
}

.album-swiper .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.album-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.album-swiper .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.2);
}

.album-swiper .swiper-button-next,
.album-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
}

.album-swiper:hover .swiper-button-next,
.album-swiper:hover .swiper-button-prev {
  opacity: 1;
}

.album-swiper .swiper-button-next:hover,
.album-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.album-swiper .swiper-button-next:after,
.album-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
}

.portfolio-wrap.album-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-wrap.album-gallery:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-wrap.album-gallery .portfolio-links {
  text-align: center;
  margin-top: 10px;
}

.portfolio-wrap.album-gallery .portfolio-links a {
  color: var(--dark);
  font-size: 20px;
}

.portfolio-wrap.album-gallery .portfolio-info {
  padding: 15px;
  text-align: center;
}

.portfolio-wrap.album-gallery .portfolio-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.portfolio-wrap.album-gallery .portfolio-info p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .album-swiper {
    height: 200px;
  }
}

/*--------------------------------------------------------------
# Videos
--------------------------------------------------------------*/
.videos .video-wrapper {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.videos .video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.videos .video-title {
  color: var(--dark);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: right;
  margin-bottom: 15px;
}

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.embed-responsive::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive .embed-responsive-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.videos .alert {
  border-radius: 8px;
  text-align: center;
  margin: 0;
}

.videos .alert i {
  margin-left: 5px;
}

/* Responsive Design for Videos */
@media (max-width: 768px) {
  .videos .video-wrapper {
    padding: 15px;
  }
  
  .videos .video-title {
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts {
  padding-bottom: 30px;
}

.facts .count-box {
  padding: 30px;
  width: 100%;
}

.facts .count-box i {
  display: block;
  font-size: 44px;
  color: var(--info);
  float: left;
}

.facts .count-box span {
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  color: #050d18;
  margin-left: 60px;
}

.facts .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #122f57;
}

.facts .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #122f57;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
  color: #1f5297;
}

/*--------------------------------------------------------------
# Akills
--------------------------------------------------------------*/
.skills .progress {
  height: 50px;
  display: block;
  background: none;
}

.skills .progress .skill {
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #050d18;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: #dce8f8;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: .9s;
  background-color: #149ddd;
}

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

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #1f5297;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #050d18;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #e4edf9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

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

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #1f5297;
}

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

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

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px 8px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active {
  color: var(--info);
}

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

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.portfolio .portfolio-wrap .portfolio-links {
  opacity: 1;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
  display: flex;
  justify-content: center;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  font-size: 28px;
  text-align: center;
  background: rgba(20, 157, 221, 0.75);
  transition: 0.3s;
  width: 50%;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: rgba(20, 157, 221, 0.95);
}

.portfolio .portfolio-wrap .portfolio-links a + a {
  border-left: 1px solid #37b3ed;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  margin-bottom: 20px;
}

.services .icon {
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--primary);
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--primary);
}

.services .icon i {
  color: #fff;
  font-size: 24px;
}

.services .icon-box:hover .icon {
  background: #fff;
}

.services .icon-box:hover .icon i {
  color: var(--info);
}

.services .title {
  margin-right: 80px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.services .title a {
  color: #343a40;
}

.services .title a:hover {
  color: var(--info);
}

.services .description {
  margin-right: 80px;
  line-height: 24px;
  font-size: 15.5px;
}

/* Show only latest two services by default */
#services .row > div:nth-child(n+3) {
  display: none !important;
}
#services .row.show-all > div {
  display: block !important;
}

/* Gallery RTL support */
#gallery .portfolio-container {
  direction: rtl !important;
}
#gallery .portfolio-item {
  direction: rtl !important;
  text-align: right !important;
}
#gallery .portfolio-info h4 {
  text-align: right !important;
  direction: rtl !important;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right {
  color: #c3e8fa;
  font-size: 26px;
}

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

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

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background: #fff;
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid #fff;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .owl-nav, .testimonials .owl-dots {
  margin-top: 5px;
  text-align: center;
}

.testimonials .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd !important;
}

.testimonials .owl-dot.active {
  background-color: #149ddd !important;
}

@media (max-width: 767px) {
  .testimonials {
    margin: 30px 10px;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 130px;
}

.contact .info {
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .info i {
  font-size: 20px;
  color: var(--info);
  float: right;
  width: 44px;
  height: 44px;
  background: #dff3fc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 60px 0 0;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #050d18;
}

.contact .info p {
  padding: 0 60px 10px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--dark);
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 60px;
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  margin-right: 10px;
}

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

.contact .info .email:hover i, .contact .info .address:hover i, .contact .info .phone:hover i {
  background: var(--primary);
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

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

.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input {
  height: 44px;
}

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

.contact .php-email-form button[type="submit"] {
  background: var(--primary);
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #37b3ed;
}

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

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

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 40px 0;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #0e2442;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 0;
}

.portfolio-details .portfolio-details-container {
  position: relative;
}

.portfolio-details .portfolio-details-carousel {
  position: relative;
  z-index: 1;
}

.portfolio-details .portfolio-details-carousel .owl-nav, .portfolio-details .portfolio-details-carousel .owl-dots {
  margin-top: 5px;
  text-align: left;
}

.portfolio-details .portfolio-details-carousel .owl-dot {
  display: inline-block;
  margin: 0 10px 0 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd !important;
}

.portfolio-details .portfolio-details-carousel .owl-dot.active {
  background-color: #149ddd !important;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  position: absolute;
  right: 0;
  bottom: -70px;
  background: #fff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 50px;
}

.portfolio-details .portfolio-description h2 {
  width: 50%;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

@media (max-width: 768px) {
  .portfolio-details .portfolio-description h2 {
    width: 100%;
  }
  .portfolio-details .portfolio-info {
    position: static;
    margin-top: 30px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: #040b14;
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #eaebf0;
}

@media (max-width: 1199px) {
  #footer {
    position: static;
    width: auto;
    padding-right: 20px 15px;
  }
}

/* Articles Section Styles */
.articles {
  padding: 60px 0;
}

.articles .card {
  border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.articles .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.articles .card-img-top {
  border-radius: 8px 8px 0 0;
}

.articles .card-body {
  padding: 20px;
}

.articles .card-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.articles .card-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.articles .text-muted {
  font-size: 0.9em;
}

/* Article Detail Page Styles */
.article-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  color: #666;
  font-size: 1rem;
  margin-bottom: 30px;
}

.article-meta .separator {
  margin: 0 10px;
  color: #ccc;
}

.article-featured-image {
  text-align: center;
}

.article-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 30px 0 20px 0;
  font-weight: 600;
}

.article-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 25px 0 15px 0;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 20px;
  color: #333;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-right: 20px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-footer {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  
  .article-content {
    padding: 20px;
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.3rem;
  }
}
