/* Home Section */

#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10rem;
    margin-left: -350px;
    /* Vibrant gradient with a softer transparency */
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0.9), /* coral red */
    rgba(89, 86, 80, 0.9), /* warm yellow */
    rgba(17, 17, 17, 0.9), /* light blue */
    rgba(224, 231, 229, 0.9)/* teal green */
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.2);
    /* adds a soft solid layer under gradient */
    /* Gradient & morph animations */
    animation: gradientFlow 8s ease infinite, jellyMorph 2.5s ease-in-out infinite;
}

.hero-title1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    margin-left: -450px;
    text-align: left;
    line-height: 1.4;
    /* White + Gray striped gradient */
    background: repeating-linear-gradient( 45deg, #ffffff 0%, #ffffff 10%, #a9a9a9 10%, #a9a9a9 20%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Snake-like animation */
    animation: snakeMove 6s ease-in-out infinite;
}

.btn-animated {
    display: inline-block;
    padding: 10px 22px;
    font-size: 1.6rem;
    bottom: -240px;
    left: -550px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    /* blue gradient */
    background-size: 200% 200%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-animated:hover {
    background: linear-gradient(135deg, #00b894, #55efc4);
    /* greenish hover */
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.6);
}

.btn-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn-animated:hover::after {
    left: 100%;
}

btn-animated:hover::after {
    left: 100%;
}


/* Typewriter Animation */

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%,
    50% {
        border-color: #64d2ff;
    }
    51%,
    100% {
        border-color: transparent;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Background elements */

.hero-bg-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.hero-bg-elements::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #007bff, #64d2ff);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
}

.hero-bg-elements::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #00c6ff, #007bff);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}


/* Responsive Design */

@media (max-width: 1200px) {
    #home {
        padding-left: 6rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-role {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    #home {
        padding-left: 4rem;
        align-items: center;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-title1 {
        font-size: 1rem;
    }
    .hero-role {
        font-size: 1.5rem;
    }
    .hero-bg-elements {
        width: 100%;
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    #home {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-title1 {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    .hero-role {
        font-size: 1.3rem;
    }
    .btn-animated {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #home {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-title1 {
        font-size: 0.8rem;
    }
    .hero-role {
        font-size: 1.1rem;
    }
    .btn-animated {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}