* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

html {
    scroll-behavior: smooth;
}


body {
    background: linear-gradient(135deg, #d9e4ff, #f7e8ff);
    color: #333;
    text-align: center;
}

nav {
    z-index: 1000;
    display: flex;
    height: 84px;
    align-items: center;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
}

nav ul {
    position: absolute;
    right: 40px;
    display: flex;
}

nav ul li {
    font-size: 20px;
    list-style: none;
    margin-right: 60px;
}

nav a {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    color: #444;
    transition: color 0.2s ease;
}

/* underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;   /* adjust underline distance */
    width: 0%;
    height: 3px;
    background: rgb(73, 66, 167);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #6a5acd;
}

nav a:hover::after {
    width: 100%;
}


.logo {
    font-size: 25px;
    font-weight: 700;
    color: #4b3faf;
    text-shadow: 0 0 8px rgba(106, 90, 205, 0.6), 
                 0 0 12px rgba(106, 90, 205, 0.4);
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 12px rgba(106, 90, 205, 0.9), 
                 0 0 20px rgba(106, 90, 205, 0.8);
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -999;
    pointer-events: none;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 12s ease infinite;
    background-size: 200% 200%;
    padding-bottom: 5%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 10px;
}

.hero span {
    color: #9030cf;
    font-weight: bold;
}

.hero p {
    font-size: 22px;
    margin-bottom: 20px;
}

.section {
    padding: 60px 10%;
    margin-top: 20px;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #4b3faf;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.skills-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 18px;
    margin: 0 auto 30px auto;
}

.skills-box span {
    padding: 10px 20px;
    background: #6a5acd;
    color: white;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.skills-box span:hover {
    transform: translateY(-4px);
}

.project-card {
    max-width: 650px;
    margin: 0 auto 30px auto;
    background: rgba(255,255,255,0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 6px solid #6a5acd;
}

.project-card h3 {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #6a5acd;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 12px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #5848c4;
    transform: scale(1.05);
}

#contact p {
    text-align: center;
    display: block;
    font-size: 18px;
    margin: 10px 0;
    padding-left: 35%;
}

footer {
    background: #4b3faf;
    color: white;
    padding: 18px;
    margin-top: 40px;
    font-size: 15px;
}
