/* Reset and Body */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0d0d2b;
    color: white;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #0a0a23;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #bb4ef2;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.1);
}

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

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #bb4ef2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: scaleX(1);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #bb4ef2;
    font-weight: 600;
}

.star-btn {
    background-color: #bb4ef2;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 10px #bb4ef2;
    transition: all 0.3s ease-in-out;
}

.star-btn:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px #bb4ef2, 0 0 30px #bb4ef2;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 36px;
}

.hero-text h2 {
    font-size: 32px;
}

.highlight {
    color: #bb4ef2;
    font-weight: bold;
}

.hero-img img {
    width: 350px;
}

/* About Section */
.about {
    display: flex;
    justify-content: space-between;
    padding: 60px;
}

.about-text {
    flex: 1;
    padding-right: 40px;
}

.about-text h2 {
    font-size: 28px;
}

.about-img img {
    width: 220px;
    border-radius: 50%;
}

/* Typewriter Animation */
.typewriter {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #bb4ef2;
    font-size: 30px;
    color: #bb4ef2;
    animation: typing 2.4s steps(13) forwards;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 13ch;
    }
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 20px;
}

/* Skills Section */
.skills {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 120px;
    height: 120px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-box i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-box:hover {
    transform: translateY(-8px);
}

/* Tools Section */
.tools {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.tool-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 120px;
    height: 120px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tool-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.tool-box:hover {
    transform: translateY(-8px);
}

/* Projects Section */
.projects {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 20px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    max-width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 440px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    height: 160px;
    object-fit: cover;
}

.project-card h3 {
    margin: 15px 0 10px;
}

.project-card p {
    font-size: 0.95rem;
    color: #ddd;
}

.btn-group {
    margin-top: 15px;
}

.btn {
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    border-radius: 5px;
    background: #6c63ff;
    color: white;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #4a45d3;
}

/* Footer */
.footer {
    background-color: #0a0a23;
    color: white;
    text-align: center;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    z-index: 1;
}

.footer-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.footer-content p {
    color: #c9c9c9;
    font-size: 16px;
    margin-bottom: 25px;
}

.footer .highlight {
    color: #bb4ef2;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons .icon {
    background-color: white;
    border-radius: 50%;
    padding: 15px;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons .icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 10px #bb4ef2;
    background-color: #bb4ef2;
    color: white;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 15px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {

    .skill-grid,
    .tool-grid,
    .project-grid {
        flex-direction: column;
        align-items: center;
    }

    .hero,
    .about {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .about-text {
        padding: 0;
    }
}