*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
body {
    background: linear-gradient(135deg, #121212, #1e1e1e);
    color: #f5f5f5;
    transition:  0.5s, color 0.5s;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18,18,18,0.8);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
}
header h1{
    font-weight: 700;
    font-size: 1.6rem;
    color: #00d8ff;
    letter-spacing: 1px;
}
nav a{
    color: #f5f5f5;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
nav a:hover {
    color: #00d8ff;
    transform: scale(1.1);
}
section {
      padding: 6rem 2rem;
      min-height: 80vh;
    }

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(./Images/bg\ pic.avif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    height: 100vh;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 2s ease;
}
.hero h1 {
    font-size: 3rem;
    color: #00d8ff;
    animation: glow 3s ease-in-out infinite alternate;
}
.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #ccc;
}
nav a {
    color: #f5f5f5; 
    margin: 0 1rem; 
    text-decoration: none; 
    font-weight: 500; 
    transition: 0.3s;
}
nav a:hover {
    color: #00d8ff; 
    transform: scale(1.1);
}
 nav {
      background-color: #1e1e1e;
    }
    nav a {
      color: #f5f5f5 !important;
      font-weight: 500;
    }
    nav a:hover {
      color: #00bcd4 !important;
    }
.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-icons a {
    color: #00d8ff;
    font-size: 1.8rem;
    transition: 0.3s;
}
.social-icons a:hover {
    color: #fff;
    transform: scale(1.3) rotate(1deg);
    text-shadow: 0 0 20px #00d8ff;
}
.about {
    background: #181818; 
    text-align: center; 
    padding: 5rem 2rem; 
    border-top: 2px solid #00d8ff;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.9rem;
}
.about h1 {
    color: #00d8ff; 
    margin-bottom: 1rem; 
    font-size: 2rem;
}
    
.about p {
    max-width: 800px; 
    margin: 0 auto; 
    font-size: 1.1rem; 
    color: #ccc; 
    line-height: 1.8;
}
.about img {
    width: 380px; 
    height: 380px; 
    border-radius: 50%;
    border: 3px solid #00d8ff; 
    box-shadow: 0 0 30px rgba(0,216,255,0.4); 
    transition: 0.4s;}
.about img:hover {
    transform: scale(1.05) rotate(1deg); 
    box-shadow: 0 0 40px rgba(0,255,255,0.8);
}
.education-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top:10rem;

}
.project-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top:10rem;
}
.card {
        background: #1f1f1f; 
        padding: 1.5rem; 
        border-radius: 1rem; 
        box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
        transition: all 0.4s ease;
        width: 350px;
        margin-right: 650px;
}
.card:hover {
    transform: translateY(-10px) scale(1.03);
     box-shadow: 0 10px 25px rgba(0,216,255,0.5); 
     background: linear-gradient(135deg, #141e30, #243b55);
}
.skills {
    background: #181818; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1.5rem; 
    padding: 2rem rem;
}
.skill {
    background: #222; 
    padding: 1rem 2rem; 
    border-radius: 50px; 
    transition: 0.4s; 
    box-shadow: 0 0 10px rgba(0,216,255,0.2); 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 1.1rem;
}
.skill i {
    color: #00d8ff; 
    font-size: 1.3rem; 
    transition: transform 0.3s ease;
}
.skill:hover {
    transform: scale(1.1); 
    background: #00d8ff; 
    color: #111; 
    box-shadow: 0 0 20px #00d8ff;
}
.skill:hover i {
    color: #111; 
    transform: rotate(2deg);
}
.contact {
    text-align: center; 
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    width: 100%;
}
.contact form {
    max-width: 500px; 
    margin: 2rem auto; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem;
}
input, textarea {
    padding: 0.8rem; 
    border-radius: 8px;
    border: 1px solid #333; 
    background: #1c1c1c; 
    color: #fff; 
    font-size: 1rem;
}
button{
        padding: 0.8rem; 
        background: #00d8ff; 
        border: none; 
        border-radius: 8px; 
        cursor: pointer; 
        font-weight: 600; 
        color: #111; 
        transition: 0.3s;
}
button:hover {
    background: #00ffff; 
    transform: scale(1.05); 
    box-shadow: 0 0 20px #00d8ff;
}
    @media (max-width: 768px) {.hero h1 {font-size: 2.2rem;} nav a {margin: 0 0.5rem;}}
.contact{
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top:5rem;
    width: auto;
}
footer {
      background-color:black;
      color:#00d8ff;
      text-align: center;
      padding: 6px;
      width: auto;
}
footer a {
      color: white;
      margin: 0 10px;
      font-size: 1.2rem;
}
footer a:hover {
      color: #000000;
}
.contact-title{
    width: 320px;
}