@import url('https://fonts.googleapis.com/css2?family=Jockey+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jockey One', sans-serif;
    height: 100vh;
    background-image: url('Automation.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.content {
    padding: 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

h1 {
    font-size: 2.3rem;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 1em;
    letter-spacing: 1.5px;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

p {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1em;
    color:white;
    transition: color 0.3s ease;
}

.back-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 5px;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    background-color: #555;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }

    .content {
        padding: 20px 30px;
        margin: 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 0.95rem;
    }

    .content {
        padding: 15px 20px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 0.85rem;
    }

    .content {
        padding: 10px 15px;
        margin: 5px;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.content:hover h1 {
    transform: scale(1.05);
}

.content:hover p {
    color: #fff;
}
