* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8a2be2, #1e90ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #8a2be2, #1e90ff);
    transition: width 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover {
    color: #ffffff;
}

.hamburger {
  display: none;
}

.nav-brand {
  display: none;
}

#nav-menu {
  /* default */
}

.mobile-nav {
    display: none;
}

body {
    padding-top: 70px;
}

header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(30, 144, 255, 0.1));
    z-index: -1;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8a2be2, #1e90ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

header p {
    font-size: 1.3rem;
    font-weight: 300;
    color: #b0b0b0;
}

section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2, #1e90ff, #00ffff);
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #8a2be2, #1e90ff);
    border-radius: 2px;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #d0d0d0;
}

section a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s;
}

section a:hover {
    color: #00ffff;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

li {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

li:hover::before {
    left: 100%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.project h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.project p {
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.project-link {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-link:hover {
    color: #00ffff;
    text-decoration: underline;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-category ul {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.skill-category li {
    padding: 0.5rem 1rem;
    margin: 0;
}

.contact-details {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.submit-btn {
    background: linear-gradient(45deg, #8a2be2, #1e90ff);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-top: 3rem;
}

.navbar a.active {
    color: #ffffff;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
        z-index: 1000;
        border-top: 3px solid transparent;
        border-image: linear-gradient(90deg, #8a2be2, #1e90ff) 1;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #e0e0e0;
        font-size: 0.8rem;
        transition: color 0.3s;
        padding: 0.5rem;
        border-radius: 10px;
        min-width: 60px;
    }

    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .nav-item.active {
        color: #1e90ff;
        background: rgba(30, 144, 255, 0.1);
    }

    .nav-item:hover {
        color: #ffffff;
    }

    body {
        margin-left: 0;
        padding-bottom: 80px;
    }

    header {
        padding: 3rem 1rem;
        margin-top: 0;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.1rem;
    }

    section {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }

    .project-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project,
    .skill-category {
        padding: 1.5rem;
    }

    .contact-details {
        padding: 1.5rem;
    }

    ul {
        grid-template-columns: 1fr;
    }

    footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 0.5rem;
    }
    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    section {
        margin: 1rem 0.5rem;
        padding: 1.5rem 1rem;
    }
    .project-grid,
    .skills-grid {
        gap: 0.5rem;
    }
    .project,
    .skill-category,
    .contact-details {
        padding: 1rem;
    }
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}