/* RESET & ROOT */
* {
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  :root {
    --font-color: #fff;
    --header-bg: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    --link-hover: #00bfff;
    --section-bg-loixalar: #d174D2;
    --section-bg-jamoa: #e9e9e9;
    --item-bg: #eaeed6;
    --desc-bg: rgba(234, 214, 235, 0.95);
    --button-bg: #4e73df;
    --button-hover-bg: #2c5fce;
    --sms-bg: #fff;
    --sms-header: #f46464;
    --sms-user: #d4ffd2;
    --sms-me: #e1eaff;
    --contact-dark: #0e1e2d;
    --contact-mid: #122d46;
    --contact-light: #1b3b5a;
    --contact-accent: #00aaff;
    --text-color: #333;
  }
  
  /* HEADER */
  header {
    background-color: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1001;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffcc;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-links li a:hover {
    color: #00ffcc;
  }
  
  /* Hamburger */
  .hamburger {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
  }
  .close-btn {
      position: absolute;
      top: 1.2rem;
      right: 1rem;
      font-size: 1.5rem;
      color: #fff;
      cursor: pointer;
      list-style: none;
      display:none;
    }
  
  
  header.hide {
    transform: translateY(-100%);
    transition: transform 0.5s ease;
  }
  
  header.show {
    transform: translateY(0);
    transition: transform 0.5s ease;
  }
  
  /* NAVBAR */
 
  
  /* HOME SECTION */
  #home {
    background: url("resurs/bg2.jpg") center/cover no-repeat;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: space-around;
  }
  
  #home .continer {
    width: 60%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  #home h1 {
    width: 90%;
    font-size: 400%;
    text-align: center;
    padding: 5%;
    color: var(--font-color);
  }
  
  #orqafon_men {
    display: none;
    height: 70vh;
    right: 10px;
    bottom: 0;
  }
  
  /* FOOTER */
  .footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .footer img {
    width: 100px;
  }
  
  .footer #menyu {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  
  .footer #menyu a {
    display: flex;
    position: relative;
    padding: 0.2em 0;
    font-size: xx-large;
    color: var(--font-color);
    text-decoration: none;
    margin-right: 2vw;
    transition: 10s;
  }
  
  .footer #menyu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: var(--font-color);
    opacity: 1;
    transform: scale(0);
    transform-origin: center;
    transition: opacity 300ms, transform 300ms;
  }
  
  .footer #menyu a:hover::after {
    transform: scale(1);
  }
  
  /* ABOUT SECTION */
  #about {
    width: 100%;
    min-height: 100vh;
    background: var(--contact-light);

  }
  
  #about_me {
    width:100%;
    min-height: 100vh;
    background: var(--contact-dark);
    color:white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  #about_me img {
    height:70vh;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
    border:1px solid white;
  }
  
  .top-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  #about  .desc {
    width: 350px;
    padding: 30px;
    font-size: 16px;
    /* line-height: 0.7; */
    text-align: justify;
  }
  #about  .desc p{
    text-indent: 3ch;
    margin-top:15px;
  }
  #about  .desc h1{
    font-size: 25px;
    text-align: justify;
  }
  #about  .desc h1 span{
    color: #00bfff;
  }
  #about  .desc .icon{
    width:100%;
    text-align: center;
    margin-top: 15px;
  }
  #about  .desc .icon i{
    width:20%;
    font-size: 35px;
  }
  /* SPECIALTY */
  #my_specialty_design{
    width:100%;
    min-height: 100vh;
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
  }
  #my_specialty_design img{
    width:300px;
    padding: 35px;
  }
  #my_specialty {
    width:90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px 30px;

    border-top: 1px solid #e0e0e0;
  }
  
  .my_specialty {
    width:90%;
    max-width: 400px;
    height: 80px;
    background: #fff;
    padding: 20px;
    margin-top: 10px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
   
  }
  .my_specialty .logo{
    height: 100%;
    aspect-ratio: 1 / 1;
    background: var(--contact-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    border-radius: 16px 0 0 16px;
    color:white;
  }
  .my_specialty .logo i {
    font-size: 32px;
    color: white;
  }
  
  .my_specialty_desc {
    font-size: 15px;
    margin-left:10px;
  }
  
  .my_specialty_desc a {
    margin-right: 10px;
    margin-top: 6px;
    color: var(--contact-accent);
    text-decoration: none;
    font-weight: 500;
  }
  
  .my_specialty_desc a:hover {
    text-decoration: underline;
  }
  
  /* PROJECTS (LOIXALAR) */
  #loixalar {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--section-bg-loixalar);
  }
  
  #loixalar h1 {
    height: 20vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #loixalar .continer {
    width: 80%;
    min-height: 80vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
  }
  
  #loixalar .item {
    width: 30%;
    min-width: 300px;
    height: calc(33vh - 12px);
    background: var(--item-bg);
    border-radius: 15px;
    padding: 2vh;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  #loixalar .item span {
background-color: #00bfff;
width: calc(100% - 55px);
margin:5px;
padding:5px;
font-size: x-large;
position:absolute;
bottom: 2px;
display: flex;
justify-content: center;
z-index:5;
border-radius:5px;
}
  #loixalar .item img {
    width: 100%;
    height: calc(30vh - 12px);
    object-fit: cover;
  }
  

  
  
  
  /* SERVICES SECTION */

  .services-section{
    width:100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--button-bg);
    color: white;
  }

  .services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem;
    color:black;
  }
  
  .service-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    width: 220px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .service-card a {
    display: inline-block;
    margin-top: 10px;
    background: var(--contact-accent);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
  }
  
 /* CONTACT SECTION */
 #my_contact {
  max-width: 100vw;
  min-height:100vh;
  background-color: var(--contact-light);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.contact-left {
  width:90%;
  width:300px;
  height:calc(70vh - 60px);
  padding: 30px;
  background-color: var(--contact-dark);
  text-align: center;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color:white;
}

.contact-left img {
  width: 80%;
  border-radius: 20px;
  margin-bottom: 30px;
  object-fit: contain;
  border:1px solid white;
}

.contact-left p {
  font-size: 14px;
  margin: 10px 0;
}

.contact-left a {
  color: var(--contact-accent);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.social-icons {
  width:100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icons a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width:30px;
  height:30px;
  color: white;
  font-size: 18px;
  background-color: var(--contact-light);
  border-radius: 50%;
  transition: 0.3s;
  margin:5px;
}

.social-icons a:hover {
  background-color: var(--contact-accent);
}

.contact-right {
  background-color: var(--contact-mid);
  width:90%;
  height:calc(70vh - 80px);
  max-width:600px;
  padding: 40px;
}

.contact-right h2 {
  margin-bottom: 10px;
  font-size: 28px;
  color: white;
}

.contact-right p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  background-color: #0f2235;
  border: 1px solid var(--contact-light);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  flex: 1;
}

.contact-form button {
  padding: 12px;
  background-color: var(--contact-accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #008ecc;
}


#openIframeBtn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#iframeContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  flex-direction: column;
}

#iframeHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 20px;
}

#iframeTitle {
  font-weight: bold;
  font-size: 18px;
}

#closeIframeBtn {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: red;
}

#iframeContent {
  flex: 1;
  border: none;
  width: 100%;
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -350px;
    height: 100vh;
    width: 250px;
    background-color: #111;
    flex-direction: column;
    padding: 4rem 1.5rem 1rem;
    gap: 1.5rem;
    transition: left 0.3s ease-in-out;
    z-index: 1002;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
    display: block;
  }



  .mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
  }
.close-btn{
    display:block;
  } 
  .mobile-nav-backdrop.active {
    display: block;
  }

  #home .continer {
   width:100%;
  }
  #home h1 {
  font-size: 250%;
    }
    #about_me img{
        height: auto;
        width:80%;
        margin-top:20px;
    }

}
  
    