/* ============================================
   Mint Technology - Job Application Portal
   ============================================ */

/* CSS Variables - Mint Technology Brand Colors */
:root {
    /* Primary Colors */
    --mint-light: #B0EFD4;
    --mint-mid: #71E4A9;
    --mint-green: #4DCC87;
    --deep-mint: #45B08C;
    
    /* Secondary Colors */
    --bright-teal: #00A4AB;
    --deep-teal: #00565F;
    --soft-aqua: #81DBD1;
    --pale-green: #C3E8BA;
    --cool-grey: #CCDADD;
    --light-grey: #EBEFF0;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Functional Colors */
    --text-primary: #00565F;
    --text-secondary: #45B08C;
    --bg-primary: #FFFFFF;
    --bg-secondary: #EBEFF0;
    --danger: #E45C5C;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 86, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 86, 95, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 86, 95, 0.16);
    --shadow-glow: 0 0 40px rgba(77, 204, 135, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Decorative Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--mint-light), var(--soft-aqua));
    top: -200px;
    right: -150px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--pale-green), var(--mint-mid));
    bottom: -100px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--soft-aqua), var(--bright-teal));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--mint-green), var(--deep-mint));
    top: 20%;
    left: 10%;
    animation: float4 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, 40px) rotate(5deg); }
    50% { transform: translate(20px, -20px) rotate(-5deg); }
    75% { transform: translate(-40px, -30px) rotate(3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -30px) rotate(-3deg); }
    66% { transform: translate(-20px, 40px) rotate(5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header */
.header {
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-grey);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Main Content */
.main {
    flex: 1;
    padding: 60px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bright-teal);
    background: linear-gradient(135deg, rgba(0, 164, 171, 0.1), rgba(129, 219, 209, 0.2));
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    color: var(--deep-teal);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--deep-teal), var(--deep-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-primary);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Application Section */
.video-application {
    max-width: 800px;
    margin: 0 auto 80px;
}

/* Welcome Screen */
.welcome-screen {
    max-width: 480px;
    margin: 0 auto;
}

.welcome-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-grey);
}

.welcome-header {
    text-align: center;
    margin-bottom: 36px;
}

.welcome-header h2 {
    font-weight: 700;
    font-size: 28px;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.welcome-header p {
    font-size: 16px;
    color: var(--text-primary);
    opacity: 0.7;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--cool-grey);
    margin-top: 6px;
}

.control-btn.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Mode Selection */
.mode-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 32px;
    background: var(--white);
    border: 2px solid var(--light-grey);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.mode-btn:hover {
    border-color: var(--mint-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.mode-btn:hover .mode-icon {
    color: var(--mint-green);
    transform: scale(1.1);
}

.mode-icon {
    color: var(--deep-teal);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.mode-btn h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.mode-btn p {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.7;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    background: var(--black);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recording Indicator */
.recording-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(228, 92, 92, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Countdown */
.countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Recording Controls */
.recording-controls,
.preview-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.control-btn.primary {
    background: linear-gradient(135deg, var(--mint-green), var(--deep-mint));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(77, 204, 135, 0.4);
}

.control-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(77, 204, 135, 0.5);
}

.control-btn.secondary {
    background: var(--light-grey);
    color: var(--text-primary);
}

.control-btn.secondary:hover {
    background: var(--cool-grey);
}

.control-btn.danger {
    background: linear-gradient(135deg, #E45C5C, #C74444);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(228, 92, 92, 0.4);
}

.control-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(228, 92, 92, 0.5);
}

/* Upload Interface */
.upload-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.upload-zone {
    width: 100%;
    min-height: 300px;
    border: 3px dashed var(--cool-grey);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: rgba(235, 239, 240, 0.5);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--mint-green);
    background: rgba(176, 239, 212, 0.2);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-content {
    text-align: center;
    padding: 40px;
    color: var(--text-primary);
}

.upload-content svg {
    color: var(--cool-grey);
    margin-bottom: 20px;
    transition: color var(--transition-normal);
}

.upload-zone:hover .upload-content svg {
    color: var(--mint-green);
}

.upload-content h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--deep-teal);
}

.upload-content p {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.file-info {
    font-size: 13px;
    color: var(--deep-teal);
    opacity: 0.7;
}

/* Submission Form */
.submission-form {
    background: var(--white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-grey);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-weight: 700;
    font-size: 28px;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 16px;
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border: 2px solid var(--light-grey);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--mint-green);
    box-shadow: 0 0 0 4px rgba(77, 204, 135, 0.15);
}

.form-group input::placeholder {
    color: var(--cool-grey);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(176, 239, 212, 0.3), rgba(129, 219, 209, 0.2));
    border-radius: 20px;
    border: 2px solid var(--mint-light);
}

.success-icon {
    color: var(--mint-green);
    margin-bottom: 24px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-message h2 {
    font-weight: 700;
    font-size: 32px;
    color: var(--deep-teal);
    margin-bottom: 16px;
}

.success-message p {
    font-size: 18px;
    color: var(--text-primary);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 12px;
}

.success-note {
    font-weight: 500;
    color: var(--deep-mint) !important;
    opacity: 1 !important;
}

/* Tips Section */
.tips-section {
    margin-top: 80px;
}

.tips-section h2 {
    font-weight: 700;
    font-size: 28px;
    color: var(--deep-teal);
    text-align: center;
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tip-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--light-grey);
    text-align: center;
    transition: all var(--transition-normal);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--mint-light);
}

.tip-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--mint-light), var(--soft-aqua));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--deep-teal);
}

.tip-card h3 {
    font-weight: 600;
    font-size: 18px;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.7;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 32px 0;
    background: var(--light-grey);
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.7;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main {
        padding: 40px 0;
    }
    
    .hero {
        margin-bottom: 40px;
    }
    
    .mode-selection {
        grid-template-columns: 1fr;
    }
    
    .mode-btn {
        padding: 32px 24px;
    }
    
    .submission-form {
        padding: 32px 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .control-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tips-section {
        margin-top: 60px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .tag {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .recording-controls,
    .preview-controls {
        gap: 12px;
    }
}

/* Print Styles */
@media print {
    .bg-shapes,
    .video-application,
    .tips-section {
        display: none;
    }
}

