* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    outline: none;
    border: none;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff4d6d;
    --background-color: #0a192f;
    --text-color: #e6f1ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 9%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.navbar {
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Portfolio section styles */
.portfolio {
    padding: 120px 9% 60px;
}

.portfolio h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio>p {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 3rem;
}

.project {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project:hover::before {
    width: 100%;
    opacity: 0.1;
}

.project h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}

.project p {
    font-size: 1rem;
    color: #8892b0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project ul li {
    color: #8892b0;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.project a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}

.project a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Skills section styles */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    list-style: none;
}

.skills-list li {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-list li i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skills-list li:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
}

.skills-list li:hover i {
    color: white;
}

/* Experience section styles */
.experience {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.experience p {
    color: #8892b0;
    margin-bottom: 1rem;
}

.experience ul {
    list-style: none;
}

.experience ul li {
    color: #8892b0;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 2rem 0;
    background: rgba(10, 25, 47, 0.95);
    color: var(--text-color);
    margin-top: 4rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project,
.skills-list li,
.experience {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .portfolio {
        padding: 100px 5% 40px;
    }

    .portfolio h1 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        padding: 2rem 5%;
        background: var(--background-color);
        flex-direction: column;
        align-items: center;
        transition: var(--transition);
    }

    .navbar.active {
        top: 70px;
    }

    .portfolio h1 {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 1.5rem;
    }

    .skills-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .portfolio h1 {
        font-size: 1.8rem;
    }

    .project {
        padding: 1.5rem;
    }

    .project h2 {
        font-size: 1.3rem;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .btn-box {
        flex-direction: column;
    }
}