/* ===== ENHANCED 3D DEPTH & RESPONSIVE DESIGN ===== */

/* Global 3D depth improvements */
* {
  box-sizing: border-box;
}

/* Enhanced container responsiveness */
.container {
  max-width: 100% !important;
  padding: 0 15px !important;
  margin: 0 auto !important;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

/* 3D Card Effects */
.card-3d {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  box-shadow: 
    20px 20px 60px #d0d0d0,
    -20px -20px 60px #ffffff,
    inset 5px 5px 10px rgba(255,255,255,0.2),
    inset -5px -5px 10px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  z-index: 1;
}

.card-3d:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    25px 25px 80px #c0c0c0,
    -25px -25px 80px #ffffff,
    0 40px 80px rgba(0,0,0,0.15);
}

/* Enhanced button 3D effects */
.primary_btn {
  background: linear-gradient(145deg, #667eea, #764ba2) !important;
  border: none !important;
  border-radius: 15px !important;
  padding: 12px 30px !important;
  color: white !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    8px 8px 16px rgba(102, 126, 234, 0.3),
    -8px -8px 16px rgba(255,255,255,0.8),
    inset 2px 2px 4px rgba(255,255,255,0.2),
    inset -2px -2px 4px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease !important;
}

.primary_btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.primary_btn:hover::before {
  left: 100%;
}

.primary_btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 
    12px 12px 24px rgba(102, 126, 234, 0.4),
    -12px -12px 24px rgba(255,255,255,0.9),
    0 15px 35px rgba(102, 126, 234, 0.3) !important;
}

.primary_btn:active {
  transform: translateY(-1px) !important;
  box-shadow: 
    4px 4px 8px rgba(102, 126, 234, 0.3),
    -4px -4px 8px rgba(255,255,255,0.8) !important;
}

/* UI/UX Design button with white gradient */
.primary_btn.tr-bg {
  background: linear-gradient(145deg, #ffffff, #f8f9fa) !important;
  color: #333 !important;
  
  border-image: linear-gradient(145deg, #667eea, #764ba2) 1 !important;
  position: relative !important;
  margin: 0 15px !important;
  box-shadow: 
    8px 8px 16px rgba(0,0,0,0.1),
    -8px -8px 16px rgba(255,255,255,0.9),
    inset 2px 2px 4px rgba(255,255,255,0.3),
    inset -2px -2px 4px rgba(0,0,0,0.05) !important;
}

.primary_btn.tr-bg:hover {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
  color: #667eea !important;
  transform: translateY(-3px) !important;
  box-shadow: 
    12px 12px 24px rgba(0,0,0,0.15),
    -12px -12px 24px rgba(255,255,255,1),
    0 15px 35px rgba(0,0,0,0.1) !important;
}

.primary_btn.tr-bg:hover::before {
  background: linear-gradient(145deg, #5a6fd8, #6a4190) !important;
}

.primary_btn.tr-bg:active {
  transform: translateY(-1px) !important;
  box-shadow: 
    4px 4px 8px rgba(0,0,0,0.1),
    -4px -4px 8px rgba(255,255,255,0.9) !important;
}

/* Enhanced video section */
.video-container-3d {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 25px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 
    20px 20px 60px rgba(0,0,0,0.1),
    -20px -20px 60px rgba(255,255,255,0.8),
    inset 5px 5px 10px rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 40px auto !important;
  transform: none !important;
  display: block !important;
}

.video-container-3d::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
  border-radius: 25px;
  z-index: -1;
  opacity: 0.1;
}

#mainVideo {
  border-radius: 20px !important;
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.2),
    0 10px 25px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
  background: #000 !important;
  object-fit: contain !important;
  margin-bottom: 40px !important;
}

#mainVideo:hover {
  transform: scale(1.02) !important;
  box-shadow: 
    0 35px 70px rgba(0,0,0,0.25),
    0 15px 35px rgba(0,0,0,0.15) !important;
}

/* Portrait video specific styling */
#mainVideo.portrait {
  width: 400px !important;
  height: 700px !important;
  max-width: 90% !important;
  aspect-ratio: 9/16 !important;
  object-fit: contain !important;
}

/* Landscape video specific styling */
#mainVideo.landscape {
  width: 100% !important;
  max-width: 1000px !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  object-fit: contain !important;
}

/* Video content wrapper */
.video-content-wrapper {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 auto !important;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
  #mainVideo.portrait {
    width: 300px !important;
    height: 533px !important;
    max-width: 95% !important;
  }
  
  #mainVideo.landscape {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  #mainVideo.portrait {
    width: 250px !important;
    height: 444px !important;
    max-width: 98% !important;
  }
}

/* Enhanced portfolio items */
.portfolio-item-3d {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 30px;
  box-shadow: 
    15px 15px 30px rgba(0,0,0,0.1),
    -15px -15px 30px rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.portfolio-item-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(0,0,0,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-item-3d:hover::before {
  opacity: 1;
}

.portfolio-item-3d:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 
    20px 20px 40px rgba(0,0,0,0.15),
    -20px -20px 40px rgba(255,255,255,0.9),
    0 30px 60px rgba(0,0,0,0.1);
}

.portfolio-item-3d img,
.portfolio-item-3d video {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.portfolio-item-3d:hover img,
.portfolio-item-3d:hover video {
  transform: scale(1.05);
  box-shadow: 
    0 12px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Enhanced feature items */
.feature_item {
  background: linear-gradient(145deg, #ffffff, #f5f5f5) !important;
  border-radius: 25px !important;
  padding: 40px 25px !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  box-shadow: 
    20px 20px 40px rgba(0,0,0,0.1),
    -20px -20px 40px rgba(255,255,255,0.8),
    inset 5px 5px 10px rgba(255,255,255,0.2) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  overflow: hidden !important;
}

.feature_item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature_item:hover::before {
  transform: scaleX(1);
}

.feature_item:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 
    25px 25px 50px rgba(0,0,0,0.15),
    -25px -25px 50px rgba(255,255,255,0.9),
    0 40px 80px rgba(102, 126, 234, 0.1) !important;
}

.feature_item img {
  transition: all 0.3s ease !important;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)) !important;
}

.feature_item:hover img {
  transform: scale(1.1) rotateY(10deg) !important;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2)) !important;
}

/* Enhanced header */
.header_area {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(15px) !important;
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.05),
    0 4px 16px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.1) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.navbar-brand img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)) !important;
  transition: all 0.3s ease !important;
}

.navbar-brand:hover img {
  transform: scale(1.05) !important;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)) !important;
}

/* Enhanced navigation */
.nav-link {
  position: relative !important;
  font-weight: 600 !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
  width: 100%;
}

.nav-link:hover {
  color: #667eea !important;
  transform: translateY(-2px) !important;
}

/* Portfolio filter enhancements */
.filters ul {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  border-radius: 20px !important;
  padding: 15px !important;
  box-shadow: 
    15px 15px 30px rgba(0,0,0,0.1),
    -15px -15px 30px rgba(255,255,255,0.8) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 40px !important;
}

.filters ul li {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
  border-radius: 15px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  color: #666 !important;
  box-shadow: 
    5px 5px 10px rgba(0,0,0,0.1),
    -5px -5px 10px rgba(255,255,255,0.8) !important;
}

.filters ul li:hover,
.filters ul li.active {
  background: linear-gradient(145deg, #667eea, #764ba2) !important;
  color: white !important;
  transform: translateY(-3px) !important;
  box-shadow: 
    8px 8px 16px rgba(102, 126, 234, 0.3),
    -8px -8px 16px rgba(255,255,255,0.8),
    0 10px 20px rgba(102, 126, 234, 0.2) !important;
}

/* Enhanced about section */
.about_area {
  position: relative !important;
  overflow: hidden !important;
  margin: 40px 0 !important;
}

.about_area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
  pointer-events: none;
}

.about_area .row {
  align-items: center !important;
  justify-content: center !important;
}

.about_area .col-lg-5 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px !important;
}

.about_img {
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
}

.about_img img {
  max-width: 80% !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Text alignment in about section */
.about_area .main_title {
  text-align: left !important;
  margin: 0 !important;
  padding: 20px !important;
}

/* Video container alignment */
.video-container-3d > div {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Portfolio grid alignment */
.portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
}

/* Feature items alignment */
.feature_inner {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
}

.feature_inner .col-lg-3,
.feature_inner .col-md-6 {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 280px !important;
  margin-bottom: 20px !important;
}

/* Navigation alignment */
.navbar-nav {
  align-items: center !important;
}

.nav-item {
  margin: 0 10px !important;
}

/* Banner content alignment */
.banner_content {
  text-align: left !important;
  padding: 20px 0 !important;
}

.home_right_img {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Enhanced banner text styling */
.banner_content h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin-bottom: 15px !important;
  line-height: 1.2 !important;
}

.banner_content h3 {
  font-size: 1.8rem !important;
  font-weight: 500 !important;
  color: #000000 !important;
  margin-bottom: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
}

.banner_content h5 {
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  color: #000000 !important;
  margin-bottom: 25px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Social media section enhancements */
.portfolio_area .main_title h4 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  background: linear-gradient(145deg, #333, #667eea) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-align: left !important;
}

.portfolio_area .main_title p {
  margin-bottom: 24px !important;
  text-align: center !important;
  color: #666 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

/* Center Follow Me and Quality Work headers and icons */
.portfolio_area .main_title {
  text-align: center !important;
}
.portfolio_area .main_title h4,
.portfolio_area .main_title h2 {
  text-align: center !important;
}
.footer_social,
.portfolio_area .footer_social {
  display: flex !important;
  justify-content: center !important;
}

/* Enhanced social media icons */
.footer_social {
  display: flex !important;
  gap: 30px !important;
  margin-top: 0 !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.footer_social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 
    10px 10px 20px rgba(0,0,0,0.1),
    -10px -10px 20px rgba(255,255,255,0.8) !important;
}

.footer_social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, transparent, rgba(255,255,255,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer_social a:hover::before {
  opacity: 1;
}

.footer_social a:hover {
  transform: translateY(-8px) scale(1.1) !important;
  box-shadow: 
    15px 15px 30px rgba(0,0,0,0.15),
    -15px -15px 30px rgba(255,255,255,0.9),
    0 20px 40px rgba(0,0,0,0.1) !important;
}

.footer_social a i {
  font-size: 1.5rem !important;
  transition: all 0.3s ease !important;
  z-index: 1 !important;
  position: relative !important;
}

/* LinkedIn specific styling */
.footer_social a[href*="linkedin"] {
  background: linear-gradient(145deg, #0077b5, #005885) !important;
}

.footer_social a[href*="linkedin"] i {
  color: white !important;
}

.footer_social a[href*="linkedin"]:hover {
  background: linear-gradient(145deg, #0088cc, #0066aa) !important;
}

/* Instagram specific styling */
.footer_social a[href*="instagram"] {
  background: linear-gradient(145deg, #e1306c, #c13584, #833ab4) !important;
}

.footer_social a[href*="instagram"] i {
  color: white !important;
}

.footer_social a[href*="instagram"]:hover {
  background: linear-gradient(145deg, #f77737, #e1306c, #c13584) !important;
}

/* GitHub specific styling */
.footer_social a[href*="github"] {
  background: linear-gradient(145deg, #333, #1a1a1a) !important;
}

.footer_social a[href*="github"] i {
  color: white !important;
}

.footer_social a[href*="github"]:hover {
  background: linear-gradient(145deg, #444, #222) !important;
}

/* Enhanced main titles throughout the site */
.main_title h2 {
  font-size: 2.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
  background: linear-gradient(145deg, #333, #667eea) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.main_title p {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: #666 !important;
  margin-bottom: 15px !important;
}

/* Features section title */
.features_area .main_title h2 {
  color: #333 !important;
  text-align: center !important;
}

.features_area .main_title p {
  text-align: center !important;
  max-width: 600px !important;
  margin: 0 auto 30px auto !important;
}

/* About section specific text styling */
.about_area .main_title h2 {
  text-align: left !important;
  margin-bottom: 25px !important;
}

.about_area .main_title p {
  text-align: left !important;
  margin-bottom: 20px !important;
}

/* Responsive text adjustments */
@media (max-width: 991px) {
  .banner_content h1 {
    font-size: 2.8rem !important;
  }
  
  .banner_content h3 {
    font-size: 1.5rem !important;
  }
  
  .main_title h2 {
    font-size: 2.2rem !important;
  }
  
  .portfolio_area .main_title h4 {
    font-size: 2rem !important;
  }
  
  .footer_social {
    justify-content: center !important;
    gap: 20px !important;
  }
  
  .about_area .main_title,
  .portfolio_area .main_title {
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  .banner_content h1 {
    font-size: 2.2rem !important;
  }
  
  .banner_content h3 {
    font-size: 1.3rem !important;
  }
  
  .main_title h2 {
    font-size: 1.8rem !important;
  }
  
  .portfolio_area .main_title h4 {
    font-size: 1.7rem !important;
  }
  
  .footer_social a {
    width: 50px !important;
    height: 50px !important;
  }
  
  .footer_social a i {
    font-size: 1.3rem !important;
  }
}

/* Fix for portfolio section layout */
.portfolio_area .main_title {
  margin-top: 0 !important;
  padding: 0 !important;
  margin-bottom: 40px !important;
}

.portfolio_area .col-lg-12 {
  margin-bottom: 30px !important;
}

/* Fix overlapping issues */
.section_gap {
  padding: 80px 0 !important;
}

@media (min-width: 1200px) {
  .section_gap {
    padding: 120px 0 !important;
  }
}

/* Ensure proper spacing between sections */
.about_area {
  margin: 40px 0 !important;
}

.features_area {
  margin: 40px 0 !important;
}

.portfolio_area {
  margin: 40px 0 !important;
}

/* Fix text and image overlap in about section */
@media (min-width: 992px) {
  .about_area .row {
    align-items: stretch !important;
  }
  
  .about_area .col-lg-5:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .about_area .col-lg-5:last-child {
    display: flex !important;
    align-items: center !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, #667eea, #764ba2);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, #5a6fd8, #6a4190);
}

/* Focus states for accessibility */
.primary_btn:focus,
.nav-link:focus,
.filters ul li:focus,
.portfolio-pagination button:focus {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth !important;
}

/* Responsive adjustments for buttons and text */
@media (max-width: 767px) {
  .video-btns {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .primary_btn,
  .primary_btn.tr-bg {
    width: 100%;
    max-width: 350px;
    text-align: center;
    margin: 0 auto !important;
    padding: 12px 15px !important;
    font-size: 0.65rem !important;
  }

  .about_area .main_title,
  .portfolio_area .main_title {
    text-align: center !important;
  }

  .about_area .main_title h2,
  .about_area .main_title h4,
  .portfolio_area .main_title h2,
  .portfolio_area .main_title h4 {
    text-align: center !important;
  }

  .about_area .main_title p,
  .portfolio_area .main_title p {
    text-align: center !important;
  }

  .footer_social {
    justify-content: center !important;
  }
}
