/* 🛡️ Harsha Royal Portfolio - Project Protection Gate */

.project-gate-active {
    overflow: hidden !important;
}

.project-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px) saturate(150%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: gateFadeIn 0.6s ease forwards;
}

.project-gate-overlay.show {
    display: flex;
}

@keyframes gateFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gate-card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 117, 24, 0.1);
    transform: translateY(20px);
    animation: cardSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSlideUp {
    to { transform: translateY(0); }
}

.gate-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 117, 24, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #FF7518;
    font-size: 28px;
}

.gate-card h2 {
    font-family: 'Apfel Grotezk', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.gate-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding-left: 4px;
}

.gate-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    background: #F8F8F8;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    transition: all 0.3s ease;
}

.gate-input:focus {
    background: #fff;
    border-color: #FF7518;
    box-shadow: 0 0 0 4px rgba(255, 117, 24, 0.1);
    outline: none;
}

.gate-submit {
    margin-top: 10px;
    height: 56px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gate-submit:hover {
    background: #FF7518;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 117, 24, 0.2);
}

.gate-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gate-error {
    color: #ff4444;
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    display: none;
    padding: 10px;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 8px;
    text-align: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gateSpin 0.8s linear infinite;
    display: none;
}

@keyframes gateSpin {
    to { transform: rotate(360deg); }
}

.gate-submit.loading .spinner { display: block; }
.gate-submit.loading span { display: none; }

/* Dark Mode Support */
body.dark-mode .gate-card {
    background: #121212;
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .gate-card h2 { color: #fff; }
body.dark-mode .gate-input {
    background: #1a1a1a;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
}
body.dark-mode .gate-input:focus { background: #222; }
