/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== BODY ===== */
body {
    background: #050505;
    color: white;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: flex-end;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.navbar ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

/* Neon hover */
.navbar a:hover {
    color: #0ff;
    text-shadow: 0 0 6px #0ff;
}

/* ===== HOME SECTION ===== */
.home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== CONTENT BOX ===== */
.content-box {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #0ff;
    box-shadow: 0 0 8px #0ff;
    transition: 0.3s;
}

/* Hover lift */
.content-box:hover {
    transform: translateY(-8px);
}

/* ===== NEON TEXT ===== */
.neon-text {
    color: #0ff;
    font-size: 32px;
    text-shadow: 0 0 4px #0ff;
}

/* ===== TYPING EFFECT ===== */
#typing-text {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #0ff;
    width: 0;
    animation: typing 3s steps(35, end) forwards,
               blink 0.7s infinite;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border: 1.5px solid #0ff;
    color: #0ff;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #0ff;
    color: black;
    box-shadow: 0 0 10px #0ff;
}

/* ===== ANIMATIONS ===== */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}






/* ===== ABOUT SECTION ===== */
.about-box {
    margin-top: 30px; 
}
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 10px;
}

/* Profile Image Container */
.about-image img {
    width: 180px;
    height: 220px;
    border-radius: 15px;
    object-fit: cover;
    border: 1px solid #0ff;
    box-shadow: 0 0 8px #0ff;
}

/* Text */
.about-text {
    max-width: 500px;
    text-align: left;
}

/* Main heading */
.about-text h2 {
    margin-bottom: 10px;
}

/* Sub headings */
.about-text h3 {
    margin-top: 10px;
    color: #0ff;
    text-shadow: 0 0 4px #0ff;
}

/* Paragraph */
.about-text p {
    margin-bottom: 10px;
    color: #ccc;
}

/* Lists */
.about-text ul {
    margin-left: 20px;
    color: #ccc;
}

.about-text li {
    margin-bottom: 5px;
}
/* Resume button alignment */
.resume-btn-container {
    margin-top: 5px;
    text-align: right;
}





/* ===== SKILLS CONTAINER ===== */
.skills-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

/* ===== SKILL CARD ===== */
.skill-card {
    padding: 20px;
    width: 220px;
    text-align: center;
    border: 1px solid #0ff;
    border-radius: 10px;
    box-shadow: 0 0 8px #0ff;
    transition: 0.3s;
}

/* Hover effect */
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px #0ff;
}

/* Heading */
.skill-card h3 {
    color: #0ff;
    margin-bottom: 10px;
}

/* Text */
.skill-card p {
    color: #ccc;
}

/* ===== PROGRESS BAR ===== */
.progress {
    margin-top: 10px;
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #0ff;
    text-align: right;
    padding-right: 5px;
    font-size: 10px;
    color: black;
    box-shadow: 0 0 8px #0ff;
    animation: fillBar 2s ease;
}

/* Animation */
@keyframes fillBar {
    from { width: 0; }
}
/* Soft skills list */
.soft-skills {
    margin-top: 10px;
    text-align: left;
    color: #ccc;
    padding-left: 20px;
}

/* List spacing */
.soft-skills li {
    margin-bottom: 5px;
}





/* ===== PROJECTS CONTAINER ===== */
.projects-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

/* ===== PROJECT CARD ===== */
.project-card {
    width: 250px;
    padding: 20px;
    text-align: center;

    border: 1px solid #0ff;
    border-radius: 12px;

    box-shadow: 0 0 8px #0ff;
    transition: 0.3s;
}

/* Hover effect */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px #0ff;
}

/* Title */
.project-card h3 {
    color: #0ff;
    margin-bottom: 10px;
}

/* Image */
.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;

    border-radius: 10px;
    margin-bottom: 15px;

    border: 1px solid #0ff;
}

/* Button center */
.project-card .btn {
    display: inline-block;
    margin-top: 10px;
}




/* ===== CONTACT ME ===== */
/* ===== CONTACT PAGE===== */
.contact-page {
    height: 100vh;
}

/* ===== MAIN CONTACT SECTION ===== */
.contact-page .home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding-top: 80px;
    padding-bottom: 80px;
}

/* ===== CONTENT BOX ===== */
.contact-page .content-box {
    width: 450px;
    padding: 25px;
}

/* ===== CONTACT FORM ===== */
.contact-page .contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #0ff;
    border-radius: 6px;
    background: transparent;
    color: white;
    outline: none;
}

.contact-page .contact-form textarea {
    height: 100px;
    resize: none;
}

/* ===== FOOTER ===== */
.contact-page .footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;

    text-align: center;
    background: #0a0a0a;
}

/* ===== SOCIAL ICONS ===== */
.contact-page .social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-page .social-icons img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #0ff;
    transition: 0.3s;
}

.contact-page .social-icons img:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px #0ff;
}




/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {

    .content-box {
        width: 85% !important;
    }

    .skills-container,
    .projects-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}


/* Mobile Devices */
@media (max-width: 768px) {

    /* Fix navbar overlap dynamically */
    .home,
    .page-section,
    .about-box {
        padding-top: 160px !important;
    }

    /* Navbar stacking */
    .navbar ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Content box adjustment */
    .content-box {
        width: 95% !important;
        padding: 20px !important;
    }

    /* About section stacking */
    .about-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .about-image img {
        width: 200px !important;
        height: auto !important;
    }

    /* Cards full width */
    .skill-card,
    .project-card {
        width: 90% !important;
    }

    /* Contact form inputs */
    .contact-form input,
    .contact-form textarea {
        padding: 10px !important;
        font-size: 13px !important;
    }

    /* Social icons */
    .social-icons img {
        width: 30px !important;
        height: 30px !important;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    /* Increase spacing more for very small screens */
    .home,
    .page-section,
    .about-box {
        padding-top: 180px !important;
    }

    h1 {
        font-size: 22px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    .btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
    }

    /* Fix typing overflow */
    #typing-text {
        white-space: normal !important;
    }
}