@font-face {
    font-family:"iran" ;
    src: url(./IRAN\ Yekan\ X\ VF.ttf);
  }
        
  :root {
      --primary-color: #2563eb;
      --secondary-color: #3b82f6;
      --background-color: #ffffff;
      --text-color: #1e293b;
      --shadow-color: rgba(0, 0, 0, 0.08);
      --shadow-hover: rgba(0, 0, 0, 0.15);
      --border-color: #f0f0f0;
      --transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;   
  }
  
  body {
    font-family: "iran";
      background-color: #121212;
      color: var(--text-color);
      line-height: 1.6;
      overflow-x: hidden;
      height: 2000px; 
  }

 
  .header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    background-color: #1A1A34; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}
  
  .header.sticky {
      box-shadow: 0 8px 20px var(--shadow-color);
  }
  
  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 30px;
  }
  
  .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 80px;
      transition: var(--transition);
  }
  
  .header.sticky .navbar {
      height: 70px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    background-color: #ffffff; /* پس‌زمینه کاملاً سفید */
    padding: 3px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.15);
}

.logo:hover {
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.logo img {
    height: 60px; /* کوچکتر شده */
    width: 55px; /* کوچکتر شده */
    transition: all 0.3s ease;
}

.header.sticky .logo {
    padding: 2px 6px; /* کوچکتر در حالت چسبنده */
}

.header.sticky .logo img {
    height: 50px;
    width: 45px;
}
  
  .nav-menu {
      display: flex;
      list-style: none;
  }
  
  .nav-item {
      margin-right: 35px;
      position: relative;
  }
  
  .nav-link {
      color: #fff;
      font-weight: 500;
      font-size: 1.05rem;
      text-decoration: none;
      transition: var(--transition);
      position: relative;
      padding: 8px 0;
  }
  
  .nav-link:hover {
      color: var(--primary-color);
  }
  
  .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 0;
      height: 2px;
      background-color: var(--primary-color);
      transition: var(--transition);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
      width: 100%;
  }
  
  .nav-icon {
      vertical-align: middle;
      margin-left: 5px;
      font-size: 1.2rem;
  }
  
  
  .nav-line {
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(to right, transparent, var(--primary-color), transparent);
      opacity: 0.5;
  }
  
  
  .nav-item {
      opacity: 0;
      transform: translateY(-20px);
      animation: fadeInDown 0.5s forwards;
  }
  
  .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .nav-item:nth-child(2) { animation-delay: 0.2s; }
  .nav-item:nth-child(3) { animation-delay: 0.3s; }
  .nav-item:nth-child(4) { animation-delay: 0.4s; }
  .nav-item:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes fadeInDown {
      0% {
          opacity: 0;
          transform: translateY(-20px);
      }
      100% {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4e54c8;
    transition: width 0.3s ease;
}

.nav-link.active {
    color: #fdc28d;
}

.nav-link.active::after {
    width: 100%;
}

section {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.section-appear {
    animation: sectionAppear 0.8s forwards;
}

@keyframes sectionAppear {
    0% {
        opacity: 0.7;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
    transform: skewX(-30deg);
}

.btn:hover::before {
    transform: skewX(-30deg) translateX(200%);
}

.btn:hover i {
    transform: translateY(-3px);
}

.btn i {
    transition: transform 0.3s ease;
}


.btn-clicked {
    animation: buttonPulse 0.3s ease;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}


.btn-primary:hover, .btn-outline:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active, .btn-outline:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
  
 
  .hamburger {
      display: none;
      cursor: pointer;
      z-index: 200;
  }
  
  .bar {
      display: block;
      width: 25px;
      height: 3px;
      margin: 5px auto;
      background-color: var(--text-color);
      transition: var(--transition);
      border-radius: 3px;
  }
  .hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 35, 0.7), rgba(15, 15, 35, 0.9), rgb(15, 15, 34));
    z-index: 1;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 2s ease forwards !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    max-width: 800px;
    margin: 0 auto; 
}
.hero-text {
    text-align: center; 
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.highlight {
    position: relative;
    color: var(--primary-color);
}



.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
    color: antiquewhite;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center; 
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}


.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 97, 252, 0.5);
}

.btn-outline {
    border: 2px solid red;
    color: var(--light-color);
}

.btn-outline:hover {
    background-color: #981818;
    color: white;
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center; 
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    color: white;
}

.scroll-indicator {
    text-align: center;
    animation: bounce 2s infinite;
    margin-top: 2rem;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #0F0F23, #0C0C1C, #05050d);
    color: #fff;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233f3f5f' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title .highlight {
    color: #ff3a5e;
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: #ff3a5e;
    bottom: -5px;
    left: 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(255, 58, 94, 0.5);
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ff3a5e, #ff7700);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 58, 94, 0.3);
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.about-image-wrapper {
    flex: 0 0 40%;
    position: relative;
    padding: 20px;
}

.about-image-container {
    position: relative;
    z-index: 2;
}

.image-hex {
    width: 320px;
    height: 320px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff3a5e, #ff7700);
    box-shadow: 0 20px 40px rgba(255, 58, 94, 0.4);
    transform: rotate(0deg);
    transition: transform 0.5s ease-in-out;
}

.image-hex::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 15px;
    background: #2c2c44;
    z-index: 0;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transform: scale(0.95);
    transition: all 0.5s ease;
    z-index: 1;
    filter: contrast(1.1) brightness(1.05);
}

.about-image-container:hover .image-hex {
    transform: rotate(5deg);
}

.about-image-container:hover .profile-image {
    transform: scale(1);
}

.image-backdrop {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 58, 94, 0.3), rgba(255, 119, 0, 0.3));
    border-radius: 50%;
    top: -40px;
    left: -40px;
    z-index: -1;
    animation: float 6s ease-in-out infinite alternate;
    filter: blur(20px);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff3a5e, #ff7700);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(255, 58, 94, 0.5);
    z-index: 3;
    animation: pulse 2s infinite;
}

.exp-years {
    font-size: 2rem;
    line-height: 1;
}

.exp-text {
    font-size: 0.7rem;
}

.tech-icons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icon i {
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-10px);
    background: rgba(255, 58, 94, 0.2);
    box-shadow: 0 10px 20px rgba(255, 58, 94, 0.3);
    border-color: rgba(255, 58, 94, 0.3);
}

.tech-icon:nth-child(1):hover i { color: #e44d26; }
.tech-icon:nth-child(2):hover i { color: #264de4; }
.tech-icon:nth-child(3):hover i { color: #f7df1e; }
.tech-icon:nth-child(4):hover i { color: #61dafb; }
.tech-icon:nth-child(5):hover i { color: #68a063; }

.about-content {
    flex: 0 0 55%;
    padding: 20px;
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-subtitle::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #ff3a5e, #ff7700);
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(255, 58, 94, 0.3);
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccd;
    margin-bottom: 20px;
    text-align: justify;
}

.about-text .highlight {
    color: #ff3a5e;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 58, 94, 0.3);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
}

.feature-item {
    flex: 0 0 50%;
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff3a5e, #ff7700);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    box-shadow: 0 8px 16px rgba(255, 58, 94, 0.3);
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.feature-text p {
    font-size: 0.9rem;
    color: #aab;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn i {
    margin-left: 8px;
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff3a5e, #ff7700);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 58, 94, 0.3);
}





.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 58, 94, 0.4);
}

.btn-outline:hover {
    border-color: #ff3a5e;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 58, 94, 0.2);
}


@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(10px) rotate(-5deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(255, 58, 94, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 25px rgba(255, 58, 94, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(255, 58, 94, 0.3);
    }
}


.section-title .highlight, .about-text .highlight {
    position: relative;
    display: inline-block;
}

.section-title .highlight::before, .about-text .highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: blur(5px);
    opacity: 0.7;
    background: rgba(255, 58, 94, 0.3);
    z-index: -1;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #1e1e2f, transparent);
    z-index: 1;
}



.skills-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a1a, #12122a);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgxMzUpIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIiBmaWxsPSIjZmZmZmZmMTAiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
    opacity: 0.1;
    z-index: 1;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
    direction: ltr;
}

.skills-text {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skills-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skills-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.skills-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.skills-description {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: end;
}

.skills-tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs-header {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.2rem 0.5rem;
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tab-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tab-btn:hover {
    opacity: 1;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    opacity: 1;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 2rem;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.2);
    z-index: 0;
    transition: all 0.5s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.skill-card:hover::before {
    transform: scale(4);
    opacity: 0.1;
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.skill-icon i {
    font-size: 1.8rem;
    color: white;
}

.skill-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.skill-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.skill-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
}

.skill-progress {
    width: 100%;
    position: relative;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
}

.percent {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skills-3d {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.skills-sphere-container {
    width: 300px;
    height: 300px;
    position: relative;
}

.skills-sphere {
    width: 100%;
    height: 100%;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
    }
}


:root {
    --primary-color: #4d79ff;
    --primary-rgb: 77, 121, 255;
    --secondary-color: #6a11cb;
    --text-light: #ffffff;
    --text-medium: rgba(255, 255, 255, 0.8);
    --text-dark: rgba(255, 255, 255, 0.6);
}
.works{
    background:#101026 ;
}
.container-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
}

.portfolio-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.portfolio-heading h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.portfolio-heading h2:after {
    content: "";
    position: absolute;
    width: 50%;
    height: 3px;
    background: #555555;
    bottom: -10px;
    left: 25%;
}

.portfolio-heading p {
    color: #aaaaaa;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.portfolio-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.portfolio-item {
    width: calc(33.33% - 1.34rem);
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    height: 450px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
}

.portfolio-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #333333;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.portfolio-content p {
    color: #bbbbbb;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.portfolio-link-container {
    margin-top: auto;
    padding: 0 1rem 1.5rem;
    text-align: center;
}

.portfolio-link {
    display: block;
    width: 100%;
    background: #333333;
    color: white;
    padding: 0.8rem 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.portfolio-link:hover {
    background: #555555;
    transform: translateY(-3px);
}
.footer {
    background-color: #101026;;
    color: #f8f9fa;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    }
    
    .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4361ee, #3a0ca3, #4cc9f0, #4895ef, #4cc9f0, #3a0ca3, #4361ee);
    animation: gradient-animation 5s ease infinite;
    background-size: 300% 300%;
    z-index: 10;
    }
    
    @keyframes gradient-animation {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }
    
    .container-footer {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        position: relative;
        z-index: 2;
    }
    
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2.5rem;
    }
    
    .footer-info {
        flex: 1;
        min-width: 300px;
    }
    
    .footer-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #f8f9fa;
    position: relative;
    display: inline-block;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: translateZ(30px);
    transition: all 0.3s ease;
    }
    
    .footer-title span {
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    }
    
    .footer-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    border-radius: 4px;
    transform: translateZ(35px);
    }
    
    
    .contact-card {
    background-color: #1e293b;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    transform: translateZ(20px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .contact-card:hover {
        transform: translateZ(30px) translateY(-5px);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
        transition: transform 0.3s ease;
    }
    
    .contact-item:last-child {
        margin-bottom: 0;
    }
    
    .contact-item:hover {
        transform: translateX(-10px);
    }
    
    .contact-icon {
        margin-left: 1.2rem;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #4361ee, #3a0ca3);
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
        color: white;
        font-size: 1.5rem;
        transform: translateZ(30px);
        transition: all 0.3s ease;
    }
    
    .contact-item:hover .contact-icon {
        transform: translateZ(40px) scale(1.1);
        box-shadow: 0 15px 25px rgba(67, 97, 238, 0.4);
    }
    
    .contact-info {
        font-size: 1.05rem;
    }
    
.contact-info a {
color: #f8f9fa;
text-decoration: none;
transition: all 0.3s ease;
}

.contact-info a:hover {
color: #4cc9f0;
text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

    
    .skills {
        flex: 1;
        min-width: 300px;
    }
    
    .skill-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        perspective: 1000px;
        transform-style: preserve-3d;
    }
    
    .skill-tag {
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
        border: 1px solid rgba(76, 201, 240, 0.2);
        color: #4cc9f0;
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.4s ease;
        backdrop-filter: blur(5px);
        transform: translateZ(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
    }
    
    .skill-tag i {
        margin-left: 0.5rem;
        font-size: 1.1rem;
    }
    
    .skill-tag:hover {
        background: linear-gradient(135deg, #4361ee, #3a0ca3);
        color: white;
        transform: translateZ(30px) translateY(-5px) rotate(3deg);
        box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
    }
    
    .social-links {
        display: flex;
        gap: 1.2rem;
        margin-top: 2rem;
        perspective: 1000px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4cc9f0;
        font-size: 1.5rem;
        transition: all 0.4s ease;
        transform: translateZ(20px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .social-link:hover {
        background: linear-gradient(135deg, #4361ee, #3a0ca3);
        color: white;
        transform: translateZ(40px) translateY(-10px) rotate(10deg);
        box-shadow: 0 20px 40px rgba(67, 97, 238, 0.4);
    }
    
    .copyright {
        text-align: center;
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.7);
        transform: translateZ(10px);
        position: relative;
    }
    
    .copyright span {
        background: linear-gradient(90deg, #4cc9f0, #4361ee);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-weight: 700;
    }
    
    .particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
    }
    
    .particle {
        position: absolute;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background-color: rgba(76, 201, 240, 0.3);
        animation: float 15s infinite linear;
        opacity: 0;
    }
    
    @keyframes float {
        0% {
            opacity: 0;
            transform: translateY(0) rotate(0deg);
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: translateY(-500px) rotate(360deg);
        }
    }
    
    .code-effect {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40%;
        height: 100%;
        opacity: 0.03;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%234cc9f0' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        transform: translateZ(5px);
    }
    .teacher{
        color: #e368e3;
        text-decoration: none;
        font-size: large;
        margin: 0 5px;
    }


  /* استایل‌های ریسپانسیو --------------------------------------------------------------------------------------------------*/
  @media (max-width: 768px) {
      .hamburger {
          display: block;
      }
      
      .hamburger.active .bar:nth-child(1) {
          transform: translateY(8px) rotate(45deg);
      }
      
      .hamburger.active .bar:nth-child(2) {
          opacity: 0;
      }
      
      .hamburger.active .bar:nth-child(3) {
          transform: translateY(-8px) rotate(-45deg);
      }
      
      .nav-menu {
          position: fixed;
          right: -100%;
          top: 0;
          flex-direction: column;
          background-color: var(--background-color);
          width: 280px;
          height: 100vh;
          padding-top: 80px;
          text-align: center;
          transition: var(--transition);
          box-shadow: 0 10px 30px var(--shadow-color);
          border-left: 1px solid var(--border-color);
      }
      
      .nav-menu.active {
          right: 0;
      }
      
      .nav-item {
          margin: 15px 0;
          animation: none;
          opacity: 1;
          transform: translateY(0);
      }
      
      .nav-menu.active .nav-item {
          animation: slideInRight 0.5s forwards;
          opacity: 0;
      }
      
      .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.2s; }
      .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.3s; }
      .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.4s; }
      .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.5s; }
      .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.6s; }
      
      @keyframes slideInRight {
          0% {
              opacity: 0;
              transform: translateX(50px);
          }
          100% {
              opacity: 1;
              transform: translateX(0);
          }
      }
      
      .nav-link {
          font-size: 1.2rem;
          width: 100%;
          display: block;
          padding: 10px;
      }
      
      .nav-link::after {
          bottom: 5px;
      }
      
      .nav-line {
          display: none;
      }
  }
  
 
  .hero {
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      color: black;
      text-align: center;
  }
  
  .hero h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
  }
  @media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}



@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-image-wrapper,
    .about-content {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .about-subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text {
        text-align: center;
    }
    
    .feature-item {
        flex: 0 0 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 70px 0;
    }
    
    .image-hex {
        width: 260px;
        height: 260px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 50px 0;
    }
    
    .image-hex {
        width: 220px;
        height: 220px;
    }
    
    .tech-icons {
        flex-wrap: wrap;
    }
    
    .tech-icon {
        margin-bottom: 10px;
    }
    
    .experience-badge {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .exp-years {
        font-size: 1.5rem;
    }
    
    .exp-text {
        font-size: 0.6rem;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-icon {
        margin: 0 0 15px 0;
    }
    
    .feature-text {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}


@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skills-text {
        order: 1;
    }
    
    .skills-tabs {
        order: 2;
    }
    
    .skills-3d {
        order: 3;
        height: 300px;
    }
    
    .skills-sphere-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 80px 0;
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 1rem 0.3rem;
    }
    
    .tab-btn i {
        font-size: 1.2rem;
    }
    
    .tab-btn span {
        font-size: 0.8rem;
    }
    
    .skills-sphere-container {
        width: 200px;
        height: 200px;
    }
}
@media (max-width: 991px) {
    .portfolio-item {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .portfolio-wrapper {
        position: relative;
        overflow: hidden;
        margin: 0 -1rem;
    }
    
    .portfolio-slider {
        position: relative;
        padding: 0 1rem;
    }
    
    .portfolio-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 1rem 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .portfolio-container::-webkit-scrollbar {
        display: none;
    }
    
    .portfolio-item {
        flex: 0 0 85%;
        width: 85%;
        margin-left: 1rem;
        margin-bottom: 1rem;
        scroll-snap-align: center;
    }
    
    .portfolio-item:last-child {
        margin-right: 1rem;
    }
    
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(40, 40, 40, 0.8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        opacity: 0.7;
        transition: opacity 0.3s ease, background 0.3s ease;
        color: white;
        font-size: 1.5rem;
        border: none;
    }
    
    .nav-btn:hover, .nav-btn:focus {
        opacity: 1;
        background: rgba(60, 60, 60, 0.9);
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 1rem 0;
    }
    
    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #444444;
        transition: background 0.3s ease, transform 0.2s ease;
    }
    
    .scroll-dot.active {
        background: #666666;
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .portfolio-heading h2 {
        font-size: 2rem;
    }
    
    .portfolio-item {
        flex: 0 0 90%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .contact-item {
        margin-bottom: 1.2rem;
    }
}