/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark & Timeless */
    --color-bg-dark: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Premium Gradient Colors */
    --color-accent-1: #a78bfa;
    --color-accent-2: #ec4899;
    --color-accent-3: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-shine: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Effects */
    --blur-glass: 20px;
    --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.3);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(103, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Floating Stars Effect */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        100px 200px 0 rgba(255, 255, 255, 0.3),
        300px 400px 0 rgba(255, 255, 255, 0.2),
        500px 100px 0 rgba(255, 255, 255, 0.4),
        700px 300px 0 rgba(255, 255, 255, 0.3),
        900px 500px 0 rgba(255, 255, 255, 0.2),
        200px 600px 0 rgba(255, 255, 255, 0.3),
        400px 800px 0 rgba(255, 255, 255, 0.2),
        1200px 150px 0 rgba(255, 255, 255, 0.4),
        1400px 450px 0 rgba(255, 255, 255, 0.3),
        800px 700px 0 rgba(255, 255, 255, 0.2);
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: slideDown 0.8s ease-out;
}

.logo .domain {
    font-weight: 400;
    opacity: 0.9;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: var(--spacing-xl) 0;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Container */
.form-container {
    flex: 1;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.career-form {
    background: var(--color-surface);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-elevated);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-form:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated), var(--shadow-glow);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    border-color: var(--color-accent-1);
    background: rgba(167, 139, 250, 0.05);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-tertiary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

/* File Upload */
.file-upload-group {
    margin-bottom: var(--spacing-lg);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--color-bg-secondary);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--color-accent-1);
    background: rgba(167, 139, 250, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-1);
    transition: transform 0.3s ease;
}

.file-upload-label:hover .upload-icon {
    transform: translateY(-4px);
}

.file-upload-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.file-name {
    display: none;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-accent-1);
    font-weight: 500;
}

.file-name.active {
    display: block;
}

.file-info {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    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: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Success Message */
.success-message {
    background: var(--color-surface);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 24px;
    padding: var(--spacing-xl);
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #22c55e;
    margin: 0 auto var(--spacing-md);
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.success-message p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .career-form {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .career-form {
        padding: var(--spacing-md);
    }
}
