/* JKNAT Homepage Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, 
        #00bcd4 0%,     /* Cyan */
        #4caf50 25%,    /* Green */
        #ffeb3b 50%,    /* Yellow */
        #ff9800 75%,    /* Orange */
        #e91e63 100%    /* Pink */
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #00bcd4 0%,
        #4caf50 20%,
        #ffeb3b 40%,
        #ff9800 60%,
        #e91e63 80%,
        #9c27b0 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
}

.settings-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.settings-icon:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    color: #d32f2f;
    text-shadow: 
        3px 3px 0px #b71c1c,
        6px 6px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.subtitle {
    font-size: 3rem;
    font-weight: 600;
    color: #ff6f00;
    text-shadow: 
        2px 2px 0px #e65100,
        4px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.nav-button {
    height: 120px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.nav-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Bathroom Timer Button (Yellow with border) */
.bathroom-timer-btn {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    color: #e91e63;
    border: 4px solid #2196f3;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.bathroom-timer-btn:hover {
    background: linear-gradient(135deg, #fff176, #ffca28);
    border-color: #1976d2;
}

/* Green Button */
.green-btn {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.green-btn:hover {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

/* Blue Button */
.blue-btn {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.blue-btn:hover {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
}

/* Purple Button */
.purple-btn {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}

.purple-btn:hover {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
}

.email {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .settings-icon {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .nav-button {
        height: 100px;
        font-size: 1.1rem;
    }
    
    .email {
        bottom: 1rem;
        left: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .nav-button {
        height: 80px;
        font-size: 1rem;
    }
    
    .button-grid {
        max-width: 300px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.nav-button:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
