body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #fff;
    line-height: 1.6;
}

.typing {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #333; /* Thicker, darker cursor */
  font-family: monospace; /* Mimics code-like typing */
  font-size: 24px;
  animation: typing 3.5s steps(20, end) forwards, blink 0.6s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: #333; }
  50% { border-color: transparent; }
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}
.logo img {
    width: 50px; /* Adjust this value to make the logo smaller */
    height: auto; /* Maintain aspect ratio */
}
.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.sidebar {
    position: fixed;
    width: 200px;
    height: 100%;
    padding-top: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 500;
}

.sidebar ul li a:hover {
    background: #8e44ad;
    border-radius: 0 50px 50px 0;
    display: inline-block; /* Changes from block to inline-block to fit text */
    padding: 15px 20px; /* Maintains original padding */
    width: auto; /* Allows width to adjust to content */
}

.hero {
    display: flex;
    justify-content: space-between;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.content {
    max-width: 60%;
}

.content h1 {
    font-size: 36px;
    margin: 0;
    font-weight: 600;
    color: #8e44ad;
}

.content .highlight {
    color: #98ce06;
}

.content h2 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 500;
    color: #fff;
}

.content p {
    font-size: 16px;
    color: #bdc3c7;
}

.btn {
    display: inline-block;
    background: #8e44ad;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 500;
}

.image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #8e44ad;
    box-shadow: 0 0 100px 5px rgba(142, 68, 173, 0.7); /* Adds a glowing effect */
}

/* New Section Styles */
.section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 28px;
    color: #8e44ad;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    font-size: 16px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-item {
    flex: 1 1 calc(33.33% - 20px);
    background: #2c3e50;
    padding: 20px;
    border-radius: 5px;
}

.portfolio-item h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px 0;
}

.portfolio-item p {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.contact-info {
    font-size: 16px;
    color: #bdc3c7;
    margin: 10px 0;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: #8e44ad;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
        width: 100%;
        position: static;
        background: transparent;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .content, .image {
        max-width: 100%;
    }
    .image img {
        margin-top: 20px;
    }
    .portfolio-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 28px;
    }
    .content h2 {
        font-size: 20px;
    }
    .content p {
        font-size: 14px;
    }
    .section h2 {
        font-size: 24px;
    }
    .portfolio-item {
        padding: 15px;
    }
}