/* ================================
   AESTHETIC ENHANCEMENTS
   ================================ */

/* Hide Style Switcher Completely */
.style-switcher {
  display: none !important;
  visibility: hidden !important;
}

/* Hide Menu Completely */
.menu,
.menu__wrapper,
.menu__mobile-button,
.mobile-menu {
  display: none !important;
  visibility: hidden !important;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Typography */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.7;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal overflow globally */
* {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Better Section Spacing */
.section {
  padding: 80px 0;
}

/* Smooth Transitions for Links */
a {
  transition: all 0.3s ease;
}

a:hover {
  transform: translateY(-2px);
}

/* Enhanced Header Section */
.main-header {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Fix for mobile */
@media (max-width: 768px) {
  .main-header {
    background-attachment: scroll;
    min-height: auto;
  }
}

.personal-profile {
  position: relative;
  z-index: 2;
}

.personal-profile__avatar img {
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personal-profile__avatar img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Section Titles */
.section__title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #667eea, #764ba2);
  animation: expandWidth 0.8s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Enhanced Description Paragraphs */
.section__description {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Resume Blocks */
.resume-list__block {
  padding: 25px;
  margin-bottom: 30px;
  border-left: 3px solid #667eea;
  background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.resume-list__block:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to right, rgba(102, 126, 234, 0.08), transparent);
}

.resume-list__block-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 5px;
  color: #2c3e50;
}

.resume-list__block-date {
  color: #667eea;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 10px;
}

.resume-list__block strong {
  color: #667eea;
  font-weight: 600;
}

.resume-list__block ul li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* Enhanced Skills Section */
.progress-list__skill {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #667eea;
}

.progress-list__skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #764ba2;
}

.progress-list__skill-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 15px;
}

.progress-list__skill-value {
  color: #555;
  font-size: 14px;
}

/* Hide inconsistent progress bars in skills section */
.progress-list__skill .progress {
  display: none;
}

/* Alternative: If you want to show consistent progress bars */
.progress-list .progress {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-list .progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #667eea, #764ba2);
  transition: width 0.6s ease;
}

/* Enhanced Project Cards */
.project-card {
  padding: 30px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

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

.project-card__img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.project-card__img img {
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.project-card:hover .project-card__img img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.project-card__title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.project-card:hover .project-card__title {
  color: #667eea;
}

.project-card__description {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}

/* Enhanced Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

.tags li {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tags li:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Enhanced Links */
.project-card__link {
  display: inline-block;
  margin-right: 15px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.project-card__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Enhanced Download CV Button */
.site-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  margin-top: 20px;
}

.site-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Enhanced Certification Section */
.slider-carousel {
  padding: 60px 0;
}

/* Fix background alignment for certification section */
.background.slider-carousel {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
}

.background.slider-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.background.slider-carousel .container {
  position: relative;
  z-index: 1;
}

.slider-carousel__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-carousel__caption {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 16px;
}

.slider-carousel a img {
  transition: all 0.3s ease;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-carousel a img:hover {
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Enhanced Contact Section - Simplified */
.contact-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-section .section__title {
  color: white;
  text-align: center;
  margin-bottom: 15px;
  font-size: 42px;
}

.contact-section .contact-description {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.contact-link {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px 30px;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: white;
}

.contact-link i {
  font-size: 48px;
  margin-right: 25px;
  transition: all 0.3s ease;
}

.contact-link.linkedin i {
  color: #0077B5;
}

.contact-link.github i {
  color: #333;
}

.contact-link.email i {
  color: #EA4335;
}

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

.contact-link-content h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 700;
}

.contact-link-content p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.contact-section .footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-section .footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 14px;
}

/* Old background styling (kept for certification section) */
.background {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
}

.background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.background .container {
  position: relative;
  z-index: 1;
}

/* Form Enhancements */
.contacts__form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contacts__form-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-field {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  background: white;
}

.form-field:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.site-btn--form {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

/* Menu Removed - Navigation through scrolling only */

/* Portfolio Menu Enhancement */
.portfolio-menu a {
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.portfolio-menu a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
}

/* Loading Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section {
  animation: fadeIn 0.8s ease-out;
}

/* ================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ================================ */

/* Tablet and Below - 992px */
@media (max-width: 992px) {
  .section__title {
    font-size: 32px;
  }
  
  .section__description {
    font-size: 15px;
  }
  
  .resume-list__block {
    padding: 20px;
  }
  
  .project-card__title {
    font-size: 22px;
  }
}

/* Mobile Landscape and Below - 768px */
@media (max-width: 768px) {
  /* General Section Spacing */
  .section {
    padding: 40px 20px;
  }
  
  /* Typography Adjustments */
  body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
  }
  
  /* Add Side Margins to All Containers */
  .container {
    max-width: 100%;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Prevent Horizontal Scroll */
  body {
    overflow-x: hidden;
  }
  
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Better Image Handling */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Row Adjustments */
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .section__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .section__title::after {
    width: 40px;
  }
  
  .section__description {
    text-align: left;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  /* Header Section */
  .main-header {
    min-height: auto;
    padding: 60px 0;
  }
  
  .personal-profile__name {
    font-size: 28px;
  }
  
  .personal-profile__work {
    font-size: 16px;
  }
  
  .personal-profile__avatar img {
    max-width: 200px;
    margin: 0 auto 30px;
    display: block;
  }
  
  /* Resume Blocks */
  .resume-list__block {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .resume-list__block:hover {
    transform: translateX(5px);
  }
  
  .resume-list__block-title {
    font-size: 18px;
  }
  
  .resume-list__block ul {
    padding-left: 20px;
  }
  
  .resume-list__block ul li {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  /* Skills Section */
  .progress-list__skill {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .progress-list__skill-title {
    font-size: 14px;
  }
  
  .progress-list__skill-value {
    font-size: 13px;
  }
  
  /* Project Cards */
  .project-card {
    padding: 20px 0;
    margin-bottom: 30px;
  }
  
  .project-card__img {
    margin-bottom: 20px;
    height: 300px;
  }
  
  .project-card__img img {
    height: 100%;
  }
  
  .project-card__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .project-card__description {
    font-size: 14px;
    text-align: left;
  }
  
  /* Tags */
  .tags {
    gap: 8px;
  }
  
  .tags li {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  /* Project Links */
  .project-card__link {
    font-size: 13px;
    padding: 8px 15px;
    margin-bottom: 10px;
  }
  
  /* Certification Section - Mobile Optimized */
  .slider-carousel {
    padding: 40px 20px;
  }
  
  .slider-carousel .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .slider-carousel__title {
    font-size: 28px;
    text-align: center;
  }
  
  .slider-carousel__caption {
    font-size: 15px;
    text-align: center;
    padding: 0 20px;
  }
  
  .carousel-inner {
    text-align: center;
  }
  
  .slider-carousel a {
    display: inline-block;
    margin: 10px;
  }
  
  .slider-carousel a img {
    max-width: 110px;
    width: 100%;
    height: auto;
    margin: 5px;
    display: block;
  }
  
  /* Center align certificates on mobile */
  #carouselTestimonials .row {
    justify-content: center;
  }
  
  #carouselTestimonials .col-10 {
    text-align: center;
  }
  
  /* Contact Section */
  .contact-section {
    padding: 50px 0;
  }
  
  .contact-section .section__title {
    font-size: 32px;
  }
  
  .contact-section .contact-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  .contact-link {
    padding: 20px;
  }
  
  .contact-link i {
    font-size: 36px;
    margin-right: 20px;
  }
  
  .contact-link-content h3 {
    font-size: 20px;
  }
  
  .contact-link-content p {
    font-size: 13px;
  }
  
  /* Download CV Button */
  .site-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  /* Portfolio Menu */
  .portfolio-menu ul {
    flex-wrap: wrap;
  }
  
  .portfolio-menu a {
    font-size: 13px;
    padding: 8px 15px;
  }
}

/* Mobile Portrait - 576px and Below */
@media (max-width: 576px) {
  /* Even Tighter Spacing with Margins */
  .section {
    padding: 30px 15px;
  }
  
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .section__title {
    font-size: 24px;
  }
  
  .section__description {
    font-size: 13px;
  }
  
  /* Header */
  .main-header {
    padding: 40px 15px;
  }
  
  .main-header .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .personal-profile__name {
    font-size: 24px;
  }
  
  .personal-profile__work {
    font-size: 14px;
  }
  
  .personal-profile__avatar img {
    max-width: 150px;
  }
  
  /* Skills */
  .progress-list__skill {
    padding: 12px;
  }
  
  /* Project Cards */
  .project-card {
    padding: 15px 0;
  }
  
  .project-card__img {
    height: 250px;
  }
  
  .project-card__img img {
    height: 100%;
  }
  
  .project-card__title {
    font-size: 18px;
  }
  
  .project-card__description {
    font-size: 13px;
  }
  
  .tags li {
    font-size: 10px;
    padding: 5px 10px;
  }
  
  /* Contact Section */
  .contact-section {
    padding: 40px 15px;
  }
  
  .contact-section .section__title {
    font-size: 26px;
  }
  
  .contact-section .contact-description {
    font-size: 14px;
    padding: 0 10px;
  }
  
  .contact-link {
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }
  
  .contact-link i {
    font-size: 48px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .contact-link-content h3 {
    font-size: 18px;
  }
  
  /* Certification Section - Better Mobile Layout */
  .slider-carousel {
    padding: 30px 15px;
  }
  
  .slider-carousel .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .slider-carousel__title {
    font-size: 24px;
  }
  
  .slider-carousel__caption {
    font-size: 14px;
  }
  
  .slider-carousel a {
    display: inline-block;
    margin: 8px;
  }
  
  .slider-carousel a img {
    max-width: 90px;
    margin: 5px auto;
  }
  
  /* Resume Block Lists */
  .resume-list__block ul li {
    font-size: 13px;
  }
}

/* Extra Small Devices - 400px and Below */
@media (max-width: 400px) {
  .section {
    padding: 25px 10px;
  }
  
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .section__title {
    font-size: 22px;
  }
  
  .personal-profile__name {
    font-size: 20px;
  }
  
  .project-card__title {
    font-size: 16px;
  }
  
  .project-card__img {
    height: 200px;
  }
  
  .project-card__img img {
    height: 100%;
  }
  
  .contact-link i {
    font-size: 40px;
  }
  
  .tags li {
    font-size: 9px;
    padding: 4px 8px;
  }
  
  /* Certification for very small screens */
  .slider-carousel {
    padding: 25px 10px;
  }
  
  .slider-carousel .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .slider-carousel a img {
    max-width: 80px;
  }
  
  .slider-carousel__title {
    font-size: 20px;
  }
}

/* Accessibility Improvements */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .menu,
  .mobile-menu,
  .style-switcher,
  .site-btn {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* Social Links Enhancement */
.personal-profile__social a {
  display: inline-block;
  margin: 0 10px;
  font-size: 24px;
  transition: all 0.3s ease;
}

.personal-profile__social a:hover {
  transform: scale(1.2) translateY(-3px);
}

.contacts__social {
  margin-top: 20px;
}

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

.contacts__social li {
  margin-bottom: 10px;
}

.contacts__social a {
  position: relative;
  padding: 5px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #a8b5ff;
}

.contacts__social a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #a8b5ff, #c7b3ff);
  transition: width 0.3s ease;
}

.contacts__social a:hover {
  color: #c7b3ff;
}

.contacts__social a:hover::after {
  width: 100%;
}

/* Footer styling for dark backgrounds */
.footer {
  margin-top: 30px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

