/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%; /* Ensure full width */
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(73, 73, 120);
    color: white;
    font-family: "Titillium Web", sans-serif;
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

body {
    background-color: rgb(73, 73, 120);
    color: white;
    font-family: "Titillium Web", sans-serif;
}

/* Navigation Menu */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: rgb(109, 109, 169);
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    flex: 1;
    text-align: left;
}

.menu {
    flex: 2;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    list-style: none;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: rgb(236, 153, 213);
    font-size: 1.02rem;
}

nav .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Introduction Section */
.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    margin-top:160px;
}
/* Introduction Section */
.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    margin-top: 160px;
}

/* Specific styles for desktop view */
@media (min-width: 769px) {
    .intro {
        flex-direction: row; /* Change to row for desktop */
        text-align: left; /* Align text to the left */
        align-items: center; /* Ensure proper vertical alignment */
        justify-content: flex-start; /* Adjust alignment for less space */
        gap: 20px; /* Adjust space between text and image */
    }

    .intro-text {
        flex-basis: 45%; /* Set specific size for text */
        margin-right: 0; /* Remove space between text and image */
    }

    .intro-image {
        flex-basis: 45%; /* Set specific size for image */
        order: 2; /* Ensure image is on the right */
        margin-left: 0; /* Remove space between text and image */
    }
}



.intro-text {
    font-size: 2.5rem;
    max-width: 50%;
    text-align: center;
    line-height: 1.5;
}

.intro-image {
    max-width: 40%;
    padding-top: 10px;
}

.intro-image img {
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 80px;
}

/* Highlight text */
.highlight {
    color: rgb(77, 237, 162);
}

/* Typed.js element */
#typed {
    color: rgb(77, 237, 162);
}

/* About Me Section */
.about-section {
    padding: 20px;
    background-color: transparent;
    margin: 20px auto;
    color: white;
    max-width: 700px;
    text-align: center;
}

.about-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: rgb(77, 237, 162);
}

.about-section p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Tabs styling */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Tab buttons */
.tab-button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.tab-button:hover,
.tab-button.active-link {
    color: rgb(77, 237, 162);
    border-bottom: 2px solid red;
}

/* Tab content styling */
.tab-content {
    display: none;
    margin-top: 20px;
    color: white;
}

.tab-content.active-tab {
    display: block;
}

.tab-content h2 {
    margin-bottom: 10px;
    color: rgb(236, 153, 213);
}

.tab-content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.tab-content ul li::before {
    content: '\2022';
    color: transparent;
}

.tab-content p {
    margin: 0;
}

/* Portfolio Section */
.portfolio-section {
    padding: 20px;
    background-color: transparent;
    margin: 20px auto;
    color: white;
    max-width: 700px;
    text-align: center;
}

.portfolio-section h1, .portfolio-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: rgb(77, 237, 162);
}

.work-card {
    background: linear-gradient(to bottom, #444, #b52c2c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
}

.work-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.work-image img {
    width: 100px;
    height: auto;
    margin-right: 20px;
    transform-origin: center;
}

.work-content {
    flex: 2;
    text-align: center;
}

.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.work-content p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* HackerRank specific styling */
.hackerank-logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.hackerank-card:hover .hackerank-logo {
    transform: scale(1.2);
}

.hackerank-card:hover {
    background-color: #ffcccb;
}

.hackerank-card:hover .work-content {
    display: block;
}

.hackerank-card .work-content {
    display: none;
}

.link-logo {
    width: 30px;
    height: auto;
    margin-left: 10px;
    transition: transform 0.3s ease;
    border: none;
    display: inline;
}

.hackerank-card:hover .link-logo {
    transform: scale(1.2);
}

.hackerank-link:hover .link-logo {
    filter: brightness(1.2);
}

/* Contact Section */
.contact-section {
    padding: 20px;
    background-color: transparent;
    margin: 20px auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align heading and contact details to the left */
}

.contact-header {
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
    color: rgb(77, 237, 162)
}

.contact-details {
    flex: 1;
    text-align: left;
    margin-bottom: 20px; /* Add spacing below the details */
}

.contact-details a {
    font-size: 1rem;
    line-height: 2; /* Add space between links */
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: rgb(236, 153, 213);
}

/* Keep the form aligned to the right */
.contact-form {
    flex: 1;
    align-self: flex-end; /* Align the form to the right */
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 50%; /* Set the form width */
    margin-top: -230px; /* Adjust this value to lift the form */
}

.contact-form label {
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    outline: none;
    resize: vertical;
    width: 100%;
}

.contact-form button {
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: rgb(77, 237, 162);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
  
    nav ul{
        display:none;
        flex-direction:colomn;
        position:fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgb(109, 109, 169);
        padding: 10px 0;
        z-index: 10;
    }
    nav ul.show {
        display: flex;
    }

    nav .menu {
        display: none;
        flex-direction: column;
        background-color: rgb(109, 109, 169);
    }

    nav .menu.show {
        display: flex;
    }

    nav .menu-toggle {
        display: block;
        margin-left: 10px;
    }

    .intro {
        flex-direction: column;
        align-items: center;
        margin-top: 120px;
    }

    .intro-text {
        max-width: 100%;
    }

    .intro-image {
        max-width: 100%;
        margin: 20px 0;
    }

    .work-card {
        flex-direction: column;
        text-align: center;
    }

    .work-image {
        margin-bottom: 20px;
    }

    .contact-form {
        width: 100%;
        margin-top: 0;
    }
}
