* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #111;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.nav-links a:hover {
    color: #ff9800;
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: beige;
    min-height: 100vh;
    padding: 50px;
}

.home-left {
    flex: 1;
    display: flex;
    justify-content: center;
}
.home-left img {
    max-width: 350px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.home-right {
    flex: 1;
    color: #333;
    padding: 20px;
}
.home-right h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.home-right .typing {
    color: #ff9800;
    font-weight: bold;
}
.home-right p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.btn {
    background: #ff9800;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}
.btn:hover {
    background: #e68a00;
}

/* Responsive */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
    }
    .home-left {
        margin-bottom: 20px;
    }
}


/* About */
.about {
    padding: 50px;
    text-align: center;
}
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.about-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 20px;
}

/* Skills */
#skills {
  text-align: center;
  background: beige;
  padding: 50px 0;
}

.skills-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.skills-scroll {
  display: inline-flex;
  animation: scrollSkills 15s linear infinite;
}

.skill-box {
  background: rgb(255, 255, 255);
  padding: 15px 30px;
  margin: 0 10px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.skill-box:hover {
  transform: scale(1.1);
}

@keyframes scrollSkills {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
.skills-container:hover .skills-scroll {
  animation-play-state: paused;
}


/* Projects */
.projects {
    text-align: center;
    padding: 50px 20px;
    background: #f5f5f5;
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    background: orange;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: darkorange;
}
.project-card:nth-child(5) {
    grid-column: 1 / -1;  /* full row lega */
    justify-self: center; /* sirf center me karega */
}

.button-container {
    display: flex;
    justify-content: center;  /* Horizontal center */
    align-items: center;      /* Vertical center */
    height: 10vh;            /* Container ko full height dena */
}  

.back-btn {
    background-color: orange;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.back-btn:hover {
    background-color: darkorange;
}


/* Contact */
.contact {
    background: #111;
    color: white;
    padding: 50px;
    text-align: center;
}
.contact a {
    color: #ff9800;
    margin: 0 10px;
    text-decoration: none;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .about-content {
        flex-direction: column;
    }
}

