* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0d0c1d;
    color: #fff;
    scroll-behavior: smooth;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(13, 12, 29, 0.9);
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f72585;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(to bottom right, #5e60ce, #3f37c9);
    overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg span {
  position: absolute;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  animation: float-shuffle 10s ease-in-out infinite alternate;
}

/* Add random positions and delays for organic movement */
.hero-bg span:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.hero-bg span:nth-child(2) {
  top: 25%;
  left: 20%;
  animation-delay: 1s;
}
.hero-bg span:nth-child(3) {
  top: 40%;
  left: 70%;
  animation-delay: 0.5s;
}
.hero-bg span:nth-child(4) {
  top: 15%;
  left: 55%;
  animation-delay: 1.2s;
}
.hero-bg span:nth-child(5) {
  top: 60%;
  left: 10%;
  animation-delay: 0.3s;
}
.hero-bg span:nth-child(6) {
  top: 75%;
  left: 35%;
  animation-delay: 0.7s;
}
.hero-bg span:nth-child(7) {
  top: 50%;
  left: 80%;
  animation-delay: 1.5s;
}
.hero-bg span:nth-child(8) {
  top: 85%;
  left: 60%;
  animation-delay: 0.9s;
}

/* Keyframes for shuffle float */
@keyframes float-shuffle {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -20px) rotate(5deg);
  }
  50% {
    transform: translate(-15px, 10px) rotate(-5deg);
  }
  75% {
    transform: translate(20px, 15px) rotate(3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeDown 1.5s ease-in-out;
}

.avatar {
    width: 250px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.highlight {
    color: #f72585;
}

.subtitle {
    margin: 1rem 0;
    font-weight: 300;
    font-size: 1.1rem;
}

.typing {
    border-right: 2px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.btn {
    background: #7209b7;
    padding: 0.8rem 1.5rem;
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 1rem;
    display: inline-block;
}

.btn:hover {
    background: #560bad;
}

.social-icons {
    margin-top: 1rem;
}

.social {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social:hover {
    color: #f72585;
    transform: scale(1.2);
}

.about,
.projects {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom right, #5e60ce, #3f37c9);
}

.about {
    padding: 4rem 1.5rem;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about .heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #caebff;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.about .heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007acc;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Contain the content to a readable width */
.about p {
    max-width: 800px;
    width: 100%;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    padding: 0 1rem;
    color: #ffffff;
}

/* Style for the inline link */
.inline-link {
    color: #f72585;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #fc94c3;
}

.inline-link {
    color: #f72585;
    /* Customize as needed */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #fc94c3;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #1e1e2f;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.3);
}

/* Projects Section Styling */
.projects {
    padding: 4rem 2rem;
    background-color: #f4f6f8;
    /* Soft light gray background */
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #caebff;
    font-weight: 700;
}

/* Each category (Web / UI-UX) */
.project-section {
    margin-bottom: 4rem;
}

.project-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #f72585;
    /* Accent color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Grid Layout */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 1rem;
}

/* Card box */
.card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    width: 280px;
    min-height: 180px;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* On hover */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Card title link */
.card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #007acc;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.card-title:hover {
    text-decoration: underline;
}

/* Paragraph inside card */
.card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin-top: 0.5rem;
}


/* Responsive Behavior */
@media (max-width: 768px) {
    .card {
        width: 90%;
    }

    .projects h2 {
        font-size: 2rem;
    }

    .project-section h3 {
        font-size: 1.4rem;
    }
}
/* Skills Section */
.skills {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom right, #5e60ce, #3f37c9);
  text-align: center;
}

.skills .heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #caebff;
}

.skill-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill {
  text-align: left;
}

.skill span {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f72585;
}

.skill-bar {
  background-color: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
  height: 20px;
}

.skill-fill {
  height: 100%;
  line-height: 20px;
  color: white;
  font-size: 0.9rem;
  padding-left: 10px;
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* Individual Skill Widths and Colors */
.skill-fill.html {
  width: 90%;
  background-color: #f16529;
}

.skill-fill.css {
  width: 85%;
  background-color: #2965f1;
}

.skill-fill.js {
  width: 80%;
  background-color: #f0db4f;
  color: #333;
}

.skill-fill.uiux {
  width: 70%;
  background-color: #a259ff;
}
/* footer section */
.footer {
    background-color: #0d0d0d;
    /* or your site's dark tone */
    color: #f1f1f1;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}


.footer-content p {
    margin: 0;
    letter-spacing: 0.5px;
}


@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heading {
    color: #caebff;
}