@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');


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

:root {
    --bg-color: #0F172A;
    /* Deep Charcoal */
    --second-bg-color: #1E293B;
    /* Navy Slate */
    --main-color: #8B5CF6;
    /* Soft Violet (Accent) */
    --highlight-color: #5EEAD4;
    /* Aqua Mint */
    --text-color: #F1F5F9;
    /* Light Gray */
    --text-dark: #334155;
    /* Charcoal Gray (optional) */
}


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

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

section {
    padding: 7rem 6%;
}

html::-webkit-scrollbar {
    display: none;
}

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B5CF6;
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    pointer-events: auto;
}




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

.header.sticky {
    border-bottom: .2rem solid rgba(0, 0, 0, .2);
}


.logo-symbol {
  font-family: 'Fira Mono', monospace; 
  font-size: 2.7rem; 
  font-weight: 900;
  color: var(--main-color);
  margin-right: 0.24rem;
  letter-spacing: -1.5px;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}

.logo-text {
  font-size: 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -1px;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}


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

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

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}




/* **************** Hero Section **************** */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.home-content {
    flex: 1;
    text-align: center;
    padding: 100px;
}

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

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

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

.home-content h3,
.home-content h1 {
    font-family: 'Poppins', sans-serif;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    margin: 1rem;
    background: linear-gradient(135deg, var(--main-color), var(--highlight-color));
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

button:hover,
.view-resume:hover {
    background: #5EEAD4;
    color: #0F172A;
    transition: all 0.3s ease;
}




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

.about img {
    border-radius: 50%;
    padding: 10px solid #000000;
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.heading {
    display: block;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
    font-size: 4rem;
}

.about-content h3 {
    font-size: 2rem;
}

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





/* **************** Service Section **************** */
.services h2 {
    margin-bottom: 3rem;
    font-size: 4rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    padding: 3rem 2rem 1rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    transition: .5s ease;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-container .services-box:hover {
    border-color: none;
    transform: scale(1.02);
}

.services-box i {
    font-size: 8rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.2rem;
    font-weight: normal;
    padding: 1.5rem;
}

.services-box p {
    font-size: 1.4rem;
    margin: 1rem 0 3rem;
}




/* **************** Skills Section **************** */
.skills-section {
    background: var(--bg-color);
    padding: 7rem 6%;
    text-align: center;
}

.skills-section h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
    font-weight: bold;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.1);
}





/* **************** Projects Section **************** */
.projects {
    background: var(--bg-color);
    padding: 7rem 6%;
}

.projects h2 {
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-size: 4rem;
    text-align: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-box {
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    transition: 0.5s ease;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 100px;
    border-radius: 1rem;
    margin-bottom: 1.5rem;  
}

.project-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.project-box h4 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-box span {
    font-weight: bold;
    color: var(--text-color);
}

.project-box p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

/* **************** Responsive adjustments **************** */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}





/* **************** Contact Section **************** */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--text-color);
    max-width: 600px;
}

.contact-info {
    flex: 1;
    padding: 20px;
    align-items: start;
}

.box h2 {
    font-size: 4rem;
    margin: 1rem 0 1rem;
    text-align: start;
}

.box p {
    font-size: 1.5rem;
    margin: 2rem 0 2rem;
    text-align: start;
}

.highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.box p i {
    font-size: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid var(--main-color);
    border-radius: 9999px;
    font-size: 1.8rem;
    color: var(--main-color);
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}





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

.footer-text p {
    font-size: 1.6rem;
    text-align: center;
    padding: 1rem;
}

.footer a {
    color: var(--main-color);
}





/* **************** Media Query **************** */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3%;
    }

    .about img {
        width: 30vw;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

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

    .home {
        flex-direction: column;
    }

    .home-content {
        padding: 3rem;
        margin: auto;
        margin-top: 5rem;
    }

    .home-content h1 {
        font-size: 6rem;
    }

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

    .about {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        text-align: center;
    }

    .about-content {
        margin: 0;
        padding: 0 1.5rem;
        width: 100%;
    }

    .about-content h2 {
        text-align: center;
        font-size: 3rem;
    }

    .about-content p {
        margin: 2rem 0 3rem 0;
        font-size: 1.5rem;
        text-align: center;
    }

    .about img {
        width: 48vw;
        max-width: 240px;
        padding: 0;
    }

    .services-container p {
        font-size: 1.5rem;
    }

    .project-box p {
        font-size: 1.6rem;
    }

    .contact p .highlight {
        font-size: 2rem;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 617px) {
    .home-content {
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .about img {
        width: 70vw;
        max-width: 320px;
    }

    .about-content {
        padding: 0 0.5rem;
    }
}


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

    .home-content {
        margin-top: 100px;
    }

    .about img {
        width: 70vw;
    }

    .services-box p {
        font-size: 1.6rem;
    }

    .skill-item {
        width: 70px;
        height: 70px;
    }

    .project-box p {
        font-size: 1.6rem;
    }

    .contact p .highlight {
        font-size: 1.9rem;
    }
}

@media (max-width: 365px) {
    .home-content {
        margin-top: 5rem;
        padding: 50px 0 0 0;
    }

    .home-content h1 {
        font-size: 4.8rem;
    }

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

    .about img {
        width: 90vw;
    }

    .services-box p {
        font-size: 1.5rem;
    }

    .skill-item {
        width: 70px;
        height: 70px;
    }

    .project-box p {
        font-size: 1.5rem;
    }

    .contact p .highlight {
        font-size: 1.7rem;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
    }
}