* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.left {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.right ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.right ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}

.right ul li a:hover {
    color: #667eea;
}

.right ul li img:hover {
    filter: brightness(0.5);
}

.right ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.right ul li a:hover::after {
    width: 100%;
}

header #menu {
    display: none;
    padding: 0.5rem;
    border: 2px solid #667eea;
    border-radius: 5px;
    background: white;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    min-height: 80vh;
    gap: 2rem;
}

.home .left {
    flex: 1;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.purple {
    color: #667eea;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#element {
    color: #764ba2;
    font-weight: 700;
}

.buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.home .right {
    flex: 1;
    text-align: center;
}

.home .right img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


.about {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about .main {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    
}

.about-text h5 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.about-text h5 span {
    color: #667eea;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.about-text button {
    padding: 12px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-text button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.project {
    padding: 4rem 2rem;
}

.title {
    text-align: center;
    margin-bottom: 3rem;
}

.title h2 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(45deg, #667eea, #764ba2);
}
.title p{
    padding: 10px 0;
    text-align:left;
}

.box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 420px; 
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card img {
    height: 50px;
    margin-bottom: 1rem;
    border-radius: 10px;
    object-fit:contain;
}

.card h5 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.card .para {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .para p:first-child {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
}

.card .para p:last-child {
    margin-top: auto;
}

.button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.skills {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.skill-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.skill-box p {
    color: #666;
    line-height: 1.6;
    text-align: center;
}


.contact {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact p {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-form fieldset {
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    backdrop-filter: blur(6px);
}

.contact-form legend {
    font-size: 1.2rem;
    padding: 0 10px;
    color: white;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin: 0.8rem 0;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
  }


.contact input {
    display: block;
    justify-self: center;
    height: 3rem;
    width: 15rem;

}

.contact .button {
    background: white;
    color: #667eea;
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
  }

.contact .button:hover {
    background: #f8f9fa;
}


footer {
    background: #333;
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social a img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social a img:hover {
    transform: scale(1.2);
}

.end {
    border-top: 1px solid #555;
    padding-top: 1rem;
    margin-top: 2rem;
    color: #ccc;
}


@media (max-width: 768px) {
    .right ul {
        display: none;
    }

    header #menu {
        display: inline;
    }

    nav {
        padding: .5rem;

    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .home .left {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about .main {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        width: 250px;
        height: 250px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .box {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact p {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content {
        margin: 0;
    }

    nav {
        padding: 0.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .left {
        font-size: 1.2rem;
    }

    .home {
        padding: 1rem;
        min-height: 60vh;
    }

    .home .left {
        font-size: 1.5rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .about {
        padding: 2rem 1rem;
    }

    .about img {
        width: 200px;
        height: 200px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text h5 {
        font-size: 1.2rem;
    }

    .project,
    .skills {
        padding: 2rem 1rem;
    }

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

    .box {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 2rem 1rem;
    }

    .contact p {
        font-size: 1.2rem;
    }

    .social {
        gap: 0.5rem;
    }

    .social a img {
        width: 35px;
        height: 35px;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .home .left {
        font-size: 1.3rem;
    }

    .about img {
        width: 150px;
        height: 150px;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .title h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1rem;
    }

    .skill-box {
        padding: 1.5rem;
    }
    
    body{
        background: rgba(255, 255, 255, 0.95);
        align-items: center;
        justify-content: center;    
        max-width: 100%;
    }
    section{
        max-width: 100%;
        width: 100%;
    }
}
