/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b0210;
    color: #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #120316;
    box-shadow: 0 4px 15px rgba(128, 0, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.logo a:hover {
    color: #C084FC;
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #C084FC;
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        background: #120316;
        flex-direction: column;
        gap: 20px;
        width: 200px;
        padding: 20px;
        box-shadow: -4px 0 15px rgba(128, 0, 255, 0.4);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        height: calc(100vh - 70px);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links li a {
        font-size: 20px;
    }

    .logo a {
        font-size: 18px;
    }
}

/* Home Section */
.home-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
    padding: 50px 20px;
}

.profile-img {
    width: 150px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(128, 0, 255, 0.5);
    margin-bottom: 20px;
}

.highlight {
    color: #C084FC;
}

.cover-highlight {
    background: linear-gradient(90deg, #7F00FF, #E100FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.company {
    color: #00bfff;
}

h1 {
    font-size: 40px;
    margin: 20px 0;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 22px;
    margin: 10px 0;
}

.subtext {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 30px;
}

.desc {
    max-width: 600px;
    line-height: 1.8;
    color: #ccc;
}

/* Typing Animation */
.typing {
    color: #C084FC;
    border-right: 2px solid #C084FC;
    white-space: nowrap;
    overflow: hidden;
}

/* Home Responsive */
@media (max-width: 768px) {
    .home-section {
        padding: 40px 20px;
    }

    h1 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .tagline {
        font-size: 18px;
    }

    .desc {
        font-size: 14px;
    }

    .profile-img {
        width: 120px;
    }
}

/* About Section */
.about-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #C084FC;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-info {
    background: #120316;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(128, 0, 255, 0.3);
    flex: 1 1 350px;
    color: #eee;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(128, 0, 255, 0.5);
}

.about-info img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #C084FC;
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.5);
}

.about-info p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #ddd;
}

.personal-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.personal-details li {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.personal-details li strong {
    color: #C084FC;
}

.personal-details a {
    color: #00bfff;
    text-decoration: none;
}

.personal-details a:hover {
    color: #C084FC;
}

.about-description {
    flex: 2 1 500px;
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    max-width: 700px;
    padding: 10px 15px;
    text-align: left;
    margin-top: -20px;
}

.about-description .highlight {
    color: #C084FC;
}

/* Responsive About Me */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-info,
    .about-description {
        max-width: 100%;
    }

    .about-description {
        text-align: center;
    }

    .personal-details li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .personal-details li strong {
        color: #C084FC;
        min-width: 100px;
        /* Optional: ensures label width consistency */
    }

    .personal-details li span {
        color: #aaa;
        word-break: break-word;
        text-align: left;
        font-size: 14px;
    }

}

/* Project Section */
.project-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.project-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #C084FC;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: #120316;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(128, 0, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(128, 0, 255, 0.4);
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.project-card p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.project-card a {
    text-decoration: none;
    color: #00bfff;
    font-weight: bold;
    transition: color 0.3s;
}

.project-card a:hover {
    color: #C084FC;
}

@media (max-width: 768px) {
    .project-section h2 {
        font-size: 28px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 14px;
    }

    .project-container {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #C084FC;
}

.contact-text {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #1a0824;
    color: #fff;
    font-size: 16px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form button {
    background: linear-gradient(90deg, #7F00FF, #E100FF);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: linear-gradient(90deg, #E100FF, #7F00FF);
}

#form-status {
    margin-top: 20px;
    color: #C084FC;
    font-size: 16px;
}

/* Contact Links */
.contact-links-icons {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a0824;
    color: #00bfff;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s, color 0.3s;
    box-shadow: 0 0 10px rgba(128, 0, 255, 0.2);
}

/* Hover Effects */
.contact-link.email:hover {
    background: #FF6B6B;
    color: #fff;
    transform: translateY(-3px);
}

.contact-link.whatsapp:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-3px);
}

.contact-link.linkedin:hover {
    background: #0A66C2;
    color: #fff;
    transform: translateY(-3px);
}

.contact-link.github:hover {
    background: #333;
    color: #fff;
    transform: translateY(-3px);
}

.contact-link.telegram:hover {
    background: #0088cc;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    font-size: 20px;
    height: 40px;
    width: 40px;
    border: none;
    background: linear-gradient(90deg, #7F00FF, #E100FF);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(128, 0, 255, 0.6);
}

/* Scroll Animation */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #120316;
    color: #ccc;
    text-align: center;
    padding: 25px 15px;
    font-size: 14px;
    margin-top: 50px;
    box-shadow: 0 -2px 20px rgba(128, 0, 255, 0.25);
    animation: pulseGlow 4s ease-in-out infinite;
}

.footer-name {
    background: linear-gradient(90deg, #C084FC, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-name:hover {
    opacity: 0.8;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(128, 0, 255, 0.3);
        background-color: #120316;
    }

    50% {
        box-shadow: 0 0 30px rgba(128, 0, 255, 0.6);
        background-color: #1a0824;
    }

    100% {
        box-shadow: 0 0 15px rgba(128, 0, 255, 0.3);
        background-color: #120316;
    }
}

@media (max-width: 768px) {
    .footer {
        font-size: 12px;
        padding: 20px 10px;
    }
}