/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1c1c1e;
    color: #dcdde1;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #1c1c1e;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo span {
    color: #7f8fa6;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #dcdde1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00a8ff;
}



/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 10%;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-text {
    max-width: 500px;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-text h1 {
    font-size: 3rem;
    color: #a4b0be;
    margin: 20px 0;
    font-weight: 800;
}

.contact-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: underline;
    color: #fff;
    font-weight: 600;
}

.hero-img img {
    max-width: 300px;
    border-radius: 20px;
    border: 2px solid #2f3542;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a img {
    width: 28px;
    height: 28px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* Section Shared Styles */
.about {
    padding: 60px 10%;
}

.about h2 {
    text-transform: lowercase;
    font-size: 2rem;
    color: #a4b0be;
    font-weight: 800;
}

.line {
    height: 3px;
    background-color: #57606f;
    width: 100px;
    margin: 10px 0 20px;
}

.about p {
    max-width: 700px;
    margin-bottom: 20px;
    color: #ced6e0;
}

/* Languages & Project Cards */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-box {
    flex: 1 1 200px;
    background-color: #2f3542;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;


}

.skill-box:hover {
    transform: scale(1.05);
}

.skill-box h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

.skill-box p {
    font-size: 0.9rem;
    color: #a4b0be;
}

/* visit- button for projects */
.visit-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #dcdde1;
    color: #1c1c1e;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.visit-btn:hover {
    background-color: #2f3640;
    color: #f5f6fa;
}

/* Contact Form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    background-color: #2f3542;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    resize: none;
}

.contact-form button {
    background-color: #00a8ff;
    color: #fff;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0077cc;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section transition on target */
section {
    opacity: 0.95;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

section:target {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00a8ff;
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #0077cc;
    transform: translateY(-3px);
}


/* Footer */
.footer {
    background-color: #1c1c1e;
    text-align: center;
    padding: 20px 10%;
    color: #a4b0be;
    font-size: 0.9rem;
    border-top: 1px solid #2f3542;
}


/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }

    .skills {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}