:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --primary-gradient: rgb(27 168 201 / 20%);
    --secondary-gradient: rgb(27 168 201 / 20%);
    --tertiary-gradient: rgb(27 168 201 / 20%);
    --quaternary-gradient: rgb(27 168 201 / 20%);
    --quinary-gradient: rgb(27 168 201 / 20%);
    --senary-gradient: rgb(27 168 201 / 20%);
    --header-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

html {
    font-family: 'Ubuntu', "Roboto", sans-serif;
    min-height: 100vh;
    color: white;
    margin: 0;
    padding: 0;
    font-size: 16px; /* Base font size for rem */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #dbdbdb;
}

.telugu-font {
    font-family: "Anek Telugu", sans-serif;
}

#login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ccc;
    cursor: pointer;
}

.landing-container {
    display: flex;
    padding: 5vw 2vw; /* Relative padding */
    max-width: 90%;
    flex-direction: column;
    align-content: space-between;
    align-items: stretch;
    margin: 4rem auto 1rem auto; /* Reduced bottom margin from 4rem to 1rem */
}

.benefits-container {
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.manifesto {
    border: 1px solid #2e7175;
    width: 100%;
    border-radius: 10px;
    height: auto; /* Flexible height */
    object-fit: contain;
}

.manifesto-container {
    background-image: url('manifestod.jpg');
    background-size: cover;
    background-position: center;
}

.membership-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.2rem; /* Reduced from 0.5rem to 0.2rem */
    margin-top: 1rem;
    padding: 0.3rem 0;
    position: relative;
    border-radius: 10px;
}

.btn-family {
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    position: relative;
    width: 80%;
    padding: 0.7rem 0.5rem;
    margin: 0.5rem 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: yellow;
    box-shadow: 0 0.5rem 1rem rgba(255, 215, 0, 0.3);
    overflow: hidden;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blink 1s linear infinite, glowing;
}

@keyframes glowing {
    0% { background-color: #ffa500; box-shadow: 0 0 3px #ffa500; }
    50% { background-color: #ffa500; box-shadow: 0 0 20px #1ddaeb; }
    100% { background-color: #ffa500; box-shadow: 0 0 3px #ffa500; }
}

@keyframes blink {
    0%, 100% { background-color: #ffe08200; }
    50% { background-color: #042827; }
}

@keyframes familyButtonPulse {
    0%, 100% { transform: scale(0.85); }
    50% { transform: scale(1); }
}

@keyframes blinkingEffect {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes crownShine {
    0% { text-shadow: 0 0 5px #ffd700; transform: scale(1); }
    100% { text-shadow: 0 0 15px #ff6b6b; transform: scale(1.1); }
}

.btn-membership.btn-family a {
    color: #FFEB3B;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-membership.btn-family i {
    margin-right: 0.625rem;
    color: yellow;
}

.btn-general i {
    margin-right: 0.625rem;
}

.btn-membership.btn-family:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 0.3125rem 0.9375rem rgba(255, 215, 0, 0.2);
}

.btn-membership:active {
    transform: scale(0.98);
    box-shadow: 0 0.125rem 0.3125rem rgba(52, 152, 219, 0.2);
}

.btn-general {
    font-family: 'Ubuntu', sans-serif;
    position: relative;
    width: 80%;
    padding: 0.7rem 0.5rem;
    margin: 0.5rem 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.membership-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease;
    justify-content: center;
    align-items: center;
}

.membership-modal-content {
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: rgb(27 168 201 / 20%);
    border-radius: 15px;
    padding: 1.5625rem;
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.2);
    border: 2px solid rgb(27 168 201 / 20%);
    text-align: center;
}

.modal-manifesto {
    border: 1px solid #0061cb;
    width: 100%;
    border-radius: 10px;
    margin-left: 0;
    margin-bottom: 0.3125rem;
}

@keyframes softShine {
    0%, 100% { transform: rotate(45deg) translateX(-30%); opacity: 0.3; }
    50% { transform: rotate(45deg) translateX(30%); opacity: 0.6; }
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
}

.modal-header h3 {
    font-size: 1rem;
    color: white;
    font-family: "Anek Telugu", sans-serif;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.modal-close-btn {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-header-icon {
    font-size: 1.5rem;
    color: #ffd700;
    margin: 0 0.625rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.3125rem;
    margin-top: 0.625rem;
    padding: 0.3rem 0;
    position: relative;
    border-radius: 10px;
    gap: 0.625rem;
}

.modal-btn {
    width: 100%;
    padding: 0.75rem 0.9375rem;
    border: none;
    border-radius: 1.5625rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-btn-family {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: #000;
}

.modal-btn-general {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: rgb(55 42 82);
}

.modal-btn i {
    margin-right: 0.625rem;
}

.modal-btn a {
    color: rgb(55 42 82);
}

.family-arrow {
    position: absolute;
    right: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 1.5rem;
    animation: pointArrow 1s infinite alternate;
}

@keyframes pointArrow {
    from { right: -2.5rem; transform: translateY(-50%) rotate(-20deg); }
    to { right: -3.125rem; transform: translateY(-50%) rotate(20deg); }
}

.footer {
    margin-top: 0.5rem; /* Reduced from 1.875rem to 0.5rem */
    background-color: #042827;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 5px;
}

.footer-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-section {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.625rem;
}

.footer-section a:hover {
    color: #f39c12;
}

.footer-bottom {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #bdc3c7;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 0.625rem;
}

.footer-bottom a {
    color: #f39c12;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.click-hint {
    color: #808080;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    margin: 0.2rem 0;
    transition: opacity 0.3s ease;
    width: 80%; /* Match button width */
}

.click-hint::before, .click-hint::after {
    color: #b3b3b3; /* Lighter color for emojis */
    font-size: 0.9rem; /* Slightly larger emojis */
}

/* Ensure proper stacking and centering across all devices */
.membership-container, .signin-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Very Small Devices (e.g., 320px phones) */
@media screen and (max-width: 320px) {
    .landing-container {
        max-width: 100%;
        padding: 1vw;
    }
    .membership-modal-content {
        width: 98%;
        max-height: 85vh;
        overflow-y: auto;
    }
    html { font-size: 12px; }
    .btn-family, .btn-general, .click-hint {
        font-size: 0.875rem;
        width: 90%; /* Adjust width for smaller screens */
    }
}

/* Extra Small Devices (321px - 480px Mobiles) */
@media screen and (min-width: 321px) and (max-width: 480px) {
    .landing-container {
        max-width: 100%;
        padding: 2vw;
    }
    .membership-modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    html { font-size: 14px; }
    .btn-family, .btn-general, .click-hint {
        width: 90%;
    }
}

/* Small Devices (Tablets portrait: 481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .landing-container {
        max-width: 95%;
    }
    .membership-container {
        flex-direction: column;
    }
    html { font-size: 15px; }
    .btn-family, .btn-general, .click-hint {
        width: 85%;
    }
    .signin-section {
        margin: 0 auto;
        padding: 15px;
    }
}

/* Medium Devices (Tablets landscape / Small Laptops: 769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .landing-container {
        padding: 0.8rem 0.8rem;
        max-width: 90%;
    }
    .membership-container {
        flex-direction: column;
    }
    .btn-family, .btn-general, .click-hint {
        width: 80%;
    }
}

/* Large Devices (Laptops / Desktops: 1025px - 1919px) */
@media (min-width: 1025px) and (max-width: 1919px) {
    .landing-container {
        max-width: 75%;
    }
    .manifesto {
        width: 100%;
    }
    .membership-container {
        flex-direction: column;
    }
    .modal-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
    .btn-family, .btn-general, .click-hint {
        width: 80%;
    }
}

/* Extra Large Devices (Projectors / 4K+: 1920px+) */
@media (min-width: 1920px) {
    .landing-container {
        max-width: 60%;
    }
    html { font-size: 18px; }
    .manifesto {
        max-height: 80vh;
    }
    .header {
        padding: 1rem;
    }
    .footer {
        padding: 3rem 2rem;
    }
    .btn-family, .btn-general, .click-hint {
        width: 70%;
    }
}