* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #0f0f0f;
    color: #fff;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 1000;
}

.logo {
    position: relative;
    left: -17px;
    font-size: 24px;
    font-weight: bold;
    color: #ff4b5c;
}

.nav-links {
    position: relative;
    left: -17px;
    display: flex;
    gap: 40px;
}

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

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

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

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(120deg, #1f1f1f, #141414);
}

.lottie-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transform-origin: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-text span {
    color: #ff4b5c;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    top: 10px;
}

.btn {
    position: relative;
    top: 50px;
    padding: 10px 20px;
    background: #ff4b5c;
    border: none;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: #e63b4e;
}

/* Sections */
section {
    padding: 80px 50px;
    text-align: center;
    scroll-margin-top: 80px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff4b5c;
}

h4{
    position: relative;
    top: 25px;
}
h4:hover{
    color: #ff4b5c;
}


/*About*/
#about {
    text-align: center;
}
#about p{
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    line-height: 1.5;
}


/* Skills */
.skill-bars {
    max-width: 600px;
    margin: auto;
}

.bar {
    margin-bottom: 15px;
    text-align: left;
}

.progress {
    background: #333;
    border-radius: 20px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 12px;
    background: #ff4b5c;
    animation: grow 2s ease;
}

@keyframes grow {
    from {
        width: 0;
    }
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 35px;
    height: 30vh;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    background: #222;
}

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


/* Contact */
.submit, form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 20px auto;
}

form,
.submit input,
.submit textarea {
    margin-top: 15px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.contact button {
    margin-top: 10px;
}


/* Footer */
footer {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.container{
    /* width: 100%; */
    height: 80vh;
    background: #0f0f0f;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup{
    width: 500px;
    height: 250px;
    background: #fff;
    border-radius: 8px;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 0 30px 30px;
    color: #000;
    visibility: hidden;
    transition: transform 0.3s, top 0.3s;
}

.open-popup{
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup img{
    width: 100px;
    transform: scale();
    margin-top: -60px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.popup h2{
    font-size: 40px;
    font-weight: 500;
    margin: 30px 0 10px;
}
