/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f8f7ff;
    color: #17152b;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* ========================================
   NAVBAR
======================================== */

header{
    width: 100%;
    height: 75px;
    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(
        90deg,
        #ffe6f0,
        #fbefff,
        #fdf8ff
    );

    backdrop-filter: blur(10px);

    position: sticky;
    top: 0;
    z-index: 1000;

     border-bottom:1px solid #e9d5ff;
}


/* Logo */

.logo{
    display: inline-block;
    padding: 10px 22px;
    background: #8b5cf6;
    color: #fff;
    border-radius: 10px;   /* Rectangle with rounded corners */
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: 0.3s ease;
}

.logo:hover{
    background: #6d28d9;
    transform: translateY(-2px);
}

.logo:hover{
    background: #7c3aed;
    transform: scale(1.05);
}

.logo span {
    color: #9b6cff;
}


/* Navigation */

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color:#3d3d3d;      
    font-weight:600;
    transition:.3s;
}

nav a::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #9b6cff;

    transition: 0.3s ease;
}

nav a:hover,
nav a.active {
    color:#8b5cf6;
}

nav a::before{
    background:#8b5cf6;
}


/* Hire button */

.hire-btn{
    background:#8b5cf6;
    color:#fff;
    padding:11px 24px;
    border-radius:8px;
}

.hire-btn:hover{
    transform:translateY(-3px);
}


/* ========================================
   HERO
======================================== */

.hero{
    min-height: calc(100vh - 75px);
    padding: 80px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;

    background:
    radial-gradient(circle at top left, #ffdce9 0%, transparent 35%),
    radial-gradient(circle at bottom right, #f3d8ff 0%, transparent 35%),
    linear-gradient(135deg,#fffdfd,#fff5fa,#fef0f6);
}


/* Decorative blobs */

.hero::before{
    content:"";
    width:250px;
    height:250px;
    background:#ffc8dd;
    filter:blur(90px);
    opacity:.55;
    border-radius:50%;
    position:absolute;
    top:40px;
    left:40px;
}

.hero::after{
    content:"";
    width:220px;
    height:220px;
    background:#e9d5ff;
    filter:blur(90px);
    opacity:.55;
    border-radius:50%;
    position:absolute;
    right:40px;
    bottom:20px;
}
/* Hero text */

.hero-content {
    width: 50%;

    position: relative;
    z-index: 2;

    animation: slideLeft 1s ease forwards;
}

.hello {
    color:#8b5cf6;

    font-size: 19px;

    margin-bottom: 8px;

    letter-spacing: 1px;
}

.hero h1 {
    color:#222;

    font-size: clamp(45px, 6vw, 75px);

    line-height: 1.05;

    margin-bottom: 12px;
}

.hero h1 span {
    color: #9b6cff;
}

.hero h2 {
    color:#444;

    font-size: 27px;

    margin-bottom: 20px;
}

.hero-text {
    color:#555;

    max-width: 550px;

    line-height: 1.8;

    font-size: 16px;
}


/* Hero buttons */

.hero-buttons {
    margin-top: 32px;

    display: flex;

    gap: 16px;
}

.btn {
    padding: 13px 26px;

    border-radius: 8px;

    font-size: 15px;

    transition: 0.3s ease;
}

.primary-btn {
    color: black;

    background: linear-gradient(
        135deg,
        #7c3aed,
        #a855f7
    );

    box-shadow:
        0 10px 25px
        rgba(124, 58, 237, 0.3);
}

.primary-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 30px
        rgba(124, 58, 237, 0.45);
}

.secondary-btn {
    color: black;

    border: 1px solid #8b5cf6;

    background: rgba(139, 92, 246, 0.08);
}

.secondary-btn:hover {
    background: #8b5cf6;

    transform: translateY(-4px);
}





/* ========================================
   HERO IMAGE
======================================== */

.hero-image {
    width: 380px;
    height: 380px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: slideRight 1.2s ease forwards;
}


/* Glow */

.hero-image::before {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #c084fc
        );

    filter: blur(25px);

    opacity: 0.35;

    animation: glow 3s infinite ease-in-out;
}

.home-img img{
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

/* ========================================
   COMMON SECTIONS
======================================== */

.section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;

    margin-bottom: 55px;
}

.section-title h2 {
    font-size: 36px;

    color: #17152b;
}

.section-title span {
    width: 55px;
    height: 4px;

    display: block;

    margin: 12px auto;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #c084fc
        );
}


/* ========================================
   ABOUT
======================================== */

.about-details{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.detail-box{
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px;
    transition: .3s;
}

.detail-box:hover{
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.detail-box h3{
    color: #8b5cf6;
    margin-bottom: 12px;
    font-size: 18px;
}

.detail-box ul{
    padding-left: 18px;
}

.detail-box li{
    margin-bottom: 8px;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.detail-box li:last-child{
    margin-bottom: 0;
}

@media(max-width:768px){

.about-details{
    flex-direction: column;
}

}

/* About image */

.about-image {
    width: 45%;

    position: relative;
}

.about-image::after {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border: 2px solid #9b6cff;

    border-radius: 15px;

    top: 15px;
    left: 15px;

    z-index: 0;
}

.about-image img {
    width: 100%;
    height: 330px;

    object-fit: cover;

    border-radius: 15px;

    position: relative;

    z-index: 1;

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.12);

    transition: 0.5s ease;
}

.about-image:hover img {
    transform: translate(-7px, -7px);
}
.about-heading{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;

    font-size:34px;
    color:#333;
    margin-bottom:25px;
}

.about-heading span{
    font-size:35px;
}

.about-text{
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-text p{
    font-size: 18px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.about-text strong{
    color: #7c5cff;
    font-weight: 700;
}

.section-title{
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2{
    font-size: 48px;
    color: #222;
}


/* ========================================
   SKILLS
======================================== */

.skills-container{
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.skill-card{
    width: 220px;
    height: 90px;
    background:#fff;
    border:1px solid #eadcff;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(139,92,246,.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    transition: .3s;
}

.skill-card:hover{
    transform:translateY(-8px);
    border-color:#8b5cf6;
    box-shadow:0 15px 30px rgba(139,92,246,.18);
}

/* First Row */
.skill1{
    grid-column: 1 / 3;
}

.skill2{
    grid-column: 3 / 5;
}

.skill3{
    grid-column: 5 / 7;
}

/* Second Row */
.skill4{
    grid-column: 2 / 4;
}

.skill5{
    grid-column: 4 / 6;
}
.skill-icon {
    width: 65px;
    height: 65px;

    border-radius: 15px;

    margin: auto auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    font-size: 18px;

    transition: 0.4s ease;
}

.skill-card:hover .skill-icon {
    transform:
        rotate(-8deg)
        scale(1.1);
}

.skill-card h3 {
    font-size: 16px;
}






/* ========================================
   PROJECTS
======================================== */

.Projects{
    
    padding-top: 30px;
    

      
}

.Projects p{
    font-size: 42px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: #1e3a8a;
    
}

.pro{
    display: flex;
    flex-direction: row;
    
}

.pro h1:hover,
.pro h2:hover,
.pro h3:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px lavender;
}

.pro h1,
.pro h2,
.pro h3 {
    box-shadow: 0 4px 10px lavender;
    transition: 0.3s;
}


.pro h1{
    height: 400px;
    width: 300px;
    padding-top: 20px;
    margin: 20px;
    margin-left: 240px;
    background: #f1f5f9;
    text-align: center;
    border: 1px solid #64748B;
    

    
}
.pro h2{
    height: 400px;
    width: 300px;
    padding-top: 20px;
    margin: 20px;
    margin-top: 80px;
    background: #f1f5f9;
    text-align: center;
    border: 1px solid #64748B;
}
.pro h3{
    height: 400px;
    width: 300px;
    padding-top: 20px;
    margin: 20px;
    background: #f1f5f9;
    text-align: center;
    border: 1px solid #64748B;
}

.pro img{
    height: 250px;
    width: 250px;
    border-radius: 20px;
    margin-top: 40px;
}

.pro a{
    font-size: 25px;
    text-decoration: none;
    display: inline-block;
    padding-top: 10px;
    color: purple;
    border-radius: 10px;
    
}

/* ========================================
   CONTACT
======================================== */
.section-title h2{
    font-size: 42px;
    color: #1e3a8a;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.contact-text{
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.contact-form{
    max-width: 700px;
    margin: auto;
}

.input-row{
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-row input,
.contact-form textarea{
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.contact-form textarea{
    height: 120px;
    resize: none;
    margin-bottom: 20px;
}

.contact-form button{
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover{
    background: #15306f;
}

/* ========================================
   FOOTER
======================================== */

footer{
    background: #18172f;
    color: #fff;
    text-align: center;
    padding: 35px 20px;
}

footer h3{
    font-size: 28px;
    color: #a78bfa;
    margin-bottom: 10px;
}

footer p{
    font-size: 16px;
    margin: 8px 0;
    color: #d1d5db;

}



/* ================= MOBILE RESPONSIVE ================= */

@media screen and (max-width:768px){

    header{
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hire-btn{
        display: none;
    }

    /* Hero */
.hero{
    padding: 50px 20px;
    display: flex;
    flex-direction: column;   /* Text वर, Image खाली */
    align-items: center;
    text-align: center;
    gap: 30px;
}

.hero-content{
    width: 100%;
}

.home-img{
    margin-top: 20px;
}

.home-img img{
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(139,92,246,.5);
}

.hero-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn{
    width: 220px;
    text-align: center;
}
    /* Skills */

    .skills-container{
        display:grid;
        grid-template-columns:1fr;
        gap:20px;
    }

    .skill1,
    .skill2,
    .skill3,
    .skill4,
    .skill5{
        grid-column:auto;
    }

    .skill-card{
        width:100%;
        max-width:300px;
    }

    /* Projects */

    .pro{
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    .pro h1,
    .pro h2,
    .pro h3{
        width:90%;
        height:auto;
        margin:20px 0;
        padding-bottom:20px;
    }

    .pro h1{
        margin-left:0;
    }

    .pro img{
        width:90%;
        height:auto;
    }

    /* Contact */

    .input-row{
        flex-direction:column;
    }

    .contact-form{
        width:100%;
    }

    /* Footer */

    footer{
        flex-direction:column;
        text-align:center;
        gap:10px;
    }

}