/* ==========================================================================
   SkyDreamix Re-Designed ID Card System - Home CSS
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #070913;
    --bg-card: #13172c;
    --border-color: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #4a5568;

    /* Semantics & Brands */
    --primary-blue: #0052cc;
    --accent-cyan: #00d2ff;
    --accent-blue: #2563eb;
    
    --clr-leadership: #f59e0b;
    --clr-tech: #06b6d4;
    --clr-creative: #8b5cf6;
    --clr-marketing: #ec4899;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Shadows & Glows */
    --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --glow-effect: rgba(0, 82, 204, 0.15);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Ambient Orbs */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
}

.orb-primary {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--glow-effect) 0%, transparent 70%);
}

.orb-secondary {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
}

/* Container */
.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 50px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.brand-logo {
    height: 18px;
    width: auto;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}



/* --------------------------------------------------------------------------
   Team Grid / Cards - 3D ID Cards Layout
   -------------------------------------------------------------------------- */
.grid-section {
    width: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* 3D Scene Wrapper */
.id-card-scene {
    perspective: 1200px;
    width: 330px;
    height: 460px;
    flex-shrink: 0;
}

/* Real-Looking ID Card Container */
.id-card {
    position: relative;
    width: 330px;
    height: 460px;
    max-width: 100%;
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.id-card:hover {
    box-shadow: 0 45px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 210, 255, 0.15);
}

/* ── ID Card Top Header Shape ── */
.id-card-header {
    position: relative;
    width: 100%;
    height: 160px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 18px;
    z-index: 2;
}

.id-card-header-curves {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: -1;
}

.id-header-logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

/* ── ID Card Photo Section (Centered circle with blue border) ── */
.id-card-photo-sec {
    position: relative;
    width: 100%;
    height: 60px; /* Overlaps header and body */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.photo-frame {
    position: absolute;
    top: -55px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3.5px solid var(--accent-blue);
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Light blue dotted grid texture behind photo area */
.id-card-body-pattern {
    position: absolute;
    top: 160px;
    left: 0;
    width: 100%;
    height: 140px;
    background-image: radial-gradient(rgba(0, 210, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
    z-index: 1;
}

/* ── ID Card Core Body ── */
.id-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 24px 10px;
    z-index: 2;
}

.emp-name-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 100%;
    margin-bottom: 2px;
}

.emp-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.emp-role-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 100%;
    margin-bottom: 12px;
}

.emp-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Info metadata table */
.emp-meta-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    margin-bottom: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.meta-info {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;
    width: calc(100% - 44px);
}

.meta-label {
    width: 90px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}

.meta-divider {
    color: var(--text-muted);
}

.meta-value {
    color: #ffffff;
    font-weight: 700;
}

/* Footer Section */
.id-card-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 2;
}

.id-card-footer i {
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

/* Gloss Overlay effect on card */
.card-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 60%);
    pointer-events: none;
    z-index: 4;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 40px 16px 80px;
    }
    
    .team-grid {
        gap: 30px;
    }
}
