
:root {
    --dark: #1B0E20;
    --mid-dark: #44334A;
    --primary: #8D77A8;
    --light: #D1C0EC;
    --soft: #C4ADDD;
    --white: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 8px;
    font-family: sans-serif;
    background: linear-gradient(135deg, #f9f7fc, #ede7f6);
    color: var(--dark);
    overflow-x: hidden;
}
.sidebar {
    margin: 0;
    padding: 0;
    width: 90px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar .links {
    list-style: none;
    padding: 0;
}
.sidebar .links li {
    color: var(--soft);
    text-align: center;
    padding: 20px 0;
    cursor: pointer;
    transition: 0.3s;
}
.sidebar .links li i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}
.sidebar .links li p {
    font-size: 12px;
}
.sidebar .links li:hover,
.sidebar .links .activelink {
    color: var(--white);
    transform: scale(1.1);
}
.home-slide {
    background: linear-gradient(135deg, var(--light), var(--soft));
    display: flex;
    align-items: center; /* vertically center content */
    min-height: 100vh;
    padding-left: 80px; /* space from the sidebar */
    padding-right: 50px;
}
.HomeContent {
    max-width: 600px; /* limit text width for better readability */
}
.HomeContent h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}
.stylized-name {
   
    color: var(--primary);
    font-size: 3.5rem;
}
.professions {
    color: var(--mid-dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.herline {
    margin-bottom: 30px;
    color: var(--mid-dark);
    line-height: 1.8;
    font-size: 1rem;
}
.custom-btn {
    border-radius: 30px;
    padding: 10px 25px;
    transition: 0.3s;
    border: none;
}
.btn-primary.custom-btn {
    background: linear-gradient(135deg, var(--primary), var(--soft));
    color: white;
}
.btn-primary.custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(141, 119, 168, 0.4);
}
.btn-outline-light.custom-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-light.custom-btn:hover {
    background: var(--primary);
    color: white;
}

.SideImg img {
    width: 260px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left; /* align heading to left */
    margin-bottom: 20px;
}
.sub-heading {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: left;
}
.aboutme-details {
    color: var(--mid-dark);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px; /* limit width for better readability */
    text-align: left; /* align text to left */
    margin-bottom: 10px;
}
.about-me-table {
    list-style: none;
    padding: 0;
}
.about-me-table li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    gap: 15px;
}
.about-me-table span {
    color: var(--primary);
    font-weight: 600
}
.progress {
    height: 8px;
    border-radius: 20px;
    background: #eee;
}
.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--soft));
    border-radius: 20px;
}
.project-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    background: white;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.project-card img {
    height: 180px;
    object-fit: cover;
}
.card-title {
    color: var(--dark);
    font-weight: 600;
}
.card-text {
    color: var(--mid-dark);
}
.service-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--light), white);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card i {
    color: var(--primary);
}
form {
    background: white;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(141, 119, 168, 0.2);
}
.slide-help {
    text-align: center;
    margin-top: 20px;
    color: var(--mid-dark);
    font-size: 14px;
}
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .HomeContent h1 {
        font-size: 2rem;
    }
    .stylized-name {
        font-size: 2.2rem;
    }
}
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.show {
    opacity: 1;
    transform: translateY(0);
}
html, body {
    height: 100%;
}
.swiper {
    height: 100vh;
}
.swiper-slide {
    background: linear-gradient(
        135deg,
        rgba(209, 192, 236, 0.35),
        rgba(196, 173, 221, 0.25)
    );
}
.mySwiper {
    flex: 1; 
    margin: 0;
    padding: 0;
}
.icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.icons a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}
.icons a .layer {
    position: relative;
    width: 55px;
    height: 55px;
    background: var(--soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.icons a:hover .layer {
    transform: rotate(-35deg) skew(20deg);
}
.icons a .layer span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    border-radius: 5px;
    transition: all 0.3s;
}
.icons a .layer span.fab {
    font-size: 28px;
    line-height: 55px;
    text-align: center;
    color: var(--primary);
}
.icons a:hover .layer span:nth-child(1) {
    opacity: 0.2;
}
.icons a:hover .layer span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}
.icons a:hover .layer span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}
.icons a:hover .layer span:nth-child(4) {
    opacity: 0.8;
    transform: translate(15px, -15px);
}
.icons a .text {
    margin-top: 5px;
    font-size: 12px;
    color: var(--mid-dark);
}
.swiper-slide.services {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
}
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;

    font-size: 0.9rem;
    color: var(--mid-dark);

    background: rgba(209, 192, 236, 0.25);
    border-radius: 12px;

    backdrop-filter: blur(6px);
    letter-spacing: 0.5px;
}