/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  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";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #149ddd; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #a8a9b4;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -300px;
  }
}

.header.header-show {
  left: 0 !important;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

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

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

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

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

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

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

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

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

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

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  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: var(--background-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

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

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

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

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
}

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

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.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;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.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;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  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 var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.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: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

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

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}
/* Custom adjustments */
.about .about-photo {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #ffffff;
}

.about .content h2 {
  font-weight: 700;
  font-size: 26px;
}

.about .content ul li {
  padding-bottom: 16px;
  align-items: flex-start;
}

.about .content ul strong {
  min-width: 86px;
  display: inline-block;
}

.skills .container[data-aos] {
  max-width: 1080px;
}

.skill-card {
  height: 100%;
  padding: 18px 18px 16px;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 86%);
  box-shadow: 0 8px 24px rgba(5, 13, 24, .05);
}

.skill-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--heading-color);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
}

.resume .resume-item {
  padding-bottom: 22px;
  margin-top: -2px;
}

.resume .resume-item ul li {
  padding-bottom: 7px;
  line-height: 1.55;
}

.resume .resume-title-spacer {
  margin-top: 58px;
}

.contact .info-wrap,
.contact-form-card {
  padding: 30px;
  height: 100%;
}

.contact .info-item {
  margin-bottom: 24px;
}

.contact-form-card .form-control {
  border-radius: 8px;
  padding: 12px 14px;
}

@media (max-width: 991px) {
  .resume .resume-title-spacer {
    margin-top: 0;
  }
}

/* Latest requested refinements */
.header .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.header .social-links a {
  margin: 0;
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.hero .container {
  max-width: 1120px;
}

.hero-content {
  max-width: 760px;
}

.hero-summary {
  margin-top: 22px;
  max-width: 720px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent-color);
  background: color-mix(in srgb, var(--background-color), transparent 72%);
  border-radius: 0 16px 16px 0;
  backdrop-filter: blur(2px);
}

.hero-summary p {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--default-color), transparent 8%);
}

.hero-summary p:last-child {
  margin-bottom: 0;
}

.skills.section {
  padding-top: 45px;
  padding-bottom: 45px;
}

.skills .section-title {
  padding-bottom: 28px;
}

.skills .container[data-aos] {
  max-width: 980px;
}

.skill-card {
  padding: 14px 15px 13px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(5, 13, 24, .045);
}

.skill-card h4 {
  font-size: 15px;
  margin-bottom: 9px;
}

.skill-tags {
  gap: 6px;
}

.skill-tags span {
  padding: 5px 8px;
  font-size: 12px;
}

.resume .row {
  align-items: flex-start;
}

.resume .resume-item {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 18px 20px 18px 24px;
  margin-bottom: 18px;
  border-left: 3px solid var(--accent-color);
  box-shadow: 0 8px 22px rgba(5, 13, 24, .04);
}

.resume .resume-item::before {
  left: -9px;
  top: 23px;
}

.resume .resume-item ul {
  margin-bottom: 0;
}

.resume .resume-item ul li {
  padding-bottom: 5px;
  line-height: 1.45;
}

.resume .resume-title {
  margin-top: 4px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .hero-summary {
    padding: 16px 18px;
    margin-top: 18px;
  }

  .hero-summary p {
    font-size: 15px;
    line-height: 1.55;
  }
}

/* Final visual polish */
.header .social-links {
  max-width: 245px;
  margin-left: auto;
  margin-right: auto;
  gap: 9px;
}

.header .social-links a {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.header .social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 157, 221, 0.25);
}

.header .social-links .phone-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(5px);
  background: #111827;
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 20;
}

.header .social-links .phone-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

.header .social-links .copy-phone:hover .phone-tooltip,
.header .social-links .copy-phone.copied .phone-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header .social-links .copy-phone.copied .phone-tooltip {
  color: #8ee6ff;
}

.hero img {
  object-position: center center;
}

.hero:before {
  background: linear-gradient(90deg, rgba(5, 13, 24, .82) 0%, rgba(5, 13, 24, .50) 42%, rgba(5, 13, 24, .62) 100%);
}

.hero .container {
  max-width: 1180px;
}

.hero-balanced {
  width: 100%;
}

.hero-intro {
  max-width: 620px;
}

.hero-intro h2 {
  text-shadow: 0 6px 28px rgba(0, 0, 0, .3);
  margin-top: 40px;
}

.hero-text-grid {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(260px, 390px);
  justify-content: space-between;
  gap: 28px;
  margin-top: 95px;
}

.hero-summary {
  margin-top: 0;
  max-width: none;
  padding: 18px 20px;
  border-left: 0;
  border-radius: 18px;
  background: rgba(5, 13, 24, .48);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
  backdrop-filter: blur(5px);
}

.hero-summary-left {
  justify-self: start;
}

.hero-summary-right {
  justify-self: end;
}

.hero-summary p {
  font-size: 16px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .92);
}

.contact .info-wrap,
.contact-form-card {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 86%);
  box-shadow: 0 20px 55px rgba(5, 13, 24, .08);
}

.contact-form-card {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--accent-color), transparent 97%) 100%);
}

.contact-form-title {
  margin-bottom: 24px;
}

.contact-form-title span {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-form-title h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.contact-form-title p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
}

.contact-form-card label {
  font-weight: 700;
  color: var(--heading-color);
  font-size: 14px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 16px;
  z-index: 2;
}

.contact-form-card .input-icon-wrap .form-control {
  padding-left: 42px;
}

.contact-form-card .form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 84%);
  background: #fff;
  transition: all .25s ease;
}

.contact-form-card .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 88%);
}

.contact-form-card textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-form-card button[type="submit"] {
  border: 0;
  background: var(--accent-color);
  transition: all .25s ease;
}

.contact-form-card button[type="submit"]:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent-color), #000 12%);
}

.form-success-message {
  color: #1aaf5d;
  display: none;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (max-width: 1199px) {
  .hero-text-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-top: 34px;
  }

  .hero-summary-left,
  .hero-summary-right {
    justify-self: stretch;
  }
}

@media (max-width: 768px) {
  .hero:before {
    background: rgba(5, 13, 24, .70);
  }

  .hero-text-grid {
    gap: 14px;
  }

  .hero-summary {
    border-radius: 14px;
  }
}

/* Requested layout update */
.hero-text-right-only {
  grid-template-columns: minmax(320px, 460px);
  justify-content: end;
  margin-top: 42px;
  max-width: 100%;
}

.hero-text-right-only .hero-summary {
  justify-self: end;
  max-width: 460px;
  background: rgba(5, 13, 24, .58);
  border-left: 4px solid var(--accent-color);
}

.hero-text-right-only .hero-summary p {
  font-size: 15.5px;
  line-height: 1.7;
}

.contact-form-only {
  max-width: 880px;
  margin: 0 auto;
  padding: 38px;
}

.contact-form-only .form-control {
  min-height: 48px;
}

.contact-form-only textarea.form-control {
  min-height: 170px;
}

.portfolio .portfolio-content {
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(5, 13, 24, .08);
  background: var(--surface-color);
}

.portfolio .portfolio-content img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .hero-text-right-only {
    max-width: 560px;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .hero-text-right-only {
    margin-top: 28px;
    max-width: 100%;
  }

  .hero-text-right-only .hero-summary {
    max-width: 100%;
  }

  .contact-form-only {
    padding: 24px;
  }
}


/* Latest user adjustments: project previews, contact without heading, hero text reposition */
.contact.section {
  padding-top: 70px;
}

.contact .section-title {
  display: none !important;
}

.hero .container {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content.hero-balanced {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: 48px;
}

.hero-intro {
  align-self: center;
  margin-top: -40px;
}

.hero-text-right-only {
  display: block;
  margin: 0 0 0 auto;
  max-width: 470px;
}

.hero-text-right-only .hero-summary {
  max-width: 470px;
  margin: 0;
  padding: 22px 24px;
  background: rgba(5, 13, 24, .52);
  border-left: 4px solid var(--accent-color);
  border-radius: 18px;
}

.hero-text-right-only .hero-summary p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.portfolio .portfolio-content img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 1199px) {
  .hero-content.hero-balanced {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-intro {
    margin-top: 0;
  }
  .hero-text-right-only {
    margin-left: 0;
    max-width: 620px;
  }
  .hero-text-right-only .hero-summary {
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    min-height: 100vh;
    align-items: flex-end;
    padding-bottom: 70px;
  }
  .hero-content.hero-balanced {
    gap: 18px;
  }
  .hero-text-right-only .hero-summary {
    padding: 18px;
  }
  .hero-text-right-only .hero-summary p {
    font-size: 14.5px;
    line-height: 1.6;
  }
}

/* FINAL FIX: move the Home hero description text clearly to the right */
#hero .hero-content.hero-balanced {
  max-width: none !important;
  width: 100% !important;
}

#hero .hero-text-right-only {
  margin-left: auto !important;
  margin-right: 180px !important;
}

#hero .hero-text-right-only .hero-summary {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-left: clamp(54px, 7vw, 92px) !important;
}

@media (min-width: 1200px) {
  #hero .container {
    max-width: 1320px !important;
    padding-right: 12px !important;
  }

  #hero .hero-content.hero-balanced {
    display: grid !important;
    grid-template-columns: 1fr 560px !important;
    gap: 80px !important;
  }

  #hero .hero-text-right-only {
    justify-self: end !important;
    max-width: 560px !important;
    transform: translateX(110px) !important;
  }

  #hero .hero-text-right-only .hero-summary {
    max-width: 560px !important;
  }
}

@media (max-width: 1199px) {
  #hero .hero-text-right-only {
    width: calc(100% - 28px) !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  #hero .hero-text-right-only {
    width: 100% !important;
  }

  #hero .hero-text-right-only .hero-summary {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ================================================================
   SHOHRUH ABDURAHMON — PREMIUM DESIGN LAYER
   Appended on top of original iPortfolio CSS
   ================================================================ */

/* ── Font override ── */
:root {
  --default-font: "DM Sans", system-ui, sans-serif;
  --heading-font: "Syne", sans-serif;
  --nav-font: "DM Sans", sans-serif;
  --sa-fira: "Fira Code", monospace;
  --sa-accent: #149ddd;
  --sa-accent2: #0fd4a0;
  --sa-accent3: #f472b6;
  --sa-grad: linear-gradient(135deg, #149ddd 0%, #0fd4a0 100%);
  --sa-glow: rgba(20, 157, 221, 0.35);
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #040b14; }
::-webkit-scrollbar-thumb { background: var(--sa-accent); border-radius: 3px; }

/* ── Fira Code helper ── */
.sa-fira { font-family: var(--sa-fira) !important; }

/* ════════════════════════════════════════
   SIDEBAR / HEADER
════════════════════════════════════════ */
.header {
  background: rgba(4, 11, 20, 0.96) !important;
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(20,157,221,.12) !important;
  box-shadow: 4px 0 24px rgba(0,0,0,.4);
}

/* Avatar with animated ring */
.sa-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 4px;
}
.sa-avatar-wrap img {
  position: relative;
  z-index: 2;
  width: 112px !important;
  border: 3px solid #040b14 !important;
  box-shadow: 0 0 0 3px var(--sa-accent), 0 8px 30px rgba(20,157,221,.35) !important;
  transition: transform .4s, box-shadow .4s;
}
.sa-avatar-wrap img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px var(--sa-accent2), 0 12px 40px rgba(15,212,160,.4) !important;
}
.sa-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(20,157,221,.35);
  animation: sa-spin 14s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }

/* Role badge */
.sa-role-badge {
  text-align: center;
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: var(--sa-accent);
  letter-spacing: .06em;
}
.sa-role-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sa-accent2);
  box-shadow: 0 0 0 3px rgba(15,212,160,.2);
  animation: sa-pulse 2s ease-in-out infinite;
}
@keyframes sa-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(15,212,160,.2); }
  50%      { box-shadow: 0 0 0 7px rgba(15,212,160,.0); }
}

/* Nav links */
.navmenu a, .navmenu a:focus {
  font-size: 14px !important;
  padding: 11px 12px !important;
  border-radius: 10px;
  transition: all .25s !important;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.navmenu a:hover, .navmenu .active, .navmenu .active:focus {
  background: rgba(20,157,221,.1) !important;
  border-color: rgba(20,157,221,.22) !important;
  color: #fff !important;
  padding-left: 18px !important;
}
.navmenu a .navicon { color: var(--sa-accent); }

/* Sidebar footer chips */
.sa-sidebar-footer {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sa-info-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #7a8aaa;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.sa-info-chip i { font-size: 10px; }
.sa-available { color: var(--sa-accent2) !important; border-color: rgba(15,212,160,.18) !important; }
.sa-available i { color: var(--sa-accent2); }

/* Social links */
.header .social-links a {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #ccd !important;
  transition: all .3s !important;
}
.header .social-links a:hover {
  background: var(--sa-accent) !important;
  color: #fff !important;
  border-color: var(--sa-accent) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px var(--sa-glow) !important;
}

/* ════════════════════════════════════════
   SECTION LABELS
════════════════════════════════════════ */
.sa-section-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--sa-accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: .85;
}
.section-title h2 {
  background: linear-gradient(135deg, var(--heading-color) 0%, color-mix(in srgb,var(--heading-color),#149ddd 35%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  background: #040b14;
}
.hero:before {
  background: linear-gradient(110deg, rgba(4,11,20,.88) 0%, rgba(4,11,20,.52) 55%, rgba(4,11,20,.72) 100%) !important;
}

/* Greeting line */
.sa-hero-greeting {
  margin-bottom: 14px;
}
.sa-greeting-code {
  font-size: 13px;
  color: var(--sa-accent2);
  letter-spacing: .08em;
}

/* Name */
.hero h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.sa-name-accent {
  background: var(--sa-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typed line */
.sa-hero-typed-line {
  font-size: 1.25rem !important;
  margin: 8px 0 24px !important;
  color: rgba(255,255,255,.7) !important;
}
.sa-hero-typed-line .typed {
  color: var(--sa-accent) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--sa-accent) !important;
}

/* Stats row */
.sa-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.sa-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sa-stat-num {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sa-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sa-stat-divider {
  width: 1px; height: 32px;
  background: rgba(255,255,255,.15);
}

/* CTA buttons */
.sa-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .3s;
  border: none;
  cursor: pointer;
}
.sa-btn-primary {
  background: var(--sa-grad);
  color: #fff;
  box-shadow: 0 4px 18px var(--sa-glow);
}
.sa-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--sa-glow);
}
.sa-btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.sa-btn-ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero right card */
.sa-hero-card {
  background: rgba(4,11,20,.58) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-left: 4px solid var(--sa-accent) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  padding: 24px 26px !important;
  transition: box-shadow .4s, transform .4s;
}
.sa-hero-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(20,157,221,.2);
}
.sa-card-label {
  font-size: 11px;
  color: var(--sa-accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .8;
}
.sa-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sa-tech-row span {
  font-family: var(--sa-fira);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(20,157,221,.12);
  color: var(--sa-accent);
  border: 1px solid rgba(20,157,221,.22);
}

/* ════════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
.sa-skill-card {
  position: relative;
  overflow: hidden;
  transition: all .35s !important;
  border: 1px solid rgba(20,157,221,.14) !important;
}
.sa-skill-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--sa-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.sa-skill-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.15), 0 0 0 1px rgba(20,157,221,.25) !important;
}
.sa-skill-card:hover::before { transform: scaleX(1); }

.sa-skill-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(20,157,221,.1);
  border: 1px solid rgba(20,157,221,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--sa-accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.skill-card h4 {
  font-family: var(--heading-font) !important;
  font-weight: 700 !important;
}

.skill-tags span {
  font-family: var(--sa-fira) !important;
  font-size: 11.5px !important;
  transition: all .2s;
  cursor: default;
}
.skill-tags span:hover {
  background: var(--sa-accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   RESUME
════════════════════════════════════════ */
.resume .resume-title {
  font-family: var(--heading-font) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0;
}
.resume .resume-item {
  transition: box-shadow .3s, transform .3s;
}
.resume .resume-item:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08), -2px 0 0 var(--sa-accent) !important;
}
.resume .resume-item h4 {
  font-family: var(--heading-font) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--heading-color) !important;
}
.resume .resume-item h5 {
  font-family: var(--sa-fira) !important;
  font-size: 12px !important;
  color: var(--sa-accent) !important;
  background: rgba(20,157,221,.1) !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}

/* ════════════════════════════════════════
   PROJECTS
════════════════════════════════════════ */
.sa-project-card {
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(20,157,221,.1) !important;
  box-shadow: 0 8px 24px rgba(5,13,24,.07) !important;
  transition: all .35s !important;
}
.sa-project-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(20,157,221,.3) !important;
  box-shadow: 0 20px 50px rgba(5,13,24,.18) !important;
}
.sa-project-card img {
  transition: transform .5s !important;
}
.sa-project-card:hover img {
  transform: scale(1.06) !important;
}
.portfolio .portfolio-content .portfolio-info {
  border-radius: 14px;
  background: rgba(4,11,20,.82) !important;
  backdrop-filter: blur(4px);
}
.portfolio .portfolio-content .portfolio-info h4 {
  font-family: var(--heading-font) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
}
.portfolio .portfolio-content .portfolio-info p {
  font-family: var(--sa-fira) !important;
  font-size: 11px !important;
  color: rgba(255,255,255,.65) !important;
  bottom: 14px;
}
.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  transition: all .25s !important;
  font-size: 22px !important;
}
.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--sa-accent) !important;
  transform: scale(1.15);
}

/* Section portfolio title */
.portfolio h2 {
  font-family: var(--heading-font) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--heading-color) 0%, #149ddd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

/* ════════════════════════════════════════
   CONTACT / FORM
════════════════════════════════════════ */
.contact-form-title span {
  font-family: var(--sa-fira) !important;
  font-size: 12px !important;
  letter-spacing: .1em;
}
.contact-form-title h3 {
  font-family: var(--heading-font) !important;
  font-weight: 800 !important;
}
.sa-submit-btn {
  font-family: var(--heading-font) !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  letter-spacing: .02em;
  transition: all .3s !important;
}
.sa-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px var(--sa-glow) !important;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  font-family: var(--sa-fira);
  font-size: 12px;
}
.footer strong {
  background: var(--sa-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════
   SCROLL TOP
════════════════════════════════════════ */
.scroll-top {
  border-radius: 12px !important;
  background: var(--sa-grad) !important;
  box-shadow: 0 4px 18px var(--sa-glow) !important;
  transition: all .35s !important;
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--sa-glow) !important;
}

/* ════════════════════════════════════════
   AOS OVERRIDE — snappier
════════════════════════════════════════ */
[data-aos] { transition-duration: 550ms !important; }

/* ════════════════════════════════════════
   PRELOADER — branded
════════════════════════════════════════ */
#preloader {
  background: #040b14 !important;
}
#preloader:before {
  border-color: var(--sa-accent) transparent var(--sa-accent2) transparent !important;
  width: 50px !important; height: 50px !important;
  top: calc(50% - 25px) !important; left: calc(50% - 25px) !important;
}


/* ════════════════════════════════════════
   FIX: Hero right card — text overflow
════════════════════════════════════════ */

/* Card o'zining ichida to'liq joy olsin */
.sa-hero-card {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
}

.sa-hero-card p {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,.88) !important;
  margin-bottom: 10px !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

.sa-hero-card p:last-of-type {
  margin-bottom: 0 !important;
}

/* Grid ustun — o'ng tomon cardni qisqartirmasin */
.hero-text-right-only {
  min-width: 0 !important;
  width: 100% !important;
}

.hero-text-right-only .hero-summary {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px 22px !important;
  box-sizing: border-box !important;
}

/* Desktop: hero grid ikkala ustun matn uchun joy bersin */
@media (min-width: 1200px) {
  #hero .hero-content.hero-balanced {
    grid-template-columns: 1fr 440px !important;
    gap: 160px !important;
  }

  #hero .hero-text-right-only {
    transform: none !important;
    max-width: 440px !important;
    width: 440px !important;
  }

  #hero .hero-text-right-only .hero-summary {
    max-width: 440px !important;
  }
}

@media (min-width: 1400px) {
  #hero .hero-content.hero-balanced {
    grid-template-columns: 1fr 500px !important;
    gap: 180px !important;
  }

  #hero .hero-text-right-only {
    max-width: 500px !important;
    width: 500px !important;
  }

  #hero .hero-text-right-only .hero-summary {
    max-width: 500px !important;
  }
}

/* Medium screens */
@media (max-width: 1199px) {
  #hero .hero-text-right-only {
    max-width: 100% !important;
    width: 100% !important;
    transform: none !important;
  }

  #hero .hero-text-right-only .hero-summary {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .sa-hero-card p {
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  .sa-hero-card p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }
}


/* ════════════════════════════════════════
   FIX: Hero height + image crop + card size
════════════════════════════════════════ */

/* Hero section balandligini kamaytirish */
#hero.hero {
  min-height: 82vh !important;
  padding: 60px 0 !important;
}

#hero .hero img {
  object-position: center 30% !important;
}

/* Desktop: grid — o'ng ustun torroq */
@media (min-width: 1200px) {
  #hero .hero-content.hero-balanced {
    grid-template-columns: 1fr 320px !important;
    gap: 40px !important;
    align-items: center !important;
  }

  #hero .hero-text-right-only {
    max-width: 320px !important;
    width: 320px !important;
    transform: none !important;
  }

  #hero .hero-text-right-only .hero-summary {
    max-width: 320px !important;
    padding: 18px 16px !important;
  }
}

@media (min-width: 1400px) {
  #hero .hero-content.hero-balanced {
    grid-template-columns: 1fr 340px !important;
    gap: 48px !important;
  }

  #hero .hero-text-right-only {
    max-width: 340px !important;
    width: 340px !important;
  }

  #hero .hero-text-right-only .hero-summary {
    max-width: 340px !important;
  }
}

/* Card ichidagi matn — kichikroq, sig'adigan */
.sa-hero-card {
  padding: 16px 14px !important;
}

.sa-hero-card .sa-card-label {
  font-size: 10px !important;
  margin-bottom: 10px !important;
}

.sa-hero-card p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

.sa-hero-card .sa-tech-row {
  margin-top: 10px !important;
  padding-top: 10px !important;
  gap: 5px !important;
}

.sa-hero-card .sa-tech-row span {
  font-size: 10px !important;
  padding: 3px 7px !important;
}

/* hero .container min-height ham kamaytirish */
#hero .container {
  min-height: 82vh !important;
}


/* ════════════════════════════════════════
   ABOUT ME — animated lines
════════════════════════════════════════ */
@keyframes sa-line-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes sa-icon-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes sa-bar-grow {
  from { width: 0; }
  to   { width: 100%; }
}

.sa-about-card {
  overflow: hidden;
}

.sa-about-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sa-about-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  opacity: 0;
  animation: sa-line-in .45s cubic-bezier(.22,.68,0,1.2) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.12s);
  position: relative;
}

.sa-about-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sa-about-line::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(20,157,221,.35), transparent);
  animation: sa-bar-grow .6s ease forwards;
  animation-delay: calc(0.3s + var(--i) * 0.12s);
}

.sa-about-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  animation: sa-icon-pop .4s ease forwards;
  animation-delay: calc(0.1s + var(--i) * 0.12s);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(20,157,221,.4));
}

.sa-about-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  letter-spacing: .01em;
}

.sa-about-text strong {
  color: var(--sa-accent);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ════════════════════════════════════════
   MOBILE RESPONSIVE — Full Fix
   max-width: 768px va 480px
════════════════════════════════════════ */

/* ── Hero: mobile da bitta ustun, vertikal ── */
@media (max-width: 768px) {
  /* Hero to'liq balandlik, scroll yo'q */
  #hero.hero {
    min-height: 100svh !important;
    padding: 70px 0 40px !important;
  }

  #hero .container {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Grid -> bitta ustun */
  #hero .hero-content.hero-balanced {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    width: 100% !important;
  }

  /* Shohruh Abdurahmon nomi */
  .hero h2 {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.1 !important;
    margin-top: 10px !important;
  }

  /* Typed subtitle */
  .sa-hero-typed-line {
    font-size: 1rem !important;
    margin: 6px 0 18px !important;
  }

  /* Stats row compact */
  .sa-hero-stats {
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  .sa-stat-num {
    font-size: 1.5rem !important;
  }

  .sa-stat-label {
    font-size: 10px !important;
  }

  /* CTA buttons full width */
  .sa-hero-cta {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .sa-btn {
    padding: 10px 18px !important;
    font-size: 0.82rem !important;
  }

  /* About card - full width, no gap issues */
  #hero .hero-text-right-only {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  #hero .hero-text-right-only .hero-summary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 16px !important;
    margin: 0 !important;
  }

  /* About card lines smaller */
  .sa-about-icon {
    font-size: 16px !important;
  }

  .sa-about-text {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  .sa-about-line {
    padding: 9px 0 !important;
    gap: 10px !important;
  }

  /* Hero image darker overlay on mobile */
  .hero:before {
    background: rgba(4, 11, 20, 0.78) !important;
  }
}

/* ── Extra small screens ── */
@media (max-width: 480px) {
  #hero .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
  }

  .sa-btn {
    padding: 9px 14px !important;
    font-size: 0.78rem !important;
  }

  .sa-hero-stats {
    gap: 10px !important;
  }

  .sa-stat-num {
    font-size: 1.3rem !important;
  }

  .sa-about-text {
    font-size: 12px !important;
  }
}

/* ── Skills section mobile ── */
@media (max-width: 768px) {
  .sa-skill-card {
    padding: 16px !important;
  }

  .sa-skill-card .skill-name {
    font-size: 13px !important;
  }

  .section-title h2 {
    font-size: 1.6rem !important;
  }

  section, .section {
    padding: 50px 0 !important;
  }
}

/* ── Resume section mobile ── */
@media (max-width: 768px) {
  .resume .resume-item {
    padding-left: 18px !important;
  }

  .resume .resume-item h4 {
    font-size: 14px !important;
  }

  .resume .resume-item h5 {
    font-size: 12px !important;
  }

  .resume .resume-item p {
    font-size: 13px !important;
  }
}

/* ── Projects section mobile ── */
@media (max-width: 768px) {
  .portfolio-content {
    border-radius: 10px !important;
  }

  .portfolio-info h4 {
    font-size: 14px !important;
  }

  .portfolio-info p {
    font-size: 12px !important;
  }
}

/* ── Contact form mobile ── */
@media (max-width: 768px) {
  .contact-form-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .contact-form-only {
    padding: 20px 16px !important;
  }

  .contact-form-title h3 {
    font-size: 1.3rem !important;
  }

  .contact-form-card .form-control {
    font-size: 14px !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
  }

  .contact-form-card textarea.form-control {
    min-height: 130px !important;
  }

  .sa-submit-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
}

/* ── Header / sidebar mobile ── */
@media (max-width: 1199px) {
  /* Mobile nav overlay */
  .header {
    width: 300px !important;
  }

  /* Avatar kichikroq */
  .sa-avatar-wrap img {
    width: 85px !important;
  }

  /* Social links compact */
  .header .social-links {
    gap: 6px !important;
  }

  .header .social-links a {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }
}

/* ── Footer mobile ── */
@media (max-width: 768px) {
  .footer {
    padding: 28px 0 !important;
    text-align: center !important;
    font-size: 13px !important;
  }
}

/* ── General touch targets ── */
@media (max-width: 768px) {
  a, button {
    min-height: 40px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden !important;
  }

  .container {
    max-width: 100% !important;
  }
}

/* ════════════════════════════════════════
   MOBILE SIDEBAR — proper toggle fix
════════════════════════════════════════ */

/* Mobile da sidebar yashirilgan */
@media (max-width: 1199px) {

  /* Sidebar off-screen chapda */
  .header {
    left: -300px !important;
    width: 280px !important;
    z-index: 9998 !important;
    box-shadow: none;
    transition: left 0.3s ease, box-shadow 0.3s ease !important;
  }

  /* Ochilganda */
  .header.header-show {
    left: 0 !important;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.6) !important;
  }

  /* Main content sidebar margin yo'q */
  .header ~ main,
  .header ~ #footer {
    margin-left: 0 !important;
  }

  /* Overlay — sidebar ochiq bo'lganda qorong'i qatlam */
  body.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9997;
    animation: fadeInOverlay 0.25s ease;
  }

  @keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ── Toggle button — chapga o'tkazish ── */
@media (max-width: 1199px) {
  .header .header-toggle {
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    z-index: 99999 !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 22px !important;
    border-radius: 10px !important;
    background: var(--sa-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(20, 157, 221, 0.45) !important;
    transition: all 0.25s !important;
  }

  /* Sidebar ochiq bo'lganda X ikonka, button o'ngga siljiydi */
  .header.header-show .header-toggle {
    left: 238px !important;
    background: rgba(20, 157, 221, 0.25) !important;
    border: 1px solid rgba(20, 157, 221, 0.4) !important;
  }

  /* Hero va barcha sectionlar top padding — toggle button ustiga chiqmasin */
  #hero.hero {
    padding-top: 70px !important;
  }

  .main section:not(#hero) {
    scroll-margin-top: 60px;
  }
}

/* FIX: Home dagi // about me kartasini desktopda sal chaproqqa surish */
@media (min-width: 1200px) {
  #hero .hero-text-right-only {
    transform: translateX(-65px) !important;
  }
}

/* Tablet va mobile holatda karta to'liq kenglikda, markaziy oqimda qolsin */
@media (max-width: 1199px) {
  #hero .hero-text-right-only {
    transform: none !important;
  }
}

/* FIX: Home dagi Shohruh Abdurahmon va chap tomondagi hero yozuvlarini sal o'ngroq va pastroqqa surish */
@media (min-width: 1200px) {
  #hero .hero-intro {
    transform: translate(28px, 22px) !important;
  }
}

/* Tablet va mobile holatda joylashuv avvalgidek qolsin */
@media (max-width: 1199px) {
  #hero .hero-intro {
    transform: none !important;
  }
}


/* ==========================================================
   FINAL FIX: Contact form first-load visibility + responsive
   ========================================================== */

/* Contact form ba'zi brauzerlarda AOS ishga tushguncha opacity:0 bo'lib qolmasin */
#contact,
#contact .container,
#contact [data-aos],
#contact .aos-init,
#contact .aos-animate,
#contact .contact-form-card,
#contact #contact-form {
  opacity: 1 !important;
  visibility: visible !important;
}

#contact .container[data-aos] {
  transform: none !important;
}

/* Contact section har doim normal oqimda va ekran ichida tursin */
#contact.contact.section {
  display: block !important;
  overflow: visible !important;
  min-height: auto !important;
}

#contact .container {
  width: 100% !important;
}

#contact .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#contact .col-lg-8 {
  width: 100% !important;
  max-width: 860px !important;
}

/* Form card */
#contact .contact-form-card {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* Inputs mobileda konteynerdan chiqib ketmasin */
#contact input,
#contact textarea,
#contact select,
#contact button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#contact textarea {
  resize: vertical;
}

/* ==========================================================
   FINAL RESPONSIVE PASS
   ========================================================== */

/* Tablet va kichik laptop */
@media (max-width: 1199px) {
  html, body {
    overflow-x: hidden !important;
  }

  .main {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  section,
  .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container,
  .container-fluid {
    max-width: 100% !important;
  }

  #hero .hero-intro,
  #hero .hero-text-right-only {
    transform: none !important;
  }

  #hero .hero-content.hero-balanced {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile umumiy moslashuv */
@media (max-width: 768px) {
  body {
    font-size: 15px !important;
  }

  .container,
  .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero mobile: matnlar ekran ichida, o'qilishi qulay */
  #hero.hero {
    min-height: 100svh !important;
    height: auto !important;
    padding: 78px 0 38px !important;
  }

  #hero .container {
    min-height: 100svh !important;
    justify-content: center !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  #hero .hero-content.hero-balanced {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }

  #hero .hero-intro {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    text-align: left !important;
  }

  #hero .sa-hero-greeting {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
  }

  #hero h2,
  .hero h2 {
    font-size: clamp(2.45rem, 13vw, 4.2rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.05em !important;
    margin: 0 0 14px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  #hero .sa-name-accent {
    display: block !important;
  }

  #hero .sa-hero-typed-line {
    min-height: 30px !important;
    font-size: 1rem !important;
    margin: 4px 0 18px !important;
  }

  #hero .sa-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 18px !important;
    width: 100% !important;
  }

  #hero .sa-stat {
    min-width: 0 !important;
    padding-right: 6px !important;
  }

  #hero .sa-stat-num {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
    line-height: 1 !important;
  }

  #hero .sa-stat-label {
    font-size: 9px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #hero .sa-hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #hero .sa-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 10px !important;
    font-size: 0.86rem !important;
    white-space: nowrap !important;
  }

  /* About card mobile */
  #hero .hero-text-right-only {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  #hero .hero-text-right-only .hero-summary,
  #hero .sa-hero-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 16px !important;
  }

  #hero .sa-about-line {
    gap: 10px !important;
    padding: 9px 0 !important;
  }

  #hero .sa-about-text {
    font-size: 12.8px !important;
    line-height: 1.55 !important;
  }

  /* Portfolio cards and images */
  .portfolio .portfolio-content,
  .portfolio .portfolio-content img {
    width: 100% !important;
  }

  .portfolio .portfolio-content img {
    height: auto !important;
    min-height: 180px !important;
    object-fit: cover !important;
  }

  /* Contact form mobile */
  #contact.contact.section {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  #contact .col-lg-8 {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #contact .contact-form-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  #contact .contact-form-title {
    margin-bottom: 18px !important;
  }

  #contact .contact-form-title h3 {
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
  }

  #contact .contact-form-title p {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  #contact .row.gy-4 {
    --bs-gutter-y: 1rem !important;
  }

  #contact label {
    font-size: 0.9rem !important;
  }

  #contact .input-icon-wrap {
    width: 100% !important;
  }

  #contact .input-icon-wrap i {
    left: 14px !important;
  }

  #contact .form-control {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
  }

  #contact .input-icon-wrap .form-control {
    padding-left: 42px !important;
  }

  #contact textarea.form-control {
    min-height: 135px !important;
  }

  #contact .sa-submit-btn,
  #contact button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
  }

  .footer {
    text-align: center !important;
    padding: 18px 12px !important;
  }
}

/* Juda kichik telefonlar */
@media (max-width: 420px) {
  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #hero h2,
  .hero h2 {
    font-size: clamp(2.1rem, 12.5vw, 3.15rem) !important;
  }

  #hero .sa-hero-cta {
    grid-template-columns: 1fr !important;
  }

  #hero .sa-hero-stats {
    gap: 6px !important;
  }

  #hero .sa-stat-label {
    font-size: 8.5px !important;
  }

  #contact .contact-form-card {
    padding: 18px 12px !important;
  }
}


/* Telegram contact form states */
.form-error-message {
  color: #ff6b6b;
  display: none;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-form-card button[type="submit"]:disabled {
  opacity: .72;
  cursor: not-allowed;
  transform: none !important;
}


/* ==========================================================
   FINAL FIX: PDP project preview + mobile sidebar + brighter hero
   ========================================================== */

/* PDP Junior screenshot wide bo'lgani uchun project cardda chiroyli crop bo'lsin */
.portfolio .portfolio-content img[alt="PDP Junior"] {
  object-fit: cover !important;
  object-position: top center !important;
}

/* Home background rasmni sal yorqinroq qilish */
#hero > img,
.hero > img {
  filter: brightness(1.22) contrast(1.04) saturate(1.05) !important;
}

#hero.hero::before,
.hero::before {
  background: rgba(4, 11, 20, 0.42) !important;
}

/* Mobileda juda qorong'i ko'rinmasin */
@media (max-width: 768px) {
  #hero > img,
  .hero > img {
    filter: brightness(1.28) contrast(1.03) saturate(1.06) !important;
  }

  #hero.hero::before,
  .hero::before {
    background: rgba(4, 11, 20, 0.50) !important;
  }
}

/* Mobile sidebar: tugma bilan ochilib-yopiladigan offcanvas */
@media (max-width: 1199px) {
  .header {
    width: min(320px, 88vw) !important;
    left: 0 !important;
    transform: translateX(-105%) !important;
    transition: transform .32s ease, box-shadow .32s ease !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9998 !important;
    padding-bottom: 28px !important;
    border-right: 1px solid rgba(20,157,221,.45) !important;
  }

  .header.header-show {
    transform: translateX(0) !important;
    left: 0 !important;
    box-shadow: 18px 0 55px rgba(0,0,0,.38) !important;
  }

  /* Ochish tugmasi doim ko'rinib tursin */
  .header .header-toggle {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    background: linear-gradient(135deg, #00d4ff, #00c9a7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.26) !important;
    box-shadow: 0 12px 30px rgba(0, 212, 255, .25) !important;
    border-radius: 999px !important;
  }

  .header.header-show .header-toggle {
    left: min(calc(88vw - 58px), 262px) !important;
    background: rgba(20, 157, 221, 0.35) !important;
    backdrop-filter: blur(10px) !important;
  }

  body.sidebar-open {
    overflow: hidden !important;
  }

  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 16, .58);
    backdrop-filter: blur(3px);
    z-index: 9997;
  }

  .header .profile-img {
    margin-top: 52px !important;
  }

  .header .navmenu {
    padding-bottom: 10px !important;
  }

  .header .navmenu a {
    min-height: 48px !important;
  }
}

/* Kichik telefonlarda sidebar ichidagi elementlar ixchamroq bo'lsin */
@media (max-width: 420px) {
  .header {
    width: 86vw !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .header .profile-img img {
    width: 104px !important;
    height: 104px !important;
  }

  .header .logo h1,
  .header .sitename {
    font-size: 1.55rem !important;
    line-height: 1.12 !important;
  }

  .header .social-links a {
    width: 42px !important;
    height: 42px !important;
  }

  .header .navmenu a {
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
  }
}


/* ==========================================================
   FINAL OVERRIDE: desktop hero dark, mobile hero bright only
   + always-visible mobile menu button
   ========================================================== */

/* Desktopda oldingi ko'rinishga yaqinroq: sal darkroq */
@media (min-width: 769px) {
  #hero > img,
  .hero > img {
    filter: brightness(0.96) contrast(1.02) saturate(1.02) !important;
  }

  #hero.hero::before,
  .hero::before {
    background: rgba(4, 11, 20, 0.62) !important;
  }
}

/* Yorqinroq home background faqat mobile uchun */
@media (max-width: 768px) {
  #hero > img,
  .hero > img {
    filter: brightness(1.28) contrast(1.03) saturate(1.06) !important;
  }

  #hero.hero::before,
  .hero::before {
    background: rgba(4, 11, 20, 0.50) !important;
  }
}

/* Header ichida emas, tashqarida turgan real mobile menu button */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1199px) {
  .mobile-menu-toggle {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10050 !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #00d4ff, #00c9a7) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0, 212, 255, .28) !important;
    cursor: pointer !important;
    line-height: 1 !important;
  }

  .mobile-menu-toggle i {
    font-size: 26px !important;
    line-height: 1 !important;
  }

  body.sidebar-open .mobile-menu-toggle {
    left: min(calc(88vw - 58px), 266px) !important;
    background: rgba(20, 157, 221, .38) !important;
    backdrop-filter: blur(10px) !important;
  }

  /* Eski ichki header-toggle bo'lsa ham yashirib qo'yamiz */
  .header .header-toggle {
    display: none !important;
  }

  /* Sidebar hidden/open holatlari */
  #header.header {
    width: min(320px, 88vw) !important;
    left: 0 !important;
    transform: translateX(-106%) !important;
    transition: transform .32s ease, box-shadow .32s ease !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10000 !important;
  }

  #header.header.header-show {
    transform: translateX(0) !important;
    box-shadow: 18px 0 55px rgba(0,0,0,.40) !important;
  }

  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 16, .58);
    backdrop-filter: blur(3px);
    z-index: 9999;
  }

  #header .profile-img {
    margin-top: 28px !important;
  }
}

@media (max-width: 420px) {
  body.sidebar-open .mobile-menu-toggle {
    left: calc(86vw - 56px) !important;
  }
}
