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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    background-color:#f5f5f5;
    color: black;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 1rem;
    
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: black;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.hamburger {
    display:none;
    cursor: pointer;
    flex-direction: column;
    gap:6px;
    z-index: 1001;

}

.hamburger .bar{
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active .bar:nth-child(1) {
    transform:translateY(9px) rotate(45deg);    
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform:translateY(-9px) rotate(-45deg);
}

.home {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    background: #f5f5f5;
    text-align: center;

}

.home-content {
    max-width: 800px;
    text-align: center;

}

.home-content h3 {
    font-size: 2.2rem;
    font-weight:700 px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-content h3 span{
    color: orange;
    display: block;
    font-size: 3.5rem;
    margin-top: 0.5rem;
}

.home-content p {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;

}

.skills {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.section-title span {
    color:#4f46e5;
}

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

.skill-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    transition:all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.social-media {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: 2px solid orange;
    border-radius: 50%;
    font-size: 1.5rem;
    color:#4f46e5;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: #4f46e5;
    color:white;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 600px;
    text-decoration: none;
    transition: all 0.3s ease;

}

.btn:hover {
    background:#4f46e5;
    color: white;
    transform:translateY (-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2) ;

}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 6rem 6rem;

}

.about-img img {
    width: 684px;
    max-width: 100%;
    height: auto;
}

.heading {
    text-align: center;
    font-size: 64px;
}

.about-content h2 {
    text-align: center;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 40px;
    color: orange;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 2.0;
    color: #4b5563;
    max-width: 600px;
    margin: auto;
    text-align: justify;
}

.my-projects {
    padding: 4rem 1.5rem;
    background-color: #f9fafb;
}

.my-projects-content {
    max-width:1300px;
    margin: 0 auto;
}

.projects-subtitle {
    text-align:center;
    font-size:1.15rem;
    color:#6b7280;
    margin-bottom: 4rem;
    margin-top: -1rem;
}

.projects-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.project-card:hover {
    transform:translateY(-12px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.06);

}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0.75);
    display: flex;
    align-items: center;
    justify-content:center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-card:hover .project-overlay {
    position:absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;

}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view {
    padding: 0.75rem 2rem;
    background: #ffffff;
    color: #4f46e5;
    border-radius:  99px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-view:hover {
    background: orange;
    color: #ffffff;
    transform: scale(1.05);

}

.project-info {
    padding: 1.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #eef2ff;
    color: #4f46e5;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;

}

.project-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.65;
}

.contact {
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    background-color:snow;
    padding: 4rem 1.5rem 6rem 1.5rem;
}

.contact h2{
    margin-bottom: 3rem;
    
}

.contact-form {
    width:100%;
    max-width: 600px;
    margin:0 auto;
    background: #f5f5f5;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(62, 57, 57, 0.04);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;

}

.form-group input:focus,
.form-group textarea:focus {
    background: white;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    display: flex;
    padding: 1rem;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color:black;
    margin-top:1rem;
    margin:auto;
    font-weight: 600;
}

.btn-primary:hover {
    background: grey;
    box-shadow: 0 4px 12px black(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.btn-primary:active {
    transform: translateY(0);
}

.heading {
    text-align:center;
    font-size: 3.5rem;
    font-weight:600;
    margin-bottom: 2rem;
}

@media screen and (max-width:768px) {
    .logo {
        font-size: 1.5rem;
        z-index: 1001;
        position: relative;
    }

    .hamburger {
        display:flex;
    }

    .nav-menu {
        position:fixed;
        top:0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content:center;
        align-items:center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active{
        right:0;
        
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links a{
        font-size:1.8rem;
        font-weight:600;
        color: #111827;
        transition: color 0.3s ease;
    }

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

    .container {
        padding: 0 1.25rem;
    }

    .home-content h3 {
        font-size: 1.8rem;
    }
    
    .home-content h3 span {
        font-size: 2.2rem;
    }

    .home-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .heading, .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .about-content h3 {
        font-size: 1.8rem;
    }

    .about {
        flex-direction: column;
        text-align: centre;
        gap: 2rem;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .skill-card {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .footer {
        padding: 2rem 5%;
        text-align: center;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .home-content h3 span {
        font-size: 1.8rem;
    }

    .heading, .section-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 32px 9%;

}

