/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* Root Variables */
:root {
    --primary-color: #ff9800;
    --primary-dark: #f57c00;
    --background-color: #f0f8ff;
    --text-color: #333;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --font-family: 'Arial', sans-serif;
    --font-heading: 'Georgia', serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient-background: linear-gradient(45deg, rgba(255, 152, 0, 0.7), rgba(255, 87, 34, 0.7));
}

/* Body */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background-image: url('https://raw.githubusercontent.com/NehaMicroSoft/personal/main/OIP.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    background-color: var(--background-color);
    overflow: hidden;
}

/* Hero Section */
.hero {
    background-color: var(--overlay-color);
    color: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    max-width: 700px;
    width: 80%;
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    animation: fadeIn 1s ease-out;
    margin-top: 20px;
    position: relative;
}

/* Hero Heading */
h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    animation: fadeInText 1s ease-out;
}

/* Description */
.description {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-style: italic;
    animation: fadeInText 1.5s ease-out;
}

/* Button Styling */
button {
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInText 2s ease-out;
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(2px);
}

/* Shloka Section */
.shloka {
    margin-top: 30px;
    font-size: 1.6em;
    color: #fff;
    line-height: 1.5;
    font-family: var(--font-heading);
    animation: fadeInText 2s ease-out;
}

/* Footer Section */
footer {
    margin-top: 30px;
    color: #fff;
    font-size: 0.9em;
    opacity: 0.7;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Text Animation */
.floating-text {
    position: absolute;
    top: 7%; /* Start from the top of the screen */
    left: 50%; /* Start from the center horizontally */
    transform: translateX(-50%); /* Adjust the element to truly center it horizontally */
    white-space: nowrap;
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    animation: floatText 120s linear infinite; /* Slower animation */
    z-index: 10;
}

/* Keyframes for the floating text animation */
@keyframes floatText {
    0% {
        transform: translateX(-50%) translateX(50%); /* Start from the center horizontally */
    }
    100% {
        transform: translateX(-50%) translateX(-100%); /* Move the text to the left off-screen */
    }
}

/* Mobile Responsive Design */

/* For devices with screen widths up to 768px */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }

    .hero {
        width: 90%;
        padding: 30px;
    }

    h1 {
        font-size: 2.4em;
    }

    button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .description {
        font-size: 1.3em;
    }

    .shloka {
        font-size: 1.5em;
    }

    footer {
        font-size: 0.8em;
    }

    .floating-text {
        font-size: 1.2em;
    }
}

/* For very small devices with screen widths up to 480px */
@media (max-width: 480px) {
    body {
        background-attachment: scroll;
    }

    .hero {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .description {
        font-size: 1.2em;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .floating-text {
        font-size: 1.1em;
    }
}
