@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e1a, #0f172a);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.container {
    color: #fff;
    height: 100%;
    width: 100%;
}

.container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.starry-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateZ(45deg);
}

.star {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 5s) ease-in-out infinite;
    opacity: var(--opacity, 0.5);
    width: var(--size, 1px);
    height: var(--size, 1px);
}

.shooting-star {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    animation: shootingStar var(--duration, 5s) linear infinite;
    opacity: 0;
    transform: rotate(45deg);
    transform-origin: top left;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        top: var(--startY);
        left: var(--startX);
        width: 0;
    }

    10% {
        opacity: 1;
        width: 100px;
    }

    20% {
        opacity: 1;
        width: 300px;
    }

    100% {
        opacity: 0;
        top: var(--endY);
        left: var(--endX);
        width: 300px;
    }
}

.text-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rain-drop {
    position: absolute;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    color: rgba(44, 118, 248, 0.3);
    animation: rainFall linear infinite;
    text-shadow: 0 0 5px rgba(44, 118, 248, 0.5);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(44, 118, 248, 0.05);
    box-shadow: 0 0 40px rgba(44, 118, 248, 0.2);
    z-index: 1;
    pointer-events: none;
    animation: float 18s ease-in-out infinite;
}

.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    background: none;
    border-radius: 0;
}

.square {
    border-radius: 10px;
}

.lightening-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.5;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 30px;
}

.name {
    font-size: 5em;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff4e50, #f9d423, #6c5ce7, #00cec9, #fd79a8);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(44, 118, 248, 0.3);
    animation: fadeInUp 1s ease-out forwards, pulse 4s infinite, gradientShift 8s ease infinite;
    opacity: 0;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    border-radius: 2px;
    animation: expandLine 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.social-link {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 30, 60, 0.5);
    color: #2c76f8;
    font-size: 2.5em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    animation: floatIcon 6s ease-in-out infinite;
}

.social-link:nth-child(1) {
    animation-delay: 0s;
}

.social-link:nth-child(2) {
    animation-delay: 0.5s;
}

.social-link:nth-child(3) {
    animation-delay: 1s;
}

.social-link:nth-child(4) {
    animation-delay: 1.5s;
}

.social-link:nth-child(5) {
    animation-delay: 2s;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2c76f8, #8a2be2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    color: #fff;
    box-shadow: 0 10px 25px rgba(44, 118, 248, 0.5);
    animation-play-state: paused;
}

.social-link:hover::before {
    opacity: 1;
}

.info-div {
    animation: fadeInUp 1s ease-out 1.9s forwards;
    opacity: 0;
}

.info-btn {
    background: linear-gradient(45deg, #2c76f8, #8a2be2);
    padding: 18px 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(44, 118, 248, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.info-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8a2be2, #2c76f8);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 118, 248, 0.6);
    letter-spacing: 3px;
}

.info-btn:hover::before {
    opacity: 1;
}

.info-btn span {
    position: relative;
    z-index: 2;
}

.text-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.text-particle {
    position: absolute;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    user-select: none;
    animation: floatParticle 20s linear infinite;
    opacity: 0;
}

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

@keyframes rainFall {
    to {
        transform: translateY(100vh);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(40px, 40px) rotate(20deg);
    }

    50% {
        transform: translate(0, 80px) rotate(0deg);
    }

    75% {
        transform: translate(-40px, 40px) rotate(-20deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(44, 118, 248, 0.3);
    }

    50% {
        text-shadow: 0 0 30px rgba(44, 118, 248, 0.6), 0 0 60px rgba(44, 118, 248, 0.4);
    }
}

@keyframes expandLine {
    to {
        width: 400px;
        opacity: 1;
    }
}

@keyframes floatIcon {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .name {
        font-size: 4.5em;
    }

    .social-link {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 4em;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
    }

    .info-btn {
        padding: 16px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 3em;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .info-btn {
        padding: 14px 35px;
        font-size: 0.8rem;
    }

    .name::after {
        width: 150px;
    }
}

.info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #565656;
    overflow-y: scroll;
    font-family: Arial, Helvetica, sans-serif;

    transition: opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.hero button {
    font-size: 4rem;
    float: right;
    cursor: pointer;
    background-color: #545353;
    border: 1px solid #000;
    padding: 0px 10px;
    border-radius: 6px;
}

.info section {
    padding: 2rem;
    background-color: #585858;
    margin: 1rem;
    border-radius: 8px;
}

.info section h2 {
    font-size: 3rem;
}

.info section h4 {
    font-size: 2rem;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: #001;
}

.a-education {
    font-size: 1.3rem;
    padding-left: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.a-education a {
    text-decoration: none;
}

.skills ul {
    padding-left: 1.5rem;
    font-size: 1.3rem;
}

.projects {
    margin-bottom: 1.5rem;
}

.p-item ol {
    padding-left: 1.5rem;
    font-size: 1.3rem;
}

.p-item ol li {
    padding-left: 1.5rem;
    padding-bottom: 1rem;
    list-style: none;
}

.p-item a {
    padding-left: 1.5rem;
    font-size: 1.2rem;
}

.projects a {
    margin-right: 1rem;
    color: #00003e;
    text-decoration: none;
}

.social-links-container i {
    padding: 25px 15px;
    font-size: 2.6em;
    margin: 0 10px;
    color: #2c76f8;
}

.social-links-container i:hover {
    transform: scale(1.1);
    color: #005cff;
}

.footer p {
    color: #959393;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.visible {
    opacity: 1;
    pointer-events: auto;
}

@media only screen and (max-width:700px) {
    .info {
        padding-bottom: 20rem;
    }

    .info section h2 {
        font-size: 2.5rem;
    }

    .info section h4 {
        font-size: 1.5rem;
    }

    .info section p,
    .info section ol li {
        font-size: 1rem;
    }

    .a-education {
        font-size: 1rem;
    }

    .skills ul {
        font-size: 1rem;
    }

    .hero button {
        font-size: 3rem;
    }

    .p-item a {
        font-size: 1rem;
    }

    .social-links-container i {
        font-size: 2rem;
    }
}

@media only screen and (max-width:550px) {
    .info {
        padding-bottom: 20rem;
    }

    .info section h2 {
        font-size: 2rem;
    }

    .info section h4 {
        font-size: 1.3rem;
    }

    .info section p,
    .info section ol li {
        font-size: 0.8rem;
    }

    .skills ul {
        font-size: 0.8rem;
    }

    .a-education {
        font-size: 0.8rem;
    }

    .p-item a {
        font-size: 0.8rem;
    }

    .hero button {
        font-size: 2.5rem;
    }

    .social-links-container i {
        font-size: 1.6rem;
    }
}

@media only screen and (max-width:460px) {
    .info {
        padding-bottom: 20rem;
    }

    .info section h2 {
        font-size: 1.5rem;
    }

    .info section h4 {
        font-size: 1rem;
    }

    .info section p,
    .info section ol li {
        font-size: 0.6rem;
    }

    .a-education {
        font-size: 0.6rem;
    }

    .skills ul {
        font-size: 0.6rem;
    }

    .p-item a {
        font-size: 0.6rem;
    }

    .hero button {
        font-size: 2rem;
    }

    .social-links-container i {
        font-size: 1.1rem;
    }
}