/* ===== VARIABLES ===== */
:root {
    --primary-color: #9525eb;
    --primary-light: #3b82f6;
    --primary-dark: #9525eb;
    --secondary-color: #64748b;
    --text-color: #ffff;
    --text-light: #fff;
    --bg-color: #514e4e;
    --bg-light: #4744447f;
    --bg-dark: #514e4e;
    --border-color: #514e4e;
    --border-radius: 6px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  /* ===== RESET & BASE STYLES ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Inter", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    line-height: 1.3;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  section {
    padding: 100px 0;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--bg-dark);
    transform: translateY(-2px);
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .highlight {
    color: var(--primary-color);
  }
  
  /* ===== HEADER ===== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
  }
  
  header.scrolled {
    background-color: #514e4e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--bg-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  
  .nav-list {
    display: flex;
  }
  
  .nav-item {
    margin-left: 30px;
  }
  
  .nav-link {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .menu-btn__burger {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
  }
  
  .menu-btn__burger::before,
  .menu-btn__burger::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
  }
  
  .menu-btn__burger::before {
    transform: translateY(-10px);
  }
  
  .menu-btn__burger::after {
    transform: translateY(10px);
  }
  
  /* ANIMATION */
  .menu-btn.open .menu-btn__burger {
    transform: translateX(-50px);
    background: transparent;
  }
  
  .menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg) translate(35px, -35px);
  }
  
  .menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
  }
  
  /* ===== HERO SECTION ===== */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    position: relative;
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .hero-text {
    animation: fadeInLeft 1s ease;
  }
  
  .subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
  }
  
  .hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
  }
  
  .hero-btns {
    display: flex;
    gap: 15px;
  }
  
  .hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
    display: flex;
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
  }
  
  .scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
  }
  
  .scroll-indicator span {
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .scroll-indicator i {
    animation: bounce 2s infinite;
  }
  
  /* ===== ABOUT SECTION ===== */
  .about {
    background-color: var(--bg-color);
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
  }
  
  .about-image {
    position: relative;
  }
  
  .about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
  
  .about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .about-text h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
  }
  
  .about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
  }
  
  .info-item {
    display: flex;
    align-items: flex-start;
  }
  
  .info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }
  
  .info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-light);
  }
  
  /* ===== SKILLS SECTION ===== */
  .skills {
    background-color: var(--bg-light);
  }
  
  .skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
  }
  
  .skills-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .skills-text h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .skills-text p {
    color: var(--text-light);
  }
  
  .skill-item {
    margin-bottom: 20px;
  }
  
  .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0;
  }
  
  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .service-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .service-icon i {
    font-size: 24px;
  }
  
  .service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .service-item p {
    color: var(--text-light);
  }
  
  /* ===== PROJECTS SECTION ===== */
  .projects {
    background-color: var(--bg-color);
  }
  
  .project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  
  .filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
  }
  
  .filter-btn.active,
  .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
  }
  
  .project-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
  }

  .project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
  }
  
  .project-img {
    position: relative;
    overflow: hidden;
  }

  .project-img img {
    transition: transform 0.5s ease;
  }
  
  .project-item:hover .project-img img {
    transform: scale(1.1);
  }
  
  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
  }
  
  .project-item:hover .project-overlay {
    opacity: 1;
  }
  
  .project-info {
    text-align: center;
    color: white;
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .project-info p {
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .project-links {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .project-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: black;
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .project-link:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* ===== CONTACT SECTION ===== */
  .contact {
    background-color: var(--bg-light);
  }
  
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  
  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .contact-info h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .contact-info p {
    margin-bottom: 30px;
    color: var(--text-light);
  }
  
  .contact-details {
    margin-bottom: 30px;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  
  .contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }
  
  .contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-light);
  }
  
  .social-links {
    display: flex;
    gap: 15px;
  }
  
  .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
  }
  
  .contact-form {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    transition: var(--transition);
  }
  
  .form-group textarea {
    height: 150px;
    resize: none;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  .form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
  }
  
  .form-message.success {
    background-color: #dcfce7;
    color: #166534;
    display: block;
  }
  
  .form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
  }
  
  /* ===== FOOTER ===== */
  footer {
    background-color: var(--bg-dark);
    padding: 30px 0;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-links a {
    margin-left: 20px;
  }
  
  .footer-links a:hover {
    color: var(--primary-color);
  }
  
  /* ===== BACK TO TOP BUTTON ===== */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
  }
  
  .back-to-top.active {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
  }
  
  /* ===== ANIMATIONS ===== */
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate(-50%, 20px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }
  
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
  }
  
  /* ===== RESPONSIVE DESIGN ===== */
  @media screen and (max-width: 1024px) {
    section {
      padding: 80px 0;
    }
  
    .hero-text h1 {
      font-size: 3rem;
    }
  }
  
  @media screen and (max-width: 768px) {
    .menu-btn {
      display: block;
      position: relative;
    }
  
    .nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background-color: var(--bg-color);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: var(--transition);
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      z-index: 1000;
    }
  
    .nav.active {
      right: 0;
    }
  
    .nav-list {
      flex-direction: column;
      align-items: center;
    }
  
    .nav-item {
      margin: 15px 0;
    }
  
    .hero-content,
    .about-content,
    .skills-content,
    .contact-content {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  
    .hero-content {
      text-align: center;
    }
  
    .hero-text p {
      margin: 0 auto 30px;
    }
  
    .hero-btns {
      justify-content: center;
    }
  
    .about-image {
      max-width: 400px;
      margin: 0 auto;
    }
  
    .services {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  
    .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
  }
  
  @media screen and (max-width: 576px) {
    .section-title {
      font-size: 2rem;
    }
  
    .hero-text h1 {
      font-size: 2.5rem;
    }
  
    .about-info {
      grid-template-columns: 1fr;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-content {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }
  
    .footer-links a {
      margin: 0 10px;
    }
  }
  
  