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

:root {
    --primary: #ff4d94;
    --secondary: #6a5af9;
    --accent: #4d79ff;
    --dark: #1a1a2e;
    --darker: #16213e;
    --darkest: #0f3460;
    --text: #e6e6e6;
    --text-muted: #a0a0c0;
    --success: #4CAF50;
    --error: #ff4d94;
    --warning: #ff9800;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, var(--darkest) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.15) 0%, transparent 50%);
    z-index: -1;
}

/* Floating Animations */
.floating-ghost, .floating-bat {
    position: fixed;
    font-size: 2rem;
    opacity: 0.1;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.floating-ghost {
    top: 20%;
    left: 10%;
    color: var(--primary);
}

.floating-bat {
    top: 70%;
    right: 10%;
    color: var(--secondary);
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 77, 148, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 77, 148, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 77, 148, 0.8), 0 0 40px rgba(255, 77, 148, 0.6); }
}

.logo i {
    margin-right: 20px;
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Form Container */
.form-container {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    animation: gradientShift 3s ease infinite;
}

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.pulse {
    animation: pulse 2s infinite;
}

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

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text);
    font-size: 1.1rem;
}

label i {
    margin-right: 12px;
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(40, 40, 60, 0.7);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.2);
    background: rgba(50, 50, 70, 0.8);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

/* File Input */
.file-input-container {
    position: relative;
    margin-bottom: 10px;
}

.file-input-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(40, 40, 60, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-custom:hover {
    border-color: var(--secondary);
    background: rgba(106, 90, 249, 0.1);
    transform: translateY(-2px);
}

.file-input-custom i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--secondary);
}

.file-info {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.file-info i {
    margin-right: 8px;
    color: var(--text-muted);
}

.file-preview {
    margin-top: 15px;
    display: none;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Character Counter */
.char-counter {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Buttons */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.submit-btn::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: 0.5s;
}

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(255, 77, 148, 0.4),
        0 5px 10px rgba(106, 90, 249, 0.3);
}

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

.submit-btn i {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(106, 90, 249, 0.1), rgba(77, 121, 255, 0.1));
    border-left: 4px solid var(--secondary);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.info-box i {
    color: var(--secondary);
    margin-right: 15px;
    margin-top: 2px;
    font-size: 1.5rem;
}

.info-box h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(30, 30, 46, 0.6);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 60, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer */
.footer {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.glitch {
    position: relative;
    color: var(--error);
    font-weight: 600;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    5% { clip: rect(8px, 9999px, 16px, 0); }
    10% { clip: rect(42px, 9999px, 27px, 0); }
    15% { clip: rect(35px, 9999px, 19px, 0); }
    20% { clip: rect(58px, 9999px, 22px, 0); }
    25% { clip: rect(30px, 9999px, 32px, 0); }
    30% { clip: rect(85px, 9999px, 23px, 0); }
    35% { clip: rect(65px, 9999px, 11px, 0); }
    40% { clip: rect(79px, 9999px, 12px, 0); }
    45% { clip: rect(66px, 9999px, 49px, 0); }
    50% { clip: rect(94px, 9999px, 31px, 0); }
    55% { clip: rect(93px, 9999px, 29px, 0); }
    60% { clip: rect(84px, 9999px, 25px, 0); }
    65% { clip: rect(20px, 9999px, 26px, 0); }
    70% { clip: rect(24px, 9999px, 55px, 0); }
    75% { clip: rect(23px, 9999px, 39px, 0); }
    80% { clip: rect(3px, 9999px, 25px, 0); }
    85% { clip: rect(71px, 9999px, 32px, 0); }
    90% { clip: rect(41px, 9999px, 22px, 0); }
    95% { clip: rect(46px, 9999px, 52px, 0); }
    100% { clip: rect(95px, 9999px, 53px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* Error Messages */
.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(30, 30, 46, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalAppear 0.4s ease-out;
    overflow: hidden;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 30px 30px 0;
    text-align: center;
}

.modal-header i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.modal-body {
    padding: 20px 30px;
    text-align: center;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.success-details {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.success-details p {
    color: var(--text);
    font-size: 0.9rem;
    margin: 5px 0;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 148, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.modal-content.error .modal-header i {
    color: var(--error);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    background: rgba(30, 30, 46, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-content p {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active {
    color: var(--text);
}

.step i {
    width: 20px;
    text-align: center;
}

.step.active i {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    input, textarea {
        padding: 12px 15px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.footer-bottom a[href="https://dev.zaroffc.xyz"] {
    text-decoration: none;
    color: inherit;
}

.footer-bottom a[href="https://dev.zaroffc.xyz"]:hover {
    text-decoration: none;
    color: inherit;
}