body {
    background-image: radial-gradient(circle at center center, #0c1a2a, #22879e), repeating-radial-gradient(circle at center center, #0c1a2a, #0c1a2a, 27px, transparent 54px, transparent 27px);
    background-blend-mode: multiply;
    background-color: #22879e;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 30px;
    background-image: url(assets/1711286619437.jpg);
    background-repeat: no-repeat;
    background-position: initial;
    background-size: cover;
    align-items: center;
}

.navbar {
    padding: 10px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    margin: 20px;
    opacity: 0;
    animation: fadeInNavbar 0.5s ease forwards;

}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline;
    margin-left: 10px;
    transform: translateX(100%);
    opacity: 0;
}

.navbar ul li:nth-child(4) {
    animation: slideInLi 1s ease forwards;
}

.navbar ul li:nth-child(3) {
    animation: slideInLi 1s ease forwards 0.5s;
}

.navbar ul li:nth-child(2) {
    animation: slideInLi 1s ease forwards 1s;
}

.navbar ul li:nth-child(1) {
    animation: slideInLi 1s ease forwards 1.5s;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.5s ease;
}

.navbar ul li a:hover {
    border-bottom: aqua 2px solid;
    border-radius: 5px;
}

@keyframes fadeInNavbar {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLi {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.content {
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    backdrop-filter: blur(5px);
    text-align: center;
    margin-top: 50px;
}

.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.image-section img {
    width: 70%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    transition: transform 0.5s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    animation: slideIn 1.5s ease forwards;
}

.image-section img:hover {
    transform: scale(1.1);
    box-shadow: rgba(46, 179, 240, 0.4) -5px 5px, rgba(46, 179, 240, 0.3) -10px 10px, rgba(46, 179, 240, 0.2) -15px 15px, rgba(46, 179, 240, 0.1) -20px 20px, rgba(46, 179, 240, 0.05) -25px 25px;
}

.image-section img.loaded {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.animated-heading {
    font-size: 34px;
    color: #fff;
    margin-bottom: 10px;
    animation: slideIn 2.5s ease forwards;
}

.animated-heading span {
    display: inline-block;
    transition: transform 2s;
}

.animated-heading:hover span:nth-child(odd) {
    animation: moveUp 1.5s forwards;
}

.animated-heading:hover span:nth-child(even) {
    animation: moveDown 1.5s forwards;
}

@keyframes moveUp {

    0%,
    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes moveDown {

    0%,
    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(5px);
    }
}

.animated-heading:hover {
    animation: increaseSize 0.5s forwards, revertAnimation 3s forwards 3s;
}

@keyframes increaseSize {
    0% {
        font-size: 34px;
    }

    100% {
        font-size: 39px;
    }
}

@keyframes revertAnimation {
    to {
        transform: translateY(0);
        animation: none;
    }
}

.text-section p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    opacity: 0;
    animation: slideIn 2s ease forwards;
}

@media only screen and (min-width: 768px) {
    .container {
        padding: 20px;
        align-items: center;
    }

    .content {
        flex-direction: row;
        max-width: calc(100% - 250px);
        margin: 50;
        padding: 50px;
        margin-bottom: 10px;
    }

    .image-section,
    .text-section {
        padding: 40px 20px;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #031018;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #056dad;
}

.about {
    background-color: #031018;
    color: white;
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transition: z-index 0.3s;

}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 15px;
    backdrop-filter: blur(5px);
    height: 100vh;
}

.projects {
    position: relative;
    z-index: 1;
    background-color: #010a10;
    color: white;
}


.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: #e2e2ff 3px solid;
}

.about-image img {
    max-width: 80%;
    border-radius: 500px;
    box-shadow: rgba(46, 179, 240, 0.4) 0px 5px 15px;
}

.about-text {
    flex: 2;
    color: #fff;
    padding: 20px;
}

.about-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
}

.about.show-about {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills {
    color: white;
    background-color: #010a10;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skills-content {
    display: flex;
    flex-direction: column;
    width: 90%;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(500px);
}

.skills-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.skills-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.skills-table {
    border-collapse: collapse;
    justify-self: center;
    width: 95%;
    max-width: 1100px;
    background: #040a0e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.skills-table th, .skills-table td {
    padding: 22px;
    text-align: left;
    vertical-align: middle;
}

.skills-table th {
    width: 220px;
    font-size: 1.2rem;
    color: #00d4ff;
    border-right: 2px solid rgba(255,255,255,0.1);
}

.skills-table td {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.skills-table td i {
    font-size: 2.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.skills-table td i:hover {
    transform: scale(1.2);
    color: #00d4ff;
}

.skills-table td i::after {
    content: attr(data-skill);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d1d35;
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
}

.skills-table td i:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


tr:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.projects-content {
    width: 100%;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.project-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.project-cards {
    display: flex;
    flex-wrap: nowrap;
}

.project-card {
  flex: 0 0 auto;
  min-width: 400px;
  margin: 0 15px;
  padding: 0;
  background-color: #0a1618;
  border: #00afff 2px solid;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  font-family: 'Montserrat', sans-serif;
  display: inline-block;  
  transform-origin: center;
}

.project-card:hover {
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}


.project-card p {
    padding: 10px;
    width: 340px;
}

.project-card img {
    width: 400px;
    border-radius: 10px;
}

.project-card h2 {
    padding: 5px;
    text-align: center;
}

a {
    text-decoration: none;
    color: white;
}

.project-cards-container::-webkit-scrollbar {
    display: none;
}

.project-cards-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-description {
    max-height: 3.6em;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
}

.project-card:hover > .project-description {
  max-height: 1000rem;
}


.hedo {
    text-align: center;
    color: white;
    /* text-shadow: 0px 5px 4px rgba(6, 64, 115, 1); */
}



.contacts {
    position: relative;
    z-index: 1;
    background-color: #010a10;
    color: white;
}

.contact-section {
    background: #010a10;
    border: 5px solid transparent;
    border-image: linear-gradient(45deg, #00aaff, #00d4ff);
    border-image-slice: 1;
    padding: 50px 20px;
}

.cont {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-info h2, .contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;

}

.contact-info .info-item i {
    font-size: 20px;
    color: #00aaff;

}

.contact-info .info-item p {
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    width:40%;
    border-left: 2px white solid ;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #11171e;
    color: #fff;
    margin-bottom: 15px;
}

.contact-form input {
    width: 100%;
}

.contact-form textarea {
    width: 100%;
    height: 150px; 
    resize: vertical;
}

.contact-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #008bd1;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #00d4ff;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .skills-table th {
        width: 0px;
    }

    .about-image {
        display: none;
    }

    .cont{
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        display: flex
    ;
        flex-direction: column;
        padding-left: 0px;
        width: 80%;
        border-left: none;
    }

    .contact-info, .contact-form {
        text-align: left;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .navbar ul li a {
        color: #fff;
        text-decoration: none;
        padding: 5px 5px;
        transition: all 0.5s ease;
    }

    .navbar ul li {
        margin-left: 5px;
    }

    .animated-heading {
        font-size: 25px;
        color: #fff;
        margin-bottom: 10px;
        animation: slideIn 2.5s ease forwards;
    }

    .about-text p {
        font-size: 18px;
        line-height: 1.3;
    }
}
