@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    cursor: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: #d81b70;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid #d81b70;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.lan a {
    color: #f5f5f5;
    text-decoration: none;
    margin-left: 5px;
    transition: .3s;
    margin-top: -130px;
}

.lan a:hover {
    text-decoration: underline;
}

.lan {
    align-items: right;
    justify-content: right;
    display: flex;
    margin-right: 30px;
}

body {
    min-height: 100vh;
    background: #06021b;
}
.navigation {
    position: fixed;  /* Fixes the navigation to the bottom */
    bottom: 0;  /* Aligns it to the bottom of the page */
    left: 0;  /* Ensures it starts from the left */
    width: 100%;  /* Ensures the navigation bar spans the entire width of the viewport */
    height: 70px;
    background: linear-gradient(45deg, #2196f3, #e91e63);
    display: flex;
    justify-content: center;  /* Centers the list horizontally */
    align-items: center;  /* Centers the list vertically */
    border-radius: 10px 10px 0 0;  /* Rounded corners on the top */
    z-index: 1000;  /* Ensures it's on top of other content */
}
.navigation ul {
    display: flex;
    width: 350px;
}
.navigation ul li {
    position: relative;
    width: 70px;
    height: 70px;
    list-style: none;
    z-index: 1;
}
.navigation ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    font-weight: 500;
}
.navigation ul li a .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 1.5em;
    text-align: center;
    color: #fff;
    transition: .5s;
}
.navigation ul li.active a .icon {
    transform: translateY(-32px);
}
.navigation ul li a .text {
    position: absolute;
    color: #fff;
    font-weight: 400;
    font-size: .75em;
    letter-spacing: .05em;
    opacity: 0;
    transform: translateY(20px);
    transition: .5s;
}
.navigation ul li.active a .text {
    opacity: 1;
    transform: translateY(10px);
}
.navigation ul li a .circle {
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    border: 1.8px solid #fff;
    transform: translateY(-37px) scale(0);
}
.navigation ul li.active a .circle {
    transition: .5s;
    transition-delay: .5s;
    transform: translateY(-37px) scale(1);
}
.indicator {
    position: absolute;
    top: -50%;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #2196f3, #e91e63);
    border: 6px solid #06021b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}
.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -22px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 #06021b;
}
.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -22px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 #06021b;
}
.navigation ul li:nth-child(1).active~.indicator {
    transform: translateX(calc(70px * 0));
}
.navigation ul li:nth-child(2).active~.indicator {
    transform: translateX(calc(70px * 1));
}
.navigation ul li:nth-child(3).active~.indicator {
    transform: translateX(calc(70px * 2));
}
.navigation ul li:nth-child(4).active~.indicator {
    transform: translateX(calc(70px * 3));
}
.navigation ul li:nth-child(5).active~.indicator {
    transform: translateX(calc(70px * 4));
}

.main-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    padding-top: 50px; /* Reduced padding */
}

.me {
    height: 150px;
    border-radius: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h2.theme {
    margin-top: 10px;
    color: #f5f5f5;
    font-weight: 200;
    text-align: center;
}

h1.title {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin-top: 10px;
}

p {
    margin: 15px;
    font-size: 15px;
    color: #999;
    text-align: center;
}

.button-container {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 200px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gradient-btn {
  background: linear-gradient(to right, #9c33a7, #b56521); /* Pink to orange gradient */
  color: white;
  border: none;
  font-weight: 400;
}

.gradient-btn span {
  margin-left: 8px;
}

.outline-btn {
  background: transparent;
  border: 2px solid #ccc;
  color: #f4f4f4;
  font-weight: 400;
}

.outline-btn:hover {
    border: 2px solid #f4f4f4;
    background: #f4f4f4;
    color: #06021b;
}

.outline-btn i {
  margin-left: 8px;
  font-size: 14px;
}

.about {
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 150px;
    padding-bottom: 100px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-container img {
    max-width: 87%;
    height: auto;
    border-radius: 20px;
}

.content-container {
    max-width: 60%;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    line-height: 1.5;
}

.crd-container {
    display: flex;
}

.card {
    cursor: pointer;
    width: 500px;
    margin: 10px;
    padding: 30px 30px;
    border-radius: 20px;
    border: 1px solid #fff;
    transition: .3s;
}

.card:hover {
    transform: scale(105%);
}

.card h3 {
    color: #fff;
    font-weight: 600;
}

.card i {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.card p {
    text-align: left;
    margin-left: -1px;
}

.service {
    padding-top: 70px;
    padding-bottom: 100px;
}

.ser-container {
    display: flex;
    margin: 0 100px;
}

.card-service {
    background: #f4f4f4;
    margin: 10px;
    border-radius: 10px;
    padding: 30px 20px;
    width: 500px;
}

.card-service p {
    font-size: 14px;
    text-align: left;
}

.card-service h3 {
    padding-left: 15px;
    color: #06021b;
}

.card-service i {
    margin-left: 15px;
    padding-left: 15px;
    font-size: 1.7rem;
    padding: 7px;
    background: #e91e63;
    border-radius: 10px;
}

.read {
    padding-left: 15px;
    text-decoration: none;
    color: #06021b;
}

.icon-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    opacity: 90%;
}

.icon-container img {
    height: 50px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
}

.card-service:hover {
    transform: scale(105%);
}

.card-service {
    transition: .3s;
}

.icon-container img{
    transition: .3s;
}

.o-btn {
    transition: .3s;
}

.o-btn:hover {
    color: #06021b;
    background: #f5f5f5;
}

.s-btn {
    transition: .3S;
}

.s-btn:hover {
    background: #d81b80;
}

.icon-container img:hover {
    transform: translateY(-5px);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

/* Card Styling */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 180px;
    width: 290px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #222;
}

.project-info p {
    color: #999;
    font-size: 0.9rem;
}

.project-container p {
    margin-left: 100px;
    margin-right: 100px;
}

.project-container {
    padding-bottom: 100px;
    padding-top: 100px;
}

.o-btn {
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 400;
    padding: 10px 20px;
    border: 2px solid #f4f4f4;
    border-radius: 50px;
    text-align: center;
}

.btn-p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section {
    padding: 50px 20px;
    text-align: center;
    padding-top: 180px;
}

.contact-section h3 {
    color: #f5f5f5;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Heading */
.contact-section h2 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.input-row input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d81b60;
    border-radius: 5px;
    font-size: 14px;
    background: #06021b;
    color: #f4f4f4;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e91e63;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    background: #06021b;
    color: #f5f5f5;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.3);
}

/* Button */
button {
    background-color: #e91e63;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d81b60;
}

/* Footer container */
.footer {
    background-color: #06021b;
    color: #f4f4f4;
    padding: 50px 10%;
    font-size: 0.9rem;
}

/* Footer content */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Footer sections */
.footer-section {
    width: 23%;
    margin: 0px 0;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}



.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: #f4f4f4;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-section ul li a:hover {
    color: #2196f3; /* Change color on hover */
}

/* Social icons */
.social-icon {
    font-size: 1.3rem;
    color: #f4f4f4;
    margin-right: 10px;
}

.social-icon:hover {
    color: #2196f3;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.abouts h5 {
    font-weight: 400;
}

.footer h3 {
    font-weight: 600;
}

.footer-content {
    margin-left: 80px;
}

.animated-txt h1 {
    color: #f4f4f4;
    text-align: center;
    font-size: 2.5rem;
}

.animated-txt span {
    position: relative;
}

.animated-txt span::before{
    content: "Web Developer";
    color: #d81b60;
    animation: words 20s infinite;
}

.animated-txt span::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: #06021b;
    border-left: 2px solid #d81b60;
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid #06021b; 
    }
}

@keyframes words {
    0%,20% {
        content: "Software Engineer";
    }
    21%,40% {
        content: "Web Developer";
    }
    41%,60% {
        content: "Graphic Designer";
    }
    61%,80% {
        content: "Youtuber";
    }
    81%,100% {
        content: "Gamer";
    }
}

@keyframes typing {
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95% {
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85% {
        width: calc(100% + 8px);
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .lan {
        margin-top: -130px;
        margin-bottom: -100px;
        margin-right: -5px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* Responsive Breakpoints */

/* For tablets */
@media (max-width: 768px) {
    .projects {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 20px;
    }
    .project-info h3 {
        font-size: 1.1rem;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    .projects {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .project-card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .project-info h3 {
        font-size: 1rem;
    }
    .project-info p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .content-container {
        max-width: 80%; /* Allow more space for content */
        padding: 20px;
    }

    .crd-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center align cards */
        gap: 15px;
    }

    .card {
        width: 80%; /* Make cards take up more width on smaller screens */
    }
}

/* Small Screen Devices (mobiles) */
@media screen and (max-width: 480px) {
    .about {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .content-container {
        max-width: 90%; /* Allow even more space for content */
    }

    .card {
        width: 100%; /* Cards should take up the full width on small screens */
    }
}

@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .content-container {
        max-width: 100%;
    }
}

/* Base styling adjustments for small screens */
@media (max-width: 768px) {
  body {
    flex-direction: column; /* Ensure layout adapts to single-column view */
    padding: 20px;
  }

  .container {
    margin-top: 100px;
    text-align: center;
  }

  .me {
    height: 120px; /* Scale down the image */
    margin: 100px auto 0; /* Center the image */
  }

  h1.title {
    font-size: 1.8rem; /* Adjust heading size for smaller screens */
  }

  p {
    font-size: 14px;
  }

  .button-container {
    margin: 20px auto; /* Center the buttons */
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Reduce gap between buttons */
  }

  .btn {
    width: 100%; /* Make buttons full width */
    justify-content: center; /* Center text inside buttons */
  }

}

/* Extra small screens (mobile phones) */
@media (max-width: 480px) {
  h1.title {
    font-size: 1.5rem;
  }

  p {
    font-size: 12px; /* Make paragraph text smaller */
  }


  .button-container {
    gap: 8px; /* Reduce gap even further */
  }


}

/* Tablet screens (max-width: 768px) */
@media screen and (max-width: 768px) {
    .ser-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards */
        gap: 15px; /* Space between cards */
    }

    .card-service {
        width: 80%; /* Make cards take up more space */
        margin: 10px 0; /* Adjust margin for spacing */
    }

    .card-service h3 {
        font-size: 1.3rem; /* Adjust font size for better readability */
    }

    .card-service p {
        font-size: 13px; /* Slightly smaller text */
    }
}

/* Mobile screens (max-width: 480px) */
@media screen and (max-width: 480px) {
    .ser-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards */
        gap: 10px; /* Reduce gap between cards */
    }

    .card-service {
        height: 250px;
        width: 250px; /* Full width cards on mobile */
        margin: 10px 0; /* Margin adjustments */
    }

    .card-service h3 {
        font-size: 1.2rem; /* Adjust font size */
    }

    .card-service p {
        font-size: 12px; /* Smaller text for mobile */
    }
}
