/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

/* Utility Classes */
.flex {
    display: flex;
}

.s-around {
    justify-content: space-around;
}

.s-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.f-col {
    flex-direction: column;
}

.m-auto {
    margin: auto;
}

.w-80 {
    width: 80%;
}

.my-2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.poppins {
    font-family: 'Poppins', sans-serif;
}

.poppinss {
    font-family: 'Poppins', sans-serif;
}

.t-white {
    color: #fff;
}

.t-center {
    text-align: center;
}

.bg-color {
    background-color: #1f1f1f;
}

.btn {
    padding: 0.8rem 2rem;
    background: #ff73b3;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s ease-in-out;
    margin-right: 0.5rem;
}

.btn:hover {
    background: #4e54ec;
}

.live {
    background: #4e54ec;
}

.live:hover {
    background: #ff73b3;
}

.bar {
    width: 300px;
    height: 25px;
    background-color: #2e2e2e;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.bar-content {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.left {
    left: 0;
    font-weight: 600;
}

.right-skills {
    right: 0;
    font-weight: 600;
}

.java::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 90%;
    background: #ff73b3;
    border-radius: 20px 0 0 20px;
}

.html::before {
    width: 90%;
    background: #4e54ec;
}

.css::before {
    width: 80%;
    background: #fff47d;
}

.js::before {
    width: 60%;
    background: #e67e22;
}

.python::before {
    width: 50%;
    background: #2ecc71;
}

.mysql::before {
    width: 40%;
    background: #1abc9c;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #0f0f0f;
    padding: 1rem 10%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ff73b3;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav ul li {
    list-style: none;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #ff73b3;
}

/* Hamburger menu (hidden on desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: #1a1a1a;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .nav.open {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 2rem;
    }
}


/* Home Section */
#home {
    padding: 6rem 10%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000000;
    color: #fff;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 2rem;
}

.home-content {
    flex: 1 1 500px;
}

.home-content h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ff73b3;
}

.home-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff73b3, #4e54ec);
    padding: 10px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle img {
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.circle img:hover {
    transform: scale(1.05);
}

/* Tablet */
@media (max-width: 1024px) {
    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h4 {
        font-size: 1.3rem;
    }

    .circle {
        width: 220px;
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #home {
        padding: 4rem 5%;
    }

    .home-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-content {
        width: 100%;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h4 {
        font-size: 1.1rem;
    }

    .circle {
        width: 180px;
        height: 180px;
        align-self: center;
        margin-top: 2rem;
    }
}



/* About Section */
#about {
    padding: 80px 0;
    background: #121212;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-glow-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 115, 179, 0.6), 0 0 40px rgba(78, 84, 236, 0.4);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 115, 179, 0.6), 0 0 40px rgba(78, 84, 236, 0.4);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 115, 179, 0.8), 0 0 60px rgba(78, 84, 236, 0.6);
    }
}

.about-content {
    max-width: 500px;
    text-align: center;
}

.about-content .btn-glow {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff73b3, #4e54ec);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-content .btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 115, 179, 0.6), 0 0 30px rgba(78, 84, 236, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
}


/* Skills Section */
#skills {
    padding: 60px 0;
    background: #000000;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-left {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.skills-left img.skills-illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.skills-right {
    flex: 2;
    min-width: 300px;
    max-width: 600px;
}

.skills-bars-container .skill {
    margin-bottom: 1.5rem;
    position: relative;
    cursor: pointer;
}

.skill-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.skill-bar {
    background-color: #333;
    border-radius: 20px;
    overflow: hidden;
    height: 20px;
    width: 100%;
    box-shadow: inset 0 0 5px #222;
    transition: box-shadow 0.3s ease;
}

.skill-fill {
    background: linear-gradient(90deg, #ff73b3, #4e54ec);
    height: 100%;
    width: 0;
    border-radius: 20px;
    animation: fillSkill 2s ease forwards;
    animation-delay: 0.5s;
    transition: box-shadow 0.3s ease;
}

@keyframes fillSkill {
    from {
        width: 0;
    }
    to {
        width: var(--target-width);
    }
}

/* Hover Glow */
.skill:hover .skill-bar {
    box-shadow: 0 0 15px rgba(255, 115, 179, 0.6), 0 0 25px rgba(78, 84, 236, 0.6);
}

.skill:hover .skill-fill {
    box-shadow: 0 0 15px rgba(255, 115, 179, 0.8), 0 0 25px rgba(78, 84, 236, 0.8);
}

/* Tooltip */
.skill[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 10px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 10;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        gap: 20px;
    }

    .skills-left {
        max-width: 250px;
    }

    .skills-right {
        max-width: 100%;
    }
}



/* Projects Section */
#projects {
    padding: 80px 0;
    background: #121212;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card h3 {
    color: #fff;
    margin: 15px;
    font-size: 1.2rem;
}

.project-card p {
    color: #aaa;
    margin: 0 15px 15px;
    flex-grow: 1;
}

.project-card a {
    margin: 15px;
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, #ff73b3, #4e54ec);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 115, 179, 0.4), 0 0 40px rgba(78, 84, 236, 0.3);
}

.project-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 115, 179, 0.6), 0 0 30px rgba(78, 84, 236, 0.5);
}


/* Contact Section */
#contact {
    padding: 80px 10%;
    background: #000000;
    color: #fff;
    visibility: visible;  /* Ensure the section is visible */
}

/* Title Styling */
.contact-title {
    color: #ff73b3;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* Contact Container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    width: 100%;
}

/* Contact Info Styling */
.contact-info {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 20px;  /* Added padding to ensure content doesn't touch edges */
}

/* Contact Info Text */
.contact-info h2 {
    margin-bottom: 20px;
    color: #fff;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-info i {
    color: #ff73b3;
    margin-right: 10px;
}

.social-links a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff73b3;
}

/* Contact Form Styling */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
}

/* Form Group Styling */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 12px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -15px;
    font-size: 0.8rem;
    color: #ff73b3;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(45deg, #ff73b3, #4e54ec);
    color: #fff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 115, 179, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #contact {
        padding: 60px 5%;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
    }

    .contact-title {
        font-size: 2rem;
    }
}





/* Footer Section */
#footer {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    padding: 40px 10%;
    color: #fff;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo h2 {
    color: #ff73b3;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-logo p {
    font-size: 0.95rem;
    color: #aaa;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    color: #fff;
    margin: 0 12px;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: #ff73b3;
    transform: scale(1.1);
}

.footer-credit {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}



/* Responsive */
@media (max-width: 768px) {
    .s-around {
        flex-direction: column;
        gap: 2rem;
    }

    #home {
        flex-direction: column;
        text-align: center;
    }

    .projects-container {
        flex-direction: column;
    }

    .about-container {
        flex-direction: column;
    }

    .services-container {
        flex-direction: column;
    }
}

.messages .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}
