/* Mysterious Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(25, 25, 112, 0.05) 0%, transparent 50%);
    animation: mysteriousGlow 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes mysteriousGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.logo-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
    transition: transform 0.3s ease;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo Placeholder Styling */
.logo-placeholder {
    width: 150px;
    height: 60px;
    background: rgba(138, 43, 226, 0.2);
    border: 2px dashed rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.7);
    transform: scale(1.05);
}

.mysterious-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.center-content {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    max-width: 40vw;
    width: auto;
}

.button-container {
    position: absolute;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.image-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes borderGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 
            0 0 50px rgba(138, 43, 226, 0.5),
            inset 0 0 50px rgba(0, 0, 0, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 
            0 0 80px rgba(138, 43, 226, 0.8),
            inset 0 0 30px rgba(0, 0, 0, 0.2);
    }
}

.mysterious-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) brightness(0.9);
    display: block;
}


.mysterious-text {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 6rem);
    font-weight: 700;
    text-align: right;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #8a2be2, #4b0082, #ffffff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    letter-spacing: 3px;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    max-width: 100%;
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
}

.mysterious-btn {
    background: transparent;
    border: 2px solid #8a2be2;
    color: #8a2be2;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.mysterious-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.3), transparent);
    transition: left 0.5s ease;
}

.mysterious-btn:hover::before {
    left: 100%;
}

.mysterious-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #4b0082;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.mysterious-btn:active {
    transform: translateY(0);
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 47%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: inherit;
    text-decoration: none;
}

.footer p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

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

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 20, 60, 0.95));
    margin: 5% auto 5%;
    padding: 40px;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.5);
    animation: slideDown 0.3s ease;
    position: relative;
    min-height: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #8a2be2;
}

.form-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #8a2be2, #4b0082, #ffffff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s ease-in-out infinite;
}

.form-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a2be2;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    border: none;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Roboto', sans-serif;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #4b0082, #8a2be2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: slideDown 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.success-circle {
    stroke: #8a2be2;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 125;
    stroke-dashoffset: 125;
    animation: draw-circle 0.6s ease-out forwards;
}

.success-check {
    stroke: #8a2be2;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: draw-check 0.4s 0.4s ease-out forwards;
}

@keyframes draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

.success-message h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.success-message p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(40, 20, 60, 0.98));
    border-top: 2px solid rgba(138, 43, 226, 0.5);
    padding: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 30px rgba(138, 43, 226, 0.3);
    animation: slideUp 0.5s ease;
    display: none;
}

.cookie-consent.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    flex: 1;
    min-width: 250px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'Roboto', sans-serif;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accept-btn {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    color: #ffffff;
    border: none;
}

.accept-btn:hover {
    background: linear-gradient(45deg, #4b0082, #8a2be2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.5);
}

.decline-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.5);
}

.decline-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8a2be2;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .logo-container {
        top: 15px;
        right: 15px;
        z-index: 20;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .logo-placeholder {
        width: 100px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Force mobile layout */
    .image-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
    }
    
    .mysterious-image {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 110vw !important;
        height: 110vh !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: 45% 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 0 !important;
    }
    
    .center-content {
        position: absolute !important;
        top: 43% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 80% !important;
        width: 80% !important;
        text-align: center !important;
        padding: 0 10px !important;
        margin: 0 !important;
        z-index: 2 !important;
    }
    
    .mysterious-text {
        font-size: 2.1rem !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        line-height: 1.1 !important;
    }
    
    .button-container {
        position: absolute !important;
        top: 52% !important;
        left: calc(50% - 4px) !important;
        transform: translate(-50%, -50%) !important;
        width: 70% !important;
        max-width: 320px !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 2 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .mysterious-btn {
        padding: 12px 26px;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        width: 100%;
        display: block;
    }
    
    .footer {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        gap: 8px;
        padding: 8px 15px;
    }
    
    .footer-logo {
        max-width: 80px;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-text {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 30px 20px 20px;
        margin: 10px auto 20px;
        width: 92%;
        max-height: none;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        top: 10px;
        right: 10px;
    }
    
    .logo {
        max-width: 80px;
    }
    
    .image-wrapper {
        padding: 0 !important;
        gap: 0 !important;
    }

    .mysterious-image {
        object-position: 44% 50% !important;
        width: 108vw !important;
        height: 108vh !important;
    }
    
    .center-content {
        top: 42% !important;
        width: 85% !important;
        max-width: 85% !important;
        transform: translate(-50%, -50%) !important;
        padding: 0 8px !important;
    }
    
    .mysterious-text {
        font-size: 1.8rem !important;
        letter-spacing: 0.3px !important;
        line-height: 1.05 !important;
    }
    
    .button-container {
        top: 58% !important;
        left: calc(50% - 3px) !important;
        transform: translate(-50%, -50%) !important;
        width: 78% !important;
        max-width: 260px !important;
    }
    
    .mysterious-btn {
        padding: 10px 18px;
        font-size: 0.78rem;
        letter-spacing: 1.2px;
    }
    
    .footer {
        bottom: 8px;
        padding: 6px 12px;
    }
    
    .footer-logo {
        max-width: 70px;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
    }
    
    .modal-content {
        padding: 25px 15px 20px;
        margin: 10px auto 15px;
        width: 94%;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .close {
        font-size: 28px;
        right: 10px;
        top: 10px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 1rem;
        margin-top: 5px;
    }
}