@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;
}

body{
    font-family: 'Poppins', sans-serif;
    background: #0f172a;
    color: white;
    line-height: 1.6;
}

nav{
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    position: sticky;
}

.logo{
    color: #38bdf8;
    font-size: 28px;
    font-weight: 700;
}

nav {
    width: 100%;
    padding: 10px 10%;
}

nav ul{
    display: flex;
    list-style: none;
    gap: 50px;
}

nav ul li a{
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

nav ul li a:hover{
    color: #38bdf8;
}


#head{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 50px 10%;

}

.text{
    max-width: 600px;
}

.text h3{
    font-size: 25px;
    color: #94a3b8;
}

.text h1{
    font-size: 60px;
    margin: 10px 0;
    color: #38bdf8;
}

.text h2{
    font-size: 24px;
    margin-bottom: 15px;
}

.text p{
    color: #cbd5e1;
    margin-bottom: 25px;
}

.button{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn{
    text-decoration: none;
    padding: 12px 28px;
    background: #38bdf8;
    color: black;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    background: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.btn:hover{
    transform: translate3d(5ch, 0.4in, 5em);
}

.social{
    margin-top: 50px;
}

.social a{
    color: white;
    font-size: 30px;
    margin-right: 15px;
    transition: 0.3s;
}

.social a:hover{
    color: #38bdf8;
}

.profile img{
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 0 30px #38bdf866;
}

section{
    padding: 90px 10%;
}

section h2{
    text-align: center;
    margin-bottom: 40px;
    font-size: 42px;
    color: #38bdf8;
}

#about p{
    max-width: 900px;
    margin: auto;
    text-align: center;
    color: #cbd5e1;
    font-size: 18px;
}

.project-part{
    display: flex;
    justify-content: center;
    gap: 100px;

} 

.project-box{
    background: #1e293b;
    padding: 30px;
    width: 500px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.project-box:hover{
    transform: translateY(-8px);
    border-color: #38bdf8;
}

.project-box i{
    font-size: 50px;
    margin-bottom: 25px;
    color: #38bdf8;
}

.project-box h3{
    margin-bottom: 10px;
}

.skills-section{
    max-width: 700px;
    margin: auto;
}

.skill{
    margin-bottom: 25px;
}

.skill p{
    margin-bottom: 8px;
}

.line{
    width: 100%;
    height: 12px;
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
}

.fill{
    height: 100%;
    border-radius: 20px;
    background: #38bdf8;
}

.html{
    width: 55%;
}

.css{
    width: 25%;
}

.photo{
    width: 85%;
}

.video{
    width: 80%;
}

#contact{
    text-align: center;
}

#contact p{
    margin-bottom: 15px;
    font-size: 18px;
}

#contact i{
    color: #38bdf8;
    margin-right: 8px;
}

#contact a{
    color: white;
    text-decoration: none;
}

#contact a:hover{
    color: #38bdf8;
}

footer{
    text-align: center;
    padding: 20px;
    background: #111827;
    color: #94a3b8;
}

nav ul li.dropdown {
    position: relative;
}

.skill-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e3a52;
    min-width: 160px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 20px;
}

.skill-dropdown li {
    width: 100%;
}

.skill-dropdown li a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.skill-dropdown li a:hover {
    background-color: #1f2937; 
}

nav ul li.dropdown:hover .skill-dropdown {
    display: block;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.profile {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: conic-gradient(from var(--angle), #38bdf8, #fc00ff, #38bdf8);
  animation: spin 3s linear infinite;
  padding: 4px;
}

.profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: conic-gradient(from var(--angle), #38bdf8, #fc00ff, #38bdf8);
  animation: spin 3s linear infinite;
  border-radius: 30px;
  filter: blur(20px);
  opacity: 0.7;
  z-index: -1;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background-color: #0d1117;
  display: block;
  box-shadow: 0 0 30px #38bdf866;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

@media (max-width: 768px) {
    nav, section, #head {
        padding: 40px 5%;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .skill-dropdown {
        position: static;
        box-shadow: none;
        background-color: #111827;
        border-radius: 10px;
        margin-top: 10px;
    }

    #head {
        flex-direction: column-reverse;
        gap: 50px;
        text-align: center;
        min-height: auto;
    }

    .text h1 {
        font-size: 40px;
    }

    .text h2 {
        font-size: 20px;
    }

    .button {
        justify-content: center;
    }

    .social {
        margin-top: 30px;
    }

    .profile {
        width: 260px;
        height: 325px;
    }

    section h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    #about p {
        font-size: 16px;
    }

    .project-part {
        gap: 25px;
    }

    .project-box {
        width: 100%;
    }
}
