@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

:root {
    --primary-color: #00FFFF;
}

html {
    scroll-behavior: smooth;
}


body {
    background: #080808;
    color: #fff;
    line-height: 1.6;
}

/* --------------intro---------------- */
#intro {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out;
}

.circle {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    animation: zoomIn 2s ease-in-out forwards;
}

.circle-text {
    font-size: 55px;
    /* font-weight: bold; */
    color: var(--primary-color);

}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(3);
        visibility: hidden;
    }
}

#intro.fade-out {
    animation: fadeOut 1s forwards;
}

/* --------------Home-Page------------------ */
#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/lll.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo span {
    font-size: 30px;
    font-weight: 400;
    font-family: "Monoton", sans-serif;
}

.name-arjun {
    color: var(--primary-color);
}

.name-kumar {
    color: white;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 16px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.download-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: var(--primary-color);
    color: black;
}

@media (max-width: 768px) {
    .download-btn {
        display: block;
        text-align: center;
        font-size: 1rem;
    }
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: var(--primary-color);
}

#dynamic-text {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    display: inline-block;
    min-height: 30px;
    animation: blink 0.8s infinite;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    margin-top: -40px;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* -----------about--------------- */
#about {
    padding: 20px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.about-col-1 img {
    width: 100%;
    margin-top: 55px;
    filter: brightness(1.05) contrast(1.1) drop-shadow(0 0 5px var(--primary-color));
    transition: all 0.4s ease-in-out;
    animation: floatUpDown 3s ease-in-out infinite;
}

.about-col-1 img:hover {
    transform: scale(1.01);
    filter: brightness(1.1) contrast(1.2) drop-shadow(0 0 15px var(--primary-color));
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
    color: white;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ------------------ coding platform------------------- */
#coding-platform {
    padding: 40px 0;
}

#coding-platform h1 {
    font-size: 60px;
    margin-bottom: 20px;
    font-weight: bold;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.platform-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
    border: 2px solid transparent;

}

.platform-card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 15px var(--primary-color);
    border: 0.2px solid var(--primary-color);
    background: #252525;
    transform: translateY(-5px);
}


.card-header {
    display: flex;
    gap: 15px;
}

.platform-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid var(--primary-color);
}

.platform-info h3 {
    margin-top: -4px;
    color: white;
    font-size: 20px;
}

.username {
    font-weight: bold;
    margin-top: -1px;
    color: #dcdcdc;
    font-size: 16px;
}

.details {
    color: #dcdcdc;
    margin-top: 15px;
    font-size: 14px;
}

.view-profile {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    bottom: 15px;
    right: 15px;
    transition: color 0.3s ease;
}

.view-profile:hover {
    color: #ffa726;
}

@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        padding: 15px;
    }

    .platform-logo {
        width: 40px;
        height: 40px;
    }

    #coding-platform h1 {
        font-size: 30px;
    }
}

/* -------portfolio----------- */
#portfolio {
    padding: 30px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 35px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    /* border: 1px solid var(--primary-color); */
}

.layer {
    border: 0.5px solid var(--primary-color);
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.95), var(--primary-color));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    color: black;
    transition: all 0.3s ease;
}

.layer a:hover {
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background 0.5s;
}

.btn:hover {
    background: var(--primary-color);
    color: black;
    text-shadow: 0 0 15px black;
    transition: 0.3s ease-in-out;
}

button,
.btn {
    transition: all 0.3s ease-in-out;
}

button:hover,
.btn:hover {
    transform: scale(1.05);
    background: var(--primary-color);
}

/* ---------contact-------- */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-left>.btn {
    margin: 25px auto;
}

.btn.btn2 {
    display: inline-block;
    background: var(--primary-color);
    color: black;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #dcdcdc;
    font-size: 18px;
    border-radius: 6px;
}

input:focus~label,
textarea:focus~label,
input:valid~label,
.textarea:valid~label {
    transform: translateY(-30px);
    font-size: 16px;
}

form .btn2 {
    padding: 10px 30px;
    font-size: 18px;
    margin-top: 22px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i {
    color: var(--primary-color);
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    padding: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: green;
}

@media screen and (max-width: 768px) {
    .floating-btn {
        font-size: 45px;
    }
}

/* -----------------css for small screens--------- */
nav .fas {
    display: none;
}

@media only screen and (max-width: 600px) {
    .logo span {
        font-size: 25px;
    }

    #header {
        background-image: url(images/HomePhone.jpg);
    }

    #dynamic-text {
        font-size: 20px;
        min-height: 20px;
    }

    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
        bottom: 100;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .platform-container {
        gap: 40px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .copyright {
        font-size: 14px;
    }
}

#msg {
    color: var(--primary-color);
    margin-top: -40px;
    display: block;
}

/*=============== Show social icons on mobile=============== */
.social-icons-mobile {
    display: none;
    margin-top: 20px;
    margin-left: -190px;
}

@media (max-width: 768px) {
    .social-icons-mobile {
        display: block;
        text-align: center;
    }

    .social-icons-mobile a {
        margin: 0 5px;
        filter: brightness(1.3) contrast(1.6);
        color: white;
        font-size: 32px;
        transition: 0.3s;
    }

    .social-icons-mobile a:hover {
        color: var(--primary-color);

    }
}