* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
    font-size: 63%;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 50%, #81d4fa 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

*::selection {
    background: #2b3dda;
    color: #fff;
  }
  
  html::-webkit-scrollbar {
    width: 0.8rem;
  }
  
  html::-webkit-scrollbar-track {
    background: rgb(235, 202, 245);
  }
  
  html::-webkit-scrollbar-thumb {
    background: rgb(251, 181, 30);
  }
  
  /* Preloader */
  .loader-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background: #e6eff1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
  }
  
  .loader-container.fade-out {
    top: -120%;
  }
/* navbar */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.7rem 10%;
    height: 6.5rem;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
  }

.title h1 {
    font-size: 3.5rem;
    color: rgb(67, 67, 67);
  font-weight: 800;
  text-align: center;
    margin-top: 70px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: titleBounce 2s ease-out;
}

.title p {
    text-align: center;
    font-size: 1.2rem;
    color: rgb(32, 32, 32);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

section {
    min-height: 100vh;
    padding: 2rem 9%;
  }
  
  .heading {
    font-size: 1rem;
    color: rgb(32, 32, 32);
    font-weight: 800;
    text-align: center;
  }
  
  .heading span {
    color: rgb(251, 181, 30);
  }
  
  header .logo {
    font-size: 1.9rem;
    font-weight: 800;
    text-decoration: none;
    color: #0e2431;
  }
  
  header .logo i {
    font-size: 2.2rem;
  }
  
  header .logo:hover {
    color: #fc8c05;
  }
  
  header .navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  header .navbar li {
    margin-left: 2.5rem;
  }
  
  header .navbar ul li a {
    font-size: 1.57rem;
    color: #0e2431;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04rem;
    transition: 0.2s;
  }
  
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    color: #0e2431;
    border-bottom: 0.2rem solid #0e2431;
    padding: 0.5rem 0;
  }
  
  /* Hamburger icon */
  #menu {
    font-size: 3rem;
    cursor: pointer;
    color: rgb(24, 2, 63);
    display: none;
  }
  
  @media (max-width: 768px) {
    #menu {
      display: block;
    }
  
    header .navbar {
      position: fixed;
      top: 6.5rem;
      right: -120%;
      width: 75%;
      height: 100%;
      text-align: left;
      align-items: flex-start;
      background-color: #0e0f31;
    }
  
    header .navbar ul {
      flex-flow: column;
      padding: 1rem;
    }
  
    header .navbar ul li {
      text-align: center;
      width: 100%;
      margin: 1rem 0;
      border-radius: 0.5rem;
    }
  
    header .navbar ul li a {
      display: block;
      padding: 1rem;
      text-align: left;
      color: #fff;
      font-size: 2rem;
    }
  
    header .navbar ul li a.active,
    header .navbar ul li a:hover {
      padding: 1rem;
      color: #fff;
      border-radius: 0.5rem;
      border-bottom: 0.5rem solid #011aff;
    }
  
    .fa-times {
      transform: rotate(180deg);
    }
  
    header .navbar.nav-toggle {
      right: 0;
    }
  }
  

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 119, 189, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
    border: 2px solid rgba(129, 212, 250, 0.3);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(2, 119, 189, 0.25);
    border-color: #4fc3f7;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 212, 250, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(1.1) contrast(1.1);
}

.project-card:hover .project-image {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.2) contrast(1.2) saturate(1.1);
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-tag {
    display: inline-block;
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #0277bd;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.project-description {
    color: #0288d1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: linear-gradient(45deg, #e1f5fe, #b3e5fc);
    color: #0277bd;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #81d4fa;
    transition: all 0.3s ease;
    animation: bounceIn 0.5s ease-out;
}

.tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(41, 182, 246, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.link-primary {
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    color: white;
    position: relative;
    overflow: hidden;
}

.link-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.link-primary:hover::before {
    left: 100%;
}

.link-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.4);
    animation: wiggle 0.5s ease-in-out;
}

.link-secondary {
    background: white;
    color: #0288d1;
    border: 2px solid #81d4fa;
    position: relative;
    overflow: hidden;
}

.link-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #e1f5fe, #b3e5fc);
    transition: width 0.3s ease;
    z-index: -1;
}

.link-secondary:hover::before {
    width: 100%;
}

.link-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #29b6f6;
    color: #0277bd;
    animation: shake 0.5s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(41, 182, 246, 0.9), rgba(2, 136, 209, 0.9));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
}

.project-card:hover .overlay {
    opacity: 1;
    animation: zoomIn 0.3s ease-out;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleBounce {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(41, 182, 246, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
    }
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-3px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-3px) scale(1.05) rotate(1deg); }
    75% { transform: translateY(-3px) scale(1.05) rotate(-1deg); }
}

@keyframes shake {
    0%, 100% { transform: translateY(-3px) scale(1.05) translateX(0); }
    25% { transform: translateY(-3px) scale(1.05) translateX(-2px); }
    75% { transform: translateY(-3px) scale(1.05) translateX(2px); }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(129, 212, 250, 0.1), rgba(41, 182, 246, 0.1));
    animation: float 4s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.floating-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.floating-circle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 5s;
}

.floating-circle:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 40%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.tech-tag:nth-child(1) { animation-delay: 0.1s; }
.tech-tag:nth-child(2) { animation-delay: 0.2s; }
.tech-tag:nth-child(3) { animation-delay: 0.3s; }
.tech-tag:nth-child(4) { animation-delay: 0.4s; }

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0288d1, #0277bd);
}