/* --- SPINTELLECT UNIVERSAL STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Caveat:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Spintellect Modern Palette */
    --color-bg: #0A0C10;         
    --color-surface: #14171F;    
    --color-text-main: #FFFFFF;
    --color-text-muted: #8B949E;
    --color-accent: #3B82F6;     
    
    /* Sonic Wrench Palette */
    --color-sw-paper: #FDFDFD;
    --color-sw-ink: #1A1A1A;
    --color-sw-red: #C74D3B;
    
    --font-corporate: 'Inter', sans-serif;
    --font-sw-marker: 'Caveat', cursive;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-corporate);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--color-accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--color-text-main);
}

/* --- HERO SECTION --- */
.hero { padding: 100px 0 60px 0; text-align: center; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; background: linear-gradient(to right, #ffffff, #8B949E); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--color-text-muted); max-width: 800px; margin: 0 auto 40px auto; font-weight: 300; }

/* --- THE PROJECTS GRID --- */
.projects-section { flex-grow: 1; padding: 40px 0 100px 0; }
.cards-container { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; align-items: center; }

/* Sonic Wrench Polaroid Card */
.sw-card { display: block; text-decoration: none; background-color: var(--color-sw-paper); width: 100%; max-width: 380px; padding: 15px 15px 40px 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); color: var(--color-sw-ink); transform: rotate(-3deg); transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.sw-card:hover { transform: scale(1.05) rotate(0deg); box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(199, 77, 59, 0.2); z-index: 10; }
.sw-card-img { width: 100%; aspect-ratio: 1 / 1; background-color: #333; background-size: cover; background-position: center; background-image: url('https://images.unsplash.com/photo-1552511475-4d7328df8002?auto=format&fit=crop&w=800&q=80'); filter: sepia(0.4) contrast(1.1) brightness(0.9) saturate(0.8); box-shadow: inset 0 0 20px rgba(0,0,0,0.5); margin-bottom: 20px; }
.sw-card-title { font-family: var(--font-sw-marker); font-size: 2.5rem; text-align: center; color: var(--color-sw-ink); line-height: 1; }
.sw-card-badge { position: absolute; top: -15px; right: -15px; background-color: var(--color-sw-red); color: white; font-family: var(--font-corporate); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; padding: 10px 15px; transform: rotate(10deg); box-shadow: 2px 4px 10px rgba(0,0,0,0.3); }

/* Placeholder Card */
.placeholder-card { width: 100%; max-width: 380px; aspect-ratio: 3 / 4; background-color: var(--color-surface); border: 2px dashed rgba(139, 148, 158, 0.3); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; transition: all 0.4s ease; }
.placeholder-card:hover { border-color: rgba(255, 255, 255, 0.5); background-color: rgba(20, 23, 31, 0.8); transform: translateY(-5px); }
.pulse-dot { width: 12px; height: 12px; background-color: var(--color-accent); border-radius: 50%; margin-bottom: 25px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.placeholder-card h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 600; }
.placeholder-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* --- INTERNAL PAGES --- */
.page-hero { padding: 80px 0 40px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 60px; }
.page-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; background: linear-gradient(to right, #ffffff, #8B949E); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-content { flex-grow: 1; padding-bottom: 80px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.text-block h2 { font-size: 2rem; margin-bottom: 20px; font-weight: 600; color: var(--color-text-main); }
.text-block p { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 20px; font-weight: 300; }

/* --- CONTACT FORM --- */
.contact-container { max-width: 600px; margin: 0 auto; background-color: var(--color-surface); padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; color: var(--color-text-muted); margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.form-control { width: 100%; background: var(--color-bg); border: 1px solid rgba(139, 148, 158, 0.3); color: white; padding: 15px; border-radius: 6px; font-family: var(--font-corporate); font-size: 1rem; transition: border-color 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--color-accent); }
textarea.form-control { resize: vertical; min-height: 150px; }
.btn-corporate { background: var(--color-accent); color: white; border: none; padding: 15px 30px; font-size: 1rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; width: 100%; font-family: var(--font-corporate); }
.btn-corporate:hover { background: #2563EB; }

/* --- CAREERS & JOB BOARD --- */
.job-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.job-card { background-color: var(--color-surface); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 30px; text-decoration: none; color: var(--color-text-main); transition: all 0.3s ease; display: flex; flex-direction: column; gap: 15px; }
.job-card:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; }
.job-title { font-size: 1.5rem; font-weight: 600; }
.job-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.job-tag { font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; }
.tag-type { background-color: rgba(255, 255, 255, 0.1); color: var(--color-text-main); }
.tag-app { background-color: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.job-desc { color: var(--color-text-muted); font-size: 1rem; font-weight: 300; }
.job-arrow { color: var(--color-accent); font-weight: 600; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.job-arrow i { transition: transform 0.3s ease; }
.job-card:hover .job-arrow i { transform: translateX(5px); }

/* --- JOB DETAIL PAGE --- */
.job-detail-header { text-align: center; padding: 80px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 60px; }
.job-detail-header h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.job-detail-meta { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.job-detail-content { max-width: 800px; margin: 0 auto; color: var(--color-text-muted); font-size: 1.1rem; }
.job-detail-content h2 { color: var(--color-text-main); font-size: 1.8rem; margin: 50px 0 20px; font-weight: 600; }
.job-detail-content p { margin-bottom: 20px; }
.job-detail-content ul { margin-left: 20px; margin-bottom: 20px; }
.job-detail-content li { margin-bottom: 10px; }
.apply-section { margin-top: 60px; padding-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; }

/* LinkedIn Button */
.btn-linkedin { background-color: #0A66C2; color: white; border: none; padding: 16px 35px; font-size: 1.1rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-family: var(--font-corporate); }
.btn-linkedin:hover { background-color: #004182; }
.btn-linkedin i { font-size: 1.4rem; }

/* --- FOOTER --- */
footer { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 0; text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1, .page-hero h1, .job-detail-header h1 { font-size: 2.5rem; }
    .hero { padding: 60px 0 40px 0; }
    .cards-container { flex-direction: column; gap: 50px; }
    .sw-card { transform: rotate(0); }
    .nav-container { flex-direction: column; gap: 20px; }
    .content-grid { grid-template-columns: 1fr; gap: 30px;}
    .contact-container { padding: 25px; }
    .job-header { flex-direction: column; gap: 15px; }
}