/* ──────────────────────────────────────────────────────────────
   Style.css — Landing Page (index.html)
   Fully responsive: Desktop → Tablet → Mobile
   ────────────────────────────────────────────────────────────── */

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;        
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #5D1E42;
    padding: 10px; 
}


/* ── Main Container ─────────────────────────────────────────── */
.main-container1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh; 
    width: 100%;
    padding: 0 20px;
}


/* ── Button ─────────────────────────────────────────────────── */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

button {
    background-color: rgb(187, 195, 74);
    color: black;
    width: 180px;
    height: 40px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    font-weight: 900;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: rgb(165, 173, 55);
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}


/* ── Typewriter Heading ──────────────────────────────────────── */
.text {
    font-family: cursive;
    letter-spacing: 2px;
    font-size: 1.8rem;
    font-weight: 1000;
    color: rgb(55, 231, 152);
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid rgb(55, 231, 152);
    width: 0;
    display: inline-block;  
    animation: typing 3s steps(30, end) forwards, cursor 0.5s step-end infinite; 
}

@keyframes typing {
    from { width: 0; }
    to   { width: 100%; } /* Changed from ch to 100% to prevent cut-off */
}

/* ── Cell Hover Improvement ─────────────────────────────────── */
.cell:hover {
    background-color: rgba(10, 255, 226, 0.1);
    box-shadow: 0 0 15px rgba(10, 255, 226, 0.5);
    transform: scale(1.02);
}

@keyframes cursor {
    50% { border-color: transparent; }
}


/* ── Footer ──────────────────────────────────────────────────── */
.end {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background-color: #ffa216;
    color: black;
    flex-wrap: wrap;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    font-family: cursive;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a img {
    cursor: pointer;
    transition: transform 0.2s;
}

.social-links a img:hover {
    transform: scale(1.2);
}


/* ── Tablet (max 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
    .text {
        font-size: 1.4rem;
    }

    /* Removed ch override */
}


/* ── Mobile (max 480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
    .main-container1 {
        min-height: 50vh;
    }

    .text {
        font-size: 1.1rem; 
        letter-spacing: 1px;
    }

    /* Removed ch override */

    button {
        width: 160px;
        height: 38px;
        font-size: 16px;
    }

    .end {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        font-size: 14px;
    }

    .social-links a img {
        width: 25px;
        height: 25px;
    }
}