html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: rgb(0, 0, 0);
    color: rgb(247, 183, 226);
    font-family: 'Times New Roman', Times, serif;
    padding-top: 80px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 5px;
    display: flex;              /* ✅ instead of float */
    justify-content: center;
    flex-wrap: wrap;            /* ✅ allows wrapping on mobile */
    gap: 20px;
    background-image: linear-gradient(to right, white, rgb(251, 219, 241), rgb(246, 198, 243));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

ul li {
    margin: 0;   /* remove big margin */
}

ul li a{
    display: flex;
    justify-content: center;
    color: rgb(245, 50, 180);
    padding: 15px 15px;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
}

ul li a:hover{
    background-color: rgba(0, 0, 0, 0.99);
    background-image: linear-gradient(to right,rgb(22, 21, 21),rgba(21, 18, 18, 0.868));
    color: white;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;          
    margin: 50px 50px;
    flex-wrap: wrap;     
}

#home {
    font-size: 25px;
    max-width: 600px;    
}

#image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

#image img:hover{
    box-shadow: 0 0 25px #f984e5; 
    transform: scale(1.05);
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT PAGE DESIGN */

.about-container {
    max-width: 800px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(to right, #f8c4f5, #f479d5);
    color: black;
}

.about-container h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Social Links */
.social-links {
    margin-bottom: 30px;
}

.social-links a {
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
    color: black;
    font-weight: bold;
    transition: 0.3s;
}

.social-links a:hover {
    color: white;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    background-color: black;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover {
    background-color: white;
    color: black;
    box-shadow: 0 0 15px #000;
}

.contact-btn {
    background-color: #ff2edb;
}

.contact-btn:hover {
    background-color: white;
    color: #ff2edb;
}

/* SKILLS SECTION */

#skills {
    margin: 100px 50px;
    text-align: center;
}

.section-title {
    font-size: 40px;
    margin-bottom: 40px;
    color: #f064cd;
}

/* Container */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

/* Skill Card */
.skill-card {
    background: linear-gradient(to right, #f4c7f1, #f39bdd);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    cursor: pointer;
}

/* Logo */
.skill-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Text */
.skill-card p {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

/* Hover Effect 🔥 */
.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 20px #f984e5;
}


/* PROJECTS SECTION */

#projects {
    margin: 100px 50px;
    text-align: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Project Card */
.project-card {
    background: linear-gradient(to right, #f4c7f1, #f2aae0,#ed93d6);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: left;
}


/* Title */
.project-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: black;
}

/* Description */
.project-card p {
    font-size: 16px;
    color: black;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Button */
.project-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: 0.3s;
}

/* Hover Effects 🔥 */
.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px #f984e5;
}

.project-btn:hover {
    background-color: white;
    color: black;
}

/* EXPERIENCE PAGE */

.experience-container {
    max-width: 900px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
}

.experience-container h1 {
    font-size: 40px;
    margin-bottom: 40px;
    color: #f542c8;
}

/* Card */
.experience-card {
    background: linear-gradient(to right, #f9a8ff, #f542c8);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: 0.3s;
}

/* Titles */
.experience-card h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: black;
}

.experience-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #222;
}

/* Description */
.experience-card p {
    font-size: 17px;
    line-height: 1.6;
    color: black;
    margin-bottom: 20px;
}

/* Tech Stack */
.tech-stack {
    margin-bottom: 20px;
}

.tech-stack span {
    display: inline-block;
    background: black;
    color: white;
    padding: 6px 12px;
    margin: 5px;
    border-radius: 15px;
    font-size: 14px;
}

/* Button */
.exp-btn {
    display: inline-block;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: 0.3s;
}

/* Hover Effects 🔥 */
.experience-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px #f984e5;
}

.exp-btn:hover {
    background: white;
    color: black;
}

/* ACHIEVEMENTS SECTION */

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px;
    text-align: center;
}

/* Flip Card */
.flip-card {
    perspective: 1000px;
}

/* Inner */
.flip-inner {
    position: relative;
    width: 100%;
    height: 200px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip Effect */
.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

/* Front & Back */
.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Front */
.flip-front {
    background: linear-gradient(to right, #f4c7f1, #f2aae0,#ed93d6,#f084d5);
    color: black;
}

/* Back */
.flip-back {
    background: black;
    color: white;
    transform: rotateY(180deg);
    padding: 15px;
    text-align: center;
}

/* Link */
.flip-back a {
    margin-top: 10px;
    color: #ff7be5;
    text-decoration: none;
}

.flip-back a:hover {
    text-decoration: underline;
}

.section-title {
    text-align: center;
}

/* CONTACT SECTION */

#contact {
    margin: 100px 50px;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: linear-gradient(to right, #f9a8ff, #f542c8);
    border-radius: 20px;
}

/* CONTACT SECTION */

#contact {
    margin: 100px 50px;
    text-align: center;
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Container Card */
.contact-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(to right, #f9a8ff, #f542c8);
    box-shadow: 0 0 20px rgba(249, 132, 229, 0.5);
}

/* Input Fields */
.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

/* Focus Effect 🔥 */
.contact-container input:focus,
.contact-container textarea:focus {
    box-shadow: 0 0 10px #ff2edb;
}

/* Textarea */
.contact-container textarea {
    height: 120px;
    resize: none;
}

/* Button */
.contact-container button {
    margin-top: 15px;
    padding: 12px 25px;
    background: black;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

/* Button Hover */
.contact-container button:hover {
    background: white;
    color: black;
    box-shadow: 0 0 15px #000;
    transform: scale(1.05);
}

@media (max-width: 768px) {

    /* Navbar */
    ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Home Section */
    .container {
        flex-direction: column;
        text-align: center;
        margin: 120px 20px;
    }

    #home {
        width: 100%;
        font-size: 18px;
    }

    /* Image */
    #image img {
        max-width: 200px;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects */
    .projects-container {
        grid-template-columns: 1fr;
    }

    /* Achievements */
    .achievements-container {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-container {
        padding: 20px;
    }

    /* Titles */
    .section-title {
        font-size: 28px;
    }
}