@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #e9dde4;
    background: radial-gradient(circle at top, #0f172a, #020617);
    min-height: 100vh;
}


.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(25, 43, 86, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    .logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    background-clip: text;           
    -webkit-background-clip: text;    
    color: transparent;
}

}


.navbar nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #cbd5f5;
    font-size: 25px;
    position: relative;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #22d3ee, #a791ec);
    transition: 0.6s;
}

.navbar nav a:hover::after {
    width: 100%;
}



.home-bg {
    background: linear-gradient(-45deg, #020617, #12376e, #020617);
    background-size: 400% 400%;
    animation: bgMove 10s ease infinite;
}
.skills{
    background: linear-gradient(-50deg,
    rgb(226, 75, 186),rgb(191, 28, 220),blue);
}
.projects{
    background: linear-gradient(#020617, #12376e);
    background-size: 200% 200%;
    animation: bgshift 5s ease infinite;
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bgshift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.home {
    max-width: 1100px;
    margin: auto;
    padding: 120px 30px;
    
}

.home h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
}

.home h1 span {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

.home p {
    margin-top: 20px;
    max-width: 600px;
    color: #94a3b8;
    font-size: 17px;
}



.btn-group {
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    margin-right: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    color: #020617;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-3px);
}
/*.container-home{
    
    padding: 4px 5px 6px 10px;
    background-color: #42068c;
    gap: 10px;
    margin-top: 20px;
    outline: auto;
}*/
.container-home {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-top: 30px;
    padding: 30px;

    background-color: #42068c;
    border-radius: 20px;

    width: 100%;
    max-width: 1100px;

    overflow: hidden;   
}
.contact-page {
    background: radial-gradient(circle at top, #020617, #0f172a);
    min-height: 100vh;
}
.contact-section {
    padding: 80px 30px;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}
.contact-info {
    max-width: 45%;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

.contact-info p {
    color: #a5a8b6;
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    color: #e5e7eb;
}
.contact-form {
    width: 45%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}


.content {
    max-width: 55%;
}

.content p {
    font-size: 17px;
    color: #e9dde4;
}
.container-home:hover{
    transform: translateY(-3px);
}

.img-box {
    width: 32vw;
    height: 32vw;

    max-width: 360px;
    max-height: 360px;

    border-radius: 50%;
    overflow: hidden;   
    
    background: radial-gradient(circle, #22d3ee, #0ea5e9);
    flex-shrink: 0;
    margin-left: auto;
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center;
}




.page-title {
    text-align: center;
    font-size: 36px;
    margin: 60px 0 40px;
    background: linear-gradient(90deg, #fcfcfc, #b9b7c0);
    border: #22d3ee;
    outline: auto;
    -webkit-background-clip: text;
    color: transparent;
}

.container1 h1{
    
    font-size: 26px;
    height: 50px;
    width: 450px;
    padding: 5px 10px;
    color: #e0e8ea;
    margin-left: 100px;
    outline: auto;
    margin-bottom: 50px;
    border-radius: 20px;
}
/* ================= SKILLS SLIDER ================= */
.container2 h1{
    margin-top: 100px;
    font-size: 25px;
    height: 60px;
    width: 500px;
    padding: 10px 10px;
    color: #e0e8ea;
    margin-left: 100px;
    outline: auto;
    margin-bottom: 50px;
    border-radius: 20px;
}
.container3 h1{
    margin-top: 100px;
    font-size: 25px;
    height: 60px;
    width: 500px;
    padding: 10px 10px;
    color: #e0e8ea;
    margin-left: 100px;
    outline: auto;
    margin-bottom: 50px;
    border-radius: 20px;
}
.slider {
    margin-left: 240px;
    margin-right: 240px;
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 35px;
    height: 380px;
}
.slider2 {
    margin-left: 250px;
    margin-right: 270px;
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 35px;
    height: 380px;
}
.slider3 {
    margin-left: 360px;
    margin-right: 270px;
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 35px;
    height: 380px;
}
.slide {
    min-width: 180px;
    max-width: 240px;
    padding: 20px;
    text-align: center;
    border-radius: 28px;
   background: linear-gradient(
    140deg,
    rgba(4, 7, 28, 0.941),
    rgba(26, 4, 91, 0.536),
    rgba(12, 10, 108, 0.9)
);

    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 27px;
    align-content: center;
    
}
.slide:hover{
    transform: scale(1.2);
    z-index: 7px;
    box-shadow: 0px 10px 20px rgba(252, 255, 255, 0.871);

}



.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-bottom: 60px;
    flex-wrap: flex;
    height: 500px;
    width: 1500px;
}

.card {
    width: 400px;
    height: 300px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}
.card-back{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    padding: 15px;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-back span{
display: flex;
color: rgb(40, 23, 124);
font-size: 22px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
margin-top: 40px;
}
.card-back p{
    color: #444958;
}
.card-front{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    font-size: 35px;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 15px;
    backface-visibility: hidden;
    background: radial-gradient(circle at top left, rgba(92, 26, 235, 0.826),rgba(0, 0, 0, 0.475) );
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    color: #020617;
}

/* ================= EXPERIENCE / CONTACT ================= */

.achievements-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 30px;
}
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

.icon-badge {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    color: #020617;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 18px;
}
.achievement-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 25px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}
.achievement-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.achievement-icon {
    font-size: 28px;
    margin-top: 4px;
}

.achievement-left h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.achievement-left p {
    color: #94a3b8;
    font-size: 15px;
    max-width: 600px;
}
.achievement-tag {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.tag-blue {
    background: linear-gradient(90deg, #22d3ee, #38bdf8);
    color: #020617;
}

.tag-purple {
    background: linear-gradient(90deg, #a78bfa, #c084fc);
    color: #020617;
}

.tag-green {
    background: linear-gradient(90deg, #34d399, #22c55e);
    color: #020617;
}

.experience,
.contact {
    max-width: 900px;
    margin: auto;
    padding: 0 30px 60px;
}

.experience h2 {
    margin-top: 25px;
    font-weight: 600;
}

.experience p,
.contact p {
    color: #94a3b8;
    margin-top: 8px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    /* ---------- HERO SECTION ---------- */
    .container-home {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .content {
        max-width: 100%;
    }

    .img-box {
        width: 60vw;
        height: 60vw;
        max-width: 280px;
        max-height: 280px;
        margin-top: 30px;
        margin-left: 0;
    }

    /* ---------- SKILLS SLIDER ---------- */
    .slider,
    .slider2,
    .slider3 {
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px;
        height: auto;
    }

    .slide {
        font-size: 20px;
        min-width: 160px;
    }

    /* ---------- PROJECT CARDS ---------- */
    .card-container {
        width: 100%;
        padding: 20px;
    }

    .card {
        width: 100%;
        max-width: 320px;
        height: 260px;
    }

    /* ---------- CONTACT PAGE ---------- */
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Page Title */
    .page-title {
        font-size: 28px;
        margin: 40px 0 20px;
        text-align: center;
    }

    /* Section Headings */
    .container1 h1,
    .container2 h1,
    .container3 h1 {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-size: 18px;
        height: auto;
        padding: 12px;
        text-align: center;
    }

    /* Sliders */
    .slider,
    .slider2,
    .slider3 {
        margin-left: 15px;
        margin-right: 15px;
        gap: 20px;
        height: auto;
        padding: 20px 10px;
    }

    /* Skill Cards */
    .slide {
        min-width: 130px;
        max-width: 160px;
        font-size: 16px;
        padding: 15px;
    }

    .slide:hover {
        transform: scale(1.05);
    }

}
/* ================= EXPERIENCE MOBILE FIX ================= */

@media (max-width: 768px) {

    .achievement-card {
        flex-direction: column;      /* stack vertically */
        align-items: flex-start;     /* align left */
        gap: 15px;
    }

    .achievement-left {
        width: 100%;
    }

    .achievement-tag {
        align-self: flex-start;      /* move below */
        margin-top: 10px;
    }

}
