body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.main-content {
    flex: 1;
}

/* ===== HEADER & PARTICLES ===== */
#Heading {
    font-size: 50px;
    font-weight: 600;
    color: rgb(238, 234, 231);
}

.head {
    min-height: 70vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.head h1,
.head p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

header.head {
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

header .container {
    position: relative;
    z-index: 2;
}

.head img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---------- Hero Section Mobile Optimization ---------- */
@media (max-width: 767px) {
    .head .row {
        flex-direction: column;
        text-align: center;
    }

    .head h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .head p.lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .head a.btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .head img {
        max-width: 80%;
        margin-top: 1.5rem;
    }
}

.logo {
    height: 50px;
    width: auto;
    color: #eeeeee;
}

/* ===== NAVBAR ===== */
.navbar {
    z-index: 1000;
}

.nav-pills {
    background: #111;
    border: 1px solid grey;
    margin: 20px;
    border-radius: 12px;
    padding: 0.3rem;
}

.nav-pills .nav-link {
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* ===== MOBILE VIEW FIXES ===== */
@media (max-width: 991px) {
    #navbarNav {
        background: rgba(20, 19, 19, 0.95);
        padding: 1rem;
        border-radius: 10px;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-nav .nav-link {
        color: #fff !important;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .nav-pills {
        margin: 10px 0;
    }

    .navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    #particles-js {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }
}

/* ===== SECTIONS ===== */
.section {
    background-color: #000;
}

.section:nth-child(even) {
    background: #111;
}

.text {
    color: #FFE8DB;
}

/* ===== BOXES (Projects) ===== */
.box {
    background-color: #541212;
}

.box-2 {
    background-color: #eeeeee;
}

/* ===== SKILLS ===== */
#skills h2 {
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid black;
    display: inline-block;
    padding: 5px 20px;
    margin-bottom: 40px;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-item i {
    font-size: 60px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item i:hover {
    transform: scale(1.25) rotate(5deg);
    color: #0d6efd;
}

.skill-item p {
    margin: 0;
    font-weight: 500;
}

/* ===== CONTACT BUTTONS ===== */
.contact-buttons .contact-btn {
    background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-buttons .contact-btn span {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-buttons .contact-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.6);
}

.contact-buttons .contact-btn i {
    transition: transform 0.3s ease;
}

.contact-buttons .contact-btn:hover i {
    transform: rotate(12deg) scale(1.1);
}

.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover:hover {
    transform: translateY(-3px);
}

/* ===== PROFILE CARD ===== */
.profile-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    background-color: #bab6b6;
}

.profile-card:hover {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.profile-card:hover h4,
.profile-card:hover p {
    color: #fff !important;
}

.profile-img {
    width: 250px;
    border-radius: 50%;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.profile-card:hover .profile-img {
    transform: scale(1.1);
    border-color: #fff;
}

/* ===== FOOTER ===== */
.foot {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.foot p {
    margin: 0;
    color: #aaa;
}