* {
    margin: 0;
    padding: 0;
}

/* Ad Popup Styles */
.ad-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2c2c44;
    border: 2px solid #F39C12;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 500px;
    text-align: center;
    display: none;
    font-family: Arial, Helvetica, sans-serif;
}

.ad-popup h3 {
    color: #F39C12;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.ad-popup p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ad-popup a {
    display: inline-block;
    background-color: #F39C12;
    color: #1E1E2F;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.ad-popup a:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}

.ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #F39C12;
}

.ad-close:hover {
    color: #e67e22;
}

body {
    background-color: #1E1E2F;
    color: white;
}

header {
    display: flex;
    position: fixed;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    background: rgba(30, 30, 47, 0.7);
    /* semi-transparent */
    backdrop-filter: blur(10px);
    /* blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* for Safari */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* optional line */
}

header #image img {
    height: 80px;
}

header ul {
    display: flex;
    margin-right: 12px;
}

header ul li {
    list-style: none;
}

header ul li a {
    text-decoration: none;
    font-size: 20px;
    color: #F39C12;
    padding: 0 26px;
    transition: 0.4s;
    /* text-shadow: 1px 2px 4px; */
}

header ul li a:hover {
    /* color: #2EC4B6; */
    color: white;
    /* font-size: 22px; */
}

#menu-btn {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    margin-right: 30px;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: #111827;
    padding-top: 60px;
    transition: 0.3s ease;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    z-index: 1000;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    padding: 15px 20px;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.side-menu ul li a:hover {
    color: #00BFFF;
}

.side-menu.show {
    right: 0;
}


@media (max-width: 730px) {

    /* Hide default navigation */
    .desktop-nav {
        display: none;
    }

    #menu-btn {
        display: block;
    }
}

@media (max-width: 730px) {
    .side-menu {
        right: -250px;
        width: 250px;
    }
}

.main {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: #1E1E2F;
    min-height: 100vh;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding: 20px;
    text-align: center;
}

/* .text{
     text-align: left; 
} */

.info {
    max-width: 600px;
    text-align: left;
}

.info h1 {
    font-size: 60px;
    color: #E6EDF3;
    margin-top: 15px;
}

.info h3 {
    font-size: 26px;
    letter-spacing: 1px;
    line-height: 35px;
}

.info h2 {
    font-size: 30px;
    letter-spacing: 1px;
}

.info h4 {
    font-size: 22px;
    letter-spacing: 1px;
    display: flex;
}

.info span {
    color: #F39C12;
}

#contactButton {
    color: #E6EDF3;
    background-color: #f1a222;
    box-shadow: 1px 1px 12px #F39C12;
    opacity: 90%;
    font-weight: bold;
}

.info a {
    display: inline-block;
    background-color: black;
    color: #E6EDF3;
    padding: 8px 10px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.info a:hover {
    background-color: chocolate;
    font-weight: bold;
    padding: 10px 12px;
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 15px;
}

.social-icons a {
    font-size: 15px;
    color: black;
    text-decoration: none;
    background-color: #E6EDF3;
    /* transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease; */
}

.social-icons a:hover {
    background-color: #F39C12;
    color: white;
    /* transform: scale(1.1); */
}

.image img {
    border-radius: 50%;
    width: 265px;
    height: 295%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image img:hover {
    transform: scale(1.05);
}

/* 📱 Responsive Styles for screens below 800px */
@media (max-width: 800px) {
    .main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text {
        text-align: center;
    }

    .info {
        order: 1;
        /* Ensures info appears first */
        text-align: center;
    }

    .social-icons {
        order: 2;
        justify-content: center;
    }

    .image {
        order: 3;
        margin-top: 20px;
    }

    .image img {
        width: 150px;
        height: 150px;
    }

    .main .info h2 {
        padding-top: 20px;
    }
}

/* ----ABout Section -----*/

.about {
    display: flex;
    align-items: center;
    /* Aligns text and image vertically */
    justify-content: space-between;
    background-color: #1E1E2F;
    padding: 30px;
    gap: 20px;
}

.about .text h1 {
    color: #E6EDF3;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.about .text h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #F39C12;
    margin-left: 130px;
    border-radius: 4px;
}

.about h1 span {
    color: #F39C12;
}

.about .text {
    flex: 1;
    /* Makes the text take up available space */
    text-align: left;
    padding: 30px;
}

.about .text p span {
    color: #F39C12;
    font-weight: bold;
}

.about .text p {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 28px;
}

.about .myimage {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin-left: 30px
}

.myimage img {

    width: 350px;
    height: 420px;
    border-radius: 70%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about .myimage img:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
        /* Stack text and image vertically */
        align-items: center;
        padding: 20px;
    }

    .about .text {
        text-align: center;
        padding: 20px;
    }

    .about .text h1 {
        font-size: 2em;
        /* Reduce heading size */
    }

    .about .text p {
        font-size: 18px;
        /* Slightly smaller text */
        line-height: 26px;
    }

    .about .myimage img {
        display: none;
    }
}


/* ------------Skills Section --------*/
#skills {
    padding: 50px 20px;
    /* Added side padding for smaller screens */
    background-color: #1a1a2c;
    font-family: 'Arial', sans-serif;
    color: #E6EDF3;
    text-align: center;
    overflow: hidden;
}


.images {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 40px;
    /* Reduced gap for better spacing on smaller screens */
    flex-wrap: wrap;
    /* Wraps images on smaller screens */
}

.skills img {
    width: 120px;
    height: auto;
}

.images img[alt="html1"],
.images img[alt="css"],
.images img[alt="js"] {
    width: 75px;
    height: auto;
}

#skills .heading h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #E6EDF3;
    text-transform: uppercase;
    position: relative;
}

#skills .heading h1 span {
    color: #F39C12;
    font-weight: bold;
}

#skills .heading h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #F39C12;
    margin: 10px auto 0 auto;
    border-radius: 4px;
}

#skills .description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #E6EDF3;
    margin-bottom: 30px;
}

/* Skills List */
#skills .list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#skills .list p {
    background: #fff;
    border: 2px solid chocolate;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #444;
    font-weight: bold;
    text-align: left;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Skills Highlight */
#skills .list p span {
    color: #F39C12;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Hover Effect on Skill Items */
#skills .list p:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: #F39C12;
}

/* Glow Effect */
#skills .list p:hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgb(197, 127, 77);
    /* background: #ef9606; */
    transform: rotate(45deg);
    z-index: -1;
    animation: glow 1.5s infinite linear;
}

@keyframes glow {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.8;
    }
}

/* Entry Animation */
#skills .list p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #skills {
        padding: 40px 15px;
        /* Reduced padding for smaller screens */
    }

    #skills .list p {
        width: 90%;
        /* Expand skill cards to fit the screen width */
    }

    .images {
        gap: 20px;
        /* Reduce gap between images */
    }

    .skills img {
        width: 90px;
        /* Scale down image size */
    }
}


/* Section Styling */
#my-work {
    padding: 50px;
    background-color: #1E1E2F;
    font-family: 'Arial', sans-serif;
    color: white;
    text-align: center;
}

/* Centered Section Header */
#my-work h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: white;
    text-transform: uppercase;
    position: relative;
    text-align: center;
}

#my-work h1 span {
    color: #F39C12;
}

#my-work h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #F39C12;
    margin: 10px auto 0 auto;
    border-radius: 4px;
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Two-column layout */
    gap: 20px;
    justify-content: center;
}

.work-cards div {
    background: #33334b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    min-height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: auto;
}

.work-cards div:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.work-cards div h2 {
    color: #F39C12;
    font-size: 1.8rem;
    font-weight: bold;
}

.work-cards div p {
    color: white;
    font-size: 1rem;
    line-height: 22px;
}

.work-cards div a {
    text-decoration: none;
    color: #F39C12;
    font-weight: bold;
    transition: 0.5s;
}

.work-cards div a:hover {
    color: #5151d6;
    font-weight: bolder;
    transform: scale(1.05);
}

.work-cards div h4 {
    margin-top: 10px;
}

#myprojects {
    color: #E6EDF3;
    background-color: #f1a222;
    box-shadow: 1px 1px 12px #F39C12;
    opacity: 90%;
    font-weight: bold;
    display: inline-block;
    padding: 8px 10px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#myprojects:hover {
    background-color: #f1a222;
    padding: 10px 12px;
    transform: scale(1.1);
}

/* Responsive Grid */
@media (min-width: 800px) {

    /* Tablets & Large Screens */
    .work-cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
    }
}

@media (max-width: 800px) {

    /* Mobile View */
    .work-cards {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
    }
}



/*-------- Contact Me Section-------- */
.contact {
    padding: 40px 20px;
    background-color: #1E1E2F;
    text-align: center;
    font-family: Arial, sans-serif;
}

.contact h1 {
    font-size: 2.5em;
    color: #F39C12;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact h1 span {
    color: white;
}

.contact h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #F39C12;
    margin: 10px auto 0 auto;
    border-radius: 4px;
}

/* Contact Container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #33334b;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Info */
.contact-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.contact-info div {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info ion-icon {
    font-size: 2em;
    color: #F39C12;
    margin-right: 10px;
}

.contact-info h3 {
    font-size: 1.2em;
    color: white;
    margin: 0;
}

.contact-info p {
    font-size: 1em;
    color: white;
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.contact-form h3 {
    font-size: 1.5em;
    color: #F39C12;
    margin-bottom: 10px;
}

.contact-form p {
    font-size: 1em;
    color: white;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-form button {
    width: 100%;
    padding: 10px 20px;
    background-color: #F39C12;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Footer Section */
footer {
    background-color: #19192c;
    color: #fff;
    text-align: center;
    padding: 20px 0;

}

.footer-content {
    padding: 20px;
}

.footer-content h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.footer-content p {
    font-size: 1.2em;
    line-height: 1.5;
}

.socials {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.socials li {
    display: inline-block;
}

.socials li a {
    text-decoration: none;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.socials li a:hover {
    color: #F39C12;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #555;
    padding-top: 10px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form,
    .contact-info div {
        text-align: center;

    }

    .contact-info div p {
        width: 90px;
    }

    .contact-form button {
        width: auto;
    }
}

@media (max-width: 370px) {
    .contact-form input {
        width: 80%;
    }

    .contact-form textarea {
        width: 80%;
    }

    #email {}
}

@media (max-width: 480px) {
    .socials {
        flex-direction: column;
        align-items: center;
        /* Center icons when stacked */
    }

    .socials li {
        margin-bottom: 10px;
        /* Add spacing between stacked items */
        gap: 2px;
    }
}

.typing-container {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    min-height: 2.5em;
    width: 100%;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

/* Orange color for 'Ideas' */
.typing-orange {
    color: orange;
    font-style: italic;
}

#typing-text {
    word-break: break-word;
    font-style: italic;
    color: white;
}

.typing-cursor {
    display: inline-block;
    width: 1ch;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 450px) {
    #typing-text {
        margin-top: 8px;
    }
}

@media (max-width: 800px) {
    .typing-container {
        justify-content: center;
    }
}

/* Responsive font size and wrapping */
@media (max-width: 900px) {
    .typing-container {
        font-size: 1.2rem;
        white-space: normal;
        /* Allow wrapping */
    }
}

@media (max-width: 630px) {
    .typing-container {
        font-size: 1rem;
        white-space: normal;
        /* Allow wrapping */
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }
}
