* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #130428;
    --second-bg-color: #1A0B2E;
    --text-color: #fff;
    --main-color: #7127BA;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

section {
    min-height: 100%;
    padding: 5rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: var(--second-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header.sticky {
    border-bottom: 0.1rem solid var(--main-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

#menu-icon {
    font-size: 2.5rem;
    color: #fff;
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        background: #111;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
    }

    #menu-icon {
        display: block;
    }

    .navbar.active {
        right: 0;
    }
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/* Home Section */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 80px;
    padding: 2rem 9%;
}

.home-img {
    flex: 1 1 40rem;
    text-align: center;
}

.home-img img {
    width: 100%;
    max-width: 350px;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

.home-content {
    flex: 1 1 45rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    font-weight: 600;
    transition: 0.5s ease;
    margin-bottom: 20px;
}

.btn:hover {
    box-shadow: none;
}

/* About Section */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img {
    flex: 1 1 40rem;
    text-align: center;
}

.about-img img {
    width: 100%;
    max-width: 350px;
}

.about-content {
    flex: 1 1 45rem;
}

.about-content h2 {
    font-size: 4.5rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

/* Expertise Section */
.expertise {
    background-color: var(--bg-color);
}

.expertise .heading {
    text-align: center;
    font-size: 5rem;
    margin-bottom: 50px;
}

.expertise-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
}

.expertise-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: left;
    transition: 0.5s ease;
    border: 0.2rem solid var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.expertise-box:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expertise-header i {
    font-size: 4rem;
    color: var(--main-color);
}

.expertise-header h3 {
    font-size: 2.4rem;
    margin: 0;
    color: var(--text-color);
}

.expertise-box p {
    font-size: 1.6rem;
    margin: 1rem 0 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Skills Section */
.skills {
    background-color: var(--bg-color);
}

.skills .heading {
    text-align: center;
    font-size: 5rem;
    margin-bottom: 50px;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2.5rem;
}

.skills-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    transition: 0.5s ease;
    border: 0.2rem solid var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.skills-box:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
}

.skills-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.skills-box p {
    font-size: 2.5rem;
    color: var(--main-color);
    margin: 2px;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-color);
}

.portfolio .heading {
    margin-bottom: 2rem;
}

.portfolio-intro {
    text-align: center;
    font-size: 1.8rem;
    color: #999;
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 2.5rem;
}

.portfolio-box {
    position: relative;
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: left;
    transition: 0.5s ease;
    border: 0.2rem solid var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.portfolio-box.featured {
    grid-column: span 1;
    border-color: var(--main-color);
}

.portfolio-box:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
}

.portfolio-box h3 {
    margin-bottom: 10px;
    font-size: 2rem;
    text-align: center;
    color: var(--text-color);
}

.project-badge {
    display: inline-block;
    background: var(--main-color);
    color: var(--second-bg-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-box img {
    width: 100%;
    display: block;
    margin: 1rem auto;
    border-radius: 1rem;
}

.portfolio-layer p {
    font-size: 1.5rem;
    margin-top: 10px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tech-tag {
    display: inline-block;
    background: rgba(113, 39, 186, 0.2);
    color: var(--main-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    border: 0.1rem solid var(--main-color);
}

.external-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 1.6rem;
    border-radius: 10px;
    color: var(--second-bg-color);
    background: var(--main-color);
    font-weight: 600;
    transition: 0.5s ease;
}

.external-link:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.view-link {
    text-align: left;
}

/* Contact Section */
.contact {
    background-color: var(--second-bg-color);
}

.contact .heading {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: #999;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--bg-color);
    flex-shrink: 0;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-item a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--main-color);
}

/* Footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footer-text {
    text-align: center;
    color: var(--text-color);
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 5%;
    }

    section {
        padding: 10rem 5% 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        display: none;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 1rem 0;
    }

    .home,
    .about {
        flex-direction: column;
        text-align: center;
    }

    .home-content,
    .about-content {
        text-align: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 3.6rem;
    }

    .home-content h3 {
        font-size: 2.2rem;
    }

    .btn {
        font-size: 1.4rem;
        padding: 0.8rem 2.4rem;
    }

    .portfolio-container,
    .expertise-container,
    .skills-container {
        grid-template-columns: 1fr;
    }
}