.bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 58vw;
    min-height: 100vh;
    background-color: black;
    z-index: -1;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.name {
    position: absolute;
    left: 30%;
    top: 45%;
    transform: translate(-50%, -40%);
    font-size: 35px;
    margin: 0;
}

#typed-name {
    font-size: 4rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white; 
    display: inline-block;
    animation: blink 0.7s infinite;
}

/* Blinking cursor animation */
@keyframes blink {
    50% { border-color: transparent; }
}

.about {
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: flex-start; /* Move everything to the left */
    position: absolute;
    left: 20%;  /* Shift the section towards the left */
    top: 110vh;
    color: rgb(0, 0, 0);
    line-height: 1.5;
    font-size: 20px;
    margin: 0;
    flex-wrap: wrap;
}

.about-section {
    max-width: 800px;
    margin: auto;
    margin-left: 40px;
}

.about-section h2 {
    display: inline-block;
    padding: 10px 30px;
    border: 3px solid black;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Explore Button */
.explore-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.line {
    width: 50px;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
}

.explore-btn {
    font-size: 16px;
    font-weight: bold;
    border: none;
    background: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-container:hover .line {
    width: 80px;
}

.explore-container:hover .explore-btn {
    letter-spacing: 3px;
}

.scroll-reveal {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
}

.about-image img {
    width: 250px;
    height: auto;
    margin-right: 60px;
    border-radius: 5px;
}

.about {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Stack Section */
.techstack {
    margin-top: 50px;
    text-align: center;
    position: relative;
    top: 140vh;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

.techstack h2 {
    font-size: 2rem;
    font-weight: bold;
    border-bottom: 3px solid black;
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 30px;
    letter-spacing: 2px;
}

.categories {
    display: flex;
    flex-direction: column; /* Arrange categories vertically */
    gap: 50px; /* Space between categories */
    margin-top: 30px;
}

.category {
    text-align: center; /* Center headings and content */
    margin-bottom: 20px;
}

.category h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid black; /* Reduced underline thickness */
    width: fit-content; /* Match underline to text width */
    padding-bottom: 5px; /* Padding below text */
}

.stack-icons {
    display: flex;
    flex-wrap: wrap; /* Wrap icons onto the next line */
    justify-content: center; /* Center icons */
    gap: 80px; /* Increased space between icons */
    margin-top: 20px;
}

.stack-icons div {
    text-align: center;
    width: 100px; /* Consistent alignment */
}

.stack-icons img {
    width: 70px; /* Slightly larger icon size */
    height: 70px; /* Maintain uniform size */
    margin-bottom: 10px; /* Space between icon and text */
    transition: transform 0.3s ease; /* Smooth hover animation */
}

.stack-icons img:hover {
    transform: scale(1.2); /* Enlarges on hover */
}

.stack-icons p {
    font-size: 0.9rem; /* Slightly reduced text size */
    color: rgba(0, 0, 0, 0.6); /* Transparent text */
    font-weight: normal; /* Unbold styling */
    margin: 0;
}

/* Section for Navigation Cards */
.navigation-cards {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    top: 140vh;
}

.navigation-cards h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #444;
}

/* Cards Container */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Individual Cards */
.card {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #6e6e6e, #a3a3a3);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin-left: 30px;
    margin-right: 30px;
}

/* Card Hover Effect */
.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Dynamic Tilt Effect */
.card:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Tilt Effect Based on Cursor Position */
.card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX)) rotateY(var(--rotateY));
}

/* Styling for Individual Cards */
.card.about-me {
    background: linear-gradient(135deg, #050f19, #4682b4); /* Darker shades of blue */
}

.card.experience {
    background: linear-gradient(135deg, #071a07, #4b9f4b); /* Darker shades of green */
}

.card.contact-me {
    background: linear-gradient(135deg, #1e0101, #cd5c5c); /* Darker shades of red */
}
.imgmob{
    display: none;
}
@media (max-width: 768px) {
    /* Adjust background */
    .bg {
        width: 100vw;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    /* Center and resize name section */
    .name {
        left: 50%;
        top: 80%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        color: white;
    }

    #typed-name {
        font-size: 2rem;
        border-right: 2px solid white;
    }

    /* Stack about section vertically */
    .about {
        position: relative;
        left: 0;
        top: 50vh;
        flex-direction: column;
        padding: 20px;
        text-align: left;
        margin-right: 40px;
    }

    .about-section h2 {
        font-size: 24px;
        padding: 8px 20px;
    }

    .about-section p {
        font-size: 16px;
    }

    /* Adjust explore button */
    .explore-container {
        margin-top: 20px;
    }

    /* Resize images */
    .about-image img {
        width: 150px;
        margin: auto;
        margin-bottom: 20px;
        display: none;
    }

    /* Tech stack adjustments */
    .techstack {
        width: 90%;
        top: 92vh;
    }

    .categories {
        gap: 20px;
    }

    .stack-icons {
        gap: 30px;
        margin-top: 10px;
    }

    .stack-icons img {
        width: 50px;
        height: 50px;
    }

    .stack-icons p {
        font-size: 0.8rem;
    }

    /* Navigation cards */
    .navigation-cards {
        padding: 10px;
        top: 95vh;
    }

    .cards-container {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 90%;
        height: 150px;
        margin: 10px auto;
    }
    .imgmob{
        display: block;
        width: 100%;
        height: auto;
        margin: auto;
        margin-bottom: 20px;
        position: relative;
        top: 100px;
        left: 50px;
        right: 0;
    }
    .imgmob img{
        width: 70%;
        height: auto;
        border-radius: 50%;
        position: relative;
    }
}

@media (max-width: 768px) {
    #typed-name {
        color: white; /* Change text color to white */
    }
}

/* Existing index.css styles */
.footer {
    text-align: center;
    padding: 50px 20px;
    background: black;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 150vh; /* Below navigation-cards */
    height: 30vh;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff; /* White text for contrast against black background */
    height: 100%;
}

.footer-left {
    text-align: left;
    flex: 1;
}

.footer-left h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white; /* Vibrant accent color */
}

.footer-left p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #cccccc; /* Light gray for secondary text */
}

.footer-left .copyright {
    font-size: 0.9rem;
    color: #999999; /* Subtle gray for copyright text */
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-socials {
    display: flex;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.848);
    padding: 10px;
    border-radius: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2); /* Slight hover effect for interactivity */
}

.footer-right {
    flex: 1;
    /* Empty space on the right */
}