@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");

/* Basic Styling */
body {
    font-family: 'Raleway', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f0f0f0; /* Light gray background */
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
}

#header-title {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, transform 0.3s ease;
}

#header-title:hover {
    color: #bae732; /* Change color on hover */
    transform: scale(1.05); /* Scale effect on hover */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0px 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 8px 7px;
    border-style: solid;
    border-radius: 10px;
    border-width: 0px;
    background: linear-gradient(to right, transparent 50%, #198CE6 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #198CE6;
    background-position: left bottom;
}

#menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

#progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    position: sticky;
}

#progress-bar {
    width: 50%; /* Adjust width as needed */
    height: 100%;
    background-color: #bae732;
    position: sticky;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
}

/* Sections */
section {
    padding: 50px 20px;
    border-bottom: 1px solid #ccc;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        display: none;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 1.2em;
    }

    #menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    #menu-toggle.open .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    #menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.open .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    nav ul.open {
        display: flex;
    }
}


/* Section */
.section {
    min-height: 100vh;
    width: 100vw;
    padding: 1em 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-name{
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #bae732;
    text-transform: uppercase;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress Bar */
#progress-bar-container {
    position: fixed;
    width: 100%;
    height: 5px;
    left: 0;
    z-index: 1;
}

#progress-bar {
    height: 100%;
    background-color: #b7e732;
    width: 0;
}

@media screen and (max-width: 768px) {

    #header-title{
        font-size: 1.5rem;
    }

    nav{
        display: none;
    }

    .section{
        width: 100vw;
    }
}

/* Styling for the Home section */
#home {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
    padding: 60px 0;
    text-align: left;
}

#home h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #bae732;
}

#home p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

#home .btn {
    font-size: 1em;
    padding: 10px 20px;
    color: #fff;
    background-color: #bae732;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#home .btn:hover {
    background-color: #9ac327;
}

#home .profile-1 {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid #00f6ff; /* Color of the border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.8), /* Glowing effect */
                0 0 30px rgba(0, 246, 255, 0.6), 
                0 0 40px rgba(0, 246, 255, 0.4), 
                0 0 50px rgba(0, 246, 255, 0.2);
    transition: transform 0.3s ease;
}

.profile-1:hover{
    transform: scale(1.05);
}


.profile-1-sm{
    display: none
}

@media screen and (max-width:768px) {
    .section-name{
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    #home .container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-1{
        display: none;
    }

    .profile-1-sm{
        display: block;
        max-width: 70%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin: 2em;
        border-radius: 360px;
        position: relative;
        display: inline-block;
        border: 2px solid #00f6ff; /* Color of the border */
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 0 20px rgba(0, 246, 255, 0.8), /* Glowing effect */
                    0 0 30px rgba(0, 246, 255, 0.6), 
                    0 0 40px rgba(0, 246, 255, 0.4), 
                    0 0 50px rgba(0, 246, 255, 0.2);
        transition: transform 0.3s ease;
    }

    .profile-1-sm:hover{
        transform: scale(1.05);
    }

    .my-intro{
        margin-top: 20px;
    }

    #home a {
        margin: 10px;
    }
}


/* About Section */
#about {
    background: linear-gradient(to bottom right, #1f2a44, #3d5a80); /* Dark gradient for a modern look */
    color: #ffffff; /* White text */
    padding: 40px 10px;
    position: relative;
    overflow: hidden;
}

#about h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #bae732;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    margin-top: 0px;
}

#about p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

#about .about-1 {
    position: relative;
    perspective: 700px;
}

#about .about-1 img {
    width: 70%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    position: relative;
    display: inline-block;
    border: 2px solid #00ff6a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 106, 0.8), 
                0 0 30px rgba(0, 255, 106, 0.6), 
                0 0 40px rgba(0, 255, 106, 0.4), 
                0 0 50px rgba(0, 255, 106, 0.2);
    transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

#about .about-1 img:hover {
    transform: scale(1.05);
}

#about .about-2 {
    padding-left: 30px;
    position: relative;
}

#about .about-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px; /* Adjust the position to avoid overlap */
    width: 5px;
    height: 100%;
    background: #bae732;
    box-shadow: 0 0 10px #bae732, 0 0 20px #bae732, 0 0 30px #bae732;
}

#about .glow-text {
    text-shadow: 0 0 5px #bae732, 0 0 10px #bae732, 0 0 20px #bae732;
}

@media screen and (max-width: 768px) {
    #about .container {
        display: none;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }

    #about .about-1 img {
        border-radius: 360px;
        margin: 20px;
    }

    #about .about-2::before{
        display: none;
    }

    #about p {
        font-size: 1em;
        line-height: 1.6;
        margin: 20px;
    }
}

/* Profile Image */
.profile-1, .profile-2 {
    max-width: 70%;
    object-fit: cover;
    border-style: solid;
    border-width: 0px;
    border-radius: 10px;
}

.about-1 {
    object-position: 0 100%;
}

.profile-2 {
    object-position: 10% 30%;
}


/* Skills Section */
#skills {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: #fff;
    padding: 60px 0;
}

.skills-heading-div h1{
    font-size: 2.5ch;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.skills-list-container {
    margin-bottom: 40px;
}

/* Card */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1em;
    padding: 2em;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    height: 5em;
    width: 5em;
    object-fit: contain;
    margin-bottom: 10px;
}

.card h1 {
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .skills-list-container {
        margin-bottom: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Center align the entire container */
    }

    .skills-heading-div h1 {
        font-size: 20px;
        text-align: center; /* Center align the heading */
    }

    .cards {
        display: flex;
        flex-direction: row;
        justify-content: space-around; /* Center align the cards */
        align-items: center;
        flex-wrap: wrap;
        gap: 2em 1em;
    }

    /* Card */
    .card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center align the content inside the card */
        border: 1px solid #ddd;
        border-radius: 10px; /* Consistent border radius */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: 150px; /* Fixed width */
        height: 120px; /* Fixed height to make it square */
        margin: 10px; /* Space between cards */
        padding: 0px; /* Padding inside the card */
        gap: 2em;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .card img {
        width: 50px;
        height: 50px; /* Fixed height to keep the image inside the card */
        margin-top: 30px;
        object-fit: contain;
        margin-bottom: 0px; /* Space between image and text */
    }

    .card h1 {
        font-size: 10px;
        text-align: center;
        margin: 0px;
        padding-top: 0px;
        padding-bottom: 15px;
    }
}

/* Projects Section */
#projects {
    background: linear-gradient(to right, #485563, #29323c);
    color: #fff;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#projects h1 {
    margin: 2em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
    width: 50%;
    border-radius: 10px;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #bae732;
    text-decoration: none;
}

.overlay p {
    font-size: 1em;
}


/* Form Section */
#contact {
    background: linear-gradient(135deg, #1A1E23 0%, #198CE6 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

form input, form textarea, form button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

form input, form textarea {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1em;
}

form input:focus, form textarea:focus {
    border-color: #198CE6;
    box-shadow: 0 4px 10px rgba(25, 140, 230, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

form button {
    background-color: #198CE6;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #bae732;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(186, 231, 50, 0.7);
}

form button:active {
    transform: scale(0.95);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    form {
        padding: 15px;
    }

    form input, form textarea, form button {
        padding: 10px;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    width: 100vw;
}

footer p {
    margin: 0;
    font-size: 1.2em;
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.fab:hover{
    color: #7fddff;
    transform: scale(1.5);
}

.fas:hover{
    color: #7fddff;
    transform: scale(1.5);
}