* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f9fafb
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color:#2563eb;
    padding-left: 40px;
    padding-top: 10px;
}

.nav-links a {
    margin: 20px;
    text-decoration: none;
    color: #374151;
    font-weight: bold;
}

.nav-links a:hover {    /* yeh link ko highlight karta h */
    color: #2563eb;
}

.nav-links .home {
    color: #0655fe;
}

.nav-links a.active {
  color: blue;
  font-weight: bold;
  border-bottom: 2px solid blue;
}

/*-- Hero Section --*/
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #111827;
}

.highlight {
    color: #406ed1;
}

.hero-text p {
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.6;
    color: #4b5563;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.btn {
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s ease;
}

/* Primary button */
.btn.primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    background: #1e40af;
}

/* Secondary button */
.btn.secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn.secondary:hover {
    transform: translateY(-2px);
    background: #1e40af;
    color: white;
}

.hero-image img {
    width: 320px;
    border-radius: 50%;
    margin-top: -40px;
}

.projects {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.projects h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-left: 50px;
}

.project-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px)
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600px;
}

.project-card p {
    color: #4b5563;
    margin-bottom: 16px;
    font-size: 15px;
}

.project-card a {
    color: #0655fe;
    font-weight: 600;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

/* ABOUT SECTION */

.profile {
    max-width: 700px;
    margin: auto;
    padding: 60px 20px;
}

.profile h2 {
    margin-bottom: 50px;
    text-align: center;
    font-size: 36px;
}

.profile-content {
    display: flex;
    flex-direction: row;
    gap: 24px;  
    align-items: flex-start;
    justify-content: center;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: center;
}

.about-me {
    max-width: 520px;
}

.about-me p {
    font-size: 20px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

/* SKILLS */

.skills-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    
}

.skills-card a {
    padding: 8px 14px;
    background: #eef2ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;

}

.skills-card a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}


.skills {
    margin: 20px 0; 
}

.skills:hover {
    transform: translateY(-6px);
}

.skills-card span {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    color: #2563eb;
    font-size: 0.85rem;
}

button {
    margin-top: 10px;
    padding: 6px 16px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    color: #2563eb;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
}

button:hover {
    background: #dbeafe;
}

/* CONTACT */

.contact {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px; 
}

.contact h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 36px;
}

.profile-contact p {
    font-size: 20px;
    text-align: center;
    color: #4b5563;
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    background: transparent;
}

.contact-cards a {
    padding: 12px 22px;
    background: #eef2ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;

}

.contact-cards a:hover {
    background: #0655fe;
    color: white;
    transform: translateY(-2px);
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact input,
.contact textarea {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #2563eb;
}

.contact p {
    text-align: center;
    color: #4b5563;
    margin-bottom: 24px;
    font-size: 18px;
}

.contact button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact button[type="submit"]:hover {
    background: #1e40af;
}

/* FOOTER */
.footer {
    text-align: center;
    background: #111827;
    color: #e5e7eb;
    padding: 20px;
    font-size: 14px;
    border-radius: 14px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    letter-spacing: 0.4px;
}

.footer .year {
    color: #93c5fd;
    font-weight: 600px;
}

.footer .name {
    color: #2563eb;
    font-weight: 600px;
}

.footer .name:hover {
    text-decoration: underline;
}


/* RESPONSIVE */ 
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        width: 240px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .skills-card {
        justify-content: center;
    }
} 


