@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Sora:wght@400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    --bg-primary: #070913;
    --bg-secondary: #0c0f1d;
    --bg-tertiary: #13172d;
    
    --color-purple: #6366f1;
    --color-purple-glow: rgba(99, 102, 241, 0.15);
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.15);
    --color-emerald: #10b981;
    --color-emerald-glow: rgba(16, 185, 129, 0.2);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --glass-bg: rgba(12, 15, 29, 0.65);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(6, 182, 212, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--color-purple-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--color-cyan-glow) 0%, transparent 40%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-weight: 300;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* --- ANIMATIONS --- */
@keyframes orbit {
    0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes orbit-reverse {
    0% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
    100% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

@keyframes drawLine {
    from { height: 0; }
    to { height: 100%; }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* --- GLASS CONTAINER --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px 0 rgba(6, 182, 212, 0.08);
}

/* --- GLOWING BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff 40%, var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 38px;
    object-fit: contain;
    /* In case logo.png has a background, let's keep transparent fallback */
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.hero-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--color-purple);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 60%, var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

/* Orbital Animation Graphics */
.hero-visual {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-system {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-system::before {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.04);
}

.center-planet {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1e293b, #090d16);
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.25),
        inset -5px -5px 15px rgba(0, 0, 0, 0.8),
        inset 5px 5px 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.center-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
}

.planet-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite;
    z-index: 1;
}

.satellite {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), #818cf8);
    box-shadow: 0 0 15px var(--color-purple);
    animation: orbit 12s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.satellite::after {
    content: '</>';
    font-size: 9px;
    font-weight: bold;
    color: white;
}

.satellite-2 {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan), #22d3ee);
    box-shadow: 0 0 20px var(--color-cyan);
    animation: orbit-reverse 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.satellite-2::after {
    content: '{ }';
    font-size: 11px;
    font-weight: bold;
    color: #070913;
}

/* Floating Skill Badges */
.skill-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-heading);
    z-index: 15;
}

.badge-1 {
    top: 15%;
    left: 5%;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
}

.badge-2 {
    bottom: 20%;
    left: 10%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-purple);
}

.badge-3 {
    top: 25%;
    right: 5%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
}

/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-cyan);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-desc {
    font-size: 1.05rem;
}

/* --- FEATURES GRID / VALUE PROP --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--color-cyan-glow);
    border-color: var(--color-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- TIMELINE / PROCESS --- */
.timeline-section {
    background: linear-gradient(180deg, transparent, var(--bg-secondary) 50%, transparent);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-purple), var(--color-cyan), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 25px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--color-purple);
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: var(--font-heading);
    box-shadow: 0 0 15px var(--color-purple-glow);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.95rem;
}

/* --- DUAL INTAKE FORM --- */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem;
}

.form-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 3rem;
    position: relative;
}

.form-toggle-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-smooth);
}

.form-toggle-btn.active {
    color: var(--text-primary);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    border-radius: 50px;
    z-index: 1;
    transition: var(--transition-smooth);
}

.form-toggle-btn[data-tab="candidate"].active ~ .toggle-slider {
    left: calc(50%);
}

.intake-form {
    display: none;
    flex-direction: column;
    gap: 1.8rem;
}

.intake-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

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

/* File Splicer Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.01);
}

.file-upload-wrapper:hover {
    border-color: var(--color-purple);
    background: rgba(99, 102, 241, 0.02);
}

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

.file-upload-icon {
    font-size: 2rem;
    color: var(--color-purple);
    margin-bottom: 0.5rem;
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-upload-text span {
    color: var(--color-purple);
    font-weight: 500;
}

.file-name-preview {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-emerald);
    display: none;
}

/* Validation Feedback styles */
.form-feedback {
    font-size: 0.8rem;
    color: #f87171;
    display: none;
    margin-top: -0.5rem;
}

.form-control.is-invalid {
    border-color: #f87171;
}

.form-control.is-valid {
    border-color: var(--color-emerald);
}

/* Alert Notification popup */
.form-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    transform: translateY(150%);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-toast.success {
    background: var(--color-emerald);
    box-shadow: 0 5px 20px var(--color-emerald-glow);
}

.form-toast.error {
    background: #ef4444;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.form-toast.show {
    transform: translateY(0);
}

/* --- FOOTER --- */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo img {
    height: 30px;
}

.footer-info {
    text-align: right;
}

.footer-email {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-cyan);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-email:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.footer-copy {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-tag {
        align-self: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    
    .navbar {
        background: rgba(7, 9, 19, 0.95);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 3rem;
    }
    
    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.1);
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
        text-align: left !important;
        padding: 1rem 0 1rem 1.5rem;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}
